diff --git a/src/jsTyping/jsTyping.ts b/src/jsTyping/jsTyping.ts index b2c186d6ede10..7416918ef8782 100644 --- a/src/jsTyping/jsTyping.ts +++ b/src/jsTyping/jsTyping.ts @@ -30,6 +30,9 @@ import { Version, versionMajorMinor, } from "./_namespaces/ts"; +import { + stringifyIndented, +} from "./_namespaces/ts.server"; export interface TypingResolutionHost { directoryExists(path: string): boolean; @@ -174,7 +177,7 @@ export function discoverTypings( } // A typing name to typing file path mapping - const inferredTypings = new Map(); + const inferredTypings = new Map(); // Only infer typings for .js and .jsx files fileNames = mapDefined(fileNames, fileName => { @@ -211,24 +214,24 @@ export function discoverTypings( ); addInferredTypings(module, "Inferred typings from unresolved imports"); } + // Remove typings that the user has added to the exclude list + for (const excludeTypingName of exclude) { + const didDelete = inferredTypings.delete(excludeTypingName); + if (didDelete && log) log(`Typing for ${excludeTypingName} is in exclude list, will be ignored.`); + } + // Add the cached typing locations for inferred typings that are already installed packageNameToTypingLocation.forEach((typing, name) => { const registryEntry = typesRegistry.get(name); - if (inferredTypings.has(name) && inferredTypings.get(name) === undefined && registryEntry !== undefined && isTypingUpToDate(typing, registryEntry)) { + if (inferredTypings.get(name) === false && registryEntry !== undefined && isTypingUpToDate(typing, registryEntry)) { inferredTypings.set(name, typing.typingLocation); } }); - // Remove typings that the user has added to the exclude list - for (const excludeTypingName of exclude) { - const didDelete = inferredTypings.delete(excludeTypingName); - if (didDelete && log) log(`Typing for ${excludeTypingName} is in exclude list, will be ignored.`); - } - const newTypingNames: string[] = []; const cachedTypingPaths: string[] = []; inferredTypings.forEach((inferred, typing) => { - if (inferred !== undefined) { + if (inferred) { cachedTypingPaths.push(inferred); } else { @@ -236,12 +239,12 @@ export function discoverTypings( } }); const result = { cachedTypingPaths, newTypingNames, filesToWatch }; - if (log) log(`Result: ${JSON.stringify(result)}`); + if (log) log(`Finished typings discovery:${stringifyIndented(result)}`); return result; function addInferredTyping(typingName: string) { if (!inferredTypings.has(typingName)) { - inferredTypings.set(typingName, undefined!); // TODO: GH#18217 + inferredTypings.set(typingName, false); } } function addInferredTypings(typingNames: readonly string[], message: string) { diff --git a/src/jsTyping/shared.ts b/src/jsTyping/shared.ts index 09deb0fc2c56b..ef3320091895b 100644 --- a/src/jsTyping/shared.ts +++ b/src/jsTyping/shared.ts @@ -65,3 +65,19 @@ export function nowString() { const d = new Date(); return `${d.getHours().toString().padStart(2, "0")}:${d.getMinutes().toString().padStart(2, "0")}:${d.getSeconds().toString().padStart(2, "0")}.${d.getMilliseconds().toString().padStart(3, "0")}`; } + +const indentStr = "\n "; + +/** @internal */ +export function indent(str: string): string { + return indentStr + str.replace(/\n/g, indentStr); +} + +/** + * Put stringified JSON on the next line, indented. + * + * @internal + */ +export function stringifyIndented(json: {}): string { + return indent(JSON.stringify(json, undefined, 2)); +} diff --git a/src/server/project.ts b/src/server/project.ts index e9538e411a018..e0a21ed7701d2 100644 --- a/src/server/project.ts +++ b/src/server/project.ts @@ -2640,10 +2640,6 @@ export class AutoImportProviderProject extends Project { return PackageJsonAutoImportPreference.Off; } - override getTypeAcquisition(): TypeAcquisition { - return { enable: false }; - } - /** @internal */ override getSymlinkCache() { return this.hostProject.getSymlinkCache(); diff --git a/src/server/session.ts b/src/server/session.ts index eb56d56b48296..e97e5ca86a314 100644 --- a/src/server/session.ts +++ b/src/server/session.ts @@ -323,7 +323,7 @@ export function formatMessage(msg: T, logger: Logger const json = JSON.stringify(msg); if (verboseLogging) { - logger.info(`${msg.type}:${indent(JSON.stringify(msg, undefined, " "))}`); + logger.info(`${msg.type}:${stringifyIndented(msg)}`); } const len = byteLength(json, "utf8"); diff --git a/src/server/utilities.ts b/src/server/utilities.ts index c9bd0ea1c6700..088a2f9f16684 100644 --- a/src/server/utilities.ts +++ b/src/server/utilities.ts @@ -110,19 +110,3 @@ export function removeSorted(array: SortedArray, remove: T, compare: Compa array.splice(removeIndex, 1); } } - -const indentStr = "\n "; - -/** @internal */ -export function indent(str: string): string { - return indentStr + str.replace(/\n/g, indentStr); -} - -/** - * Put stringified JSON on the next line, indented. - * - * @internal - */ -export function stringifyIndented(json: {}): string { - return indentStr + JSON.stringify(json); -} diff --git a/src/testRunner/unittests/helpers/tsserver.ts b/src/testRunner/unittests/helpers/tsserver.ts index c02774d812319..8fe67e183143f 100644 --- a/src/testRunner/unittests/helpers/tsserver.ts +++ b/src/testRunner/unittests/helpers/tsserver.ts @@ -3,12 +3,14 @@ import { } from "../../../harness/incrementalUtils"; import * as Harness from "../../_namespaces/Harness"; import * as ts from "../../_namespaces/ts"; -import { - ActionWatchTypingLocations, -} from "../../_namespaces/ts.server"; import { ensureErrorFreeBuild, } from "./solutionBuilder"; +import { + customTypesMap, + TestTypingsInstaller, + TestTypingsInstallerOptions, +} from "./typingsInstaller"; import { changeToHostTrackingWrittenFiles, createServerHost, @@ -19,31 +21,7 @@ import { TestServerHostTrackingWrittenFiles, } from "./virtualFileSystemWithWatch"; -export const customTypesMap = { - path: "/typesMap.json" as ts.Path, - content: `{ - "typesMap": { - "jquery": { - "match": "jquery(-(\\\\.?\\\\d+)+)?(\\\\.intellisense)?(\\\\.min)?\\\\.js$", - "types": ["jquery"] - }, - "quack": { - "match": "/duckquack-(\\\\d+)\\\\.min\\\\.js", - "types": ["duck-types"] - } - }, - "simpleMap": { - "Bacon": "baconjs", - "bliss": "blissfuljs", - "commander": "commander", - "cordova": "cordova", - "react": "react", - "lodash": "lodash" - } - }`, -}; - -function replaceAll(source: string, searchValue: string, replaceValue: string): string { +export function replaceAll(source: string, searchValue: string, replaceValue: string): string { let result: string | undefined = (source as string & { replaceAll: typeof source.replace; }).replaceAll?.(searchValue, replaceValue); if (result !== undefined) { @@ -65,13 +43,6 @@ function replaceAll(source: string, searchValue: string, replaceValue: string): return result; } -export interface PostExecAction { - readonly success: boolean; - requestId: number; - readonly packageNames: readonly string[]; - readonly callback: ts.server.typingsInstaller.RequestCompletedAction; -} - export interface Logger extends ts.server.Logger { logs?: string[]; log(s: string): void; @@ -127,7 +98,7 @@ function handleLoggerGroup(logger: Logger, host: TestServerHost | undefined): Lo } } -function nowString(host: TestServerHost) { +export function nowString(host: TestServerHost) { // E.g. "12:34:56.789" host.now(); // To increment the time but not print it to avoid the baseline updates return `hh:mm:ss:mss`; @@ -144,7 +115,7 @@ export function createLoggerWritingToConsole(host: TestServerHost): Logger { }, host); } -function sanitizeLog(s: string): string { +export function sanitizeLog(s: string): string { s = s.replace(/Elapsed::?\s*\d+(?:\.\d+)?ms/g, "Elapsed:: *ms"); s = s.replace(/"updateGraphDurationMs":\s*\d+(?:\.\d+)?/g, `"updateGraphDurationMs": *`); s = s.replace(/"createAutoImportProviderProgramDurationMs":\s*\d+(?:\.\d+)?/g, `"createAutoImportProviderProgramDurationMs": *`); @@ -189,231 +160,6 @@ export function appendAllScriptInfos(session: TestSession) { session.logger.log(""); } -function loggerToTypingsInstallerLog(logger: Logger): ts.server.typingsInstaller.Log | undefined { - return logger?.loggingEnabled() ? { - isEnabled: ts.returnTrue, - writeLine: s => { - // This is a VERY VERY NAIVE sanitization strategy. - // If a substring containing the exact TypeScript version is found, - // even if it's unrelated to TypeScript itself, then it will be replaced, - // leaving us with two options: - // - // 1. Deal with flip-flopping baselines. - // 2. Change the TypeScript version until no matching substring is found. - // - const initialLog = sanitizeLog(s); - const pseudoSanitizedLog = replaceAll(initialLog, `@ts${ts.versionMajorMinor}`, `@tsFakeMajor.Minor`); - return logger.log(`TI:: [${nowString(logger.host!)}] ${pseudoSanitizedLog}`); - }, - } : undefined; -} - -interface TypesRegistryFile { - entries: ts.MapLike>; -} - -function loadTypesRegistryFile(typesRegistryFilePath: string, host: TestServerHost, log: ts.server.typingsInstaller.Log): Map> { - if (!host.fileExists(typesRegistryFilePath)) { - if (log.isEnabled()) { - log.writeLine(`Types registry file '${typesRegistryFilePath}' does not exist`); - } - return new Map>(); - } - try { - const content = JSON.parse(host.readFile(typesRegistryFilePath)!) as TypesRegistryFile; - return new Map(Object.entries(content.entries)); - } - catch (e) { - if (log.isEnabled()) { - log.writeLine(`Error when loading types registry file '${typesRegistryFilePath}': ${(e as Error).message}, ${(e as Error).stack}`); - } - return new Map>(); - } -} - -const typesRegistryPackageName = "types-registry"; -function getTypesRegistryFileLocation(globalTypingsCacheLocation: string): string { - return ts.combinePaths(ts.normalizeSlashes(globalTypingsCacheLocation), `node_modules/${typesRegistryPackageName}/index.json`); -} - -export class TestTypingsInstallerWorker extends ts.server.typingsInstaller.TypingsInstaller { - readonly typesRegistry: Map>; - protected projectService!: ts.server.ProjectService; - constructor( - readonly globalTypingsCacheLocation: string, - throttleLimit: number, - installTypingHost: TestServerHost, - logger: Logger, - typesRegistry?: string | readonly string[], - ) { - const log = loggerToTypingsInstallerLog(logger); - if (log?.isEnabled()) { - patchHostTimeouts( - changeToHostTrackingWrittenFiles(installTypingHost), - logger, - ); - (installTypingHost as TestSessionAndServiceHost).baselineHost("TI:: Creating typing installer"); - } - super( - installTypingHost, - globalTypingsCacheLocation, - "/safeList.json" as ts.Path, - customTypesMap.path, - throttleLimit, - log, - ); - - this.ensurePackageDirectoryExists(globalTypingsCacheLocation); - - if (this.log.isEnabled()) { - this.log.writeLine(`Updating ${typesRegistryPackageName} npm package...`); - this.log.writeLine(`npm install --ignore-scripts ${typesRegistryPackageName}@${this.latestDistTag}`); - } - installTypingHost.ensureFileOrFolder({ - path: getTypesRegistryFileLocation(globalTypingsCacheLocation), - content: JSON.stringify( - createTypesRegistryFileContent( - typesRegistry ? - ts.isString(typesRegistry) ? - [typesRegistry] : - typesRegistry : - ts.emptyArray, - ), - undefined, - " ", - ), - }); - if (this.log.isEnabled()) { - this.log.writeLine(`TI:: Updated ${typesRegistryPackageName} npm package`); - } - this.typesRegistry = loadTypesRegistryFile(getTypesRegistryFileLocation(globalTypingsCacheLocation), installTypingHost, this.log); - if (this.log.isEnabled()) { - (installTypingHost as TestSessionAndServiceHost).baselineHost("TI:: typing installer creation complete"); - } - } - - protected postExecActions: PostExecAction[] = []; - - executePendingCommands() { - const actionsToRun = this.postExecActions; - this.postExecActions = []; - for (const action of actionsToRun) { - if (this.log.isEnabled()) { - this.log.writeLine(`#${action.requestId} with arguments'${JSON.stringify(action.packageNames)}':: ${action.success}`); - } - action.callback(action.success); - } - } - - attach(projectService: ts.server.ProjectService) { - this.projectService = projectService; - } - - getInstallTypingHost() { - return this.installTypingHost; - } - - installWorker(requestId: number, packageNames: string[], _cwd: string, cb: ts.server.typingsInstaller.RequestCompletedAction): void { - if (this.log.isEnabled()) { - this.log.writeLine(`#${requestId} with arguments'${JSON.stringify(packageNames)}'.`); - } - this.addPostExecAction("success", requestId, packageNames, cb); - } - - sendResponse(response: ts.server.SetTypings | ts.server.InvalidateCachedTypings | ts.server.WatchTypingLocations) { - if (this.log.isEnabled()) { - this.log.writeLine(`Sending response:\n ${JSON.stringify(response)}`); - } - if (response.kind !== ActionWatchTypingLocations) this.projectService.updateTypingsForProject(response); - else this.projectService.watchTypingLocations(response); - } - - enqueueInstallTypingsRequest(project: ts.server.Project, typeAcquisition: ts.TypeAcquisition, unresolvedImports: ts.SortedReadonlyArray) { - const request = ts.server.createInstallTypingsRequest(project, typeAcquisition, unresolvedImports, this.globalTypingsCacheLocation); - this.install(request); - } - - addPostExecAction(stdout: string | string[], requestId: number, packageNames: string[], cb: ts.server.typingsInstaller.RequestCompletedAction) { - const out = ts.isString(stdout) ? stdout : createNpmPackageJsonString(stdout); - const action: PostExecAction = { - success: !!out, - requestId, - packageNames, - callback: cb, - }; - this.postExecActions.push(action); - } -} - -export class TestTypingsInstaller implements ts.server.ITypingsInstaller { - protected projectService!: ts.server.ProjectService; - public installer!: T; - constructor( - readonly globalTypingsCacheLocation: string, - private throttleLimit: number, - private installTypingHost: TestServerHost, - private logger: Logger, - private workerConstructor?: new (...args: ConstructorParameters) => T, - private typesRegistry?: string | readonly string[], - ) { - } - - isKnownTypesPackageName = ts.notImplemented; - installPackage = ts.notImplemented; - - attach(projectService: ts.server.ProjectService) { - this.projectService = projectService; - } - - onProjectClosed(p: ts.server.Project) { - this.installer?.closeProject({ projectName: p.getProjectName(), kind: "closeProject" }); - } - - enqueueInstallTypingsRequest(project: ts.server.Project, typeAcquisition: ts.TypeAcquisition, unresolvedImports: ts.SortedReadonlyArray) { - if (!this.installer) { - if (this.workerConstructor) { - this.installer ??= new this.workerConstructor(this.globalTypingsCacheLocation, this.throttleLimit, this.installTypingHost, this.logger, this.typesRegistry); - } - else { - this.installer = new TestTypingsInstallerWorker(this.globalTypingsCacheLocation, this.throttleLimit, this.installTypingHost, this.logger, this.typesRegistry) as T; - } - this.installer.attach(this.projectService); - } - this.installer.enqueueInstallTypingsRequest(project, typeAcquisition, unresolvedImports); - } -} - -function createNpmPackageJsonString(installedTypings: string[]): string { - const dependencies: ts.MapLike = {}; - for (const typing of installedTypings) { - dependencies[typing] = "1.0.0"; - } - return JSON.stringify({ dependencies }); -} - -function createTypesRegistryFileContent(list: readonly string[]): TypesRegistryFile { - const versionMap = { - "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", - }; - const entries: ts.MapLike> = {}; - for (const l of list) { - entries[l] = versionMap; - } - return { entries }; -} - -export function createTypesRegistry(...list: string[]) { - return new Map(Object.entries(createTypesRegistryFileContent(list).entries)); -} - export function toExternalFile(fileName: string): ts.server.protocol.ExternalFile { return { fileName }; } @@ -427,7 +173,7 @@ export type TestSessionAndServiceHost = TestServerHostTrackingWrittenFiles & { baselineHost(title: string): void; logTimeoutQueueLength(): void; }; -function patchHostTimeouts( +export function patchHostTimeouts( inputHost: TestServerHostTrackingWrittenFiles, logger: Logger, ) { @@ -486,7 +232,7 @@ function patchHostTimeouts( } } -export interface TestSessionOptions extends ts.server.SessionOptions { +export interface TestSessionOptions extends ts.server.SessionOptions, TestTypingsInstallerOptions { logger: Logger; allowNonBaseliningLogger?: boolean; disableAutomaticTypingAcquisition?: boolean; @@ -545,7 +291,11 @@ export class TestSession extends ts.server.Session { export function createSession(host: TestServerHost, opts: Partial = {}) { const logger = opts.logger || createHasErrorMessageLogger(); if (!opts.disableAutomaticTypingAcquisition && opts.typingsInstaller === undefined) { - opts.typingsInstaller = new TestTypingsInstaller(host.getHostSpecificPath("/a/data/"), /*throttleLimit*/ 5, host, logger); + opts.typingsInstaller = new TestTypingsInstaller( + host, + logger, + opts, + ); } if (opts.eventHandler !== undefined) { diff --git a/src/testRunner/unittests/helpers/typingsInstaller.ts b/src/testRunner/unittests/helpers/typingsInstaller.ts new file mode 100644 index 0000000000000..c533b049f8425 --- /dev/null +++ b/src/testRunner/unittests/helpers/typingsInstaller.ts @@ -0,0 +1,329 @@ +import * as ts from "../../_namespaces/ts"; +import { + ActionWatchTypingLocations, + stringifyIndented, +} from "../../_namespaces/ts.server"; +import { + Logger, + nowString, + patchHostTimeouts, + replaceAll, + sanitizeLog, + TestSessionAndServiceHost, +} from "./tsserver"; +import { + changeToHostTrackingWrittenFiles, + File, + TestServerHost, +} from "./virtualFileSystemWithWatch"; + +export const customTypesMap = { + path: "/typesMap.json" as ts.Path, + content: `{ + "typesMap": { + "jquery": { + "match": "jquery(-(\\\\.?\\\\d+)+)?(\\\\.intellisense)?(\\\\.min)?\\\\.js$", + "types": ["jquery"] + }, + "quack": { + "match": "/duckquack-(\\\\d+)\\\\.min\\\\.js", + "types": ["duck-types"] + } + }, + "simpleMap": { + "Bacon": "baconjs", + "bliss": "blissfuljs", + "commander": "commander", + "cordova": "cordova", + "react": "react", + "lodash": "lodash" + } + }`, +}; + +export interface PostExecAction { + readonly success: boolean; + requestId: number; + readonly packageNames: readonly string[]; + readonly callback: ts.server.typingsInstaller.RequestCompletedAction; +} +export function loggerToTypingsInstallerLog(logger: Logger): ts.server.typingsInstaller.Log | undefined { + return logger?.loggingEnabled() ? { + isEnabled: ts.returnTrue, + writeLine: s => { + // This is a VERY VERY NAIVE sanitization strategy. + // If a substring containing the exact TypeScript version is found, + // even if it's unrelated to TypeScript itself, then it will be replaced, + // leaving us with two options: + // + // 1. Deal with flip-flopping baselines. + // 2. Change the TypeScript version until no matching substring is found. + // + const initialLog = sanitizeLog(s); + const pseudoSanitizedLog = replaceAll(initialLog, `@ts${ts.versionMajorMinor}`, `@tsFakeMajor.Minor`); + return logger.log(`TI:: [${nowString(logger.host!)}] ${pseudoSanitizedLog}`); + }, + } : undefined; +} +interface TypesRegistryFile { + entries: ts.MapLike>; +} +function loadTypesRegistryFile(typesRegistryFilePath: string, host: TestServerHost, log: ts.server.typingsInstaller.Log): Map> { + if (!host.fileExists(typesRegistryFilePath)) { + if (log.isEnabled()) { + log.writeLine(`Types registry file '${typesRegistryFilePath}' does not exist`); + } + return new Map>(); + } + try { + const content = JSON.parse(host.readFile(typesRegistryFilePath)!) as TypesRegistryFile; + return new Map(Object.entries(content.entries)); + } + catch (e) { + if (log.isEnabled()) { + log.writeLine(`Error when loading types registry file '${typesRegistryFilePath}': ${(e as Error).message}, ${(e as Error).stack}`); + } + return new Map>(); + } +} +const typesRegistryPackageName = "types-registry"; +function getTypesRegistryFileLocation(globalTypingsCacheLocation: string): string { + return ts.combinePaths(ts.normalizeSlashes(globalTypingsCacheLocation), `node_modules/${typesRegistryPackageName}/index.json`); +} + +export type InstallActionThrowingError = string; +export type InstallActionWithTypingFiles = [installedTypings: string[] | string, typingFiles: File[]]; +export type CustomInstallAction = ( + installer: TestTypingsInstallerWorker, + requestId: number, + packageNames: string[], + cb: ts.server.typingsInstaller.RequestCompletedAction, +) => void; + +export type InstallAction = InstallActionThrowingError | InstallActionWithTypingFiles | CustomInstallAction; +export class TestTypingsInstallerWorker extends ts.server.typingsInstaller.TypingsInstaller { + readonly typesRegistry: Map>; + protected projectService!: ts.server.ProjectService; + constructor( + readonly globalTypingsCacheLocation: string, + throttleLimit: number, + installTypingHost: TestServerHost, + logger: Logger, + typesRegistry: string | readonly string[] | undefined, + private installAction: InstallAction | undefined, + ) { + const log = loggerToTypingsInstallerLog(logger); + if (log?.isEnabled()) { + patchHostTimeouts( + changeToHostTrackingWrittenFiles(installTypingHost), + logger, + ); + (installTypingHost as TestSessionAndServiceHost).baselineHost("TI:: Creating typing installer"); + } + super( + installTypingHost, + globalTypingsCacheLocation, + "/safeList.json" as ts.Path, + customTypesMap.path, + throttleLimit, + log, + ); + + this.ensurePackageDirectoryExists(globalTypingsCacheLocation); + + if (this.log.isEnabled()) { + this.log.writeLine(`Updating ${typesRegistryPackageName} npm package...`); + this.log.writeLine(`npm install --ignore-scripts ${typesRegistryPackageName}@${this.latestDistTag}`); + } + installTypingHost.ensureFileOrFolder({ + path: getTypesRegistryFileLocation(globalTypingsCacheLocation), + content: JSON.stringify( + createTypesRegistryFileContent( + typesRegistry ? + ts.isString(typesRegistry) ? + [typesRegistry] : + typesRegistry : + ts.emptyArray, + ), + undefined, + " ", + ), + }); + if (this.log.isEnabled()) { + this.log.writeLine(`TI:: Updated ${typesRegistryPackageName} npm package`); + } + this.typesRegistry = loadTypesRegistryFile(getTypesRegistryFileLocation(globalTypingsCacheLocation), installTypingHost, this.log); + if (this.log.isEnabled()) { + (installTypingHost as TestSessionAndServiceHost).baselineHost("TI:: typing installer creation complete"); + } + } + + protected postExecActions: PostExecAction[] = []; + + executePendingCommands() { + const actionsToRun = this.postExecActions; + this.postExecActions = []; + for (const action of actionsToRun) { + if (this.log.isEnabled()) { + this.log.writeLine(`#${action.requestId} with arguments'${JSON.stringify(action.packageNames)}':: ${action.success}`); + } + action.callback(action.success); + } + } + + attach(projectService: ts.server.ProjectService) { + this.projectService = projectService; + } + + getInstallTypingHost() { + return this.installTypingHost; + } + + installWorker(requestId: number, packageNames: string[], _cwd: string, cb: ts.server.typingsInstaller.RequestCompletedAction): void { + if (this.log.isEnabled()) { + this.log.writeLine(`#${requestId} with arguments'${JSON.stringify(packageNames)}'.`); + } + if (!this.installAction) { + this.addPostExecAction("success", requestId, packageNames, cb); + } + else if (ts.isString(this.installAction)) { + assert(false, this.installAction); + } + else if (ts.isArray(this.installAction)) { + this.executeInstallWithTypingFiles( + requestId, + packageNames, + this.installAction[0], + this.installAction[1], + cb, + ); + } + else { + this.installAction(this, requestId, packageNames, cb); + } + } + + executeInstallWithTypingFiles( + requestId: number, + packageNames: string[], + installedTypings: string[] | string, + typingFiles: File[], + cb: ts.server.typingsInstaller.RequestCompletedAction, + ): void { + this.addPostExecAction(installedTypings, requestId, packageNames, success => { + const host = this.getInstallTypingHost() as TestSessionAndServiceHost; + host.baselineHost("TI:: Before installWorker"); + for (const file of typingFiles) { + host.ensureFileOrFolder(file); + } + host.baselineHost("TI:: After installWorker"); + cb(success); + }); + } + + sendResponse(response: ts.server.SetTypings | ts.server.InvalidateCachedTypings | ts.server.WatchTypingLocations) { + if (this.log.isEnabled()) { + this.log.writeLine(`Sending response:${stringifyIndented(response)}`); + } + if (response.kind !== ActionWatchTypingLocations) this.projectService.updateTypingsForProject(response); + else this.projectService.watchTypingLocations(response); + } + + enqueueInstallTypingsRequest(project: ts.server.Project, typeAcquisition: ts.TypeAcquisition, unresolvedImports: ts.SortedReadonlyArray) { + const request = ts.server.createInstallTypingsRequest(project, typeAcquisition, unresolvedImports, this.globalTypingsCacheLocation); + this.install(request); + } + + addPostExecAction(stdout: string | string[], requestId: number, packageNames: string[], cb: ts.server.typingsInstaller.RequestCompletedAction) { + const out = ts.isString(stdout) ? stdout : createNpmPackageJsonString(stdout); + const action: PostExecAction = { + success: !!out, + requestId, + packageNames, + callback: cb, + }; + this.postExecActions.push(action); + } +} + +export interface TestTypingsInstallerOptions { + globalTypingsCacheLocation?: string; + throttleLimit?: number; + installAction?: InstallAction; + typesRegistry?: string | readonly string[]; +} + +export class TestTypingsInstaller implements ts.server.ITypingsInstaller { + protected projectService!: ts.server.ProjectService; + public installer!: TestTypingsInstallerWorker; + readonly globalTypingsCacheLocation: string; + private readonly throttleLimit: number; + private installAction?: InstallAction; + private typesRegistry?: string | readonly string[]; + + constructor( + private installTypingHost: TestServerHost, + private logger: Logger, + options?: TestTypingsInstallerOptions, + ) { + this.globalTypingsCacheLocation = options?.globalTypingsCacheLocation || this.installTypingHost.getHostSpecificPath("/a/data"); + this.throttleLimit = options?.throttleLimit || 5; + this.installAction = options?.installAction; + this.typesRegistry = options?.typesRegistry; + } + + isKnownTypesPackageName = ts.notImplemented; + installPackage = ts.notImplemented; + + attach(projectService: ts.server.ProjectService) { + this.projectService = projectService; + } + + onProjectClosed(p: ts.server.Project) { + this.installer?.closeProject({ projectName: p.getProjectName(), kind: "closeProject" }); + } + + enqueueInstallTypingsRequest(project: ts.server.Project, typeAcquisition: ts.TypeAcquisition, unresolvedImports: ts.SortedReadonlyArray) { + if (!this.installer) { + this.installer = new TestTypingsInstallerWorker( + this.globalTypingsCacheLocation, + this.throttleLimit, + this.installTypingHost, + this.logger, + this.typesRegistry, + this.installAction, + ); + this.installer.attach(this.projectService); + } + this.installer.enqueueInstallTypingsRequest(project, typeAcquisition, unresolvedImports); + } +} +function createNpmPackageJsonString(installedTypings: string[]): string { + const dependencies: ts.MapLike = {}; + for (const typing of installedTypings) { + dependencies[typing] = "1.0.0"; + } + return JSON.stringify({ dependencies }); +} +function createTypesRegistryFileContent(list: readonly string[]): TypesRegistryFile { + const versionMap = { + "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", + }; + const entries: ts.MapLike> = {}; + for (const l of list) { + entries[l] = versionMap; + } + return { entries }; +} + +export function createTypesRegistry(...list: string[]) { + return new Map(Object.entries(createTypesRegistryFileContent(list).entries)); +} diff --git a/src/testRunner/unittests/tsserver/completions.ts b/src/testRunner/unittests/tsserver/completions.ts index 01f6415a0cb8a..9bb415750d4d3 100644 --- a/src/testRunner/unittests/tsserver/completions.ts +++ b/src/testRunner/unittests/tsserver/completions.ts @@ -4,7 +4,6 @@ import { createLoggerWithInMemoryLogs, createSession, openFilesForSession, - TestTypingsInstaller, } from "../helpers/tsserver"; import { createServerHost, @@ -130,8 +129,8 @@ import { `, }; - const globalCacheLocation = `c:/typescript`; - const globalAtTypes = `${globalCacheLocation}/node_modules/@types`; + const globalTypingsCacheLocation = `c:/typescript`; + const globalAtTypes = `${globalTypingsCacheLocation}/node_modules/@types`; const globalReactRouterDomPackage: File = { path: `${globalAtTypes}/react-router-dom/package.json`, content: JSON.stringify({ @@ -180,7 +179,7 @@ export interface BrowserRouterProps { const host = createServerHost(files, { windowsStyleRoot: "c:/" }); const logger = createLoggerWithInMemoryLogs(host); const session = createSession(host, { - typingsInstaller: new TestTypingsInstaller(globalCacheLocation, /*throttleLimit*/ 5, host, logger), + globalTypingsCacheLocation, logger, }); openFilesForSession([appFile], session); diff --git a/src/testRunner/unittests/tsserver/projects.ts b/src/testRunner/unittests/tsserver/projects.ts index fa3203176d90e..e6c9dbfffae5c 100644 --- a/src/testRunner/unittests/tsserver/projects.ts +++ b/src/testRunner/unittests/tsserver/projects.ts @@ -9,7 +9,6 @@ import { createLoggerWithInMemoryLogs, createProjectService, createSession, - customTypesMap, logConfiguredProjectsHasOpenRefStatus, logInferredProjectsOrphanStatus, openExternalProjectForSession, @@ -20,6 +19,9 @@ import { toExternalFiles, verifyGetErrRequest, } from "../helpers/tsserver"; +import { + customTypesMap, +} from "../helpers/typingsInstaller"; import { createServerHost, File, diff --git a/src/testRunner/unittests/tsserver/resolutionCache.ts b/src/testRunner/unittests/tsserver/resolutionCache.ts index 2899df58217ad..36fb766dddd4b 100644 --- a/src/testRunner/unittests/tsserver/resolutionCache.ts +++ b/src/testRunner/unittests/tsserver/resolutionCache.ts @@ -10,15 +10,16 @@ import { createSession, openExternalProjectForSession, openFilesForSession, - TestTypingsInstaller, toExternalFiles, verifyGetErrRequest, } from "../helpers/tsserver"; +import { + TestTypingsInstaller, +} from "../helpers/typingsInstaller"; import { createServerHost, File, libFile, - TestServerHost, } from "../helpers/virtualFileSystemWithWatch"; describe("unittests:: tsserver:: resolutionCache:: tsserverProjectSystem extra resolution pass in server host", () => { @@ -31,10 +32,10 @@ describe("unittests:: tsserver:: resolutionCache:: tsserverProjectSystem extra r path: "/a/cache/node_modules/@types/lib/index.d.ts", content: "export let x = 1", }; - const host: TestServerHost & ts.ModuleResolutionHost = createServerHost([file1, lib]); + const host = createServerHost([file1, lib]); const logger = createLoggerWithInMemoryLogs(host); const projectService = createProjectService(host, { - typingsInstaller: new TestTypingsInstaller("/a/cache", /*throttleLimit*/ 5, host, logger), + typingsInstaller: new TestTypingsInstaller(host, logger, { globalTypingsCacheLocation: "/a/cache" }), logger, }); diff --git a/src/testRunner/unittests/tsserver/typeAquisition.ts b/src/testRunner/unittests/tsserver/typeAquisition.ts index 4c4524e90f730..fc708b2350674 100644 --- a/src/testRunner/unittests/tsserver/typeAquisition.ts +++ b/src/testRunner/unittests/tsserver/typeAquisition.ts @@ -3,9 +3,11 @@ import { baselineTsserverLogs, createLoggerWithInMemoryLogs, createProjectService, - TestTypingsInstaller, toExternalFile, } from "../helpers/tsserver"; +import { + TestTypingsInstaller, +} from "../helpers/typingsInstaller"; import { createServerHost, } from "../helpers/virtualFileSystemWithWatch"; @@ -35,7 +37,7 @@ describe("unittests:: tsserver:: typeAquisition:: autoDiscovery", () => { describe("unittests:: tsserver:: typeAquisition:: prefer typings to js", () => { it("during second resolution pass", () => { - const typingsCacheLocation = "/a/typings"; + const globalTypingsCacheLocation = "/a/typings"; const f1 = { path: "/a/b/app.js", content: "var x = require('bar')", @@ -45,7 +47,7 @@ describe("unittests:: tsserver:: typeAquisition:: prefer typings to js", () => { content: "export let x = 1", }; const barTypings = { - path: `${typingsCacheLocation}/node_modules/@types/bar/index.d.ts`, + path: `${globalTypingsCacheLocation}/node_modules/@types/bar/index.d.ts`, content: "export let y: number", }; const config = { @@ -55,7 +57,7 @@ describe("unittests:: tsserver:: typeAquisition:: prefer typings to js", () => { const host = createServerHost([f1, barjs, barTypings, config]); const logger = createLoggerWithInMemoryLogs(host); const projectService = createProjectService(host, { - typingsInstaller: new TestTypingsInstaller(typingsCacheLocation, /*throttleLimit*/ 5, host, logger), + typingsInstaller: new TestTypingsInstaller(host, logger, { globalTypingsCacheLocation }), logger, }); diff --git a/src/testRunner/unittests/tsserver/typingsInstaller.ts b/src/testRunner/unittests/tsserver/typingsInstaller.ts index 3f2aad137e089..b17c7444cd8e1 100644 --- a/src/testRunner/unittests/tsserver/typingsInstaller.ts +++ b/src/testRunner/unittests/tsserver/typingsInstaller.ts @@ -5,100 +5,30 @@ import { createLoggerWithInMemoryLogs, createProjectService, createSession, - createTypesRegistry, - customTypesMap, - Logger, openFilesForSession, - TestSessionAndServiceHost, + patchHostTimeouts, + replaceAll, TestSessionRequest, - TestTypingsInstaller, - TestTypingsInstallerWorker, toExternalFile, } from "../helpers/tsserver"; import { + createTypesRegistry, + customTypesMap, + loggerToTypingsInstallerLog, + TestTypingsInstaller, +} from "../helpers/typingsInstaller"; +import { + changeToHostTrackingWrittenFiles, createServerHost, File, libFile, - TestServerHost, } from "../helpers/virtualFileSystemWithWatch"; import validatePackageName = ts.JsTyping.validatePackageName; import NameValidationResult = ts.JsTyping.NameValidationResult; - -interface InstallerParams { - globalTypingsCacheLocation?: string; - throttleLimit?: number; - typesRegistry?: string | readonly string[]; -} - -type InstallWorkerThrowingError = string; -type InstallWorkerExecutingCommand = [installedTypings: string[] | string, typingFiles: File[]]; -type CustomInstallWorker = (installer: TestTypingsInstallerWorker, requestId: number, packageNames: string[], cb: ts.server.typingsInstaller.RequestCompletedAction) => void; - -function createTestTypingInstaller( - host: TestServerHost, - logger: Logger, - workerConstructor: new (...args: ConstructorParameters) => T, - p?: InstallerParams, -) { - return new TestTypingsInstaller( - (p && p.globalTypingsCacheLocation) || "/a/data", - (p && p.throttleLimit) || 5, - host, - logger, - workerConstructor, - p && p.typesRegistry, - ); -} -function createTestTypingInstallerWithInstallWorker( - host: TestServerHost, - logger: Logger, - installWorker: InstallWorkerThrowingError | InstallWorkerExecutingCommand | CustomInstallWorker, - p?: InstallerParams, -) { - return createTestTypingInstaller( - host, - logger, - class extends TestTypingsInstallerWorker { - override installWorker(requestId: number, packageNames: string[], _cwd: string, cb: ts.server.typingsInstaller.RequestCompletedAction) { - this.log.writeLine(`#${requestId} with arguments'${JSON.stringify(packageNames)}'.`); - if (ts.isString(installWorker)) { - assert(false, installWorker); - } - else if (ts.isArray(installWorker)) { - executeCommand(this, requestId, packageNames, host, installWorker[0], installWorker[1], cb); - } - else { - installWorker(this, requestId, packageNames, cb); - } - } - }, - p, - ); -} - -function executeCommand(self: TestTypingsInstallerWorker, requestId: number, packageNames: string[], host: TestServerHost, installedTypings: string[] | string, typingFiles: File[], cb: ts.server.typingsInstaller.RequestCompletedAction): void { - self.addPostExecAction(installedTypings, requestId, packageNames, success => { - (host as TestSessionAndServiceHost).baselineHost("TI:: Before installWorker"); - for (const file of typingFiles) { - host.ensureFileOrFolder(file); - } - (host as TestSessionAndServiceHost).baselineHost("TI:: After installWorker"); - cb(success); - }); -} - -function trackingLogger(): { log(message: string): void; finish(): string[]; } { - const logs: string[] = []; - return { - log(message) { - logs.push(message); - }, - finish() { - return logs; - }, - }; -} +import { + stringifyIndented, +} from "../../_namespaces/ts.server"; describe("unittests:: tsserver:: typingsInstaller:: local module", () => { it("should not be picked up", () => { @@ -124,11 +54,14 @@ describe("unittests:: tsserver:: typingsInstaller:: local module", () => { }; const host = createServerHost([f1, f2, config, typesConfig]); const logger = createLoggerWithInMemoryLogs(host); - const typingsInstaller = createTestTypingInstallerWithInstallWorker( + const typingsInstaller = new TestTypingsInstaller( host, logger, - "should not be called", - { typesRegistry: "config", globalTypingsCacheLocation: typesCache }, + { + installAction: "should not be called", + typesRegistry: "config", + globalTypingsCacheLocation: typesCache, + }, ); const service = createProjectService(host, { typingsInstaller, logger }); service.openClientFile(f1.path); @@ -170,11 +103,13 @@ describe("unittests:: tsserver:: typingsInstaller:: General functionality", () = }; const host = createServerHost([file1, tsconfig, packageJson]); const logger = createLoggerWithInMemoryLogs(host); - const typingsInstaller = createTestTypingInstallerWithInstallWorker( + const typingsInstaller = new TestTypingsInstaller( host, logger, - [["@types/jquery"], [jquery]], - { typesRegistry: "jquery" }, + { + installAction: [["@types/jquery"], [jquery]], + typesRegistry: "jquery", + }, ); const projectService = createProjectService(host, { @@ -211,11 +146,13 @@ describe("unittests:: tsserver:: typingsInstaller:: General functionality", () = }; const host = createServerHost([file1, packageJson]); const logger = createLoggerWithInMemoryLogs(host); - const typingsInstaller = createTestTypingInstallerWithInstallWorker( + const typingsInstaller = new TestTypingsInstaller( host, logger, - [["@types/jquery"], [jquery]], - { typesRegistry: "jquery" }, + { + installAction: [["@types/jquery"], [jquery]], + typesRegistry: "jquery", + }, ); const projectService = createProjectService(host, { useSingleInferredProject: true, typingsInstaller, logger }); @@ -237,11 +174,13 @@ describe("unittests:: tsserver:: typingsInstaller:: General functionality", () = const host = createServerHost([jqueryJs]); const logger = createLoggerWithInMemoryLogs(host); - const typingsInstaller = createTestTypingInstallerWithInstallWorker( + const typingsInstaller = new TestTypingsInstaller( host, logger, - [[], []], - { typesRegistry: "jquery" }, + { + installAction: [[], []], + typesRegistry: "jquery", + }, ); const projectService = createProjectService(host, { typingsInstaller, logger }); @@ -266,14 +205,9 @@ describe("unittests:: tsserver:: typingsInstaller:: General functionality", () = }; const host = createServerHost([file1]); const logger = createLoggerWithInMemoryLogs(host); - const typingsInstaller = createTestTypingInstaller( + const typingsInstaller = new TestTypingsInstaller( host, logger, - class extends TestTypingsInstallerWorker { - override enqueueInstallTypingsRequest() { - assert(false, "auto discovery should not be enabled"); - } - }, ); const projectFileName = "/a/app/test.csproj"; @@ -299,11 +233,13 @@ describe("unittests:: tsserver:: typingsInstaller:: General functionality", () = }; const host = createServerHost([appJs, nodeDts]); const logger = createLoggerWithInMemoryLogs(host); - const typingsInstaller = createTestTypingInstallerWithInstallWorker( + const typingsInstaller = new TestTypingsInstaller( host, logger, - "nothing should get installed", - { typesRegistry: "node" }, + { + installAction: "nothing should get installed", + typesRegistry: "node", + }, ); const projectFileName = "/a/app/test.csproj"; @@ -324,14 +260,9 @@ describe("unittests:: tsserver:: typingsInstaller:: General functionality", () = }; const host = createServerHost([file1]); const logger = createLoggerWithInMemoryLogs(host); - const typingsInstaller = createTestTypingInstaller( + const typingsInstaller = new TestTypingsInstaller( host, logger, - class extends TestTypingsInstallerWorker { - override enqueueInstallTypingsRequest() { - assert(false, "auto discovery should not be enabled"); - } - }, { typesRegistry: "jquery" }, ); @@ -359,11 +290,13 @@ describe("unittests:: tsserver:: typingsInstaller:: General functionality", () = }; const host = createServerHost([file1]); const logger = createLoggerWithInMemoryLogs(host); - const typingsInstaller = createTestTypingInstallerWithInstallWorker( + const typingsInstaller = new TestTypingsInstaller( host, logger, - [["@types/node"], [jquery]], - { typesRegistry: "jquery" }, + { + installAction: [["@types/node"], [jquery]], + typesRegistry: "jquery", + }, ); const projectFileName = "/a/app/test.csproj"; const projectService = createProjectService(host, { typingsInstaller, logger }); @@ -409,11 +342,13 @@ describe("unittests:: tsserver:: typingsInstaller:: General functionality", () = const host = createServerHost([lodashJs, file2Jsx, file3dts, customTypesMap]); const logger = createLoggerWithInMemoryLogs(host); - const typingsInstaller = createTestTypingInstallerWithInstallWorker( + const typingsInstaller = new TestTypingsInstaller( host, logger, - [["@types/lodash", "@types/react"], [lodashDts, reactDts]], - { typesRegistry: ["lodash", "react"] }, + { + installAction: [["@types/lodash", "@types/react"], [lodashDts, reactDts]], + typesRegistry: ["lodash", "react"], + }, ); const projectFileName = "/a/app/test.csproj"; @@ -441,11 +376,13 @@ describe("unittests:: tsserver:: typingsInstaller:: General functionality", () = const host = createServerHost([jqueryJs]); const logger = createLoggerWithInMemoryLogs(host); - const typingsInstaller = createTestTypingInstallerWithInstallWorker( + const typingsInstaller = new TestTypingsInstaller( host, logger, - [[], []], - { typesRegistry: "jquery" }, + { + installAction: [[], []], + typesRegistry: "jquery", + }, ); const projectFileName = "/a/app/test.csproj"; @@ -470,11 +407,13 @@ describe("unittests:: tsserver:: typingsInstaller:: General functionality", () = const host = createServerHost([jqueryJs]); const logger = createLoggerWithInMemoryLogs(host); - const typingsInstaller = createTestTypingInstallerWithInstallWorker( + const typingsInstaller = new TestTypingsInstaller( host, logger, - [[], []], - { typesRegistry: "jquery" }, + { + installAction: [[], []], + typesRegistry: "jquery", + }, ); const projectFileName = "/a/app/test.csproj"; @@ -505,11 +444,13 @@ describe("unittests:: tsserver:: typingsInstaller:: General functionality", () = const host = createServerHost([jqueryJs, file2Ts]); const logger = createLoggerWithInMemoryLogs(host); - const typingsInstaller = createTestTypingInstallerWithInstallWorker( + const typingsInstaller = new TestTypingsInstaller( host, logger, - [[], []], - { typesRegistry: "jquery" }, + { + installAction: [[], []], + typesRegistry: "jquery", + }, ); const projectFileName = "/a/app/test.csproj"; @@ -570,11 +511,16 @@ describe("unittests:: tsserver:: typingsInstaller:: General functionality", () = const host = createServerHost([lodashJs, commanderJs, file3dts, packageJson, customTypesMap]); const logger = createLoggerWithInMemoryLogs(host); - const typingsInstaller = createTestTypingInstallerWithInstallWorker( + const typingsInstaller = new TestTypingsInstaller( host, logger, - [["@types/commander", "@types/express", "@types/jquery", "@types/moment"], [commander, express, jquery, moment]], - { typesRegistry: ["jquery", "commander", "moment", "express"] }, + { + installAction: [ + ["@types/commander", "@types/express", "@types/jquery", "@types/moment"], + [commander, express, jquery, moment], + ], + typesRegistry: ["jquery", "commander", "moment", "express"], + }, ); const projectFileName = "/a/app/test.csproj"; @@ -644,11 +590,17 @@ describe("unittests:: tsserver:: typingsInstaller:: General functionality", () = const typingFiles = [commander, express, jquery, moment, lodash]; const host = createServerHost([lodashJs, commanderJs, file3, packageJson, customTypesMap]); const logger = createLoggerWithInMemoryLogs(host); - const typingsInstaller = createTestTypingInstallerWithInstallWorker( + const typingsInstaller = new TestTypingsInstaller( host, logger, - [["@types/commander", "@types/express", "@types/jquery", "@types/moment", "@types/lodash"], typingFiles], - { throttleLimit: 3, typesRegistry: ["commander", "express", "jquery", "moment", "lodash"] }, + { + installAction: [ + ["@types/commander", "@types/express", "@types/jquery", "@types/moment", "@types/lodash"], + typingFiles, + ], + throttleLimit: 3, + typesRegistry: ["commander", "express", "jquery", "moment", "lodash"], + }, ); const projectFileName = "/a/app/test.csproj"; @@ -712,20 +664,29 @@ describe("unittests:: tsserver:: typingsInstaller:: General functionality", () = const host = createServerHost([lodashJs, commanderJs, file3, customTypesMap]); const logger = createLoggerWithInMemoryLogs(host); - const typingsInstaller = createTestTypingInstallerWithInstallWorker( + const typingsInstaller = new TestTypingsInstaller( host, logger, - (installer, requestId, packageNames, cb) => { - let typingFiles: (File & { typings: string; })[] = []; - if (packageNames.includes(ts.server.typingsInstaller.typingsName("commander"))) { - typingFiles = [commander, jquery, lodash, cordova]; - } - else { - typingFiles = [grunt, gulp]; - } - executeCommand(installer, requestId, packageNames, host, typingFiles.map(f => f.typings), typingFiles, cb); + { + installAction: (installer, requestId, packageNames, cb) => { + let typingFiles: (File & { typings: string; })[] = []; + if (packageNames.includes(ts.server.typingsInstaller.typingsName("commander"))) { + typingFiles = [commander, jquery, lodash, cordova]; + } + else { + typingFiles = [grunt, gulp]; + } + installer.executeInstallWithTypingFiles( + requestId, + packageNames, + typingFiles.map(f => f.typings), + typingFiles, + cb, + ); + }, + throttleLimit: 1, + typesRegistry: ["commander", "jquery", "lodash", "cordova", "gulp", "grunt"], }, - { throttleLimit: 1, typesRegistry: ["commander", "jquery", "lodash", "cordova", "gulp", "grunt"] }, ); // Create project #1 with 4 typings @@ -802,11 +763,14 @@ describe("unittests:: tsserver:: typingsInstaller:: General functionality", () = }; const host = createServerHost([app, jsconfig, pkgJson, commander, commanderPackage, cacache, cacachePackage]); const logger = createLoggerWithInMemoryLogs(host); - const typingsInstaller = createTestTypingInstallerWithInstallWorker( + const typingsInstaller = new TestTypingsInstaller( host, logger, - [["@types/zkat__cacache"], [cacacheDTS]], - { globalTypingsCacheLocation: "/tmp", typesRegistry: ["zkat__cacache", "nested", "commander"] }, + { + installAction: [["@types/zkat__cacache"], [cacacheDTS]], + globalTypingsCacheLocation: "/tmp", + typesRegistry: ["zkat__cacache", "nested", "commander"], + }, ); const projectService = createProjectService(host, { useSingleInferredProject: true, typingsInstaller, logger }); @@ -872,11 +836,14 @@ describe("unittests:: tsserver:: typingsInstaller:: General functionality", () = }; const host = createServerHost([app, jsconfig, pkgJson, commander, commanderPackage, jquery, jqueryPackage, nestedPackage]); const logger = createLoggerWithInMemoryLogs(host); - const typingsInstaller = createTestTypingInstallerWithInstallWorker( + const typingsInstaller = new TestTypingsInstaller( host, logger, - [["@types/jquery"], [jqueryDTS]], - { globalTypingsCacheLocation: "/tmp", typesRegistry: ["jquery", "nested", "commander"] }, + { + installAction: [["@types/jquery"], [jqueryDTS]], + globalTypingsCacheLocation: "/tmp", + typesRegistry: ["jquery", "nested", "commander"], + }, ); const projectService = createProjectService(host, { useSingleInferredProject: true, typingsInstaller, logger }); @@ -929,11 +896,14 @@ describe("unittests:: tsserver:: typingsInstaller:: General functionality", () = }; const host = createServerHost([app, jsconfig, jquery, jqueryPackage]); const logger = createLoggerWithInMemoryLogs(host); - const typingsInstaller = createTestTypingInstallerWithInstallWorker( + const typingsInstaller = new TestTypingsInstaller( host, logger, - [["@types/jquery"], [jqueryDTS]], - { globalTypingsCacheLocation: "/tmp", typesRegistry: "jquery" }, + { + installAction: [["@types/jquery"], [jqueryDTS]], + globalTypingsCacheLocation: "/tmp", + typesRegistry: "jquery", + }, ); const projectService = createProjectService(host, { @@ -972,11 +942,14 @@ describe("unittests:: tsserver:: typingsInstaller:: General functionality", () = }; const host = createServerHost([app, jsconfig, bowerJson]); const logger = createLoggerWithInMemoryLogs(host); - const typingsInstaller = createTestTypingInstallerWithInstallWorker( + const typingsInstaller = new TestTypingsInstaller( host, logger, - [["@types/jquery"], [jqueryDTS]], - { globalTypingsCacheLocation: "/tmp", typesRegistry: "jquery" }, + { + installAction: [["@types/jquery"], [jqueryDTS]], + globalTypingsCacheLocation: "/tmp", + typesRegistry: "jquery", + }, ); const projectService = createProjectService(host, { useSingleInferredProject: true, typingsInstaller, logger }); @@ -1008,11 +981,14 @@ describe("unittests:: tsserver:: typingsInstaller:: General functionality", () = }; const host = createServerHost([f, brokenPackageJson]); const logger = createLoggerWithInMemoryLogs(host); - const typingsInstaller = createTestTypingInstallerWithInstallWorker( + const typingsInstaller = new TestTypingsInstaller( host, logger, - [["@types/commander"], [commander]], - { globalTypingsCacheLocation: cachePath, typesRegistry: "commander" }, + { + installAction: [["@types/commander"], [commander]], + globalTypingsCacheLocation: cachePath, + typesRegistry: "commander", + }, ); const service = createProjectService(host, { typingsInstaller, logger }); service.openClientFile(f.path); @@ -1049,11 +1025,17 @@ describe("unittests:: tsserver:: typingsInstaller:: General functionality", () = }; const host = createServerHost([file]); const logger = createLoggerWithInMemoryLogs(host); - const typingsInstaller = createTestTypingInstallerWithInstallWorker( + const typingsInstaller = new TestTypingsInstaller( host, logger, - [["@types/node", "@types/commander", `@types/${emberComponentDirectory}`], [node, commander, emberComponent]], - { globalTypingsCacheLocation: cachePath, typesRegistry: ["node", "commander"] }, + { + installAction: [ + ["@types/node", "@types/commander", `@types/${emberComponentDirectory}`], + [node, commander, emberComponent], + ], + globalTypingsCacheLocation: cachePath, + typesRegistry: ["node", "commander"], + }, ); const service = createProjectService(host, { typingsInstaller, logger }); service.openClientFile(file.path); @@ -1080,11 +1062,17 @@ describe("unittests:: tsserver:: typingsInstaller:: General functionality", () = const typePath = (name: string): string => `${cachePath}/node_modules/@types/${name}/index.d.ts`; const host = createServerHost([file, commanderJS]); const logger = createLoggerWithInMemoryLogs(host); - const typingsInstaller = createTestTypingInstallerWithInstallWorker( + const typingsInstaller = new TestTypingsInstaller( host, logger, - [typeNames.map(name => `@types/${name}`), typeNames.map((name): File => ({ path: typePath(name), content: "" }))], - { globalTypingsCacheLocation: cachePath, typesRegistry: typeNames }, + { + installAction: [ + typeNames.map(name => `@types/${name}`), + typeNames.map((name): File => ({ path: typePath(name), content: "" })), + ], + globalTypingsCacheLocation: cachePath, + typesRegistry: typeNames, + }, ); const service = createProjectService(host, { typingsInstaller, @@ -1113,11 +1101,14 @@ describe("unittests:: tsserver:: typingsInstaller:: General functionality", () = const host = createServerHost([f1]); const logger = createLoggerWithInMemoryLogs(host); - const typingsInstaller = createTestTypingInstallerWithInstallWorker( + const typingsInstaller = new TestTypingsInstaller( host, logger, - [["foo"], []], - { globalTypingsCacheLocation: "/tmp", typesRegistry: "foo" }, + { + installAction: [["foo"], []], + globalTypingsCacheLocation: "/tmp", + typesRegistry: "foo", + }, ); const projectService = createProjectService(host, { typingsInstaller, logger }); projectService.openClientFile(f1.path); @@ -1238,20 +1229,28 @@ describe("unittests:: tsserver:: typingsInstaller:: General functionality", () = }; const host = createServerHost([file1, tsconfig, packageJson, file2, tsconfig2, packageJson2, libFile]); const logger = createLoggerWithInMemoryLogs(host); - const typingsInstaller = createTestTypingInstallerWithInstallWorker( + const typingsInstaller = new TestTypingsInstaller( host, logger, - (installer, requestId, packageNames, cb) => { - let typingFiles: (File & { typings: string; })[] = []; - if (packageNames.includes(ts.server.typingsInstaller.typingsName("commander"))) { - typingFiles = [commander]; - } - else { - typingFiles = [jquery]; - } - executeCommand(installer, requestId, packageNames, host, typingFiles.map(f => f.typings), typingFiles, cb); + { + installAction: (installer, requestId, packageNames, cb) => { + let typingFiles: (File & { typings: string; })[] = []; + if (packageNames.includes(ts.server.typingsInstaller.typingsName("commander"))) { + typingFiles = [commander]; + } + else { + typingFiles = [jquery]; + } + installer.executeInstallWithTypingFiles( + requestId, + packageNames, + typingFiles.map(f => f.typings), + typingFiles, + cb, + ); + }, + typesRegistry: ["jquery", "commander"], }, - { typesRegistry: ["jquery", "commander"] }, ); const session = createSession(host, { @@ -1310,11 +1309,13 @@ describe("unittests:: tsserver:: typingsInstaller:: General functionality", () = }; const host = createServerHost([file1, packageJson, jquery, cacheConfig, cacheLockConfig]); const logger = createLoggerWithInMemoryLogs(host); - const typingsInstaller = createTestTypingInstallerWithInstallWorker( + const typingsInstaller = new TestTypingsInstaller( host, logger, - [["@types/jquery"], [jquery]], - { typesRegistry: "jquery" }, + { + installAction: [["@types/jquery"], [jquery]], + typesRegistry: "jquery", + }, ); const projectService = createProjectService(host, { useSingleInferredProject: true, typingsInstaller, logger }); @@ -1366,11 +1367,13 @@ describe("unittests:: tsserver:: typingsInstaller:: General functionality", () = }; const host = createServerHost([file1, packageJson, cacheConfig, cacheLockConfig, jquery]); const logger = createLoggerWithInMemoryLogs(host); - const typingsInstaller = createTestTypingInstallerWithInstallWorker( + const typingsInstaller = new TestTypingsInstaller( host, logger, - [[], []], - { typesRegistry: "jquery" }, + { + installAction: [[], []], + typesRegistry: "jquery", + }, ); const projectService = createProjectService(host, { useSingleInferredProject: true, typingsInstaller, logger }); @@ -1444,11 +1447,13 @@ describe("unittests:: tsserver:: typingsInstaller:: Invalid package names", () = }; const host = createServerHost([f1, packageJson]); const logger = createLoggerWithInMemoryLogs(host); - const typingsInstaller = createTestTypingInstallerWithInstallWorker( + const typingsInstaller = new TestTypingsInstaller( host, logger, - "installWorker should not be invoked", - { globalTypingsCacheLocation: "/tmp" }, + { + installAction: "installWorker should not be invoked", + globalTypingsCacheLocation: "/tmp", + }, ); const projectService = createProjectService(host, { typingsInstaller, logger }); projectService.openClientFile(f1.path); @@ -1458,7 +1463,6 @@ describe("unittests:: tsserver:: typingsInstaller:: Invalid package names", () = describe("unittests:: tsserver:: typingsInstaller:: discover typings", () => { const emptySafeList = ts.emptyMap; - it("should use mappings from safe list", () => { const app = { path: "/a/b/app.js", @@ -1475,16 +1479,18 @@ describe("unittests:: tsserver:: typingsInstaller:: discover typings", () => { const safeList = new Map(Object.entries({ jquery: "jquery", chroma: "chroma-js" })); - const host = createServerHost([app, jquery, chroma]); - const logger = trackingLogger(); - const result = ts.JsTyping.discoverTypings(host, logger.log, [app.path, jquery.path, chroma.path], ts.getDirectoryPath(app.path as ts.Path), safeList, ts.emptyMap, { enable: true }, ts.emptyArray, ts.emptyMap, ts.emptyOptions); - const finish = logger.finish(); - assert.deepEqual(finish, [ - 'Inferred typings from file names: ["jquery","chroma-js"]', - "Inferred typings from unresolved imports: []", - 'Result: {"cachedTypingPaths":[],"newTypingNames":["jquery","chroma-js"],"filesToWatch":["/a/b/bower_components","/a/b/node_modules"]}', - ], finish.join("\r\n")); - assert.deepEqual(result.newTypingNames, ["jquery", "chroma-js"]); + const { discoverTypings, baseline } = setup([app, jquery, chroma]); + discoverTypings( + [app.path, jquery.path, chroma.path], + ts.getDirectoryPath(app.path as ts.Path), + safeList, + ts.emptyMap, + { enable: true }, + ts.emptyArray, + ts.emptyMap, + ts.emptyOptions, + ); + baseline("should use mappings from safe list"); }); it("should return node for core modules", () => { @@ -1492,18 +1498,22 @@ describe("unittests:: tsserver:: typingsInstaller:: discover typings", () => { path: "/a/b/app.js", content: "", }; - const host = createServerHost([f]); + const { discoverTypings, baseline } = setup([f]); const cache = new Map(); for (const name of ts.JsTyping.nodeCoreModuleList) { - const logger = trackingLogger(); - const result = ts.JsTyping.discoverTypings(host, logger.log, [f.path], ts.getDirectoryPath(f.path as ts.Path), emptySafeList, cache, { enable: true }, [name, "somename"], ts.emptyMap, ts.emptyOptions); - assert.deepEqual(logger.finish(), [ - 'Inferred typings from unresolved imports: ["node","somename"]', - 'Result: {"cachedTypingPaths":[],"newTypingNames":["node","somename"],"filesToWatch":["/a/b/bower_components","/a/b/node_modules"]}', - ]); - assert.deepEqual(result.newTypingNames.sort(), ["node", "somename"]); + discoverTypings( + [f.path], + ts.getDirectoryPath(f.path as ts.Path), + emptySafeList, + cache, + { enable: true }, + [name, "somename"], + ts.emptyMap, + ts.emptyOptions, + ); } + baseline("should return node for core modules"); }); it("should use cached locations", () => { @@ -1515,17 +1525,11 @@ describe("unittests:: tsserver:: typingsInstaller:: discover typings", () => { path: "/a/b/node.d.ts", content: "", }; - const host = createServerHost([f, node]); + const { discoverTypings, baseline } = setup([f, node]); const cache = new Map(Object.entries({ node: { typingLocation: node.path, version: new ts.Version("1.3.0") } })); const registry = createTypesRegistry("node"); - const logger = trackingLogger(); - const result = ts.JsTyping.discoverTypings(host, logger.log, [f.path], ts.getDirectoryPath(f.path as ts.Path), emptySafeList, cache, { enable: true }, ["fs", "bar"], registry, ts.emptyOptions); - assert.deepEqual(logger.finish(), [ - 'Inferred typings from unresolved imports: ["node","bar"]', - 'Result: {"cachedTypingPaths":["/a/b/node.d.ts"],"newTypingNames":["bar"],"filesToWatch":["/a/b/bower_components","/a/b/node_modules"]}', - ]); - assert.deepEqual(result.cachedTypingPaths, [node.path]); - assert.deepEqual(result.newTypingNames, ["bar"]); + discoverTypings([f.path], ts.getDirectoryPath(f.path as ts.Path), emptySafeList, cache, { enable: true }, ["fs", "bar"], registry, ts.emptyOptions); + baseline("should use cached locations"); }); it("should gracefully handle packages that have been removed from the types-registry", () => { @@ -1537,16 +1541,19 @@ describe("unittests:: tsserver:: typingsInstaller:: discover typings", () => { path: "/a/b/node.d.ts", content: "", }; - const host = createServerHost([f, node]); + const { discoverTypings, baseline } = setup([f, node]); const cache = new Map(Object.entries({ node: { typingLocation: node.path, version: new ts.Version("1.3.0") } })); - const logger = trackingLogger(); - const result = ts.JsTyping.discoverTypings(host, logger.log, [f.path], ts.getDirectoryPath(f.path as ts.Path), emptySafeList, cache, { enable: true }, ["fs", "bar"], ts.emptyMap, ts.emptyOptions); - assert.deepEqual(logger.finish(), [ - 'Inferred typings from unresolved imports: ["node","bar"]', - 'Result: {"cachedTypingPaths":[],"newTypingNames":["node","bar"],"filesToWatch":["/a/b/bower_components","/a/b/node_modules"]}', - ]); - assert.deepEqual(result.cachedTypingPaths, []); - assert.deepEqual(result.newTypingNames, ["node", "bar"]); + discoverTypings( + [f.path], + ts.getDirectoryPath(f.path as ts.Path), + emptySafeList, + cache, + { enable: true }, + ["fs", "bar"], + ts.emptyMap, + ts.emptyOptions, + ); + baseline("should gracefully handle packages that have been removed from the types-registry"); }); it("should search only 2 levels deep", () => { @@ -1562,21 +1569,19 @@ describe("unittests:: tsserver:: typingsInstaller:: discover typings", () => { path: "/node_modules/a/b/package.json", content: JSON.stringify({ name: "b" }), }; - const host = createServerHost([app, a, b]); + const { discoverTypings, baseline } = setup([app, a, b]); const cache = new Map(); - const logger = trackingLogger(); - const result = ts.JsTyping.discoverTypings(host, logger.log, [app.path], ts.getDirectoryPath(app.path as ts.Path), emptySafeList, cache, { enable: true }, /*unresolvedImports*/ [], ts.emptyMap, ts.emptyOptions); - assert.deepEqual(logger.finish(), [ - 'Searching for typing names in /node_modules; all files: ["/node_modules/a/package.json"]', - ' Found package names: ["a"]', - "Inferred typings from unresolved imports: []", - 'Result: {"cachedTypingPaths":[],"newTypingNames":["a"],"filesToWatch":["/bower_components","/node_modules"]}', - ]); - assert.deepEqual(result, { - cachedTypingPaths: [], - newTypingNames: ["a"], // But not "b" - filesToWatch: ["/bower_components", "/node_modules"], - }); + discoverTypings( + [app.path], + ts.getDirectoryPath(app.path as ts.Path), + emptySafeList, + cache, + { enable: true }, + /*unresolvedImports*/ [], + ts.emptyMap, + ts.emptyOptions, + ); + baseline("should search only 2 levels deep"); }); it("should support scoped packages", () => { @@ -1588,21 +1593,19 @@ describe("unittests:: tsserver:: typingsInstaller:: discover typings", () => { path: "/node_modules/@a/b/package.json", content: JSON.stringify({ name: "@a/b" }), }; - const host = createServerHost([app, a]); + const { discoverTypings, baseline } = setup([app, a]); const cache = new Map(); - const logger = trackingLogger(); - const result = ts.JsTyping.discoverTypings(host, logger.log, [app.path], ts.getDirectoryPath(app.path as ts.Path), emptySafeList, cache, { enable: true }, /*unresolvedImports*/ [], ts.emptyMap, ts.emptyOptions); - assert.deepEqual(logger.finish(), [ - 'Searching for typing names in /node_modules; all files: ["/node_modules/@a/b/package.json"]', - ' Found package names: ["@a/b"]', - "Inferred typings from unresolved imports: []", - 'Result: {"cachedTypingPaths":[],"newTypingNames":["@a/b"],"filesToWatch":["/bower_components","/node_modules"]}', - ]); - assert.deepEqual(result, { - cachedTypingPaths: [], - newTypingNames: ["@a/b"], - filesToWatch: ["/bower_components", "/node_modules"], - }); + discoverTypings( + [app.path], + ts.getDirectoryPath(app.path as ts.Path), + emptySafeList, + cache, + { enable: true }, + /*unresolvedImports*/ [], + ts.emptyMap, + ts.emptyOptions, + ); + baseline("should support scoped packages"); }); it("should install expired typings", () => { const app = { @@ -1618,20 +1621,23 @@ describe("unittests:: tsserver:: typingsInstaller:: discover typings", () => { path: cachePath + "node_modules/@types/node/index.d.ts", content: "export let y: number", }; - const host = createServerHost([app]); + const { discoverTypings, baseline } = setup([app]); const cache = new Map(Object.entries({ node: { typingLocation: node.path, version: new ts.Version("1.3.0") }, commander: { typingLocation: commander.path, version: new ts.Version("1.0.0") }, })); const registry = createTypesRegistry("node", "commander"); - const logger = trackingLogger(); - const result = ts.JsTyping.discoverTypings(host, logger.log, [app.path], ts.getDirectoryPath(app.path as ts.Path), emptySafeList, cache, { enable: true }, ["http", "commander"], registry, ts.emptyOptions); - assert.deepEqual(logger.finish(), [ - 'Inferred typings from unresolved imports: ["node","commander"]', - 'Result: {"cachedTypingPaths":["/a/cache/node_modules/@types/node/index.d.ts"],"newTypingNames":["commander"],"filesToWatch":["/a/bower_components","/a/node_modules"]}', - ]); - assert.deepEqual(result.cachedTypingPaths, [node.path]); - assert.deepEqual(result.newTypingNames, ["commander"]); + discoverTypings( + [app.path], + ts.getDirectoryPath(app.path as ts.Path), + emptySafeList, + cache, + { enable: true }, + ["http", "commander"], + registry, + ts.emptyOptions, + ); + baseline("should install expired typings"); }); it("should install expired typings with prerelease version of tsserver", () => { @@ -1644,20 +1650,23 @@ describe("unittests:: tsserver:: typingsInstaller:: discover typings", () => { path: cachePath + "node_modules/@types/node/index.d.ts", content: "export let y: number", }; - const host = createServerHost([app]); + const { discoverTypings, baseline } = setup([app]); const cache = new Map(Object.entries({ node: { typingLocation: node.path, version: new ts.Version("1.0.0") }, })); const registry = createTypesRegistry("node"); registry.delete(`ts${ts.versionMajorMinor}`); - const logger = trackingLogger(); - const result = ts.JsTyping.discoverTypings(host, logger.log, [app.path], ts.getDirectoryPath(app.path as ts.Path), emptySafeList, cache, { enable: true }, ["http"], registry, ts.emptyOptions); - assert.deepEqual(logger.finish(), [ - 'Inferred typings from unresolved imports: ["node"]', - 'Result: {"cachedTypingPaths":[],"newTypingNames":["node"],"filesToWatch":["/a/bower_components","/a/node_modules"]}', - ]); - assert.deepEqual(result.cachedTypingPaths, []); - assert.deepEqual(result.newTypingNames, ["node"]); + discoverTypings( + [app.path], + ts.getDirectoryPath(app.path as ts.Path), + emptySafeList, + cache, + { enable: true }, + ["http"], + registry, + ts.emptyOptions, + ); + baseline("should install expired typings with prerelease version of tsserver"); }); it("prerelease typings are properly handled", () => { @@ -1674,22 +1683,88 @@ describe("unittests:: tsserver:: typingsInstaller:: discover typings", () => { path: cachePath + "node_modules/@types/node/index.d.ts", content: "export let y: number", }; - const host = createServerHost([app]); + const { discoverTypings, baseline } = setup([app]); const cache = new Map(Object.entries({ node: { typingLocation: node.path, version: new ts.Version("1.3.0-next.0") }, commander: { typingLocation: commander.path, version: new ts.Version("1.3.0-next.0") }, })); const registry = createTypesRegistry("node", "commander"); registry.get("node")![`ts${ts.versionMajorMinor}`] = "1.3.0-next.1"; - const logger = trackingLogger(); - const result = ts.JsTyping.discoverTypings(host, logger.log, [app.path], ts.getDirectoryPath(app.path as ts.Path), emptySafeList, cache, { enable: true }, ["http", "commander"], registry, ts.emptyOptions); - assert.deepEqual(logger.finish(), [ - 'Inferred typings from unresolved imports: ["node","commander"]', - 'Result: {"cachedTypingPaths":[],"newTypingNames":["node","commander"],"filesToWatch":["/a/bower_components","/a/node_modules"]}', - ]); - assert.deepEqual(result.cachedTypingPaths, []); - assert.deepEqual(result.newTypingNames, ["node", "commander"]); + discoverTypings( + [app.path], + ts.getDirectoryPath(app.path as ts.Path), + emptySafeList, + cache, + { enable: true }, + ["http", "commander"], + registry, + ts.emptyOptions, + ); + baseline("prerelease typings are properly handled"); }); + + function setup(files: readonly File[]) { + const host = createServerHost(files); + const logger = createLoggerWithInMemoryLogs(host); + const log = loggerToTypingsInstallerLog(logger)!; + const testhost = patchHostTimeouts( + changeToHostTrackingWrittenFiles(host), + logger, + ); + testhost.baselineHost(""); + return { discoverTypings, baseline }; + + function baseline(scenario: string) { + baselineTsserverLogs("typingsInstaller", `discover typings ${scenario}`, { logger }); + } + + function discoverTypings( + fileNames: string[], + projectRootPath: ts.Path, + safeList: ts.JsTyping.SafeList, + packageNameToTypingLocation: ReadonlyMap, + typeAcquisition: ts.TypeAcquisition, + unresolvedImports: readonly string[], + typesRegistry: ReadonlyMap>, + compilerOptions: ts.CompilerOptions, + ) { + logger.log(`ts.JsTyping.discoverTypings::${ + replaceAll( + stringifyIndented({ + fileNames, + projectRootPath, + safeList: toMapLike(safeList), + packageNameToTypingLocation: toMapLike(packageNameToTypingLocation), + typeAcquisition, + unresolvedImports, + typesRegistry: toMapLike(typesRegistry), + compilerOptions, + }), + `"ts${ts.versionMajorMinor}"`, + `"tsFakeMajor.Minor"`, + ) + }`); + ts.JsTyping.discoverTypings( + host, + log.writeLine, + fileNames, + projectRootPath, + safeList, + packageNameToTypingLocation, + typeAcquisition, + unresolvedImports, + typesRegistry, + compilerOptions, + ); + logger.log(""); + } + + function toMapLike(map: ReadonlyMap) { + const result: ts.MapLike = {}; + map.forEach((value, key) => result[key] = value); + return result; + } + } }); describe("unittests:: tsserver:: typingsInstaller:: telemetry events", () => { @@ -1709,11 +1784,14 @@ describe("unittests:: tsserver:: typingsInstaller:: telemetry events", () => { }; const host = createServerHost([f1, packageFile]); const logger = createLoggerWithInMemoryLogs(host); - const typingsInstaller = createTestTypingInstallerWithInstallWorker( + const typingsInstaller = new TestTypingsInstaller( host, logger, - [["@types/commander"], [commander]], - { globalTypingsCacheLocation: cachePath, typesRegistry: "commander" }, + { + installAction: [["@types/commander"], [commander]], + globalTypingsCacheLocation: cachePath, + typesRegistry: "commander", + }, ); const projectService = createProjectService(host, { typingsInstaller, logger }); projectService.openClientFile(f1.path); @@ -1751,11 +1829,14 @@ describe("unittests:: tsserver:: typingsInstaller:: progress notifications", () }; const host = createServerHost([f1, packageFile, packageLockFile]); const logger = createLoggerWithInMemoryLogs(host); - const typingsInstaller = createTestTypingInstallerWithInstallWorker( + const typingsInstaller = new TestTypingsInstaller( host, logger, - [["@types/commander"], [commander]], - { globalTypingsCacheLocation: cachePath, typesRegistry: "commander" }, + { + installAction: [["@types/commander"], [commander]], + globalTypingsCacheLocation: cachePath, + typesRegistry: "commander", + }, ); const projectService = createProjectService(host, { typingsInstaller, logger }); projectService.openClientFile(f1.path); @@ -1777,11 +1858,14 @@ describe("unittests:: tsserver:: typingsInstaller:: progress notifications", () const cachePath = "/a/cache/"; const host = createServerHost([f1, packageFile]); const logger = createLoggerWithInMemoryLogs(host); - const typingsInstaller = createTestTypingInstallerWithInstallWorker( + const typingsInstaller = new TestTypingsInstaller( host, logger, - ["", []], - { globalTypingsCacheLocation: cachePath, typesRegistry: "commander" }, + { + installAction: ["", []], + globalTypingsCacheLocation: cachePath, + typesRegistry: "commander", + }, ); const projectService = createProjectService(host, { typingsInstaller, logger }); projectService.openClientFile(f1.path); @@ -2331,11 +2415,14 @@ describe("unittests:: tsserver:: typingsInstaller:: recomputing resolutions of u const host = createServerHost([app, fooo]); const logger = createLoggerWithInMemoryLogs(host); - const typingsInstaller = createTestTypingInstallerWithInstallWorker( + const typingsInstaller = new TestTypingsInstaller( host, logger, - [typingNames, typingFiles], - { globalTypingsCacheLocation, typesRegistry: "foo" }, + { + installAction: [typingNames, typingFiles], + globalTypingsCacheLocation, + typesRegistry: "foo", + }, ); const projectService = createProjectService(host, { typingsInstaller, logger }); projectService.openClientFile(app.path); @@ -2418,11 +2505,14 @@ declare module "stream" { const host = createServerHost([file, libFile]); const logger = createLoggerWithInMemoryLogs(host); - const typingsInstaller = createTestTypingInstallerWithInstallWorker( + const typingsInstaller = new TestTypingsInstaller( host, logger, - [["node"], [nodeTyping]], - { globalTypingsCacheLocation, typesRegistry: "node" }, + { + installAction: [["node"], [nodeTyping]], + globalTypingsCacheLocation, + typesRegistry: "node", + }, ); const projectService = createProjectService(host, { typingsInstaller, logger }); projectService.openClientFile(file.path); @@ -2513,7 +2603,10 @@ describe("unittests:: tsserver:: typingsInstaller:: tsserver:: with inferred Pro const host = createServerHost(files, { currentDirectory }); const logger = createLoggerWithInMemoryLogs(host); - const typingsInstaller = new TestTypingsInstaller(typingsCache, /*throttleLimit*/ 5, host, logger, /*workerConstructor*/ undefined, "pkgcurrentdirectory"); + const typingsInstaller = new TestTypingsInstaller(host, logger, { + globalTypingsCacheLocation: typingsCache, + typesRegistry: "pkgcurrentdirectory", + }); const projectService = createProjectService(host, { typingsInstaller, logger }); diff --git a/src/typingsInstaller/nodeTypingsInstaller.ts b/src/typingsInstaller/nodeTypingsInstaller.ts index fcf8b61cf5baf..5dcb59de216fe 100644 --- a/src/typingsInstaller/nodeTypingsInstaller.ts +++ b/src/typingsInstaller/nodeTypingsInstaller.ts @@ -24,6 +24,7 @@ import { InstallTypingHost, nowString, PackageInstalledResponse, + stringifyIndented, TypesRegistryResponse, TypingInstallerRequestUnion, TypingInstallerResponseUnion, @@ -203,7 +204,7 @@ export class NodeTypingsInstaller extends TypingsInstaller { protected sendResponse(response: TypingInstallerResponseUnion) { if (this.log.isEnabled()) { - this.log.writeLine(`Sending response:\n ${JSON.stringify(response)}`); + this.log.writeLine(`Sending response:${stringifyIndented(response)}`); } process.send!(response); // TODO: GH#18217 if (this.log.isEnabled()) { diff --git a/src/typingsInstallerCore/typingsInstaller.ts b/src/typingsInstallerCore/typingsInstaller.ts index 5e185406e07c6..5fddf932e0284 100644 --- a/src/typingsInstallerCore/typingsInstaller.ts +++ b/src/typingsInstallerCore/typingsInstaller.ts @@ -29,6 +29,7 @@ import { InstallTypingHost, InvalidateCachedTypings, SetTypings, + stringifyIndented, WatchTypingLocations, } from "./_namespaces/ts.server"; @@ -153,7 +154,7 @@ export abstract class TypingsInstaller { install(req: DiscoverTypings) { if (this.log.isEnabled()) { - this.log.writeLine(`Got install request ${JSON.stringify(req)}`); + this.log.writeLine(`Got install request${stringifyIndented(req)}`); } // load existing typing information from the cache @@ -180,10 +181,6 @@ export abstract class TypingsInstaller { req.compilerOptions, ); - if (this.log.isEnabled()) { - this.log.writeLine(`Finished typings discovery: ${JSON.stringify(discoverTypingsResult)}`); - } - // start watching files this.watchFiles(req.projectName, discoverTypingsResult.filesToWatch); @@ -232,8 +229,8 @@ export abstract class TypingsInstaller { const npmConfig = JSON.parse(this.installTypingHost.readFile(packageJson)!) as NpmConfig; // TODO: GH#18217 const npmLock = JSON.parse(this.installTypingHost.readFile(packageLockJson)!) as NpmLock; // TODO: GH#18217 if (this.log.isEnabled()) { - this.log.writeLine(`Loaded content of '${packageJson}': ${JSON.stringify(npmConfig)}`); - this.log.writeLine(`Loaded content of '${packageLockJson}'`); + this.log.writeLine(`Loaded content of '${packageJson}':${stringifyIndented(npmConfig)}`); + this.log.writeLine(`Loaded content of '${packageLockJson}':${stringifyIndented(npmLock)}`); } if (npmConfig.devDependencies && npmLock.dependencies) { for (const key in npmConfig.devDependencies) { diff --git a/tests/baselines/reference/api/typescript.d.ts b/tests/baselines/reference/api/typescript.d.ts index 51b0ea6c9f003..1610d7d488f78 100644 --- a/tests/baselines/reference/api/typescript.d.ts +++ b/tests/baselines/reference/api/typescript.d.ts @@ -3450,7 +3450,6 @@ declare namespace ts { getLanguageService(): never; getHostForAutoImportProvider(): never; getProjectReferences(): readonly ts.ProjectReference[] | undefined; - getTypeAcquisition(): TypeAcquisition; } /** * If a file is opened, the server will look for a tsconfig (or jsconfig) 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 5645bc03a3a7c..854dd5cf3fe80 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 @@ -50,10 +50,10 @@ PolledWatches:: /node_modules/@angular/forms/node_modules/@types: *new* {"pollingInterval":500} -TI:: [hh:mm:ss:mss] Global cache location '/a/data/', safe file path '/safeList.json', types map path /typesMap.json -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Global cache location '/a/data', safe file path '/safeList.json', types map path /typesMap.json +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Trying to find '/a/data/package.json'... -TI:: [hh:mm:ss:mss] Finished processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Finished processing cache location '/a/data' TI:: [hh:mm:ss:mss] Npm config file: /a/data/package.json TI:: [hh:mm:ss:mss] Npm config file: '/a/data/package.json' is missing, creating new one... TI:: [hh:mm:ss:mss] Updating types-registry npm package... @@ -69,25 +69,80 @@ TI:: typing installer creation complete } -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject1*","fileNames":["/node_modules/@angular/forms/forms.d.ts"],"compilerOptions":{"target":1,"jsx":1,"allowNonTsExtensions":true,"allowJs":true,"noEmitForJsFiles":true},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/node_modules/@angular/forms","cachePath":"/a/data/","kind":"discover"} -TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data/', loading cached information... -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject1*", + "fileNames": [ + "/node_modules/@angular/forms/forms.d.ts" + ], + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/node_modules/@angular/forms", + "cachePath": "/a/data", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/typesMap.json' TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Typing names in '/node_modules/@angular/forms/package.json' dependencies: [] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/node_modules/@angular/forms/bower_components","/node_modules/@angular/forms/package.json","/node_modules/@angular/forms/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/node_modules/@angular/forms/bower_components","/node_modules/@angular/forms/package.json","/node_modules/@angular/forms/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/node_modules/@angular/forms/bower_components", + "/node_modules/@angular/forms/package.json", + "/node_modules/@angular/forms/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject1*","files":["/node_modules/@angular/forms/bower_components","/node_modules/@angular/forms/package.json","/node_modules/@angular/forms/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject1*", + "files": [ + "/node_modules/@angular/forms/bower_components", + "/node_modules/@angular/forms/package.json", + "/node_modules/@angular/forms/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /node_modules/@angular/forms/bower_components 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /node_modules/@angular/forms/bower_components 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /node_modules/@angular/forms/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location for typing installer Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /node_modules/@angular/forms/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /node_modules/@angular/forms/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer 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},"typings":[],"unresolvedImports":[],"kind":"action::set"} + { + "projectName": "/dev/null/inferredProject1*", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true + }, + "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] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (1) 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 32bdca4c83fc3..49b02bd7cc0a4 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 @@ -157,10 +157,10 @@ FsWatchesRecursive:: /node_modules: {} -TI:: [hh:mm:ss:mss] Global cache location '/a/data/', safe file path '/safeList.json', types map path /typesMap.json -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Global cache location '/a/data', safe file path '/safeList.json', types map path /typesMap.json +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Trying to find '/a/data/package.json'... -TI:: [hh:mm:ss:mss] Finished processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Finished processing cache location '/a/data' TI:: [hh:mm:ss:mss] Npm config file: /a/data/package.json TI:: [hh:mm:ss:mss] Npm config file: '/a/data/package.json' is missing, creating new one... Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with a :: WatchInfo: 1 undefined Config: /tsconfig.json WatchType: Wild card directory @@ -220,25 +220,80 @@ FsWatchesRecursive:: /node_modules: {} -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject1*","fileNames":["/node_modules/@angular/forms/forms.d.ts"],"compilerOptions":{"target":1,"jsx":1,"allowNonTsExtensions":true,"allowJs":true,"noEmitForJsFiles":true},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/node_modules/@angular/forms","cachePath":"/a/data/","kind":"discover"} -TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data/', loading cached information... -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject1*", + "fileNames": [ + "/node_modules/@angular/forms/forms.d.ts" + ], + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/node_modules/@angular/forms", + "cachePath": "/a/data", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/typesMap.json' TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Typing names in '/node_modules/@angular/forms/package.json' dependencies: [] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/node_modules/@angular/forms/bower_components","/node_modules/@angular/forms/package.json","/node_modules/@angular/forms/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/node_modules/@angular/forms/bower_components","/node_modules/@angular/forms/package.json","/node_modules/@angular/forms/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/node_modules/@angular/forms/bower_components", + "/node_modules/@angular/forms/package.json", + "/node_modules/@angular/forms/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject1*","files":["/node_modules/@angular/forms/bower_components","/node_modules/@angular/forms/package.json","/node_modules/@angular/forms/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject1*", + "files": [ + "/node_modules/@angular/forms/bower_components", + "/node_modules/@angular/forms/package.json", + "/node_modules/@angular/forms/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /node_modules/@angular/forms/bower_components 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /node_modules/@angular/forms/bower_components 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /node_modules/@angular/forms/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location for typing installer Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /node_modules/@angular/forms/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /node_modules/@angular/forms/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer 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},"typings":[],"unresolvedImports":[],"kind":"action::set"} + { + "projectName": "/dev/null/inferredProject1*", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true + }, + "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] Project '/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (1) 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 796db995d8e01..a73d444b93723 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 @@ -47,10 +47,10 @@ PolledWatches:: /node_modules/@angular/forms/node_modules/@types: *new* {"pollingInterval":500} -TI:: [hh:mm:ss:mss] Global cache location '/a/data/', safe file path '/safeList.json', types map path /typesMap.json -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Global cache location '/a/data', safe file path '/safeList.json', types map path /typesMap.json +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Trying to find '/a/data/package.json'... -TI:: [hh:mm:ss:mss] Finished processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Finished processing cache location '/a/data' TI:: [hh:mm:ss:mss] Npm config file: /a/data/package.json TI:: [hh:mm:ss:mss] Npm config file: '/a/data/package.json' is missing, creating new one... TI:: [hh:mm:ss:mss] Updating types-registry npm package... @@ -66,18 +66,58 @@ TI:: typing installer creation complete } -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject1*","fileNames":["/node_modules/@angular/forms/forms.d.ts"],"compilerOptions":{"target":1,"jsx":1,"allowNonTsExtensions":true,"allowJs":true,"noEmitForJsFiles":true},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/node_modules/@angular/forms","cachePath":"/a/data/","kind":"discover"} -TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data/', loading cached information... -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject1*", + "fileNames": [ + "/node_modules/@angular/forms/forms.d.ts" + ], + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/node_modules/@angular/forms", + "cachePath": "/a/data", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/typesMap.json' TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Typing names in '/node_modules/@angular/forms/package.json' dependencies: ["@angular/core"] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":["@angular/core"],"filesToWatch":["/node_modules/@angular/forms/bower_components","/node_modules/@angular/forms/package.json","/node_modules/@angular/forms/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":["@angular/core"],"filesToWatch":["/node_modules/@angular/forms/bower_components","/node_modules/@angular/forms/package.json","/node_modules/@angular/forms/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "@angular/core" + ], + "filesToWatch": [ + "/node_modules/@angular/forms/bower_components", + "/node_modules/@angular/forms/package.json", + "/node_modules/@angular/forms/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject1*","files":["/node_modules/@angular/forms/bower_components","/node_modules/@angular/forms/package.json","/node_modules/@angular/forms/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject1*", + "files": [ + "/node_modules/@angular/forms/bower_components", + "/node_modules/@angular/forms/package.json", + "/node_modules/@angular/forms/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /node_modules/@angular/forms/bower_components 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /node_modules/@angular/forms/bower_components 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /node_modules/@angular/forms/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location for typing installer @@ -87,7 +127,24 @@ TI:: [hh:mm:ss:mss] Installing typings ["@angular/core"] TI:: [hh:mm:ss:mss] '@angular/core':: Entry for package 'angular__core' does not exist in local types registry - 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},"typings":[],"unresolvedImports":[],"kind":"action::set"} + { + "projectName": "/dev/null/inferredProject1*", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true + }, + "typings": [], + "unresolvedImports": [], + "kind": "action::set" + } Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (1) 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 9c4212b994878..c564c0712b5af 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 @@ -164,10 +164,10 @@ FsWatches *deleted*:: /b.js: {} -TI:: [hh:mm:ss:mss] Global cache location '/a/data/', safe file path '/safeList.json', types map path /typesMap.json -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Global cache location '/a/data', safe file path '/safeList.json', types map path /typesMap.json +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Trying to find '/a/data/package.json'... -TI:: [hh:mm:ss:mss] Finished processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Finished processing cache location '/a/data' TI:: [hh:mm:ss:mss] Npm config file: /a/data/package.json TI:: [hh:mm:ss:mss] Npm config file: '/a/data/package.json' is missing, creating new one... TI:: [hh:mm:ss:mss] Updating types-registry npm package... @@ -183,23 +183,78 @@ TI:: typing installer creation complete } -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject2*","fileNames":["/b.js"],"compilerOptions":{"target":1,"jsx":1,"allowNonTsExtensions":true,"allowJs":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/","cachePath":"/a/data/","kind":"discover"} -TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data/', loading cached information... -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject2*", + "fileNames": [ + "/b.js" + ], + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/", + "cachePath": "/a/data", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/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] Result: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/bower_components","/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/bower_components","/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/bower_components", + "/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject2*","files":["/bower_components","/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject2*", + "files": [ + "/bower_components", + "/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /bower_components 1 undefined Project: /dev/null/inferredProject2* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /bower_components 1 undefined Project: /dev/null/inferredProject2* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /node_modules 1 undefined Project: /dev/null/inferredProject2* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /node_modules 1 undefined Project: /dev/null/inferredProject2* WatchType: Directory location for typing installer TI:: [hh:mm:ss:mss] Sending response: - {"projectName":"/dev/null/inferredProject2*","typeAcquisition":{"enable":true,"include":[],"exclude":[]},"compilerOptions":{"target":1,"jsx":1,"allowNonTsExtensions":true,"allowJs":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typings":[],"unresolvedImports":[],"kind":"action::set"} + { + "projectName": "/dev/null/inferredProject2*", + "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] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (2) diff --git a/tests/baselines/reference/tsserver/cancellationT/Geterr-is-cancellable.js b/tests/baselines/reference/tsserver/cancellationT/Geterr-is-cancellable.js index 594bb4dd29673..8b949878c27cb 100644 --- a/tests/baselines/reference/tsserver/cancellationT/Geterr-is-cancellable.js +++ b/tests/baselines/reference/tsserver/cancellationT/Geterr-is-cancellable.js @@ -95,12 +95,12 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 2 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 2 + } } TestServerCancellationToken:: resetRequest:: 2 is as expected After running Timeout callback:: count: 0 @@ -156,12 +156,12 @@ Before running Timeout callback:: count: 1 TestServerCancellationToken:: Cancellation is requested Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 3 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 3 + } } TestServerCancellationToken:: resetRequest:: 3 is as expected After running Timeout callback:: count: 0 @@ -192,13 +192,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/a/app.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/a/app.ts", + "diagnostics": [] + } } TestServerCancellationToken:: resetRequest:: 5 is as expected After running Timeout callback:: count: 0 @@ -210,12 +210,12 @@ Before running Immedidate callback:: count: 1 TestServerCancellationToken:: Cancellation is requested Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 5 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 5 + } } TestServerCancellationToken:: resetRequest:: 5 is as expected After running Immedidate callback:: count: 0 @@ -246,13 +246,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/a/app.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/a/app.ts", + "diagnostics": [] + } } TestServerCancellationToken:: resetRequest:: 6 is as expected After running Timeout callback:: count: 0 @@ -262,13 +262,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/a/app.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/a/app.ts", + "diagnostics": [] + } } TestServerCancellationToken:: resetRequest:: 6 is as expected After running Immedidate callback:: count: 1 @@ -279,22 +279,22 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/a/app.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/a/app.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 6 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 6 + } } TestServerCancellationToken:: resetRequest:: 6 is as expected After running Immedidate callback:: count: 0 @@ -325,13 +325,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/a/app.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/a/app.ts", + "diagnostics": [] + } } TestServerCancellationToken:: resetRequest:: 7 is as expected After running Timeout callback:: count: 0 @@ -352,12 +352,12 @@ Info seq [hh:mm:ss:mss] request: } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 7 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 7 + } } TestServerCancellationToken:: resetRequest:: 8 is as expected Info seq [hh:mm:ss:mss] response: 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 1b747203aff63..036d9b3759b13 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 @@ -186,23 +186,79 @@ TI:: typing installer creation complete } -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject1*","fileNames":["c:/a/lib/lib.d.ts","e:/myproject/src/app.js"],"compilerOptions":{"target":1,"jsx":1,"allowNonTsExtensions":true,"allowJs":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"e:/myproject/src","cachePath":"c:/typescript","kind":"discover"} +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject1*", + "fileNames": [ + "c:/a/lib/lib.d.ts", + "e:/myproject/src/app.js" + ], + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "e:/myproject/src", + "cachePath": "c:/typescript", + "kind": "discover" + } TI:: [hh:mm:ss:mss] Request specifies cache path 'c:/typescript', loading cached information... TI:: [hh:mm:ss:mss] Processing cache location 'c:/typescript' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/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] Result: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["e:/myproject/src/bower_components","e:/myproject/src/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["e:/myproject/src/bower_components","e:/myproject/src/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "e:/myproject/src/bower_components", + "e:/myproject/src/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject1*","files":["e:/myproject/src/bower_components","e:/myproject/src/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject1*", + "files": [ + "e:/myproject/src/bower_components", + "e:/myproject/src/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: e:/myproject/src/bower_components 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: e:/myproject/src/bower_components 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: e:/myproject/src/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: e:/myproject/src/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer 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"} + { + "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] FileWatcher:: Added:: WatchInfo: e:/myproject/package.json 250 undefined WatchType: package.json file Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) diff --git a/tests/baselines/reference/tsserver/completionsIncomplete/ambient-module-specifier-resolutions-do-not-count-against-the-resolution-limit.js b/tests/baselines/reference/tsserver/completionsIncomplete/ambient-module-specifier-resolutions-do-not-count-against-the-resolution-limit.js index 83f7afbae51f9..d761b0dd63572 100644 --- a/tests/baselines/reference/tsserver/completionsIncomplete/ambient-module-specifier-resolutions-do-not-count-against-the-resolution-limit.js +++ b/tests/baselines/reference/tsserver/completionsIncomplete/ambient-module-specifier-resolutions-do-not-count-against-the-resolution-limit.js @@ -1025,11 +1025,11 @@ Info seq [hh:mm:ss:mss] request: } Info seq [hh:mm:ss:mss] response: { - "seq": 0, - "type": "response", - "command": "configure", - "request_seq": 1, - "success": true + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 1, + "success": true } Info seq [hh:mm:ss:mss] response: { diff --git a/tests/baselines/reference/tsserver/completionsIncomplete/resolves-more-when-available-from-module-specifier-cache-(1).js b/tests/baselines/reference/tsserver/completionsIncomplete/resolves-more-when-available-from-module-specifier-cache-(1).js index 5b6d5cea19c2e..525a8bd27117a 100644 --- a/tests/baselines/reference/tsserver/completionsIncomplete/resolves-more-when-available-from-module-specifier-cache-(1).js +++ b/tests/baselines/reference/tsserver/completionsIncomplete/resolves-more-when-available-from-module-specifier-cache-(1).js @@ -2625,11 +2625,11 @@ Info seq [hh:mm:ss:mss] request: } Info seq [hh:mm:ss:mss] response: { - "seq": 0, - "type": "response", - "command": "configure", - "request_seq": 1, - "success": true + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 1, + "success": true } Info seq [hh:mm:ss:mss] response: { diff --git a/tests/baselines/reference/tsserver/completionsIncomplete/resolves-more-when-available-from-module-specifier-cache-(2).js b/tests/baselines/reference/tsserver/completionsIncomplete/resolves-more-when-available-from-module-specifier-cache-(2).js index abde13b145ea6..82620c06d39ad 100644 --- a/tests/baselines/reference/tsserver/completionsIncomplete/resolves-more-when-available-from-module-specifier-cache-(2).js +++ b/tests/baselines/reference/tsserver/completionsIncomplete/resolves-more-when-available-from-module-specifier-cache-(2).js @@ -475,11 +475,11 @@ Info seq [hh:mm:ss:mss] request: } Info seq [hh:mm:ss:mss] response: { - "seq": 0, - "type": "response", - "command": "configure", - "request_seq": 1, - "success": true + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 1, + "success": true } Info seq [hh:mm:ss:mss] response: { diff --git a/tests/baselines/reference/tsserver/completionsIncomplete/works-for-transient-symbols-between-requests.js b/tests/baselines/reference/tsserver/completionsIncomplete/works-for-transient-symbols-between-requests.js index 8f218eb2a64d3..875f3d2d49887 100644 --- a/tests/baselines/reference/tsserver/completionsIncomplete/works-for-transient-symbols-between-requests.js +++ b/tests/baselines/reference/tsserver/completionsIncomplete/works-for-transient-symbols-between-requests.js @@ -331,11 +331,11 @@ Info seq [hh:mm:ss:mss] request: } Info seq [hh:mm:ss:mss] response: { - "seq": 0, - "type": "response", - "command": "configure", - "request_seq": 1, - "success": true + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 1, + "success": true } Info seq [hh:mm:ss:mss] response: { diff --git a/tests/baselines/reference/tsserver/completionsIncomplete/works-with-PackageJsonAutoImportProvider.js b/tests/baselines/reference/tsserver/completionsIncomplete/works-with-PackageJsonAutoImportProvider.js index ffab11b380c27..93978d8a4fe90 100644 --- a/tests/baselines/reference/tsserver/completionsIncomplete/works-with-PackageJsonAutoImportProvider.js +++ b/tests/baselines/reference/tsserver/completionsIncomplete/works-with-PackageJsonAutoImportProvider.js @@ -534,11 +534,11 @@ Info seq [hh:mm:ss:mss] request: } Info seq [hh:mm:ss:mss] response: { - "seq": 0, - "type": "response", - "command": "configure", - "request_seq": 1, - "success": true + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 1, + "success": true } Info seq [hh:mm:ss:mss] response: { diff --git a/tests/baselines/reference/tsserver/completionsIncomplete/works.js b/tests/baselines/reference/tsserver/completionsIncomplete/works.js index 640aad9269195..5ebd8c26cb9e7 100644 --- a/tests/baselines/reference/tsserver/completionsIncomplete/works.js +++ b/tests/baselines/reference/tsserver/completionsIncomplete/works.js @@ -775,11 +775,11 @@ Info seq [hh:mm:ss:mss] request: } Info seq [hh:mm:ss:mss] response: { - "seq": 0, - "type": "response", - "command": "configure", - "request_seq": 1, - "success": true + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 1, + "success": true } Info seq [hh:mm:ss:mss] response: { diff --git a/tests/baselines/reference/tsserver/configuredProjects/creating-new-file-and-then-open-it-after-watcher-is-invoked,-ask-errors-on-it-after-old-one-without-file-being-in-config.js b/tests/baselines/reference/tsserver/configuredProjects/creating-new-file-and-then-open-it-after-watcher-is-invoked,-ask-errors-on-it-after-old-one-without-file-being-in-config.js index 50ce8a2797f20..19ca57f44d971 100644 --- a/tests/baselines/reference/tsserver/configuredProjects/creating-new-file-and-then-open-it-after-watcher-is-invoked,-ask-errors-on-it-after-old-one-without-file-being-in-config.js +++ b/tests/baselines/reference/tsserver/configuredProjects/creating-new-file-and-then-open-it-after-watcher-is-invoked,-ask-errors-on-it-after-old-one-without-file-being-in-config.js @@ -41,13 +41,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json", - "reason": "Creating possible configured project for /user/username/projects/myproject/src/foo.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json", + "reason": "Creating possible configured project for /user/username/projects/myproject/src/foo.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/tsconfig.json : { "rootNames": [ @@ -85,64 +85,64 @@ Info seq [hh:mm:ss:mss] Files (3) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "4a33d78ee40d836c4f4e64c59aed976628aea0013be9585c5ff171dfc41baf98", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 2, - "tsSize": 50, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": {}, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": true, - "exclude": true, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "4a33d78ee40d836c4f4e64c59aed976628aea0013be9585c5ff171dfc41baf98", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 2, + "tsSize": 50, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": {}, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": true, + "exclude": true, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/myproject/src/foo.ts", - "configFile": "/user/username/projects/myproject/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/myproject/src/foo.ts", + "configFile": "/user/username/projects/myproject/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Project '/user/username/projects/myproject/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (3) @@ -198,14 +198,14 @@ Info seq [hh:mm:ss:mss] Search path: /user/username/projects/myproject/src/sub Info seq [hh:mm:ss:mss] For info: /user/username/projects/myproject/src/sub/fooBar.ts :: Config file name: /user/username/projects/myproject/tsconfig.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/myproject/src/sub/fooBar.ts", - "configFile": "/user/username/projects/myproject/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/myproject/src/sub/fooBar.ts", + "configFile": "/user/username/projects/myproject/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/sub/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/sub/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root @@ -311,13 +311,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/src/foo.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/src/foo.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -326,13 +326,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/src/foo.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/src/foo.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 1 2: suggestionCheck @@ -342,13 +342,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/src/foo.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/src/foo.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 0 @@ -357,13 +357,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/src/sub/fooBar.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/src/sub/fooBar.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -372,13 +372,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/src/sub/fooBar.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/src/sub/fooBar.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 1 4: suggestionCheck @@ -388,21 +388,21 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/src/sub/fooBar.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/src/sub/fooBar.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 3 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 3 + } } After running Immedidate callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/configuredProjects/creating-new-file-and-then-open-it-after-watcher-is-invoked,-ask-errors-on-it-after-old-one.js b/tests/baselines/reference/tsserver/configuredProjects/creating-new-file-and-then-open-it-after-watcher-is-invoked,-ask-errors-on-it-after-old-one.js index 8d1b3b4163fbe..851ab4c53b8a8 100644 --- a/tests/baselines/reference/tsserver/configuredProjects/creating-new-file-and-then-open-it-after-watcher-is-invoked,-ask-errors-on-it-after-old-one.js +++ b/tests/baselines/reference/tsserver/configuredProjects/creating-new-file-and-then-open-it-after-watcher-is-invoked,-ask-errors-on-it-after-old-one.js @@ -41,13 +41,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json", - "reason": "Creating possible configured project for /user/username/projects/myproject/src/foo.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json", + "reason": "Creating possible configured project for /user/username/projects/myproject/src/foo.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/tsconfig.json : { "rootNames": [ @@ -85,64 +85,64 @@ Info seq [hh:mm:ss:mss] Files (3) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "4a33d78ee40d836c4f4e64c59aed976628aea0013be9585c5ff171dfc41baf98", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 2, - "tsSize": 50, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": {}, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": true, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "4a33d78ee40d836c4f4e64c59aed976628aea0013be9585c5ff171dfc41baf98", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 2, + "tsSize": 50, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": {}, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": true, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/myproject/src/foo.ts", - "configFile": "/user/username/projects/myproject/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/myproject/src/foo.ts", + "configFile": "/user/username/projects/myproject/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Project '/user/username/projects/myproject/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (3) @@ -261,13 +261,13 @@ Before running Timeout callback:: count: 3 Invoking Timeout callback:: timeoutId:: 3:: checkOne Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/src/foo.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/src/foo.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 2 1: /user/username/projects/myproject/tsconfig.json @@ -278,13 +278,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/src/foo.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/src/foo.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 1 2: suggestionCheck @@ -294,13 +294,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/src/foo.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/src/foo.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 0 @@ -312,13 +312,13 @@ Before running Timeout callback:: count: 3 Invoking Timeout callback:: timeoutId:: 4:: checkOne Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/src/sub/fooBar.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/src/sub/fooBar.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 2 1: /user/username/projects/myproject/tsconfig.json @@ -329,13 +329,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/src/sub/fooBar.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/src/sub/fooBar.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 1 4: suggestionCheck @@ -345,21 +345,21 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/src/sub/fooBar.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/src/sub/fooBar.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 3 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 3 + } } After running Immedidate callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/configuredProjects/creating-new-file-and-then-open-it-after-watcher-is-invoked,-ask-errors-on-it-before-old-one-without-file-being-in-config.js b/tests/baselines/reference/tsserver/configuredProjects/creating-new-file-and-then-open-it-after-watcher-is-invoked,-ask-errors-on-it-before-old-one-without-file-being-in-config.js index b2d318dbe3346..0767871a4ab76 100644 --- a/tests/baselines/reference/tsserver/configuredProjects/creating-new-file-and-then-open-it-after-watcher-is-invoked,-ask-errors-on-it-before-old-one-without-file-being-in-config.js +++ b/tests/baselines/reference/tsserver/configuredProjects/creating-new-file-and-then-open-it-after-watcher-is-invoked,-ask-errors-on-it-before-old-one-without-file-being-in-config.js @@ -41,13 +41,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json", - "reason": "Creating possible configured project for /user/username/projects/myproject/src/foo.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json", + "reason": "Creating possible configured project for /user/username/projects/myproject/src/foo.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/tsconfig.json : { "rootNames": [ @@ -85,64 +85,64 @@ Info seq [hh:mm:ss:mss] Files (3) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "4a33d78ee40d836c4f4e64c59aed976628aea0013be9585c5ff171dfc41baf98", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 2, - "tsSize": 50, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": {}, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": true, - "exclude": true, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "4a33d78ee40d836c4f4e64c59aed976628aea0013be9585c5ff171dfc41baf98", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 2, + "tsSize": 50, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": {}, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": true, + "exclude": true, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/myproject/src/foo.ts", - "configFile": "/user/username/projects/myproject/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/myproject/src/foo.ts", + "configFile": "/user/username/projects/myproject/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Project '/user/username/projects/myproject/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (3) @@ -198,14 +198,14 @@ Info seq [hh:mm:ss:mss] Search path: /user/username/projects/myproject/src/sub Info seq [hh:mm:ss:mss] For info: /user/username/projects/myproject/src/sub/fooBar.ts :: Config file name: /user/username/projects/myproject/tsconfig.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/myproject/src/sub/fooBar.ts", - "configFile": "/user/username/projects/myproject/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/myproject/src/sub/fooBar.ts", + "configFile": "/user/username/projects/myproject/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/sub/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/sub/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root @@ -311,13 +311,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/src/sub/fooBar.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/src/sub/fooBar.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -326,13 +326,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/src/sub/fooBar.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/src/sub/fooBar.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 1 2: suggestionCheck @@ -342,13 +342,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/src/sub/fooBar.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/src/sub/fooBar.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 0 @@ -357,13 +357,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/src/foo.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/src/foo.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -372,13 +372,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/src/foo.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/src/foo.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 1 4: suggestionCheck @@ -388,21 +388,21 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/src/foo.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/src/foo.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 3 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 3 + } } After running Immedidate callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/configuredProjects/creating-new-file-and-then-open-it-after-watcher-is-invoked,-ask-errors-on-it-before-old-one.js b/tests/baselines/reference/tsserver/configuredProjects/creating-new-file-and-then-open-it-after-watcher-is-invoked,-ask-errors-on-it-before-old-one.js index e13df3f3243f3..979f7783320e6 100644 --- a/tests/baselines/reference/tsserver/configuredProjects/creating-new-file-and-then-open-it-after-watcher-is-invoked,-ask-errors-on-it-before-old-one.js +++ b/tests/baselines/reference/tsserver/configuredProjects/creating-new-file-and-then-open-it-after-watcher-is-invoked,-ask-errors-on-it-before-old-one.js @@ -41,13 +41,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json", - "reason": "Creating possible configured project for /user/username/projects/myproject/src/foo.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json", + "reason": "Creating possible configured project for /user/username/projects/myproject/src/foo.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/tsconfig.json : { "rootNames": [ @@ -85,64 +85,64 @@ Info seq [hh:mm:ss:mss] Files (3) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "4a33d78ee40d836c4f4e64c59aed976628aea0013be9585c5ff171dfc41baf98", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 2, - "tsSize": 50, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": {}, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": true, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "4a33d78ee40d836c4f4e64c59aed976628aea0013be9585c5ff171dfc41baf98", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 2, + "tsSize": 50, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": {}, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": true, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/myproject/src/foo.ts", - "configFile": "/user/username/projects/myproject/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/myproject/src/foo.ts", + "configFile": "/user/username/projects/myproject/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Project '/user/username/projects/myproject/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (3) @@ -261,13 +261,13 @@ Before running Timeout callback:: count: 3 Invoking Timeout callback:: timeoutId:: 3:: checkOne Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/src/sub/fooBar.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/src/sub/fooBar.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 2 1: /user/username/projects/myproject/tsconfig.json @@ -278,13 +278,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/src/sub/fooBar.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/src/sub/fooBar.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 1 2: suggestionCheck @@ -294,13 +294,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/src/sub/fooBar.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/src/sub/fooBar.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 0 @@ -312,13 +312,13 @@ Before running Timeout callback:: count: 3 Invoking Timeout callback:: timeoutId:: 4:: checkOne Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/src/foo.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/src/foo.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 2 1: /user/username/projects/myproject/tsconfig.json @@ -329,13 +329,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/src/foo.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/src/foo.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 1 4: suggestionCheck @@ -345,21 +345,21 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/src/foo.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/src/foo.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 3 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 3 + } } After running Immedidate callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/configuredProjects/creating-new-file-and-then-open-it-before-watcher-is-invoked,-ask-errors-on-it-after-old-one-without-file-being-in-config.js b/tests/baselines/reference/tsserver/configuredProjects/creating-new-file-and-then-open-it-before-watcher-is-invoked,-ask-errors-on-it-after-old-one-without-file-being-in-config.js index 42a514757ce92..f56c74bf38731 100644 --- a/tests/baselines/reference/tsserver/configuredProjects/creating-new-file-and-then-open-it-before-watcher-is-invoked,-ask-errors-on-it-after-old-one-without-file-being-in-config.js +++ b/tests/baselines/reference/tsserver/configuredProjects/creating-new-file-and-then-open-it-before-watcher-is-invoked,-ask-errors-on-it-after-old-one-without-file-being-in-config.js @@ -41,13 +41,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json", - "reason": "Creating possible configured project for /user/username/projects/myproject/src/foo.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json", + "reason": "Creating possible configured project for /user/username/projects/myproject/src/foo.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/tsconfig.json : { "rootNames": [ @@ -85,64 +85,64 @@ Info seq [hh:mm:ss:mss] Files (3) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "4a33d78ee40d836c4f4e64c59aed976628aea0013be9585c5ff171dfc41baf98", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 2, - "tsSize": 50, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": {}, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": true, - "exclude": true, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "4a33d78ee40d836c4f4e64c59aed976628aea0013be9585c5ff171dfc41baf98", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 2, + "tsSize": 50, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": {}, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": true, + "exclude": true, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/myproject/src/foo.ts", - "configFile": "/user/username/projects/myproject/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/myproject/src/foo.ts", + "configFile": "/user/username/projects/myproject/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Project '/user/username/projects/myproject/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (3) @@ -192,14 +192,14 @@ Info seq [hh:mm:ss:mss] Search path: /user/username/projects/myproject/src/sub Info seq [hh:mm:ss:mss] For info: /user/username/projects/myproject/src/sub/fooBar.ts :: Config file name: /user/username/projects/myproject/tsconfig.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/myproject/src/sub/fooBar.ts", - "configFile": "/user/username/projects/myproject/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/myproject/src/sub/fooBar.ts", + "configFile": "/user/username/projects/myproject/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/sub/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/sub/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root @@ -311,13 +311,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/src/foo.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/src/foo.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -326,13 +326,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/src/foo.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/src/foo.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 1 2: suggestionCheck @@ -342,13 +342,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/src/foo.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/src/foo.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 0 @@ -357,13 +357,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/src/sub/fooBar.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/src/sub/fooBar.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -372,13 +372,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/src/sub/fooBar.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/src/sub/fooBar.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 1 4: suggestionCheck @@ -388,21 +388,21 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/src/sub/fooBar.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/src/sub/fooBar.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 3 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 3 + } } After running Immedidate callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/configuredProjects/creating-new-file-and-then-open-it-before-watcher-is-invoked,-ask-errors-on-it-after-old-one.js b/tests/baselines/reference/tsserver/configuredProjects/creating-new-file-and-then-open-it-before-watcher-is-invoked,-ask-errors-on-it-after-old-one.js index 50b181fc95a8e..2e7a4f43affda 100644 --- a/tests/baselines/reference/tsserver/configuredProjects/creating-new-file-and-then-open-it-before-watcher-is-invoked,-ask-errors-on-it-after-old-one.js +++ b/tests/baselines/reference/tsserver/configuredProjects/creating-new-file-and-then-open-it-before-watcher-is-invoked,-ask-errors-on-it-after-old-one.js @@ -41,13 +41,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json", - "reason": "Creating possible configured project for /user/username/projects/myproject/src/foo.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json", + "reason": "Creating possible configured project for /user/username/projects/myproject/src/foo.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/tsconfig.json : { "rootNames": [ @@ -85,64 +85,64 @@ Info seq [hh:mm:ss:mss] Files (3) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "4a33d78ee40d836c4f4e64c59aed976628aea0013be9585c5ff171dfc41baf98", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 2, - "tsSize": 50, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": {}, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": true, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "4a33d78ee40d836c4f4e64c59aed976628aea0013be9585c5ff171dfc41baf98", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 2, + "tsSize": 50, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": {}, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": true, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/myproject/src/foo.ts", - "configFile": "/user/username/projects/myproject/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/myproject/src/foo.ts", + "configFile": "/user/username/projects/myproject/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Project '/user/username/projects/myproject/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (3) @@ -192,14 +192,14 @@ Info seq [hh:mm:ss:mss] Search path: /user/username/projects/myproject/src/sub Info seq [hh:mm:ss:mss] For info: /user/username/projects/myproject/src/sub/fooBar.ts :: Config file name: /user/username/projects/myproject/tsconfig.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/myproject/src/sub/fooBar.ts", - "configFile": "/user/username/projects/myproject/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/myproject/src/sub/fooBar.ts", + "configFile": "/user/username/projects/myproject/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/sub/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/sub/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root @@ -340,13 +340,13 @@ Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/src/foo.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/src/foo.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 2 1: /user/username/projects/myproject/tsconfig.json @@ -391,13 +391,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/src/foo.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/src/foo.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 1 2: suggestionCheck @@ -407,13 +407,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/src/foo.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/src/foo.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 0 @@ -425,13 +425,13 @@ Before running Timeout callback:: count: 3 Invoking Timeout callback:: timeoutId:: 4:: checkOne Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/src/sub/fooBar.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/src/sub/fooBar.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 2 1: /user/username/projects/myproject/tsconfig.json @@ -442,13 +442,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/src/sub/fooBar.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/src/sub/fooBar.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 1 4: suggestionCheck @@ -458,21 +458,21 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/src/sub/fooBar.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/src/sub/fooBar.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 3 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 3 + } } After running Immedidate callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/configuredProjects/creating-new-file-and-then-open-it-before-watcher-is-invoked,-ask-errors-on-it-before-old-one-without-file-being-in-config.js b/tests/baselines/reference/tsserver/configuredProjects/creating-new-file-and-then-open-it-before-watcher-is-invoked,-ask-errors-on-it-before-old-one-without-file-being-in-config.js index 2bbe8fc392138..1be3e89e35212 100644 --- a/tests/baselines/reference/tsserver/configuredProjects/creating-new-file-and-then-open-it-before-watcher-is-invoked,-ask-errors-on-it-before-old-one-without-file-being-in-config.js +++ b/tests/baselines/reference/tsserver/configuredProjects/creating-new-file-and-then-open-it-before-watcher-is-invoked,-ask-errors-on-it-before-old-one-without-file-being-in-config.js @@ -41,13 +41,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json", - "reason": "Creating possible configured project for /user/username/projects/myproject/src/foo.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json", + "reason": "Creating possible configured project for /user/username/projects/myproject/src/foo.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/tsconfig.json : { "rootNames": [ @@ -85,64 +85,64 @@ Info seq [hh:mm:ss:mss] Files (3) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "4a33d78ee40d836c4f4e64c59aed976628aea0013be9585c5ff171dfc41baf98", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 2, - "tsSize": 50, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": {}, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": true, - "exclude": true, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "4a33d78ee40d836c4f4e64c59aed976628aea0013be9585c5ff171dfc41baf98", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 2, + "tsSize": 50, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": {}, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": true, + "exclude": true, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/myproject/src/foo.ts", - "configFile": "/user/username/projects/myproject/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/myproject/src/foo.ts", + "configFile": "/user/username/projects/myproject/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Project '/user/username/projects/myproject/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (3) @@ -192,14 +192,14 @@ Info seq [hh:mm:ss:mss] Search path: /user/username/projects/myproject/src/sub Info seq [hh:mm:ss:mss] For info: /user/username/projects/myproject/src/sub/fooBar.ts :: Config file name: /user/username/projects/myproject/tsconfig.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/myproject/src/sub/fooBar.ts", - "configFile": "/user/username/projects/myproject/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/myproject/src/sub/fooBar.ts", + "configFile": "/user/username/projects/myproject/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/sub/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/sub/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root @@ -311,13 +311,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/src/sub/fooBar.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/src/sub/fooBar.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -326,13 +326,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/src/sub/fooBar.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/src/sub/fooBar.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 1 2: suggestionCheck @@ -342,13 +342,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/src/sub/fooBar.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/src/sub/fooBar.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 0 @@ -357,13 +357,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/src/foo.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/src/foo.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -372,13 +372,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/src/foo.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/src/foo.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 1 4: suggestionCheck @@ -388,21 +388,21 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/src/foo.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/src/foo.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 3 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 3 + } } After running Immedidate callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/configuredProjects/creating-new-file-and-then-open-it-before-watcher-is-invoked,-ask-errors-on-it-before-old-one.js b/tests/baselines/reference/tsserver/configuredProjects/creating-new-file-and-then-open-it-before-watcher-is-invoked,-ask-errors-on-it-before-old-one.js index 7560d61cf3665..55bf045c39965 100644 --- a/tests/baselines/reference/tsserver/configuredProjects/creating-new-file-and-then-open-it-before-watcher-is-invoked,-ask-errors-on-it-before-old-one.js +++ b/tests/baselines/reference/tsserver/configuredProjects/creating-new-file-and-then-open-it-before-watcher-is-invoked,-ask-errors-on-it-before-old-one.js @@ -41,13 +41,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json", - "reason": "Creating possible configured project for /user/username/projects/myproject/src/foo.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json", + "reason": "Creating possible configured project for /user/username/projects/myproject/src/foo.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/tsconfig.json : { "rootNames": [ @@ -85,64 +85,64 @@ Info seq [hh:mm:ss:mss] Files (3) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "4a33d78ee40d836c4f4e64c59aed976628aea0013be9585c5ff171dfc41baf98", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 2, - "tsSize": 50, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": {}, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": true, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "4a33d78ee40d836c4f4e64c59aed976628aea0013be9585c5ff171dfc41baf98", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 2, + "tsSize": 50, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": {}, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": true, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/myproject/src/foo.ts", - "configFile": "/user/username/projects/myproject/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/myproject/src/foo.ts", + "configFile": "/user/username/projects/myproject/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Project '/user/username/projects/myproject/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (3) @@ -192,14 +192,14 @@ Info seq [hh:mm:ss:mss] Search path: /user/username/projects/myproject/src/sub Info seq [hh:mm:ss:mss] For info: /user/username/projects/myproject/src/sub/fooBar.ts :: Config file name: /user/username/projects/myproject/tsconfig.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/myproject/src/sub/fooBar.ts", - "configFile": "/user/username/projects/myproject/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/myproject/src/sub/fooBar.ts", + "configFile": "/user/username/projects/myproject/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/sub/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/sub/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root @@ -315,13 +315,13 @@ Before running Timeout callback:: count: 3 Invoking Timeout callback:: timeoutId:: 3:: checkOne Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/src/sub/fooBar.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/src/sub/fooBar.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 2 1: /user/username/projects/myproject/tsconfig.json @@ -332,13 +332,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/src/sub/fooBar.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/src/sub/fooBar.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 1 2: suggestionCheck @@ -348,13 +348,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/src/sub/fooBar.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/src/sub/fooBar.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 0 @@ -391,13 +391,13 @@ Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/src/foo.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/src/foo.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 2 1: /user/username/projects/myproject/tsconfig.json @@ -442,13 +442,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/src/foo.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/src/foo.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 1 4: suggestionCheck @@ -458,21 +458,21 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/src/foo.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/src/foo.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 3 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 3 + } } After running Immedidate callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/configuredProjects/should-be-tolerated-without-crashing-the-server-when-reading-tsconfig-file-fails.js b/tests/baselines/reference/tsserver/configuredProjects/should-be-tolerated-without-crashing-the-server-when-reading-tsconfig-file-fails.js index 0ae9090784d43..33b37e547a5bc 100644 --- a/tests/baselines/reference/tsserver/configuredProjects/should-be-tolerated-without-crashing-the-server-when-reading-tsconfig-file-fails.js +++ b/tests/baselines/reference/tsserver/configuredProjects/should-be-tolerated-without-crashing-the-server-when-reading-tsconfig-file-fails.js @@ -36,13 +36,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json", - "reason": "Creating possible configured project for /user/username/projects/myproject/file1.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json", + "reason": "Creating possible configured project for /user/username/projects/myproject/file1.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/tsconfig.json : { "rootNames": [ @@ -75,70 +75,70 @@ Info seq [hh:mm:ss:mss] Files (2) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "4a33d78ee40d836c4f4e64c59aed976628aea0013be9585c5ff171dfc41baf98", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 11, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": {}, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "4a33d78ee40d836c4f4e64c59aed976628aea0013be9585c5ff171dfc41baf98", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 11, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": {}, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/myproject/file1.ts", - "configFile": "/user/username/projects/myproject/tsconfig.json", - "diagnostics": [ - { - "text": "Cannot read file '/user/username/projects/myproject/tsconfig.json'.", - "code": 5083, - "category": "error" - } - ] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/myproject/file1.ts", + "configFile": "/user/username/projects/myproject/tsconfig.json", + "diagnostics": [ + { + "text": "Cannot read file '/user/username/projects/myproject/tsconfig.json'.", + "code": 5083, + "category": "error" + } + ] + } } Info seq [hh:mm:ss:mss] Project '/user/username/projects/myproject/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (2) diff --git a/tests/baselines/reference/tsserver/configuredProjects/syntactic-features-work-even-if-language-service-is-disabled.js b/tests/baselines/reference/tsserver/configuredProjects/syntactic-features-work-even-if-language-service-is-disabled.js index 6568c5b807acd..fa36e7d4b6e42 100644 --- a/tests/baselines/reference/tsserver/configuredProjects/syntactic-features-work-even-if-language-service-is-disabled.js +++ b/tests/baselines/reference/tsserver/configuredProjects/syntactic-features-work-even-if-language-service-is-disabled.js @@ -26,13 +26,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /a/jsconfig.json Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/jsconfig.json 2000 undefined Project: /a/jsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/a/jsconfig.json", - "reason": "Creating possible configured project for /a/app.js to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/a/jsconfig.json", + "reason": "Creating possible configured project for /a/app.js to open" + } } Info seq [hh:mm:ss:mss] Config: /a/jsconfig.json : { "rootNames": [ @@ -51,13 +51,13 @@ Info seq [hh:mm:ss:mss] Config: /a/jsconfig.json : { Info seq [hh:mm:ss:mss] Non TS file size exceeded limit (20971533). Largest files: /a/largefile.js:20971521, /a/app.js:12 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLanguageServiceState", - "body": { - "projectName": "/a/jsconfig.json", - "languageServiceEnabled": false - } + "seq": 0, + "type": "event", + "event": "projectLanguageServiceState", + "body": { + "projectName": "/a/jsconfig.json", + "languageServiceEnabled": false + } } Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/largefile.js 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /a/jsconfig.json @@ -74,128 +74,128 @@ Info seq [hh:mm:ss:mss] Files (1) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/a/jsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/a/jsconfig.json" + } } Info seq [hh:mm:ss:mss] Skipped loading contents of large file /a/largefile.js for info /a/largefile.js: fileSize: 20971521 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "largeFileReferenced", - "body": { - "file": "/a/largefile.js", - "fileSize": 20971521, - "maxFileSize": 4194304 - } + "seq": 0, + "type": "event", + "event": "largeFileReferenced", + "body": { + "file": "/a/largefile.js", + "fileSize": 20971521, + "maxFileSize": 4194304 + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "d0d8dad6731288ecaafd815d288fca9793f4a55553e712b664ec18e525950982", - "fileStats": { - "js": 2, - "jsSize": 12, - "jsx": 0, - "jsxSize": 0, - "ts": 0, - "tsSize": 0, - "tsx": 0, - "tsxSize": 0, - "dts": 0, - "dtsSize": 0, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": { - "allowJs": true, - "maxNodeModuleJsDepth": 2, - "allowSyntheticDefaultImports": true, - "skipLibCheck": true, - "noEmit": true - }, - "typeAcquisition": { - "enable": true, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "jsconfig.json", - "projectType": "configured", - "languageServiceEnabled": false, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "d0d8dad6731288ecaafd815d288fca9793f4a55553e712b664ec18e525950982", + "fileStats": { + "js": 2, + "jsSize": 12, + "jsx": 0, + "jsxSize": 0, + "ts": 0, + "tsSize": 0, + "tsx": 0, + "tsxSize": 0, + "dts": 0, + "dtsSize": 0, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true + }, + "typeAcquisition": { + "enable": true, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "jsconfig.json", + "projectType": "configured", + "languageServiceEnabled": false, + "version": "FakeVersion" + } } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/a/app.js", - "configFile": "/a/jsconfig.json", - "diagnostics": [ - { - "text": "File '/a/lib/lib.d.ts' not found.\n The file is in the program because:\n Default library for target 'es5'", - "code": 6053, - "category": "error" - }, - { - "text": "Cannot find global type 'Array'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Boolean'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Function'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'IArguments'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Number'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Object'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'RegExp'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'String'.", - "code": 2318, - "category": "error" - } - ] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/a/app.js", + "configFile": "/a/jsconfig.json", + "diagnostics": [ + { + "text": "File '/a/lib/lib.d.ts' not found.\n The file is in the program because:\n Default library for target 'es5'", + "code": 6053, + "category": "error" + }, + { + "text": "Cannot find global type 'Array'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Boolean'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Function'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'IArguments'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Number'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Object'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'RegExp'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'String'.", + "code": 2318, + "category": "error" + } + ] + } } Info seq [hh:mm:ss:mss] Project '/a/jsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (1) diff --git a/tests/baselines/reference/tsserver/configuredProjects/when-multiple-projects-are-open-detects-correct-default-project.js b/tests/baselines/reference/tsserver/configuredProjects/when-multiple-projects-are-open-detects-correct-default-project.js index 224160ea1c381..5c1fc4af9b08f 100644 --- a/tests/baselines/reference/tsserver/configuredProjects/when-multiple-projects-are-open-detects-correct-default-project.js +++ b/tests/baselines/reference/tsserver/configuredProjects/when-multiple-projects-are-open-detects-correct-default-project.js @@ -54,13 +54,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/foo/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/foo/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/foo/tsconfig.json", - "reason": "Creating possible configured project for /user/username/projects/myproject/foo/index.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/foo/tsconfig.json", + "reason": "Creating possible configured project for /user/username/projects/myproject/foo/index.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/foo/tsconfig.json : { "rootNames": [ @@ -106,68 +106,68 @@ Info seq [hh:mm:ss:mss] Files (3) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/foo/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/foo/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "36730603d9c37d63f14b455060fadde05a7a93dcbc44aecd507b60e066616be6", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 2, - "tsSize": 90, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": { - "lib": [ - "es2017" - ] - }, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": true, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "36730603d9c37d63f14b455060fadde05a7a93dcbc44aecd507b60e066616be6", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 2, + "tsSize": 90, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "lib": [ + "es2017" + ] + }, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": true, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/myproject/foo/index.ts", - "configFile": "/user/username/projects/myproject/foo/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/myproject/foo/index.ts", + "configFile": "/user/username/projects/myproject/foo/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Project '/user/username/projects/myproject/foo/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (3) @@ -224,13 +224,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/bar/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/bar/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/bar/tsconfig.json", - "reason": "Creating possible configured project for /user/username/projects/myproject/bar/index.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/bar/tsconfig.json", + "reason": "Creating possible configured project for /user/username/projects/myproject/bar/index.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/bar/tsconfig.json : { "rootNames": [ @@ -276,69 +276,69 @@ Info seq [hh:mm:ss:mss] Files (3) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/bar/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/bar/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "5370ca7ca3faf398ecd694700ec7a0793b5e111125c5b8f56f69d3de23ff19ae", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 56, - "tsx": 0, - "tsxSize": 0, - "dts": 2, - "dtsSize": 391, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": { - "lib": [ - "dom", - "es2017" - ] - }, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": true, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "5370ca7ca3faf398ecd694700ec7a0793b5e111125c5b8f56f69d3de23ff19ae", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 56, + "tsx": 0, + "tsxSize": 0, + "dts": 2, + "dtsSize": 391, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "lib": [ + "dom", + "es2017" + ] + }, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": true, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/myproject/bar/index.ts", - "configFile": "/user/username/projects/myproject/bar/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/myproject/bar/index.ts", + "configFile": "/user/username/projects/myproject/bar/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Project '/user/username/projects/myproject/foo/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (3) @@ -419,13 +419,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/bar/index.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/bar/index.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -434,13 +434,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/bar/index.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/bar/index.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 1 2: suggestionCheck @@ -450,13 +450,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/bar/index.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/bar/index.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 0 @@ -465,13 +465,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/foo/index.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/foo/index.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -480,13 +480,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/foo/index.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/foo/index.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 1 4: suggestionCheck @@ -496,21 +496,21 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/foo/index.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/foo/index.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 3 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 3 + } } After running Immedidate callback:: count: 0 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 3ce6f27f9649d..ff9228b9cad87 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 @@ -64,10 +64,10 @@ FsWatches:: /a/lib/lib.d.ts: *new* {} -TI:: [hh:mm:ss:mss] Global cache location '/a/data/', safe file path '/safeList.json', types map path /typesMap.json -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Global cache location '/a/data', safe file path '/safeList.json', types map path /typesMap.json +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Trying to find '/a/data/package.json'... -TI:: [hh:mm:ss:mss] Finished processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Finished processing cache location '/a/data' TI:: [hh:mm:ss:mss] Npm config file: /a/data/package.json TI:: [hh:mm:ss:mss] Npm config file: '/a/data/package.json' is missing, creating new one... TI:: [hh:mm:ss:mss] Updating types-registry npm package... @@ -83,17 +83,59 @@ TI:: typing installer creation complete } -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject1*","fileNames":["/a/lib/lib.d.ts","^walkThroughSnippet:/Users/UserName/projects/someProject/out/someFile#1.js"],"compilerOptions":{"target":1,"jsx":1,"allowNonTsExtensions":true,"allowJs":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/user/username/projects/myproject","cachePath":"/a/data/","kind":"discover"} -TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data/', loading cached information... -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject1*", + "fileNames": [ + "/a/lib/lib.d.ts", + "^walkThroughSnippet:/Users/UserName/projects/someProject/out/someFile#1.js" + ], + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/user/username/projects/myproject", + "cachePath": "/a/data", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/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] Result: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["^walkThroughSnippet:/Users/UserName/projects/someProject/out/bower_components","^walkThroughSnippet:/Users/UserName/projects/someProject/out/node_modules","/user/username/projects/myproject/bower_components","/user/username/projects/myproject/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["^walkThroughSnippet:/Users/UserName/projects/someProject/out/bower_components","^walkThroughSnippet:/Users/UserName/projects/someProject/out/node_modules","/user/username/projects/myproject/bower_components","/user/username/projects/myproject/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "^walkThroughSnippet:/Users/UserName/projects/someProject/out/bower_components", + "^walkThroughSnippet:/Users/UserName/projects/someProject/out/node_modules", + "/user/username/projects/myproject/bower_components", + "/user/username/projects/myproject/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject1*","files":["^walkThroughSnippet:/Users/UserName/projects/someProject/out/bower_components","^walkThroughSnippet:/Users/UserName/projects/someProject/out/node_modules","/user/username/projects/myproject/bower_components","/user/username/projects/myproject/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject1*", + "files": [ + "^walkThroughSnippet:/Users/UserName/projects/someProject/out/bower_components", + "^walkThroughSnippet:/Users/UserName/projects/someProject/out/node_modules", + "/user/username/projects/myproject/bower_components", + "/user/username/projects/myproject/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: ^walkThroughSnippet:/Users/UserName 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: ^walkThroughSnippet:/Users/UserName 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/bower_components 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer @@ -101,7 +143,25 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /us Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer 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"} + { + "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] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (2) @@ -179,16 +239,58 @@ Info seq [hh:mm:ss:mss] Files (2) Root file specified for compilation Info seq [hh:mm:ss:mss] ----------------------------------------------- -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject2*","fileNames":["/a/lib/lib.d.ts","^walkThroughSnippet:/Users/UserName/projects/someProject/out/someFile#2.js"],"compilerOptions":{"target":1,"jsx":1,"allowNonTsExtensions":true,"allowJs":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/","cachePath":"/a/data/","kind":"discover"} -TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data/', loading cached information... -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject2*", + "fileNames": [ + "/a/lib/lib.d.ts", + "^walkThroughSnippet:/Users/UserName/projects/someProject/out/someFile#2.js" + ], + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/", + "cachePath": "/a/data", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["^walkThroughSnippet:/Users/UserName/projects/someProject/out/bower_components","^walkThroughSnippet:/Users/UserName/projects/someProject/out/node_modules","/bower_components","/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["^walkThroughSnippet:/Users/UserName/projects/someProject/out/bower_components","^walkThroughSnippet:/Users/UserName/projects/someProject/out/node_modules","/bower_components","/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "^walkThroughSnippet:/Users/UserName/projects/someProject/out/bower_components", + "^walkThroughSnippet:/Users/UserName/projects/someProject/out/node_modules", + "/bower_components", + "/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject2*","files":["^walkThroughSnippet:/Users/UserName/projects/someProject/out/bower_components","^walkThroughSnippet:/Users/UserName/projects/someProject/out/node_modules","/bower_components","/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject2*", + "files": [ + "^walkThroughSnippet:/Users/UserName/projects/someProject/out/bower_components", + "^walkThroughSnippet:/Users/UserName/projects/someProject/out/node_modules", + "/bower_components", + "/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: ^walkThroughSnippet: 1 undefined Project: /dev/null/inferredProject2* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: ^walkThroughSnippet: 1 undefined Project: /dev/null/inferredProject2* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /bower_components 1 undefined Project: /dev/null/inferredProject2* WatchType: Directory location for typing installer @@ -196,7 +298,25 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /bo Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /node_modules 1 undefined Project: /dev/null/inferredProject2* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /node_modules 1 undefined Project: /dev/null/inferredProject2* WatchType: Directory location for typing installer TI:: [hh:mm:ss:mss] Sending response: - {"projectName":"/dev/null/inferredProject2*","typeAcquisition":{"enable":true,"include":[],"exclude":[]},"compilerOptions":{"target":1,"jsx":1,"allowNonTsExtensions":true,"allowJs":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typings":[],"unresolvedImports":[],"kind":"action::set"} + { + "projectName": "/dev/null/inferredProject2*", + "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] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (2) 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 6514e327c5b1b..2a6a0814a95df 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 @@ -71,10 +71,10 @@ FsWatches:: /a/lib/lib.d.ts: *new* {} -TI:: [hh:mm:ss:mss] Global cache location '/a/data/', safe file path '/safeList.json', types map path /typesMap.json -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Global cache location '/a/data', safe file path '/safeList.json', types map path /typesMap.json +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Trying to find '/a/data/package.json'... -TI:: [hh:mm:ss:mss] Finished processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Finished processing cache location '/a/data' TI:: [hh:mm:ss:mss] Npm config file: /a/data/package.json TI:: [hh:mm:ss:mss] Npm config file: '/a/data/package.json' is missing, creating new one... TI:: [hh:mm:ss:mss] Updating types-registry npm package... @@ -90,17 +90,59 @@ TI:: typing installer creation complete } -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject1*","fileNames":["/a/lib/lib.d.ts","^walkThroughSnippet:/Users/UserName/projects/someProject/out/someFile#1.js"],"compilerOptions":{"module":1,"allowJs":true,"allowSyntheticDefaultImports":true,"allowNonTsExtensions":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/","cachePath":"/a/data/","kind":"discover"} -TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data/', loading cached information... -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject1*", + "fileNames": [ + "/a/lib/lib.d.ts", + "^walkThroughSnippet:/Users/UserName/projects/someProject/out/someFile#1.js" + ], + "compilerOptions": { + "module": 1, + "allowJs": true, + "allowSyntheticDefaultImports": true, + "allowNonTsExtensions": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/", + "cachePath": "/a/data", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/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] Result: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["^walkThroughSnippet:/Users/UserName/projects/someProject/out/bower_components","^walkThroughSnippet:/Users/UserName/projects/someProject/out/node_modules","/bower_components","/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["^walkThroughSnippet:/Users/UserName/projects/someProject/out/bower_components","^walkThroughSnippet:/Users/UserName/projects/someProject/out/node_modules","/bower_components","/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "^walkThroughSnippet:/Users/UserName/projects/someProject/out/bower_components", + "^walkThroughSnippet:/Users/UserName/projects/someProject/out/node_modules", + "/bower_components", + "/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject1*","files":["^walkThroughSnippet:/Users/UserName/projects/someProject/out/bower_components","^walkThroughSnippet:/Users/UserName/projects/someProject/out/node_modules","/bower_components","/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject1*", + "files": [ + "^walkThroughSnippet:/Users/UserName/projects/someProject/out/bower_components", + "^walkThroughSnippet:/Users/UserName/projects/someProject/out/node_modules", + "/bower_components", + "/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: ^walkThroughSnippet: 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: ^walkThroughSnippet: 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /bower_components 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer @@ -108,7 +150,25 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /bo Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer TI:: [hh:mm:ss:mss] Sending response: - {"projectName":"/dev/null/inferredProject1*","typeAcquisition":{"enable":true,"include":[],"exclude":[]},"compilerOptions":{"module":1,"allowJs":true,"allowSyntheticDefaultImports":true,"allowNonTsExtensions":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typings":[],"unresolvedImports":[],"kind":"action::set"} + { + "projectName": "/dev/null/inferredProject1*", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "module": 1, + "allowJs": true, + "allowSyntheticDefaultImports": true, + "allowNonTsExtensions": 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] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (2) diff --git a/tests/baselines/reference/tsserver/events/largeFileReferenced/when-large-js-file-is-included-by-module-resolution.js b/tests/baselines/reference/tsserver/events/largeFileReferenced/when-large-js-file-is-included-by-module-resolution.js index 336b68d13ce4f..76a2a7b4a6b05 100644 --- a/tests/baselines/reference/tsserver/events/largeFileReferenced/when-large-js-file-is-included-by-module-resolution.js +++ b/tests/baselines/reference/tsserver/events/largeFileReferenced/when-large-js-file-is-included-by-module-resolution.js @@ -45,14 +45,14 @@ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/project Info seq [hh:mm:ss:mss] Skipped loading contents of large file /user/username/projects/myproject/src/large.js for info /user/username/projects/myproject/src/large.js: fileSize: 4194305 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "largeFileReferenced", - "body": { - "file": "/user/username/projects/myproject/src/large.js", - "fileSize": 4194305, - "maxFileSize": 4194304 - } + "seq": 0, + "type": "event", + "event": "largeFileReferenced", + "body": { + "file": "/user/username/projects/myproject/src/large.js", + "fileSize": 4194305, + "maxFileSize": 4194304 + } } Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots diff --git a/tests/baselines/reference/tsserver/events/largeFileReferenced/when-large-js-file-is-included-by-tsconfig.js b/tests/baselines/reference/tsserver/events/largeFileReferenced/when-large-js-file-is-included-by-tsconfig.js index ccafa5e8998c7..4b596edf57b55 100644 --- a/tests/baselines/reference/tsserver/events/largeFileReferenced/when-large-js-file-is-included-by-tsconfig.js +++ b/tests/baselines/reference/tsserver/events/largeFileReferenced/when-large-js-file-is-included-by-tsconfig.js @@ -39,13 +39,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json", - "reason": "Creating possible configured project for /user/username/projects/myproject/src/file.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json", + "reason": "Creating possible configured project for /user/username/projects/myproject/src/file.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/tsconfig.json : { "rootNames": [ @@ -62,14 +62,14 @@ Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/pro Info seq [hh:mm:ss:mss] Skipped loading contents of large file /user/username/projects/myproject/src/large.js for info /user/username/projects/myproject/src/large.js: fileSize: 4194305 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "largeFileReferenced", - "body": { - "file": "/user/username/projects/myproject/src/large.js", - "fileSize": 4194305, - "maxFileSize": 4194304 - } + "seq": 0, + "type": "event", + "event": "largeFileReferenced", + "body": { + "file": "/user/username/projects/myproject/src/large.js", + "fileSize": 4194305, + "maxFileSize": 4194304 + } } Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots @@ -94,86 +94,86 @@ Info seq [hh:mm:ss:mss] Files (3) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "4a33d78ee40d836c4f4e64c59aed976628aea0013be9585c5ff171dfc41baf98", - "fileStats": { - "js": 1, - "jsSize": 4194305, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 18, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": { - "allowJs": true - }, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": true, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "4a33d78ee40d836c4f4e64c59aed976628aea0013be9585c5ff171dfc41baf98", + "fileStats": { + "js": 1, + "jsSize": 4194305, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 18, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "allowJs": true + }, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": true, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/myproject/src/file.ts", - "configFile": "/user/username/projects/myproject/tsconfig.json", - "diagnostics": [ - { - "text": "Cannot write file '/user/username/projects/myproject/src/large.js' because it would overwrite input file.", - "code": 5055, - "category": "error" - }, - { - "start": { - "line": 1, - "offset": 69 - }, - "end": { - "line": 1, - "offset": 70 - }, - "text": "Compiler option 'target' requires a value of type string.", - "code": 5024, - "category": "error", - "fileName": "/user/username/projects/myproject/tsconfig.json" - } - ] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/myproject/src/file.ts", + "configFile": "/user/username/projects/myproject/tsconfig.json", + "diagnostics": [ + { + "text": "Cannot write file '/user/username/projects/myproject/src/large.js' because it would overwrite input file.", + "code": 5055, + "category": "error" + }, + { + "start": { + "line": 1, + "offset": 69 + }, + "end": { + "line": 1, + "offset": 70 + }, + "text": "Compiler option 'target' requires a value of type string.", + "code": 5024, + "category": "error", + "fileName": "/user/username/projects/myproject/tsconfig.json" + } + ] + } } Info seq [hh:mm:ss:mss] Project '/user/username/projects/myproject/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (3) diff --git a/tests/baselines/reference/tsserver/events/largeFileReferenced/when-large-ts-file-is-included-by-tsconfig.js b/tests/baselines/reference/tsserver/events/largeFileReferenced/when-large-ts-file-is-included-by-tsconfig.js index 0531e7a83bcc1..34c445b6ca006 100644 --- a/tests/baselines/reference/tsserver/events/largeFileReferenced/when-large-ts-file-is-included-by-tsconfig.js +++ b/tests/baselines/reference/tsserver/events/largeFileReferenced/when-large-ts-file-is-included-by-tsconfig.js @@ -39,13 +39,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json", - "reason": "Creating possible configured project for /user/username/projects/myproject/src/file.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json", + "reason": "Creating possible configured project for /user/username/projects/myproject/src/file.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/tsconfig.json : { "rootNames": [ @@ -82,81 +82,81 @@ Info seq [hh:mm:ss:mss] Files (3) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "4a33d78ee40d836c4f4e64c59aed976628aea0013be9585c5ff171dfc41baf98", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 2, - "tsSize": 36, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": { - "allowJs": true - }, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": true, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "4a33d78ee40d836c4f4e64c59aed976628aea0013be9585c5ff171dfc41baf98", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 2, + "tsSize": 36, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "allowJs": true + }, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": true, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/myproject/src/file.ts", - "configFile": "/user/username/projects/myproject/tsconfig.json", - "diagnostics": [ - { - "start": { - "line": 1, - "offset": 69 - }, - "end": { - "line": 1, - "offset": 70 - }, - "text": "Compiler option 'target' requires a value of type string.", - "code": 5024, - "category": "error", - "fileName": "/user/username/projects/myproject/tsconfig.json" - } - ] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/myproject/src/file.ts", + "configFile": "/user/username/projects/myproject/tsconfig.json", + "diagnostics": [ + { + "start": { + "line": 1, + "offset": 69 + }, + "end": { + "line": 1, + "offset": 70 + }, + "text": "Compiler option 'target' requires a value of type string.", + "code": 5024, + "category": "error", + "fileName": "/user/username/projects/myproject/tsconfig.json" + } + ] + } } Info seq [hh:mm:ss:mss] Project '/user/username/projects/myproject/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (3) diff --git a/tests/baselines/reference/tsserver/events/projectLanguageServiceState/language-service-disabled-events-are-triggered.js b/tests/baselines/reference/tsserver/events/projectLanguageServiceState/language-service-disabled-events-are-triggered.js index aa18a8cffd6a4..34379d341f2bf 100644 --- a/tests/baselines/reference/tsserver/events/projectLanguageServiceState/language-service-disabled-events-are-triggered.js +++ b/tests/baselines/reference/tsserver/events/projectLanguageServiceState/language-service-disabled-events-are-triggered.js @@ -26,13 +26,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /a/jsconfig.json Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/jsconfig.json 2000 undefined Project: /a/jsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/a/jsconfig.json", - "reason": "Creating possible configured project for /a/app.js to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/a/jsconfig.json", + "reason": "Creating possible configured project for /a/app.js to open" + } } Info seq [hh:mm:ss:mss] Config: /a/jsconfig.json : { "rootNames": [ @@ -51,13 +51,13 @@ Info seq [hh:mm:ss:mss] Config: /a/jsconfig.json : { Info seq [hh:mm:ss:mss] Non TS file size exceeded limit (20971531). Largest files: /a/largefile.js:20971521, /a/app.js:10 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLanguageServiceState", - "body": { - "projectName": "/a/jsconfig.json", - "languageServiceEnabled": false - } + "seq": 0, + "type": "event", + "event": "projectLanguageServiceState", + "body": { + "projectName": "/a/jsconfig.json", + "languageServiceEnabled": false + } } Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/largefile.js 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /a/jsconfig.json @@ -74,128 +74,128 @@ Info seq [hh:mm:ss:mss] Files (1) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/a/jsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/a/jsconfig.json" + } } Info seq [hh:mm:ss:mss] Skipped loading contents of large file /a/largefile.js for info /a/largefile.js: fileSize: 20971521 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "largeFileReferenced", - "body": { - "file": "/a/largefile.js", - "fileSize": 20971521, - "maxFileSize": 4194304 - } + "seq": 0, + "type": "event", + "event": "largeFileReferenced", + "body": { + "file": "/a/largefile.js", + "fileSize": 20971521, + "maxFileSize": 4194304 + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "d0d8dad6731288ecaafd815d288fca9793f4a55553e712b664ec18e525950982", - "fileStats": { - "js": 2, - "jsSize": 10, - "jsx": 0, - "jsxSize": 0, - "ts": 0, - "tsSize": 0, - "tsx": 0, - "tsxSize": 0, - "dts": 0, - "dtsSize": 0, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": { - "allowJs": true, - "maxNodeModuleJsDepth": 2, - "allowSyntheticDefaultImports": true, - "skipLibCheck": true, - "noEmit": true - }, - "typeAcquisition": { - "enable": true, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "jsconfig.json", - "projectType": "configured", - "languageServiceEnabled": false, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "d0d8dad6731288ecaafd815d288fca9793f4a55553e712b664ec18e525950982", + "fileStats": { + "js": 2, + "jsSize": 10, + "jsx": 0, + "jsxSize": 0, + "ts": 0, + "tsSize": 0, + "tsx": 0, + "tsxSize": 0, + "dts": 0, + "dtsSize": 0, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true + }, + "typeAcquisition": { + "enable": true, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "jsconfig.json", + "projectType": "configured", + "languageServiceEnabled": false, + "version": "FakeVersion" + } } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/a/app.js", - "configFile": "/a/jsconfig.json", - "diagnostics": [ - { - "text": "File '/a/lib/lib.d.ts' not found.\n The file is in the program because:\n Default library for target 'es5'", - "code": 6053, - "category": "error" - }, - { - "text": "Cannot find global type 'Array'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Boolean'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Function'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'IArguments'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Number'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Object'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'RegExp'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'String'.", - "code": 2318, - "category": "error" - } - ] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/a/app.js", + "configFile": "/a/jsconfig.json", + "diagnostics": [ + { + "text": "File '/a/lib/lib.d.ts' not found.\n The file is in the program because:\n Default library for target 'es5'", + "code": 6053, + "category": "error" + }, + { + "text": "Cannot find global type 'Array'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Boolean'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Function'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'IArguments'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Number'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Object'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'RegExp'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'String'.", + "code": 2318, + "category": "error" + } + ] + } } Info seq [hh:mm:ss:mss] Project '/a/jsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (1) @@ -236,13 +236,13 @@ Info seq [hh:mm:ss:mss] Running: /a/jsconfig.json Info seq [hh:mm:ss:mss] Reloading configured project /a/jsconfig.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/a/jsconfig.json", - "reason": "Change in config file detected" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/a/jsconfig.json", + "reason": "Change in config file detected" + } } Info seq [hh:mm:ss:mss] Config: /a/jsconfig.json : { "rootNames": [ @@ -259,13 +259,13 @@ Info seq [hh:mm:ss:mss] Config: /a/jsconfig.json : { } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLanguageServiceState", - "body": { - "projectName": "/a/jsconfig.json", - "languageServiceEnabled": true - } + "seq": 0, + "type": "event", + "event": "projectLanguageServiceState", + "body": { + "projectName": "/a/jsconfig.json", + "languageServiceEnabled": true + } } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /a 1 undefined Config: /a/jsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a 1 undefined Config: /a/jsconfig.json WatchType: Wild card directory @@ -296,10 +296,10 @@ FsWatchesRecursive:: /a: *new* {} -TI:: [hh:mm:ss:mss] Global cache location '/a/data/', safe file path '/safeList.json', types map path /typesMap.json -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Global cache location '/a/data', safe file path '/safeList.json', types map path /typesMap.json +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Trying to find '/a/data/package.json'... -TI:: [hh:mm:ss:mss] Finished processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Finished processing cache location '/a/data' TI:: [hh:mm:ss:mss] Npm config file: /a/data/package.json TI:: [hh:mm:ss:mss] Npm config file: '/a/data/package.json' is missing, creating new one... Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /a/data :: WatchInfo: /a 1 undefined Config: /a/jsconfig.json WatchType: Wild card directory @@ -351,91 +351,146 @@ FsWatchesRecursive:: /a: {} -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/a/jsconfig.json","fileNames":["/a/app.js"],"compilerOptions":{"allowJs":true,"maxNodeModuleJsDepth":2,"allowSyntheticDefaultImports":true,"skipLibCheck":true,"noEmit":true,"configFilePath":"/a/jsconfig.json","allowNonTsExtensions":true},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"projectRootPath":"/a","cachePath":"/a/data/","kind":"discover"} -TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data/', loading cached information... -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/a/jsconfig.json", + "fileNames": [ + "/a/app.js" + ], + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "configFilePath": "/a/jsconfig.json", + "allowNonTsExtensions": true + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "projectRootPath": "/a", + "cachePath": "/a/data", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/typesMap.json' TI:: [hh:mm:ss:mss] Explicitly included types: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/a/bower_components","/a/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/a/bower_components","/a/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/a/bower_components", + "/a/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/a/jsconfig.json","files":["/a/bower_components","/a/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "/a/jsconfig.json", + "files": [ + "/a/bower_components", + "/a/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /a/bower_components 1 undefined Project: /a/jsconfig.json WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a/bower_components 1 undefined Project: /a/jsconfig.json WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /a/node_modules 1 undefined Project: /a/jsconfig.json WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a/node_modules 1 undefined Project: /a/jsconfig.json WatchType: Directory location for typing installer TI:: [hh:mm:ss:mss] Sending response: - {"projectName":"/a/jsconfig.json","typeAcquisition":{"enable":true,"include":[],"exclude":[]},"compilerOptions":{"allowJs":true,"maxNodeModuleJsDepth":2,"allowSyntheticDefaultImports":true,"skipLibCheck":true,"noEmit":true,"configFilePath":"/a/jsconfig.json","allowNonTsExtensions":true},"typings":[],"kind":"action::set"} + { + "projectName": "/a/jsconfig.json", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "configFilePath": "/a/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": "/a/jsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/a/jsconfig.json" + } } Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /a/jsconfig.json Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /a/jsconfig.json Version: 3 structureChanged: false structureIsReused:: Completely Elapsed:: *ms Info seq [hh:mm:ss:mss] Same program as before Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/a/jsconfig.json", - "configFile": "/a/jsconfig.json", - "diagnostics": [ - { - "text": "File '/a/lib/lib.d.ts' not found.\n The file is in the program because:\n Default library for target 'es5'", - "code": 6053, - "category": "error" - }, - { - "text": "Cannot find global type 'Array'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Boolean'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Function'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'IArguments'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Number'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Object'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'RegExp'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'String'.", - "code": 2318, - "category": "error" - } - ] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/a/jsconfig.json", + "configFile": "/a/jsconfig.json", + "diagnostics": [ + { + "text": "File '/a/lib/lib.d.ts' not found.\n The file is in the program because:\n Default library for target 'es5'", + "code": 6053, + "category": "error" + }, + { + "text": "Cannot find global type 'Array'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Boolean'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Function'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'IArguments'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Number'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Object'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'RegExp'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'String'.", + "code": 2318, + "category": "error" + } + ] + } } After running Timeout callback:: count: 2 7: /a/jsconfig.json diff --git a/tests/baselines/reference/tsserver/events/projectLoading/change-is-detected-in-an-extended-config-file-when-using-default-event-handler.js b/tests/baselines/reference/tsserver/events/projectLoading/change-is-detected-in-an-extended-config-file-when-using-default-event-handler.js index b8c1bb2dd128b..802263353f461 100644 --- a/tests/baselines/reference/tsserver/events/projectLoading/change-is-detected-in-an-extended-config-file-when-using-default-event-handler.js +++ b/tests/baselines/reference/tsserver/events/projectLoading/change-is-detected-in-an-extended-config-file-when-using-default-event-handler.js @@ -42,13 +42,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/b/tsconfig.json 2000 undefined Project: /user/username/projects/b/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/b/tsconfig.json", - "reason": "Creating possible configured project for /user/username/projects/b/b.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/b/tsconfig.json", + "reason": "Creating possible configured project for /user/username/projects/b/b.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/b/tsconfig.json : { "rootNames": [ @@ -82,64 +82,64 @@ Info seq [hh:mm:ss:mss] Files (2) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/b/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/b/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "20501ec57de369fa110ede8c3db8fe97460676d82a7b594783e32439eba20158", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 17, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": {}, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": true, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "20501ec57de369fa110ede8c3db8fe97460676d82a7b594783e32439eba20158", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 17, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": {}, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": true, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/b/b.ts", - "configFile": "/user/username/projects/b/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/b/b.ts", + "configFile": "/user/username/projects/b/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Project '/user/username/projects/b/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (2) @@ -185,13 +185,13 @@ Info seq [hh:mm:ss:mss] Running: /user/username/projects/b/tsconfig.json Info seq [hh:mm:ss:mss] Reloading configured project /user/username/projects/b/tsconfig.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/b/tsconfig.json", - "reason": "Change in extended config file /user/username/projects/a/tsconfig.json detected" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/b/tsconfig.json", + "reason": "Change in extended config file /user/username/projects/a/tsconfig.json detected" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/b/tsconfig.json : { "rootNames": [ @@ -206,23 +206,23 @@ Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /user/username/pr Info seq [hh:mm:ss:mss] Same program as before Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/b/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/b/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/b/tsconfig.json", - "configFile": "/user/username/projects/b/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/b/tsconfig.json", + "configFile": "/user/username/projects/b/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Running: *ensureProjectForOpenFiles* Info seq [hh:mm:ss:mss] Before ensureProjectForOpenFiles: @@ -244,14 +244,14 @@ Info seq [hh:mm:ss:mss] Projects: /user/username/projects/b/tsconfig.json Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for /user/username/projects/b/b.ts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/user/username/projects/b/b.ts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/user/username/projects/b/b.ts" + ] + } } After running Timeout callback:: count: 1 3: checkOne diff --git a/tests/baselines/reference/tsserver/events/projectLoading/change-is-detected-in-an-extended-config-file-when-using-event-handler.js b/tests/baselines/reference/tsserver/events/projectLoading/change-is-detected-in-an-extended-config-file-when-using-event-handler.js index 91edd0f3fbb14..1ee06fd7da635 100644 --- a/tests/baselines/reference/tsserver/events/projectLoading/change-is-detected-in-an-extended-config-file-when-using-event-handler.js +++ b/tests/baselines/reference/tsserver/events/projectLoading/change-is-detected-in-an-extended-config-file-when-using-event-handler.js @@ -42,13 +42,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/b/tsconfig.json 2000 undefined Project: /user/username/projects/b/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectLoadingStart", - "body": { - "project": "/user/username/projects/b/tsconfig.json", - "reason": "Creating possible configured project for /user/username/projects/b/b.ts to open" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectLoadingStart", + "body": { + "project": "/user/username/projects/b/tsconfig.json", + "reason": "Creating possible configured project for /user/username/projects/b/b.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/b/tsconfig.json : { "rootNames": [ @@ -82,61 +82,61 @@ Info seq [hh:mm:ss:mss] Files (2) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectLoadingFinish", - "body": { - "project": "/user/username/projects/b/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectLoadingFinish", + "body": { + "project": "/user/username/projects/b/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectInfo", - "body": { - "projectId": "20501ec57de369fa110ede8c3db8fe97460676d82a7b594783e32439eba20158", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 17, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": {}, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": true, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectInfo", + "body": { + "projectId": "20501ec57de369fa110ede8c3db8fe97460676d82a7b594783e32439eba20158", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 17, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": {}, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": true, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::configFileDiag", - "body": { - "configFileName": "/user/username/projects/b/tsconfig.json", - "diagnostics": [], - "triggerFile": "/user/username/projects/b/b.ts" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::configFileDiag", + "body": { + "configFileName": "/user/username/projects/b/tsconfig.json", + "diagnostics": [], + "triggerFile": "/user/username/projects/b/b.ts" + } } Info seq [hh:mm:ss:mss] Project '/user/username/projects/b/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (2) @@ -182,13 +182,13 @@ Info seq [hh:mm:ss:mss] Running: /user/username/projects/b/tsconfig.json Info seq [hh:mm:ss:mss] Reloading configured project /user/username/projects/b/tsconfig.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectLoadingStart", - "body": { - "project": "/user/username/projects/b/tsconfig.json", - "reason": "Change in extended config file /user/username/projects/a/tsconfig.json detected" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectLoadingStart", + "body": { + "project": "/user/username/projects/b/tsconfig.json", + "reason": "Change in extended config file /user/username/projects/a/tsconfig.json detected" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/b/tsconfig.json : { "rootNames": [ @@ -203,23 +203,23 @@ Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /user/username/pr Info seq [hh:mm:ss:mss] Same program as before Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectLoadingFinish", - "body": { - "project": "/user/username/projects/b/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectLoadingFinish", + "body": { + "project": "/user/username/projects/b/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::configFileDiag", - "body": { - "configFileName": "/user/username/projects/b/tsconfig.json", - "diagnostics": [], - "triggerFile": "/user/username/projects/b/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::configFileDiag", + "body": { + "configFileName": "/user/username/projects/b/tsconfig.json", + "diagnostics": [], + "triggerFile": "/user/username/projects/b/tsconfig.json" + } } Info seq [hh:mm:ss:mss] Running: *ensureProjectForOpenFiles* Info seq [hh:mm:ss:mss] Before ensureProjectForOpenFiles: @@ -240,13 +240,13 @@ Info seq [hh:mm:ss:mss] FileName: /user/username/projects/b/b.ts ProjectRootPa Info seq [hh:mm:ss:mss] Projects: /user/username/projects/b/tsconfig.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/user/username/projects/b/b.ts" - ] - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/user/username/projects/b/b.ts" + ] + } } After running Timeout callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/events/projectLoading/change-is-detected-in-the-config-file-when-using-default-event-handler.js b/tests/baselines/reference/tsserver/events/projectLoading/change-is-detected-in-the-config-file-when-using-default-event-handler.js index f9108f1beca99..398326cc94943 100644 --- a/tests/baselines/reference/tsserver/events/projectLoading/change-is-detected-in-the-config-file-when-using-default-event-handler.js +++ b/tests/baselines/reference/tsserver/events/projectLoading/change-is-detected-in-the-config-file-when-using-default-event-handler.js @@ -36,13 +36,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/a/tsconfig.json 2000 undefined Project: /user/username/projects/a/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/a/tsconfig.json", - "reason": "Creating possible configured project for /user/username/projects/a/a.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/a/tsconfig.json", + "reason": "Creating possible configured project for /user/username/projects/a/a.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/a/tsconfig.json : { "rootNames": [ @@ -75,64 +75,64 @@ Info seq [hh:mm:ss:mss] Files (2) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/a/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/a/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "20a91f8dffe761e39e0ada0a62a3058faad15d4a8c135539aaccd61bb5497dea", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 18, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": {}, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "20a91f8dffe761e39e0ada0a62a3058faad15d4a8c135539aaccd61bb5497dea", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 18, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": {}, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/a/a.ts", - "configFile": "/user/username/projects/a/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/a/a.ts", + "configFile": "/user/username/projects/a/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Project '/user/username/projects/a/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (2) @@ -176,13 +176,13 @@ Info seq [hh:mm:ss:mss] Running: /user/username/projects/a/tsconfig.json Info seq [hh:mm:ss:mss] Reloading configured project /user/username/projects/a/tsconfig.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/a/tsconfig.json", - "reason": "Change in config file detected" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/a/tsconfig.json", + "reason": "Change in config file detected" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/a/tsconfig.json : { "rootNames": [ @@ -197,23 +197,23 @@ Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /user/username/pr Info seq [hh:mm:ss:mss] Same program as before Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/a/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/a/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/a/tsconfig.json", - "configFile": "/user/username/projects/a/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/a/tsconfig.json", + "configFile": "/user/username/projects/a/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Running: *ensureProjectForOpenFiles* Info seq [hh:mm:ss:mss] Before ensureProjectForOpenFiles: @@ -235,14 +235,14 @@ Info seq [hh:mm:ss:mss] Projects: /user/username/projects/a/tsconfig.json Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for /user/username/projects/a/a.ts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/user/username/projects/a/a.ts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/user/username/projects/a/a.ts" + ] + } } After running Timeout callback:: count: 1 3: checkOne diff --git a/tests/baselines/reference/tsserver/events/projectLoading/change-is-detected-in-the-config-file-when-using-event-handler.js b/tests/baselines/reference/tsserver/events/projectLoading/change-is-detected-in-the-config-file-when-using-event-handler.js index 11ce13c71170f..1ece0cc55b4b3 100644 --- a/tests/baselines/reference/tsserver/events/projectLoading/change-is-detected-in-the-config-file-when-using-event-handler.js +++ b/tests/baselines/reference/tsserver/events/projectLoading/change-is-detected-in-the-config-file-when-using-event-handler.js @@ -36,13 +36,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/a/tsconfig.json 2000 undefined Project: /user/username/projects/a/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectLoadingStart", - "body": { - "project": "/user/username/projects/a/tsconfig.json", - "reason": "Creating possible configured project for /user/username/projects/a/a.ts to open" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectLoadingStart", + "body": { + "project": "/user/username/projects/a/tsconfig.json", + "reason": "Creating possible configured project for /user/username/projects/a/a.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/a/tsconfig.json : { "rootNames": [ @@ -75,61 +75,61 @@ Info seq [hh:mm:ss:mss] Files (2) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectLoadingFinish", - "body": { - "project": "/user/username/projects/a/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectLoadingFinish", + "body": { + "project": "/user/username/projects/a/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectInfo", - "body": { - "projectId": "20a91f8dffe761e39e0ada0a62a3058faad15d4a8c135539aaccd61bb5497dea", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 18, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": {}, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectInfo", + "body": { + "projectId": "20a91f8dffe761e39e0ada0a62a3058faad15d4a8c135539aaccd61bb5497dea", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 18, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": {}, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::configFileDiag", - "body": { - "configFileName": "/user/username/projects/a/tsconfig.json", - "diagnostics": [], - "triggerFile": "/user/username/projects/a/a.ts" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::configFileDiag", + "body": { + "configFileName": "/user/username/projects/a/tsconfig.json", + "diagnostics": [], + "triggerFile": "/user/username/projects/a/a.ts" + } } Info seq [hh:mm:ss:mss] Project '/user/username/projects/a/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (2) @@ -173,13 +173,13 @@ Info seq [hh:mm:ss:mss] Running: /user/username/projects/a/tsconfig.json Info seq [hh:mm:ss:mss] Reloading configured project /user/username/projects/a/tsconfig.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectLoadingStart", - "body": { - "project": "/user/username/projects/a/tsconfig.json", - "reason": "Change in config file detected" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectLoadingStart", + "body": { + "project": "/user/username/projects/a/tsconfig.json", + "reason": "Change in config file detected" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/a/tsconfig.json : { "rootNames": [ @@ -194,23 +194,23 @@ Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /user/username/pr Info seq [hh:mm:ss:mss] Same program as before Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectLoadingFinish", - "body": { - "project": "/user/username/projects/a/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectLoadingFinish", + "body": { + "project": "/user/username/projects/a/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::configFileDiag", - "body": { - "configFileName": "/user/username/projects/a/tsconfig.json", - "diagnostics": [], - "triggerFile": "/user/username/projects/a/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::configFileDiag", + "body": { + "configFileName": "/user/username/projects/a/tsconfig.json", + "diagnostics": [], + "triggerFile": "/user/username/projects/a/tsconfig.json" + } } Info seq [hh:mm:ss:mss] Running: *ensureProjectForOpenFiles* Info seq [hh:mm:ss:mss] Before ensureProjectForOpenFiles: @@ -231,13 +231,13 @@ Info seq [hh:mm:ss:mss] FileName: /user/username/projects/a/a.ts ProjectRootPa Info seq [hh:mm:ss:mss] Projects: /user/username/projects/a/tsconfig.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/user/username/projects/a/a.ts" - ] - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/user/username/projects/a/a.ts" + ] + } } After running Timeout callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/events/projectLoading/lazyConfiguredProjectsFromExternalProject-is-disabled-when-using-default-event-handler.js b/tests/baselines/reference/tsserver/events/projectLoading/lazyConfiguredProjectsFromExternalProject-is-disabled-when-using-default-event-handler.js index 435f85db5dff1..de9c7e9104325 100644 --- a/tests/baselines/reference/tsserver/events/projectLoading/lazyConfiguredProjectsFromExternalProject-is-disabled-when-using-default-event-handler.js +++ b/tests/baselines/reference/tsserver/events/projectLoading/lazyConfiguredProjectsFromExternalProject-is-disabled-when-using-default-event-handler.js @@ -34,11 +34,11 @@ Info seq [hh:mm:ss:mss] request: } Info seq [hh:mm:ss:mss] response: { - "seq": 0, - "type": "response", - "command": "configure", - "request_seq": 1, - "success": true + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 1, + "success": true } Info seq [hh:mm:ss:mss] response: { @@ -95,13 +95,13 @@ Info seq [hh:mm:ss:mss] request: Info seq [hh:mm:ss:mss] Loading configured project /user/username/projects/a/tsconfig.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/a/tsconfig.json", - "reason": "Creating configured project in external project: /user/username/projects/a/project.csproj" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/a/tsconfig.json", + "reason": "Creating configured project in external project: /user/username/projects/a/project.csproj" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/a/tsconfig.json : { "rootNames": [ @@ -135,75 +135,75 @@ Info seq [hh:mm:ss:mss] Files (2) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/a/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/a/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "20a91f8dffe761e39e0ada0a62a3058faad15d4a8c135539aaccd61bb5497dea", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 18, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": {}, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "20a91f8dffe761e39e0ada0a62a3058faad15d4a8c135539aaccd61bb5497dea", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 18, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": {}, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/a/tsconfig.json", - "configFile": "/user/username/projects/a/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/a/tsconfig.json", + "configFile": "/user/username/projects/a/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] response: { - "seq": 0, - "type": "response", - "command": "configure", - "request_seq": 3, - "success": true, - "performanceData": { - "updateGraphDurationMs": * - } + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 3, + "success": true, + "performanceData": { + "updateGraphDurationMs": * + } } Info seq [hh:mm:ss:mss] response: { diff --git a/tests/baselines/reference/tsserver/events/projectLoading/lazyConfiguredProjectsFromExternalProject-is-disabled-when-using-event-handler.js b/tests/baselines/reference/tsserver/events/projectLoading/lazyConfiguredProjectsFromExternalProject-is-disabled-when-using-event-handler.js index 52e2b51250371..c9bab6ba6d64d 100644 --- a/tests/baselines/reference/tsserver/events/projectLoading/lazyConfiguredProjectsFromExternalProject-is-disabled-when-using-event-handler.js +++ b/tests/baselines/reference/tsserver/events/projectLoading/lazyConfiguredProjectsFromExternalProject-is-disabled-when-using-event-handler.js @@ -34,11 +34,11 @@ Info seq [hh:mm:ss:mss] request: } Info seq [hh:mm:ss:mss] response: { - "seq": 0, - "type": "response", - "command": "configure", - "request_seq": 1, - "success": true + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 1, + "success": true } Info seq [hh:mm:ss:mss] response: { @@ -95,13 +95,13 @@ Info seq [hh:mm:ss:mss] request: Info seq [hh:mm:ss:mss] Loading configured project /user/username/projects/a/tsconfig.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectLoadingStart", - "body": { - "project": "/user/username/projects/a/tsconfig.json", - "reason": "Creating configured project in external project: /user/username/projects/a/project.csproj" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectLoadingStart", + "body": { + "project": "/user/username/projects/a/tsconfig.json", + "reason": "Creating configured project in external project: /user/username/projects/a/project.csproj" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/a/tsconfig.json : { "rootNames": [ @@ -135,72 +135,72 @@ Info seq [hh:mm:ss:mss] Files (2) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectLoadingFinish", - "body": { - "project": "/user/username/projects/a/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectLoadingFinish", + "body": { + "project": "/user/username/projects/a/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectInfo", - "body": { - "projectId": "20a91f8dffe761e39e0ada0a62a3058faad15d4a8c135539aaccd61bb5497dea", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 18, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": {}, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectInfo", + "body": { + "projectId": "20a91f8dffe761e39e0ada0a62a3058faad15d4a8c135539aaccd61bb5497dea", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 18, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": {}, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::configFileDiag", - "body": { - "configFileName": "/user/username/projects/a/tsconfig.json", - "diagnostics": [], - "triggerFile": "/user/username/projects/a/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::configFileDiag", + "body": { + "configFileName": "/user/username/projects/a/tsconfig.json", + "diagnostics": [], + "triggerFile": "/user/username/projects/a/tsconfig.json" + } } Info seq [hh:mm:ss:mss] response: { - "seq": 0, - "type": "response", - "command": "configure", - "request_seq": 3, - "success": true, - "performanceData": { - "updateGraphDurationMs": * - } + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 3, + "success": true, + "performanceData": { + "updateGraphDurationMs": * + } } Info seq [hh:mm:ss:mss] response: { diff --git a/tests/baselines/reference/tsserver/events/projectLoading/lazyConfiguredProjectsFromExternalProject-is-false-when-using-default-event-handler.js b/tests/baselines/reference/tsserver/events/projectLoading/lazyConfiguredProjectsFromExternalProject-is-false-when-using-default-event-handler.js index 8b1a90801f619..68f67ccae4da8 100644 --- a/tests/baselines/reference/tsserver/events/projectLoading/lazyConfiguredProjectsFromExternalProject-is-false-when-using-default-event-handler.js +++ b/tests/baselines/reference/tsserver/events/projectLoading/lazyConfiguredProjectsFromExternalProject-is-false-when-using-default-event-handler.js @@ -34,11 +34,11 @@ Info seq [hh:mm:ss:mss] request: } Info seq [hh:mm:ss:mss] response: { - "seq": 0, - "type": "response", - "command": "configure", - "request_seq": 1, - "success": true + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 1, + "success": true } Info seq [hh:mm:ss:mss] response: { @@ -70,13 +70,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/a/tsconfig.json 2000 undefined Project: /user/username/projects/a/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/a/tsconfig.json", - "reason": "Creating configured project in external project: /user/username/projects/a/project.csproj" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/a/tsconfig.json", + "reason": "Creating configured project in external project: /user/username/projects/a/project.csproj" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/a/tsconfig.json : { "rootNames": [ @@ -110,53 +110,53 @@ Info seq [hh:mm:ss:mss] Files (2) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/a/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/a/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "20a91f8dffe761e39e0ada0a62a3058faad15d4a8c135539aaccd61bb5497dea", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 18, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": {}, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "20a91f8dffe761e39e0ada0a62a3058faad15d4a8c135539aaccd61bb5497dea", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 18, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": {}, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } - } } Info seq [hh:mm:ss:mss] response: { diff --git a/tests/baselines/reference/tsserver/events/projectLoading/lazyConfiguredProjectsFromExternalProject-is-false-when-using-event-handler.js b/tests/baselines/reference/tsserver/events/projectLoading/lazyConfiguredProjectsFromExternalProject-is-false-when-using-event-handler.js index 9b33c1956370a..c55c44ee75903 100644 --- a/tests/baselines/reference/tsserver/events/projectLoading/lazyConfiguredProjectsFromExternalProject-is-false-when-using-event-handler.js +++ b/tests/baselines/reference/tsserver/events/projectLoading/lazyConfiguredProjectsFromExternalProject-is-false-when-using-event-handler.js @@ -34,11 +34,11 @@ Info seq [hh:mm:ss:mss] request: } Info seq [hh:mm:ss:mss] response: { - "seq": 0, - "type": "response", - "command": "configure", - "request_seq": 1, - "success": true + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 1, + "success": true } Info seq [hh:mm:ss:mss] response: { @@ -70,13 +70,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/a/tsconfig.json 2000 undefined Project: /user/username/projects/a/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectLoadingStart", - "body": { - "project": "/user/username/projects/a/tsconfig.json", - "reason": "Creating configured project in external project: /user/username/projects/a/project.csproj" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectLoadingStart", + "body": { + "project": "/user/username/projects/a/tsconfig.json", + "reason": "Creating configured project in external project: /user/username/projects/a/project.csproj" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/a/tsconfig.json : { "rootNames": [ @@ -110,50 +110,50 @@ Info seq [hh:mm:ss:mss] Files (2) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectLoadingFinish", - "body": { - "project": "/user/username/projects/a/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectLoadingFinish", + "body": { + "project": "/user/username/projects/a/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectInfo", - "body": { - "projectId": "20a91f8dffe761e39e0ada0a62a3058faad15d4a8c135539aaccd61bb5497dea", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 18, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": {}, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectInfo", + "body": { + "projectId": "20a91f8dffe761e39e0ada0a62a3058faad15d4a8c135539aaccd61bb5497dea", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 18, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": {}, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } Info seq [hh:mm:ss:mss] response: { diff --git a/tests/baselines/reference/tsserver/events/projectLoading/lazyConfiguredProjectsFromExternalProject-is-true-and-file-is-opened-when-using-default-event-handler.js b/tests/baselines/reference/tsserver/events/projectLoading/lazyConfiguredProjectsFromExternalProject-is-true-and-file-is-opened-when-using-default-event-handler.js index c6b96c3eaf2a0..a82831f8d6208 100644 --- a/tests/baselines/reference/tsserver/events/projectLoading/lazyConfiguredProjectsFromExternalProject-is-true-and-file-is-opened-when-using-default-event-handler.js +++ b/tests/baselines/reference/tsserver/events/projectLoading/lazyConfiguredProjectsFromExternalProject-is-true-and-file-is-opened-when-using-default-event-handler.js @@ -34,11 +34,11 @@ Info seq [hh:mm:ss:mss] request: } Info seq [hh:mm:ss:mss] response: { - "seq": 0, - "type": "response", - "command": "configure", - "request_seq": 1, - "success": true + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 1, + "success": true } Info seq [hh:mm:ss:mss] response: { @@ -95,13 +95,13 @@ Info seq [hh:mm:ss:mss] For info: /user/username/projects/a/a.ts :: Config file Info seq [hh:mm:ss:mss] Loading configured project /user/username/projects/a/tsconfig.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/a/tsconfig.json", - "reason": "Creating configured project in external project: /user/username/projects/a/project.csproj" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/a/tsconfig.json", + "reason": "Creating configured project in external project: /user/username/projects/a/project.csproj" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/a/tsconfig.json : { "rootNames": [ @@ -134,64 +134,64 @@ Info seq [hh:mm:ss:mss] Files (2) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/a/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/a/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "20a91f8dffe761e39e0ada0a62a3058faad15d4a8c135539aaccd61bb5497dea", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 18, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": {}, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "20a91f8dffe761e39e0ada0a62a3058faad15d4a8c135539aaccd61bb5497dea", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 18, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": {}, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/a/tsconfig.json", - "configFile": "/user/username/projects/a/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/a/tsconfig.json", + "configFile": "/user/username/projects/a/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Project '/user/username/projects/a/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (2) diff --git a/tests/baselines/reference/tsserver/events/projectLoading/lazyConfiguredProjectsFromExternalProject-is-true-and-file-is-opened-when-using-event-handler.js b/tests/baselines/reference/tsserver/events/projectLoading/lazyConfiguredProjectsFromExternalProject-is-true-and-file-is-opened-when-using-event-handler.js index 673b7c6b66fd5..0e256d336eb40 100644 --- a/tests/baselines/reference/tsserver/events/projectLoading/lazyConfiguredProjectsFromExternalProject-is-true-and-file-is-opened-when-using-event-handler.js +++ b/tests/baselines/reference/tsserver/events/projectLoading/lazyConfiguredProjectsFromExternalProject-is-true-and-file-is-opened-when-using-event-handler.js @@ -34,11 +34,11 @@ Info seq [hh:mm:ss:mss] request: } Info seq [hh:mm:ss:mss] response: { - "seq": 0, - "type": "response", - "command": "configure", - "request_seq": 1, - "success": true + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 1, + "success": true } Info seq [hh:mm:ss:mss] response: { @@ -95,13 +95,13 @@ Info seq [hh:mm:ss:mss] For info: /user/username/projects/a/a.ts :: Config file Info seq [hh:mm:ss:mss] Loading configured project /user/username/projects/a/tsconfig.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectLoadingStart", - "body": { - "project": "/user/username/projects/a/tsconfig.json", - "reason": "Creating configured project in external project: /user/username/projects/a/project.csproj" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectLoadingStart", + "body": { + "project": "/user/username/projects/a/tsconfig.json", + "reason": "Creating configured project in external project: /user/username/projects/a/project.csproj" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/a/tsconfig.json : { "rootNames": [ @@ -134,61 +134,61 @@ Info seq [hh:mm:ss:mss] Files (2) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectLoadingFinish", - "body": { - "project": "/user/username/projects/a/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectLoadingFinish", + "body": { + "project": "/user/username/projects/a/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectInfo", - "body": { - "projectId": "20a91f8dffe761e39e0ada0a62a3058faad15d4a8c135539aaccd61bb5497dea", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 18, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": {}, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectInfo", + "body": { + "projectId": "20a91f8dffe761e39e0ada0a62a3058faad15d4a8c135539aaccd61bb5497dea", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 18, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": {}, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::configFileDiag", - "body": { - "configFileName": "/user/username/projects/a/tsconfig.json", - "diagnostics": [], - "triggerFile": "/user/username/projects/a/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::configFileDiag", + "body": { + "configFileName": "/user/username/projects/a/tsconfig.json", + "diagnostics": [], + "triggerFile": "/user/username/projects/a/tsconfig.json" + } } Info seq [hh:mm:ss:mss] Project '/user/username/projects/a/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (2) diff --git a/tests/baselines/reference/tsserver/events/projectLoading/opening-original-location-project-disableSourceOfProjectReferenceRedirect-when-using-default-event-handler.js b/tests/baselines/reference/tsserver/events/projectLoading/opening-original-location-project-disableSourceOfProjectReferenceRedirect-when-using-default-event-handler.js index d89ef6e45e462..e9281fa8cdf45 100644 --- a/tests/baselines/reference/tsserver/events/projectLoading/opening-original-location-project-disableSourceOfProjectReferenceRedirect-when-using-default-event-handler.js +++ b/tests/baselines/reference/tsserver/events/projectLoading/opening-original-location-project-disableSourceOfProjectReferenceRedirect-when-using-default-event-handler.js @@ -51,13 +51,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/b/tsconfig.json 2000 undefined Project: /user/username/projects/b/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/b/tsconfig.json", - "reason": "Creating possible configured project for /user/username/projects/b/b.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/b/tsconfig.json", + "reason": "Creating possible configured project for /user/username/projects/b/b.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/b/tsconfig.json : { "rootNames": [ @@ -113,81 +113,81 @@ Info seq [hh:mm:ss:mss] Files (3) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/b/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/b/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "20501ec57de369fa110ede8c3db8fe97460676d82a7b594783e32439eba20158", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 34, - "tsx": 0, - "tsxSize": 0, - "dts": 2, - "dtsSize": 393, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": { - "disableSourceOfProjectReferenceRedirect": true - }, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "20501ec57de369fa110ede8c3db8fe97460676d82a7b594783e32439eba20158", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 34, + "tsx": 0, + "tsxSize": 0, + "dts": 2, + "dtsSize": 393, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "disableSourceOfProjectReferenceRedirect": true + }, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/b/b.ts", - "configFile": "/user/username/projects/b/tsconfig.json", - "diagnostics": [ - { - "start": { - "line": 1, - "offset": 83 - }, - "end": { - "line": 1, - "offset": 98 - }, - "text": "Referenced project '/user/username/projects/a' must have setting \"composite\": true.", - "code": 6306, - "category": "error", - "fileName": "/user/username/projects/b/tsconfig.json" - } - ] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/b/b.ts", + "configFile": "/user/username/projects/b/tsconfig.json", + "diagnostics": [ + { + "start": { + "line": 1, + "offset": 83 + }, + "end": { + "line": 1, + "offset": 98 + }, + "text": "Referenced project '/user/username/projects/a' must have setting \"composite\": true.", + "code": 6306, + "category": "error", + "fileName": "/user/username/projects/b/tsconfig.json" + } + ] + } } Info seq [hh:mm:ss:mss] Project '/user/username/projects/b/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (3) @@ -245,13 +245,13 @@ Info seq [hh:mm:ss:mss] For info: /user/username/projects/a/a.ts :: Config file Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/a/tsconfig.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/a/tsconfig.json", - "reason": "Creating project for original file: /user/username/projects/a/a.ts for location: /user/username/projects/a/a.d.ts" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/a/tsconfig.json", + "reason": "Creating project for original file: /user/username/projects/a/a.ts for location: /user/username/projects/a/a.d.ts" + } } Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/a/tsconfig.json Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/a/node_modules/@types 1 undefined Project: /user/username/projects/a/tsconfig.json WatchType: Type roots @@ -273,53 +273,53 @@ Info seq [hh:mm:ss:mss] Files (2) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/a/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/a/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "20a91f8dffe761e39e0ada0a62a3058faad15d4a8c135539aaccd61bb5497dea", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 18, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": {}, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "20a91f8dffe761e39e0ada0a62a3058faad15d4a8c135539aaccd61bb5497dea", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 18, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": {}, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } - } } Info seq [hh:mm:ss:mss] Search path: /user/username/projects/a Info seq [hh:mm:ss:mss] For info: /user/username/projects/a/a.ts :: Config file name: /user/username/projects/a/tsconfig.json diff --git a/tests/baselines/reference/tsserver/events/projectLoading/opening-original-location-project-disableSourceOfProjectReferenceRedirect-when-using-event-handler.js b/tests/baselines/reference/tsserver/events/projectLoading/opening-original-location-project-disableSourceOfProjectReferenceRedirect-when-using-event-handler.js index 839a85f06e57d..76d7c12ddcbb2 100644 --- a/tests/baselines/reference/tsserver/events/projectLoading/opening-original-location-project-disableSourceOfProjectReferenceRedirect-when-using-event-handler.js +++ b/tests/baselines/reference/tsserver/events/projectLoading/opening-original-location-project-disableSourceOfProjectReferenceRedirect-when-using-event-handler.js @@ -51,13 +51,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/b/tsconfig.json 2000 undefined Project: /user/username/projects/b/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectLoadingStart", - "body": { - "project": "/user/username/projects/b/tsconfig.json", - "reason": "Creating possible configured project for /user/username/projects/b/b.ts to open" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectLoadingStart", + "body": { + "project": "/user/username/projects/b/tsconfig.json", + "reason": "Creating possible configured project for /user/username/projects/b/b.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/b/tsconfig.json : { "rootNames": [ @@ -113,78 +113,78 @@ Info seq [hh:mm:ss:mss] Files (3) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectLoadingFinish", - "body": { - "project": "/user/username/projects/b/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectLoadingFinish", + "body": { + "project": "/user/username/projects/b/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectInfo", - "body": { - "projectId": "20501ec57de369fa110ede8c3db8fe97460676d82a7b594783e32439eba20158", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 34, - "tsx": 0, - "tsxSize": 0, - "dts": 2, - "dtsSize": 393, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": { - "disableSourceOfProjectReferenceRedirect": true - }, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectInfo", + "body": { + "projectId": "20501ec57de369fa110ede8c3db8fe97460676d82a7b594783e32439eba20158", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 34, + "tsx": 0, + "tsxSize": 0, + "dts": 2, + "dtsSize": 393, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "disableSourceOfProjectReferenceRedirect": true + }, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::configFileDiag", - "body": { - "configFileName": "/user/username/projects/b/tsconfig.json", - "diagnostics": [ - { - "start": { - "line": 1, - "offset": 83 - }, - "end": { - "line": 1, - "offset": 98 - }, - "text": "Referenced project '/user/username/projects/a' must have setting \"composite\": true.", - "code": 6306, - "category": "error", - "fileName": "/user/username/projects/b/tsconfig.json" - } - ], - "triggerFile": "/user/username/projects/b/b.ts" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::configFileDiag", + "body": { + "configFileName": "/user/username/projects/b/tsconfig.json", + "diagnostics": [ + { + "start": { + "line": 1, + "offset": 83 + }, + "end": { + "line": 1, + "offset": 98 + }, + "text": "Referenced project '/user/username/projects/a' must have setting \"composite\": true.", + "code": 6306, + "category": "error", + "fileName": "/user/username/projects/b/tsconfig.json" + } + ], + "triggerFile": "/user/username/projects/b/b.ts" + } } Info seq [hh:mm:ss:mss] Project '/user/username/projects/b/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (3) @@ -242,13 +242,13 @@ Info seq [hh:mm:ss:mss] For info: /user/username/projects/a/a.ts :: Config file Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/a/tsconfig.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectLoadingStart", - "body": { - "project": "/user/username/projects/a/tsconfig.json", - "reason": "Creating project for original file: /user/username/projects/a/a.ts for location: /user/username/projects/a/a.d.ts" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectLoadingStart", + "body": { + "project": "/user/username/projects/a/tsconfig.json", + "reason": "Creating project for original file: /user/username/projects/a/a.ts for location: /user/username/projects/a/a.d.ts" + } } Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/a/tsconfig.json Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/a/node_modules/@types 1 undefined Project: /user/username/projects/a/tsconfig.json WatchType: Type roots @@ -270,50 +270,50 @@ Info seq [hh:mm:ss:mss] Files (2) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectLoadingFinish", - "body": { - "project": "/user/username/projects/a/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectLoadingFinish", + "body": { + "project": "/user/username/projects/a/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectInfo", - "body": { - "projectId": "20a91f8dffe761e39e0ada0a62a3058faad15d4a8c135539aaccd61bb5497dea", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 18, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": {}, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectInfo", + "body": { + "projectId": "20a91f8dffe761e39e0ada0a62a3058faad15d4a8c135539aaccd61bb5497dea", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 18, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": {}, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } Info seq [hh:mm:ss:mss] Search path: /user/username/projects/a Info seq [hh:mm:ss:mss] For info: /user/username/projects/a/a.ts :: Config file name: /user/username/projects/a/tsconfig.json diff --git a/tests/baselines/reference/tsserver/events/projectLoading/opening-original-location-project-when-using-default-event-handler.js b/tests/baselines/reference/tsserver/events/projectLoading/opening-original-location-project-when-using-default-event-handler.js index c9cc12cc0cbeb..0894fbefc8cf8 100644 --- a/tests/baselines/reference/tsserver/events/projectLoading/opening-original-location-project-when-using-default-event-handler.js +++ b/tests/baselines/reference/tsserver/events/projectLoading/opening-original-location-project-when-using-default-event-handler.js @@ -51,13 +51,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/b/tsconfig.json 2000 undefined Project: /user/username/projects/b/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/b/tsconfig.json", - "reason": "Creating possible configured project for /user/username/projects/b/b.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/b/tsconfig.json", + "reason": "Creating possible configured project for /user/username/projects/b/b.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/b/tsconfig.json : { "rootNames": [ @@ -111,79 +111,79 @@ Info seq [hh:mm:ss:mss] Files (3) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/b/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/b/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "20501ec57de369fa110ede8c3db8fe97460676d82a7b594783e32439eba20158", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 2, - "tsSize": 52, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": {}, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "20501ec57de369fa110ede8c3db8fe97460676d82a7b594783e32439eba20158", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 2, + "tsSize": 52, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": {}, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/b/b.ts", - "configFile": "/user/username/projects/b/tsconfig.json", - "diagnostics": [ - { - "start": { - "line": 1, - "offset": 16 - }, - "end": { - "line": 1, - "offset": 31 - }, - "text": "Referenced project '/user/username/projects/a' must have setting \"composite\": true.", - "code": 6306, - "category": "error", - "fileName": "/user/username/projects/b/tsconfig.json" - } - ] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/b/b.ts", + "configFile": "/user/username/projects/b/tsconfig.json", + "diagnostics": [ + { + "start": { + "line": 1, + "offset": 16 + }, + "end": { + "line": 1, + "offset": 31 + }, + "text": "Referenced project '/user/username/projects/a' must have setting \"composite\": true.", + "code": 6306, + "category": "error", + "fileName": "/user/username/projects/b/tsconfig.json" + } + ] + } } Info seq [hh:mm:ss:mss] Project '/user/username/projects/b/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (3) @@ -239,13 +239,13 @@ Info seq [hh:mm:ss:mss] For info: /user/username/projects/a/a.ts :: Config file Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/a/tsconfig.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/a/tsconfig.json", - "reason": "Creating project for original file: /user/username/projects/a/a.ts" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/a/tsconfig.json", + "reason": "Creating project for original file: /user/username/projects/a/a.ts" + } } Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/a/tsconfig.json Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/a/node_modules/@types 1 undefined Project: /user/username/projects/a/tsconfig.json WatchType: Type roots @@ -267,53 +267,53 @@ Info seq [hh:mm:ss:mss] Files (2) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/a/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/a/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "20a91f8dffe761e39e0ada0a62a3058faad15d4a8c135539aaccd61bb5497dea", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 18, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": {}, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "20a91f8dffe761e39e0ada0a62a3058faad15d4a8c135539aaccd61bb5497dea", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 18, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": {}, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } - } } Info seq [hh:mm:ss:mss] Search path: /user/username/projects/a Info seq [hh:mm:ss:mss] For info: /user/username/projects/a/a.ts :: Config file name: /user/username/projects/a/tsconfig.json diff --git a/tests/baselines/reference/tsserver/events/projectLoading/opening-original-location-project-when-using-event-handler.js b/tests/baselines/reference/tsserver/events/projectLoading/opening-original-location-project-when-using-event-handler.js index 8ef0cadaa36e7..95fe594749032 100644 --- a/tests/baselines/reference/tsserver/events/projectLoading/opening-original-location-project-when-using-event-handler.js +++ b/tests/baselines/reference/tsserver/events/projectLoading/opening-original-location-project-when-using-event-handler.js @@ -51,13 +51,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/b/tsconfig.json 2000 undefined Project: /user/username/projects/b/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectLoadingStart", - "body": { - "project": "/user/username/projects/b/tsconfig.json", - "reason": "Creating possible configured project for /user/username/projects/b/b.ts to open" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectLoadingStart", + "body": { + "project": "/user/username/projects/b/tsconfig.json", + "reason": "Creating possible configured project for /user/username/projects/b/b.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/b/tsconfig.json : { "rootNames": [ @@ -111,76 +111,76 @@ Info seq [hh:mm:ss:mss] Files (3) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectLoadingFinish", - "body": { - "project": "/user/username/projects/b/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectLoadingFinish", + "body": { + "project": "/user/username/projects/b/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectInfo", - "body": { - "projectId": "20501ec57de369fa110ede8c3db8fe97460676d82a7b594783e32439eba20158", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 2, - "tsSize": 52, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": {}, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectInfo", + "body": { + "projectId": "20501ec57de369fa110ede8c3db8fe97460676d82a7b594783e32439eba20158", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 2, + "tsSize": 52, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": {}, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::configFileDiag", - "body": { - "configFileName": "/user/username/projects/b/tsconfig.json", - "diagnostics": [ - { - "start": { - "line": 1, - "offset": 16 - }, - "end": { - "line": 1, - "offset": 31 - }, - "text": "Referenced project '/user/username/projects/a' must have setting \"composite\": true.", - "code": 6306, - "category": "error", - "fileName": "/user/username/projects/b/tsconfig.json" - } - ], - "triggerFile": "/user/username/projects/b/b.ts" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::configFileDiag", + "body": { + "configFileName": "/user/username/projects/b/tsconfig.json", + "diagnostics": [ + { + "start": { + "line": 1, + "offset": 16 + }, + "end": { + "line": 1, + "offset": 31 + }, + "text": "Referenced project '/user/username/projects/a' must have setting \"composite\": true.", + "code": 6306, + "category": "error", + "fileName": "/user/username/projects/b/tsconfig.json" + } + ], + "triggerFile": "/user/username/projects/b/b.ts" + } } Info seq [hh:mm:ss:mss] Project '/user/username/projects/b/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (3) @@ -236,13 +236,13 @@ Info seq [hh:mm:ss:mss] For info: /user/username/projects/a/a.ts :: Config file Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/a/tsconfig.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectLoadingStart", - "body": { - "project": "/user/username/projects/a/tsconfig.json", - "reason": "Creating project for original file: /user/username/projects/a/a.ts" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectLoadingStart", + "body": { + "project": "/user/username/projects/a/tsconfig.json", + "reason": "Creating project for original file: /user/username/projects/a/a.ts" + } } Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/a/tsconfig.json Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/a/node_modules/@types 1 undefined Project: /user/username/projects/a/tsconfig.json WatchType: Type roots @@ -264,50 +264,50 @@ Info seq [hh:mm:ss:mss] Files (2) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectLoadingFinish", - "body": { - "project": "/user/username/projects/a/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectLoadingFinish", + "body": { + "project": "/user/username/projects/a/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectInfo", - "body": { - "projectId": "20a91f8dffe761e39e0ada0a62a3058faad15d4a8c135539aaccd61bb5497dea", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 18, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": {}, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectInfo", + "body": { + "projectId": "20a91f8dffe761e39e0ada0a62a3058faad15d4a8c135539aaccd61bb5497dea", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 18, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": {}, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } Info seq [hh:mm:ss:mss] Search path: /user/username/projects/a Info seq [hh:mm:ss:mss] For info: /user/username/projects/a/a.ts :: Config file name: /user/username/projects/a/tsconfig.json diff --git a/tests/baselines/reference/tsserver/events/projectLoading/project-is-created-by-open-file-when-using-default-event-handler.js b/tests/baselines/reference/tsserver/events/projectLoading/project-is-created-by-open-file-when-using-default-event-handler.js index 9ab4e3b74f4fc..8e43f7e80304a 100644 --- a/tests/baselines/reference/tsserver/events/projectLoading/project-is-created-by-open-file-when-using-default-event-handler.js +++ b/tests/baselines/reference/tsserver/events/projectLoading/project-is-created-by-open-file-when-using-default-event-handler.js @@ -42,13 +42,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/a/tsconfig.json 2000 undefined Project: /user/username/projects/a/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/a/tsconfig.json", - "reason": "Creating possible configured project for /user/username/projects/a/a.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/a/tsconfig.json", + "reason": "Creating possible configured project for /user/username/projects/a/a.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/a/tsconfig.json : { "rootNames": [ @@ -81,64 +81,64 @@ Info seq [hh:mm:ss:mss] Files (2) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/a/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/a/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "20a91f8dffe761e39e0ada0a62a3058faad15d4a8c135539aaccd61bb5497dea", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 18, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": {}, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "20a91f8dffe761e39e0ada0a62a3058faad15d4a8c135539aaccd61bb5497dea", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 18, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": {}, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/a/a.ts", - "configFile": "/user/username/projects/a/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/a/a.ts", + "configFile": "/user/username/projects/a/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Project '/user/username/projects/a/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (2) @@ -186,13 +186,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/b/tsconfig.json 2000 undefined Project: /user/username/projects/b/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/b/tsconfig.json", - "reason": "Creating possible configured project for /user/username/projects/b/b.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/b/tsconfig.json", + "reason": "Creating possible configured project for /user/username/projects/b/b.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/b/tsconfig.json : { "rootNames": [ @@ -224,64 +224,64 @@ Info seq [hh:mm:ss:mss] Files (2) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/b/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/b/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "20501ec57de369fa110ede8c3db8fe97460676d82a7b594783e32439eba20158", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 17, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": {}, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "20501ec57de369fa110ede8c3db8fe97460676d82a7b594783e32439eba20158", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 17, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": {}, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/b/b.ts", - "configFile": "/user/username/projects/b/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/b/b.ts", + "configFile": "/user/username/projects/b/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Project '/user/username/projects/a/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (2) diff --git a/tests/baselines/reference/tsserver/events/projectLoading/project-is-created-by-open-file-when-using-event-handler.js b/tests/baselines/reference/tsserver/events/projectLoading/project-is-created-by-open-file-when-using-event-handler.js index fbe7495845c80..d5ab32a69fa0a 100644 --- a/tests/baselines/reference/tsserver/events/projectLoading/project-is-created-by-open-file-when-using-event-handler.js +++ b/tests/baselines/reference/tsserver/events/projectLoading/project-is-created-by-open-file-when-using-event-handler.js @@ -42,13 +42,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/a/tsconfig.json 2000 undefined Project: /user/username/projects/a/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectLoadingStart", - "body": { - "project": "/user/username/projects/a/tsconfig.json", - "reason": "Creating possible configured project for /user/username/projects/a/a.ts to open" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectLoadingStart", + "body": { + "project": "/user/username/projects/a/tsconfig.json", + "reason": "Creating possible configured project for /user/username/projects/a/a.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/a/tsconfig.json : { "rootNames": [ @@ -81,61 +81,61 @@ Info seq [hh:mm:ss:mss] Files (2) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectLoadingFinish", - "body": { - "project": "/user/username/projects/a/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectLoadingFinish", + "body": { + "project": "/user/username/projects/a/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectInfo", - "body": { - "projectId": "20a91f8dffe761e39e0ada0a62a3058faad15d4a8c135539aaccd61bb5497dea", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 18, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": {}, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectInfo", + "body": { + "projectId": "20a91f8dffe761e39e0ada0a62a3058faad15d4a8c135539aaccd61bb5497dea", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 18, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": {}, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::configFileDiag", - "body": { - "configFileName": "/user/username/projects/a/tsconfig.json", - "diagnostics": [], - "triggerFile": "/user/username/projects/a/a.ts" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::configFileDiag", + "body": { + "configFileName": "/user/username/projects/a/tsconfig.json", + "diagnostics": [], + "triggerFile": "/user/username/projects/a/a.ts" + } } Info seq [hh:mm:ss:mss] Project '/user/username/projects/a/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (2) @@ -183,13 +183,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/b/tsconfig.json 2000 undefined Project: /user/username/projects/b/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectLoadingStart", - "body": { - "project": "/user/username/projects/b/tsconfig.json", - "reason": "Creating possible configured project for /user/username/projects/b/b.ts to open" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectLoadingStart", + "body": { + "project": "/user/username/projects/b/tsconfig.json", + "reason": "Creating possible configured project for /user/username/projects/b/b.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/b/tsconfig.json : { "rootNames": [ @@ -221,61 +221,61 @@ Info seq [hh:mm:ss:mss] Files (2) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectLoadingFinish", - "body": { - "project": "/user/username/projects/b/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectLoadingFinish", + "body": { + "project": "/user/username/projects/b/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectInfo", - "body": { - "projectId": "20501ec57de369fa110ede8c3db8fe97460676d82a7b594783e32439eba20158", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 17, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": {}, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectInfo", + "body": { + "projectId": "20501ec57de369fa110ede8c3db8fe97460676d82a7b594783e32439eba20158", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 17, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": {}, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::configFileDiag", - "body": { - "configFileName": "/user/username/projects/b/tsconfig.json", - "diagnostics": [], - "triggerFile": "/user/username/projects/b/b.ts" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::configFileDiag", + "body": { + "configFileName": "/user/username/projects/b/tsconfig.json", + "diagnostics": [], + "triggerFile": "/user/username/projects/b/b.ts" + } } Info seq [hh:mm:ss:mss] Project '/user/username/projects/a/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (2) diff --git a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-project-is-at-root-level.js b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-project-is-at-root-level.js index 8afe1c371d552..b8d2f3b855c29 100644 --- a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-project-is-at-root-level.js +++ b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-project-is-at-root-level.js @@ -39,13 +39,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /a/b/project/tsconfig.js Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/b/project/tsconfig.json 2000 undefined Project: /a/b/project/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectLoadingStart", - "body": { - "project": "/a/b/project/tsconfig.json", - "reason": "Creating possible configured project for /a/b/project/file1.ts to open" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectLoadingStart", + "body": { + "project": "/a/b/project/tsconfig.json", + "reason": "Creating possible configured project for /a/b/project/file1.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /a/b/project/tsconfig.json : { "rootNames": [ @@ -82,63 +82,63 @@ Info seq [hh:mm:ss:mss] Files (3) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectLoadingFinish", - "body": { - "project": "/a/b/project/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectLoadingFinish", + "body": { + "project": "/a/b/project/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectInfo", - "body": { - "projectId": "1cf2001c133ce00fd258494c136bfa9707203d90270d151ea0f575d93d990f9d", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 2, - "tsSize": 39, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": { - "typeRoots": [] - }, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectInfo", + "body": { + "projectId": "1cf2001c133ce00fd258494c136bfa9707203d90270d151ea0f575d93d990f9d", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 2, + "tsSize": 39, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "typeRoots": [] + }, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::configFileDiag", - "body": { - "configFileName": "/a/b/project/tsconfig.json", - "diagnostics": [], - "triggerFile": "/a/b/project/file1.ts" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::configFileDiag", + "body": { + "configFileName": "/a/b/project/tsconfig.json", + "diagnostics": [], + "triggerFile": "/a/b/project/file1.ts" + } } Info seq [hh:mm:ss:mss] Project '/a/b/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (3) @@ -209,14 +209,14 @@ Info seq [hh:mm:ss:mss] FileName: /a/b/project/file1.ts ProjectRootPath: undef Info seq [hh:mm:ss:mss] Projects: /a/b/project/tsconfig.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/a/b/project/file1.ts" - ] - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/a/b/project/file1.ts" + ] + } } After running Timeout callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-project-is-not-at-root-level.js b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-project-is-not-at-root-level.js index 3d16e746f334f..949a09074769d 100644 --- a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-project-is-not-at-root-level.js +++ b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-project-is-not-at-root-level.js @@ -39,13 +39,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /user/username/rootfolde Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json 2000 undefined Project: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectLoadingStart", - "body": { - "project": "/user/username/rootfolder/otherfolder/a/b/project/tsconfig.json", - "reason": "Creating possible configured project for /user/username/rootfolder/otherfolder/a/b/project/file1.ts to open" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectLoadingStart", + "body": { + "project": "/user/username/rootfolder/otherfolder/a/b/project/tsconfig.json", + "reason": "Creating possible configured project for /user/username/rootfolder/otherfolder/a/b/project/file1.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json : { "rootNames": [ @@ -90,63 +90,63 @@ Info seq [hh:mm:ss:mss] Files (3) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectLoadingFinish", - "body": { - "project": "/user/username/rootfolder/otherfolder/a/b/project/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectLoadingFinish", + "body": { + "project": "/user/username/rootfolder/otherfolder/a/b/project/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectInfo", - "body": { - "projectId": "79b1a0103ed8006f174a1f979cf698219d4ec4ae3a48594da1085f7a1749553c", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 2, - "tsSize": 39, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": { - "typeRoots": [] - }, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectInfo", + "body": { + "projectId": "79b1a0103ed8006f174a1f979cf698219d4ec4ae3a48594da1085f7a1749553c", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 2, + "tsSize": 39, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "typeRoots": [] + }, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::configFileDiag", - "body": { - "configFileName": "/user/username/rootfolder/otherfolder/a/b/project/tsconfig.json", - "diagnostics": [], - "triggerFile": "/user/username/rootfolder/otherfolder/a/b/project/file1.ts" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::configFileDiag", + "body": { + "configFileName": "/user/username/rootfolder/otherfolder/a/b/project/tsconfig.json", + "diagnostics": [], + "triggerFile": "/user/username/rootfolder/otherfolder/a/b/project/file1.ts" + } } Info seq [hh:mm:ss:mss] Project '/user/username/rootfolder/otherfolder/a/b/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (3) @@ -225,14 +225,14 @@ Info seq [hh:mm:ss:mss] FileName: /user/username/rootfolder/otherfolder/a/b/pr Info seq [hh:mm:ss:mss] Projects: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/user/username/rootfolder/otherfolder/a/b/project/file1.ts" - ] - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/user/username/rootfolder/otherfolder/a/b/project/file1.ts" + ] + } } After running Timeout callback:: count: 0 @@ -338,14 +338,14 @@ Info seq [hh:mm:ss:mss] FileName: /user/username/rootfolder/otherfolder/a/b/pr Info seq [hh:mm:ss:mss] Projects: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/user/username/rootfolder/otherfolder/a/b/project/file1.ts" - ] - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/user/username/rootfolder/otherfolder/a/b/project/file1.ts" + ] + } } After running Timeout callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-should-always-return-the-file-itself-if---isolatedModules-is-specified.js b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-should-always-return-the-file-itself-if---isolatedModules-is-specified.js index f69f6e5f34b75..65d9b21002743 100644 --- a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-should-always-return-the-file-itself-if---isolatedModules-is-specified.js +++ b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-should-always-return-the-file-itself-if---isolatedModules-is-specified.js @@ -23,13 +23,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /users/username/projects Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/project/tsconfig.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectLoadingStart", - "body": { - "project": "/users/username/projects/project/tsconfig.json", - "reason": "Creating possible configured project for /users/username/projects/project/file1Consumer1.ts to open" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectLoadingStart", + "body": { + "project": "/users/username/projects/project/tsconfig.json", + "reason": "Creating possible configured project for /users/username/projects/project/file1Consumer1.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /users/username/projects/project/tsconfig.json : { "rootNames": [ @@ -64,109 +64,109 @@ Info seq [hh:mm:ss:mss] Files (1) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectLoadingFinish", - "body": { - "project": "/users/username/projects/project/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectLoadingFinish", + "body": { + "project": "/users/username/projects/project/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectInfo", - "body": { - "projectId": "5b0be5fc7f7235edf5a31bffe614b4e0819e55ec5f118558864b1f882e283c0d", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 53, - "tsx": 0, - "tsxSize": 0, - "dts": 0, - "dtsSize": 0, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": { - "isolatedModules": true - }, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectInfo", + "body": { + "projectId": "5b0be5fc7f7235edf5a31bffe614b4e0819e55ec5f118558864b1f882e283c0d", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 53, + "tsx": 0, + "tsxSize": 0, + "dts": 0, + "dtsSize": 0, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "isolatedModules": true + }, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::configFileDiag", - "body": { - "configFileName": "/users/username/projects/project/tsconfig.json", - "diagnostics": [ - { - "text": "File '/a/lib/lib.d.ts' not found.\n The file is in the program because:\n Default library for target 'es5'", - "code": 6053, - "category": "error" - }, - { - "text": "Cannot find global type 'Array'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Boolean'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Function'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'IArguments'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Number'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Object'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'RegExp'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'String'.", - "code": 2318, - "category": "error" - } - ], - "triggerFile": "/users/username/projects/project/file1Consumer1.ts" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::configFileDiag", + "body": { + "configFileName": "/users/username/projects/project/tsconfig.json", + "diagnostics": [ + { + "text": "File '/a/lib/lib.d.ts' not found.\n The file is in the program because:\n Default library for target 'es5'", + "code": 6053, + "category": "error" + }, + { + "text": "Cannot find global type 'Array'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Boolean'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Function'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'IArguments'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Number'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Object'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'RegExp'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'String'.", + "code": 2318, + "category": "error" + } + ], + "triggerFile": "/users/username/projects/project/file1Consumer1.ts" + } } Info seq [hh:mm:ss:mss] Project '/users/username/projects/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (1) @@ -357,14 +357,14 @@ Info seq [hh:mm:ss:mss] FileName: /users/username/projects/project/file1Consum Info seq [hh:mm:ss:mss] Projects: /users/username/projects/project/tsconfig.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/users/username/projects/project/file1Consumer1.ts" - ] - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/username/projects/project/file1Consumer1.ts" + ] + } } After running Timeout callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-should-always-return-the-file-itself-if---out-or---outFile-is-specified.js b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-should-always-return-the-file-itself-if---out-or---outFile-is-specified.js index f414205576b0b..d219789816059 100644 --- a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-should-always-return-the-file-itself-if---out-or---outFile-is-specified.js +++ b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-should-always-return-the-file-itself-if---out-or---outFile-is-specified.js @@ -23,13 +23,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /users/username/projects Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/project/tsconfig.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectLoadingStart", - "body": { - "project": "/users/username/projects/project/tsconfig.json", - "reason": "Creating possible configured project for /users/username/projects/project/file1Consumer1.ts to open" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectLoadingStart", + "body": { + "project": "/users/username/projects/project/tsconfig.json", + "reason": "Creating possible configured project for /users/username/projects/project/file1Consumer1.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /users/username/projects/project/tsconfig.json : { "rootNames": [ @@ -63,110 +63,110 @@ Info seq [hh:mm:ss:mss] Files (1) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectLoadingFinish", - "body": { - "project": "/users/username/projects/project/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectLoadingFinish", + "body": { + "project": "/users/username/projects/project/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectInfo", - "body": { - "projectId": "5b0be5fc7f7235edf5a31bffe614b4e0819e55ec5f118558864b1f882e283c0d", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 53, - "tsx": 0, - "tsxSize": 0, - "dts": 0, - "dtsSize": 0, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": { - "module": "system", - "outFile": "" - }, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectInfo", + "body": { + "projectId": "5b0be5fc7f7235edf5a31bffe614b4e0819e55ec5f118558864b1f882e283c0d", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 53, + "tsx": 0, + "tsxSize": 0, + "dts": 0, + "dtsSize": 0, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "module": "system", + "outFile": "" + }, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::configFileDiag", - "body": { - "configFileName": "/users/username/projects/project/tsconfig.json", - "diagnostics": [ - { - "text": "File '/a/lib/lib.d.ts' not found.\n The file is in the program because:\n Default library for target 'es5'", - "code": 6053, - "category": "error" - }, - { - "text": "Cannot find global type 'Array'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Boolean'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Function'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'IArguments'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Number'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Object'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'RegExp'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'String'.", - "code": 2318, - "category": "error" - } - ], - "triggerFile": "/users/username/projects/project/file1Consumer1.ts" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::configFileDiag", + "body": { + "configFileName": "/users/username/projects/project/tsconfig.json", + "diagnostics": [ + { + "text": "File '/a/lib/lib.d.ts' not found.\n The file is in the program because:\n Default library for target 'es5'", + "code": 6053, + "category": "error" + }, + { + "text": "Cannot find global type 'Array'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Boolean'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Function'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'IArguments'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Number'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Object'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'RegExp'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'String'.", + "code": 2318, + "category": "error" + } + ], + "triggerFile": "/users/username/projects/project/file1Consumer1.ts" + } } Info seq [hh:mm:ss:mss] Project '/users/username/projects/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (1) @@ -351,14 +351,14 @@ Info seq [hh:mm:ss:mss] FileName: /users/username/projects/project/file1Consum Info seq [hh:mm:ss:mss] Projects: /users/username/projects/project/tsconfig.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/users/username/projects/project/file1Consumer1.ts" - ] - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/username/projects/project/file1Consumer1.ts" + ] + } } After running Timeout callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-should-be-up-to-date-with-deleted-files.js b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-should-be-up-to-date-with-deleted-files.js index 94dc88ba9ebed..2299250b61b0a 100644 --- a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-should-be-up-to-date-with-deleted-files.js +++ b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-should-be-up-to-date-with-deleted-files.js @@ -23,13 +23,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /users/username/projects Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/project/tsconfig.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectLoadingStart", - "body": { - "project": "/users/username/projects/project/tsconfig.json", - "reason": "Creating possible configured project for /users/username/projects/project/file1Consumer1.ts to open" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectLoadingStart", + "body": { + "project": "/users/username/projects/project/tsconfig.json", + "reason": "Creating possible configured project for /users/username/projects/project/file1Consumer1.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /users/username/projects/project/tsconfig.json : { "rootNames": [ @@ -63,107 +63,107 @@ Info seq [hh:mm:ss:mss] Files (1) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectLoadingFinish", - "body": { - "project": "/users/username/projects/project/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectLoadingFinish", + "body": { + "project": "/users/username/projects/project/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectInfo", - "body": { - "projectId": "5b0be5fc7f7235edf5a31bffe614b4e0819e55ec5f118558864b1f882e283c0d", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 53, - "tsx": 0, - "tsxSize": 0, - "dts": 0, - "dtsSize": 0, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": {}, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectInfo", + "body": { + "projectId": "5b0be5fc7f7235edf5a31bffe614b4e0819e55ec5f118558864b1f882e283c0d", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 53, + "tsx": 0, + "tsxSize": 0, + "dts": 0, + "dtsSize": 0, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": {}, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::configFileDiag", - "body": { - "configFileName": "/users/username/projects/project/tsconfig.json", - "diagnostics": [ - { - "text": "File '/a/lib/lib.d.ts' not found.\n The file is in the program because:\n Default library for target 'es5'", - "code": 6053, - "category": "error" - }, - { - "text": "Cannot find global type 'Array'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Boolean'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Function'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'IArguments'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Number'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Object'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'RegExp'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'String'.", - "code": 2318, - "category": "error" - } - ], - "triggerFile": "/users/username/projects/project/file1Consumer1.ts" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::configFileDiag", + "body": { + "configFileName": "/users/username/projects/project/tsconfig.json", + "diagnostics": [ + { + "text": "File '/a/lib/lib.d.ts' not found.\n The file is in the program because:\n Default library for target 'es5'", + "code": 6053, + "category": "error" + }, + { + "text": "Cannot find global type 'Array'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Boolean'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Function'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'IArguments'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Number'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Object'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'RegExp'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'String'.", + "code": 2318, + "category": "error" + } + ], + "triggerFile": "/users/username/projects/project/file1Consumer1.ts" + } } Info seq [hh:mm:ss:mss] Project '/users/username/projects/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (1) @@ -359,14 +359,14 @@ Info seq [hh:mm:ss:mss] FileName: /users/username/projects/project/file1Consum Info seq [hh:mm:ss:mss] Projects: /users/username/projects/project/tsconfig.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/users/username/projects/project/file1Consumer1.ts" - ] - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/username/projects/project/file1Consumer1.ts" + ] + } } After running Timeout callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-should-be-up-to-date-with-newly-created-files.js b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-should-be-up-to-date-with-newly-created-files.js index 31af295f6f28a..a2693d09d196f 100644 --- a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-should-be-up-to-date-with-newly-created-files.js +++ b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-should-be-up-to-date-with-newly-created-files.js @@ -23,13 +23,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /users/username/projects Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/project/tsconfig.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectLoadingStart", - "body": { - "project": "/users/username/projects/project/tsconfig.json", - "reason": "Creating possible configured project for /users/username/projects/project/file1Consumer1.ts to open" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectLoadingStart", + "body": { + "project": "/users/username/projects/project/tsconfig.json", + "reason": "Creating possible configured project for /users/username/projects/project/file1Consumer1.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /users/username/projects/project/tsconfig.json : { "rootNames": [ @@ -63,107 +63,107 @@ Info seq [hh:mm:ss:mss] Files (1) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectLoadingFinish", - "body": { - "project": "/users/username/projects/project/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectLoadingFinish", + "body": { + "project": "/users/username/projects/project/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectInfo", - "body": { - "projectId": "5b0be5fc7f7235edf5a31bffe614b4e0819e55ec5f118558864b1f882e283c0d", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 53, - "tsx": 0, - "tsxSize": 0, - "dts": 0, - "dtsSize": 0, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": {}, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectInfo", + "body": { + "projectId": "5b0be5fc7f7235edf5a31bffe614b4e0819e55ec5f118558864b1f882e283c0d", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 53, + "tsx": 0, + "tsxSize": 0, + "dts": 0, + "dtsSize": 0, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": {}, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::configFileDiag", - "body": { - "configFileName": "/users/username/projects/project/tsconfig.json", - "diagnostics": [ - { - "text": "File '/a/lib/lib.d.ts' not found.\n The file is in the program because:\n Default library for target 'es5'", - "code": 6053, - "category": "error" - }, - { - "text": "Cannot find global type 'Array'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Boolean'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Function'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'IArguments'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Number'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Object'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'RegExp'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'String'.", - "code": 2318, - "category": "error" - } - ], - "triggerFile": "/users/username/projects/project/file1Consumer1.ts" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::configFileDiag", + "body": { + "configFileName": "/users/username/projects/project/tsconfig.json", + "diagnostics": [ + { + "text": "File '/a/lib/lib.d.ts' not found.\n The file is in the program because:\n Default library for target 'es5'", + "code": 6053, + "category": "error" + }, + { + "text": "Cannot find global type 'Array'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Boolean'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Function'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'IArguments'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Number'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Object'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'RegExp'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'String'.", + "code": 2318, + "category": "error" + } + ], + "triggerFile": "/users/username/projects/project/file1Consumer1.ts" + } } Info seq [hh:mm:ss:mss] Project '/users/username/projects/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (1) @@ -371,14 +371,14 @@ Info seq [hh:mm:ss:mss] FileName: /users/username/projects/project/file1Consum Info seq [hh:mm:ss:mss] Projects: /users/username/projects/project/tsconfig.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/users/username/projects/project/file1Consumer1.ts" - ] - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/username/projects/project/file1Consumer1.ts" + ] + } } After running Timeout callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-should-be-up-to-date-with-the-reference-map-changes.js b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-should-be-up-to-date-with-the-reference-map-changes.js index 6e7f0cf2e4b71..fb47de41a3c84 100644 --- a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-should-be-up-to-date-with-the-reference-map-changes.js +++ b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-should-be-up-to-date-with-the-reference-map-changes.js @@ -23,13 +23,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /users/username/projects Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/project/tsconfig.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectLoadingStart", - "body": { - "project": "/users/username/projects/project/tsconfig.json", - "reason": "Creating possible configured project for /users/username/projects/project/file1Consumer1.ts to open" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectLoadingStart", + "body": { + "project": "/users/username/projects/project/tsconfig.json", + "reason": "Creating possible configured project for /users/username/projects/project/file1Consumer1.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /users/username/projects/project/tsconfig.json : { "rootNames": [ @@ -63,107 +63,107 @@ Info seq [hh:mm:ss:mss] Files (1) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectLoadingFinish", - "body": { - "project": "/users/username/projects/project/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectLoadingFinish", + "body": { + "project": "/users/username/projects/project/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectInfo", - "body": { - "projectId": "5b0be5fc7f7235edf5a31bffe614b4e0819e55ec5f118558864b1f882e283c0d", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 53, - "tsx": 0, - "tsxSize": 0, - "dts": 0, - "dtsSize": 0, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": {}, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectInfo", + "body": { + "projectId": "5b0be5fc7f7235edf5a31bffe614b4e0819e55ec5f118558864b1f882e283c0d", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 53, + "tsx": 0, + "tsxSize": 0, + "dts": 0, + "dtsSize": 0, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": {}, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::configFileDiag", - "body": { - "configFileName": "/users/username/projects/project/tsconfig.json", - "diagnostics": [ - { - "text": "File '/a/lib/lib.d.ts' not found.\n The file is in the program because:\n Default library for target 'es5'", - "code": 6053, - "category": "error" - }, - { - "text": "Cannot find global type 'Array'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Boolean'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Function'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'IArguments'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Number'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Object'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'RegExp'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'String'.", - "code": 2318, - "category": "error" - } - ], - "triggerFile": "/users/username/projects/project/file1Consumer1.ts" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::configFileDiag", + "body": { + "configFileName": "/users/username/projects/project/tsconfig.json", + "diagnostics": [ + { + "text": "File '/a/lib/lib.d.ts' not found.\n The file is in the program because:\n Default library for target 'es5'", + "code": 6053, + "category": "error" + }, + { + "text": "Cannot find global type 'Array'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Boolean'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Function'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'IArguments'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Number'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Object'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'RegExp'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'String'.", + "code": 2318, + "category": "error" + } + ], + "triggerFile": "/users/username/projects/project/file1Consumer1.ts" + } } Info seq [hh:mm:ss:mss] Project '/users/username/projects/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (1) @@ -368,14 +368,14 @@ Info seq [hh:mm:ss:mss] FileName: /users/username/projects/project/file1Consum Info seq [hh:mm:ss:mss] Projects: /users/username/projects/project/tsconfig.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/users/username/projects/project/file1Consumer1.ts" - ] - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/username/projects/project/file1Consumer1.ts" + ] + } } After running Timeout callback:: count: 0 @@ -450,14 +450,14 @@ Info seq [hh:mm:ss:mss] FileName: /users/username/projects/project/file1Consum Info seq [hh:mm:ss:mss] Projects: /users/username/projects/project/tsconfig.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/users/username/projects/project/file1Consumer1.ts" - ] - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/username/projects/project/file1Consumer1.ts" + ] + } } After running Timeout callback:: count: 0 @@ -534,14 +534,14 @@ Info seq [hh:mm:ss:mss] FileName: /users/username/projects/project/file1Consum Info seq [hh:mm:ss:mss] Projects: /users/username/projects/project/tsconfig.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/users/username/projects/project/file1Consumer1.ts" - ] - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/username/projects/project/file1Consumer1.ts" + ] + } } After running Timeout callback:: count: 0 @@ -642,13 +642,13 @@ Info seq [hh:mm:ss:mss] FileName: /users/username/projects/project/file1Consum Info seq [hh:mm:ss:mss] Projects: /users/username/projects/project/tsconfig.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/users/username/projects/project/file1Consumer1.ts" - ] - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/username/projects/project/file1Consumer1.ts" + ] + } } After running Timeout callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-should-contains-only-itself.js b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-should-contains-only-itself.js index fd9a9cc94852f..e3614810ebaba 100644 --- a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-should-contains-only-itself.js +++ b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-should-contains-only-itself.js @@ -23,13 +23,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /users/username/projects Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/project/tsconfig.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectLoadingStart", - "body": { - "project": "/users/username/projects/project/tsconfig.json", - "reason": "Creating possible configured project for /users/username/projects/project/file1Consumer1.ts to open" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectLoadingStart", + "body": { + "project": "/users/username/projects/project/tsconfig.json", + "reason": "Creating possible configured project for /users/username/projects/project/file1Consumer1.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /users/username/projects/project/tsconfig.json : { "rootNames": [ @@ -63,107 +63,107 @@ Info seq [hh:mm:ss:mss] Files (1) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectLoadingFinish", - "body": { - "project": "/users/username/projects/project/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectLoadingFinish", + "body": { + "project": "/users/username/projects/project/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectInfo", - "body": { - "projectId": "5b0be5fc7f7235edf5a31bffe614b4e0819e55ec5f118558864b1f882e283c0d", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 53, - "tsx": 0, - "tsxSize": 0, - "dts": 0, - "dtsSize": 0, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": {}, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectInfo", + "body": { + "projectId": "5b0be5fc7f7235edf5a31bffe614b4e0819e55ec5f118558864b1f882e283c0d", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 53, + "tsx": 0, + "tsxSize": 0, + "dts": 0, + "dtsSize": 0, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": {}, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::configFileDiag", - "body": { - "configFileName": "/users/username/projects/project/tsconfig.json", - "diagnostics": [ - { - "text": "File '/a/lib/lib.d.ts' not found.\n The file is in the program because:\n Default library for target 'es5'", - "code": 6053, - "category": "error" - }, - { - "text": "Cannot find global type 'Array'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Boolean'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Function'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'IArguments'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Number'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Object'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'RegExp'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'String'.", - "code": 2318, - "category": "error" - } - ], - "triggerFile": "/users/username/projects/project/file1Consumer1.ts" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::configFileDiag", + "body": { + "configFileName": "/users/username/projects/project/tsconfig.json", + "diagnostics": [ + { + "text": "File '/a/lib/lib.d.ts' not found.\n The file is in the program because:\n Default library for target 'es5'", + "code": 6053, + "category": "error" + }, + { + "text": "Cannot find global type 'Array'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Boolean'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Function'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'IArguments'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Number'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Object'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'RegExp'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'String'.", + "code": 2318, + "category": "error" + } + ], + "triggerFile": "/users/username/projects/project/file1Consumer1.ts" + } } Info seq [hh:mm:ss:mss] Project '/users/username/projects/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (1) @@ -354,14 +354,14 @@ Info seq [hh:mm:ss:mss] FileName: /users/username/projects/project/file1Consum Info seq [hh:mm:ss:mss] Projects: /users/username/projects/project/tsconfig.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/users/username/projects/project/file1Consumer1.ts" - ] - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/username/projects/project/file1Consumer1.ts" + ] + } } After running Timeout callback:: count: 0 @@ -440,13 +440,13 @@ Info seq [hh:mm:ss:mss] FileName: /users/username/projects/project/file1Consum Info seq [hh:mm:ss:mss] Projects: /users/username/projects/project/tsconfig.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/users/username/projects/project/file1Consumer1.ts" - ] - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/username/projects/project/file1Consumer1.ts" + ] + } } After running Timeout callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-should-detect-changes-in-non-root-files.js b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-should-detect-changes-in-non-root-files.js index 9159d38603b52..307d8d985103a 100644 --- a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-should-detect-changes-in-non-root-files.js +++ b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-should-detect-changes-in-non-root-files.js @@ -23,13 +23,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /users/username/projects Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/project/tsconfig.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectLoadingStart", - "body": { - "project": "/users/username/projects/project/tsconfig.json", - "reason": "Creating possible configured project for /users/username/projects/project/file1Consumer1.ts to open" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectLoadingStart", + "body": { + "project": "/users/username/projects/project/tsconfig.json", + "reason": "Creating possible configured project for /users/username/projects/project/file1Consumer1.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /users/username/projects/project/tsconfig.json : { "rootNames": [ @@ -61,107 +61,107 @@ Info seq [hh:mm:ss:mss] Files (1) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectLoadingFinish", - "body": { - "project": "/users/username/projects/project/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectLoadingFinish", + "body": { + "project": "/users/username/projects/project/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectInfo", - "body": { - "projectId": "5b0be5fc7f7235edf5a31bffe614b4e0819e55ec5f118558864b1f882e283c0d", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 53, - "tsx": 0, - "tsxSize": 0, - "dts": 0, - "dtsSize": 0, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": {}, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": true, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectInfo", + "body": { + "projectId": "5b0be5fc7f7235edf5a31bffe614b4e0819e55ec5f118558864b1f882e283c0d", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 53, + "tsx": 0, + "tsxSize": 0, + "dts": 0, + "dtsSize": 0, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": {}, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": true, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::configFileDiag", - "body": { - "configFileName": "/users/username/projects/project/tsconfig.json", - "diagnostics": [ - { - "text": "File '/a/lib/lib.d.ts' not found.\n The file is in the program because:\n Default library for target 'es5'", - "code": 6053, - "category": "error" - }, - { - "text": "Cannot find global type 'Array'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Boolean'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Function'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'IArguments'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Number'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Object'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'RegExp'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'String'.", - "code": 2318, - "category": "error" - } - ], - "triggerFile": "/users/username/projects/project/file1Consumer1.ts" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::configFileDiag", + "body": { + "configFileName": "/users/username/projects/project/tsconfig.json", + "diagnostics": [ + { + "text": "File '/a/lib/lib.d.ts' not found.\n The file is in the program because:\n Default library for target 'es5'", + "code": 6053, + "category": "error" + }, + { + "text": "Cannot find global type 'Array'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Boolean'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Function'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'IArguments'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Number'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Object'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'RegExp'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'String'.", + "code": 2318, + "category": "error" + } + ], + "triggerFile": "/users/username/projects/project/file1Consumer1.ts" + } } Info seq [hh:mm:ss:mss] Project '/users/username/projects/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (1) @@ -314,14 +314,14 @@ Info seq [hh:mm:ss:mss] FileName: /users/username/projects/project/file1Consum Info seq [hh:mm:ss:mss] Projects: /users/username/projects/project/tsconfig.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/users/username/projects/project/file1Consumer1.ts" - ] - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/username/projects/project/file1Consumer1.ts" + ] + } } After running Timeout callback:: count: 0 @@ -387,13 +387,13 @@ Info seq [hh:mm:ss:mss] FileName: /users/username/projects/project/file1Consum Info seq [hh:mm:ss:mss] Projects: /users/username/projects/project/tsconfig.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/users/username/projects/project/file1Consumer1.ts" - ] - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/username/projects/project/file1Consumer1.ts" + ] + } } After running Timeout callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-should-detect-non-existing-code-file.js b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-should-detect-non-existing-code-file.js index 18187c9dba537..fe052a21fe4fb 100644 --- a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-should-detect-non-existing-code-file.js +++ b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-should-detect-non-existing-code-file.js @@ -25,13 +25,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /users/username/projects Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/project/tsconfig.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectLoadingStart", - "body": { - "project": "/users/username/projects/project/tsconfig.json", - "reason": "Creating possible configured project for /users/username/projects/project/referenceFile1.ts to open" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectLoadingStart", + "body": { + "project": "/users/username/projects/project/tsconfig.json", + "reason": "Creating possible configured project for /users/username/projects/project/referenceFile1.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /users/username/projects/project/tsconfig.json : { "rootNames": [ @@ -62,107 +62,107 @@ Info seq [hh:mm:ss:mss] Files (1) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectLoadingFinish", - "body": { - "project": "/users/username/projects/project/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectLoadingFinish", + "body": { + "project": "/users/username/projects/project/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectInfo", - "body": { - "projectId": "5b0be5fc7f7235edf5a31bffe614b4e0819e55ec5f118558864b1f882e283c0d", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 104, - "tsx": 0, - "tsxSize": 0, - "dts": 0, - "dtsSize": 0, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": {}, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectInfo", + "body": { + "projectId": "5b0be5fc7f7235edf5a31bffe614b4e0819e55ec5f118558864b1f882e283c0d", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 104, + "tsx": 0, + "tsxSize": 0, + "dts": 0, + "dtsSize": 0, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": {}, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::configFileDiag", - "body": { - "configFileName": "/users/username/projects/project/tsconfig.json", - "diagnostics": [ - { - "text": "File '/a/lib/lib.d.ts' not found.\n The file is in the program because:\n Default library for target 'es5'", - "code": 6053, - "category": "error" - }, - { - "text": "Cannot find global type 'Array'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Boolean'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Function'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'IArguments'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Number'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Object'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'RegExp'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'String'.", - "code": 2318, - "category": "error" - } - ], - "triggerFile": "/users/username/projects/project/referenceFile1.ts" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::configFileDiag", + "body": { + "configFileName": "/users/username/projects/project/tsconfig.json", + "diagnostics": [ + { + "text": "File '/a/lib/lib.d.ts' not found.\n The file is in the program because:\n Default library for target 'es5'", + "code": 6053, + "category": "error" + }, + { + "text": "Cannot find global type 'Array'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Boolean'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Function'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'IArguments'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Number'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Object'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'RegExp'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'String'.", + "code": 2318, + "category": "error" + } + ], + "triggerFile": "/users/username/projects/project/referenceFile1.ts" + } } Info seq [hh:mm:ss:mss] Project '/users/username/projects/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (1) @@ -294,14 +294,14 @@ Info seq [hh:mm:ss:mss] FileName: /users/username/projects/project/referenceFi Info seq [hh:mm:ss:mss] Projects: /users/username/projects/project/tsconfig.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/users/username/projects/project/referenceFile1.ts" - ] - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/username/projects/project/referenceFile1.ts" + ] + } } After running Timeout callback:: count: 0 @@ -398,14 +398,14 @@ Info seq [hh:mm:ss:mss] FileName: /users/username/projects/project/referenceFi Info seq [hh:mm:ss:mss] Projects: /users/username/projects/project/tsconfig.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/users/username/projects/project/referenceFile1.ts" - ] - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/username/projects/project/referenceFile1.ts" + ] + } } After running Timeout callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-should-detect-removed-code-file.js b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-should-detect-removed-code-file.js index 36682293668a8..3278a782a29c6 100644 --- a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-should-detect-removed-code-file.js +++ b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-should-detect-removed-code-file.js @@ -25,13 +25,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /users/username/projects Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/project/tsconfig.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectLoadingStart", - "body": { - "project": "/users/username/projects/project/tsconfig.json", - "reason": "Creating possible configured project for /users/username/projects/project/referenceFile1.ts to open" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectLoadingStart", + "body": { + "project": "/users/username/projects/project/tsconfig.json", + "reason": "Creating possible configured project for /users/username/projects/project/referenceFile1.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /users/username/projects/project/tsconfig.json : { "rootNames": [ @@ -62,107 +62,107 @@ Info seq [hh:mm:ss:mss] Files (1) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectLoadingFinish", - "body": { - "project": "/users/username/projects/project/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectLoadingFinish", + "body": { + "project": "/users/username/projects/project/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectInfo", - "body": { - "projectId": "5b0be5fc7f7235edf5a31bffe614b4e0819e55ec5f118558864b1f882e283c0d", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 104, - "tsx": 0, - "tsxSize": 0, - "dts": 0, - "dtsSize": 0, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": {}, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectInfo", + "body": { + "projectId": "5b0be5fc7f7235edf5a31bffe614b4e0819e55ec5f118558864b1f882e283c0d", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 104, + "tsx": 0, + "tsxSize": 0, + "dts": 0, + "dtsSize": 0, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": {}, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::configFileDiag", - "body": { - "configFileName": "/users/username/projects/project/tsconfig.json", - "diagnostics": [ - { - "text": "File '/a/lib/lib.d.ts' not found.\n The file is in the program because:\n Default library for target 'es5'", - "code": 6053, - "category": "error" - }, - { - "text": "Cannot find global type 'Array'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Boolean'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Function'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'IArguments'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Number'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Object'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'RegExp'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'String'.", - "code": 2318, - "category": "error" - } - ], - "triggerFile": "/users/username/projects/project/referenceFile1.ts" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::configFileDiag", + "body": { + "configFileName": "/users/username/projects/project/tsconfig.json", + "diagnostics": [ + { + "text": "File '/a/lib/lib.d.ts' not found.\n The file is in the program because:\n Default library for target 'es5'", + "code": 6053, + "category": "error" + }, + { + "text": "Cannot find global type 'Array'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Boolean'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Function'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'IArguments'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Number'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Object'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'RegExp'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'String'.", + "code": 2318, + "category": "error" + } + ], + "triggerFile": "/users/username/projects/project/referenceFile1.ts" + } } Info seq [hh:mm:ss:mss] Project '/users/username/projects/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (1) @@ -286,14 +286,14 @@ Info seq [hh:mm:ss:mss] FileName: /users/username/projects/project/referenceFi Info seq [hh:mm:ss:mss] Projects: /users/username/projects/project/tsconfig.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/users/username/projects/project/referenceFile1.ts" - ] - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/username/projects/project/referenceFile1.ts" + ] + } } After running Timeout callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-should-return-all-files-if-a-global-file-changed-shape.js b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-should-return-all-files-if-a-global-file-changed-shape.js index 56752a32f7420..24651e50aad2b 100644 --- a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-should-return-all-files-if-a-global-file-changed-shape.js +++ b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-should-return-all-files-if-a-global-file-changed-shape.js @@ -23,13 +23,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /users/username/projects Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/project/tsconfig.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectLoadingStart", - "body": { - "project": "/users/username/projects/project/tsconfig.json", - "reason": "Creating possible configured project for /users/username/projects/project/file1Consumer1.ts to open" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectLoadingStart", + "body": { + "project": "/users/username/projects/project/tsconfig.json", + "reason": "Creating possible configured project for /users/username/projects/project/file1Consumer1.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /users/username/projects/project/tsconfig.json : { "rootNames": [ @@ -63,107 +63,107 @@ Info seq [hh:mm:ss:mss] Files (1) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectLoadingFinish", - "body": { - "project": "/users/username/projects/project/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectLoadingFinish", + "body": { + "project": "/users/username/projects/project/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectInfo", - "body": { - "projectId": "5b0be5fc7f7235edf5a31bffe614b4e0819e55ec5f118558864b1f882e283c0d", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 53, - "tsx": 0, - "tsxSize": 0, - "dts": 0, - "dtsSize": 0, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": {}, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectInfo", + "body": { + "projectId": "5b0be5fc7f7235edf5a31bffe614b4e0819e55ec5f118558864b1f882e283c0d", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 53, + "tsx": 0, + "tsxSize": 0, + "dts": 0, + "dtsSize": 0, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": {}, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::configFileDiag", - "body": { - "configFileName": "/users/username/projects/project/tsconfig.json", - "diagnostics": [ - { - "text": "File '/a/lib/lib.d.ts' not found.\n The file is in the program because:\n Default library for target 'es5'", - "code": 6053, - "category": "error" - }, - { - "text": "Cannot find global type 'Array'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Boolean'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Function'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'IArguments'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Number'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Object'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'RegExp'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'String'.", - "code": 2318, - "category": "error" - } - ], - "triggerFile": "/users/username/projects/project/file1Consumer1.ts" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::configFileDiag", + "body": { + "configFileName": "/users/username/projects/project/tsconfig.json", + "diagnostics": [ + { + "text": "File '/a/lib/lib.d.ts' not found.\n The file is in the program because:\n Default library for target 'es5'", + "code": 6053, + "category": "error" + }, + { + "text": "Cannot find global type 'Array'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Boolean'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Function'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'IArguments'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Number'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Object'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'RegExp'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'String'.", + "code": 2318, + "category": "error" + } + ], + "triggerFile": "/users/username/projects/project/file1Consumer1.ts" + } } Info seq [hh:mm:ss:mss] Project '/users/username/projects/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (1) @@ -354,14 +354,14 @@ Info seq [hh:mm:ss:mss] FileName: /users/username/projects/project/file1Consum Info seq [hh:mm:ss:mss] Projects: /users/username/projects/project/tsconfig.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/users/username/projects/project/file1Consumer1.ts" - ] - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/username/projects/project/file1Consumer1.ts" + ] + } } After running Timeout callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-should-return-cascaded-affected-file-list.js b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-should-return-cascaded-affected-file-list.js index 289d85e559774..a4e54114193c2 100644 --- a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-should-return-cascaded-affected-file-list.js +++ b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-should-return-cascaded-affected-file-list.js @@ -23,13 +23,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /users/username/projects Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/project/tsconfig.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectLoadingStart", - "body": { - "project": "/users/username/projects/project/tsconfig.json", - "reason": "Creating possible configured project for /users/username/projects/project/file1Consumer1.ts to open" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectLoadingStart", + "body": { + "project": "/users/username/projects/project/tsconfig.json", + "reason": "Creating possible configured project for /users/username/projects/project/file1Consumer1.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /users/username/projects/project/tsconfig.json : { "rootNames": [ @@ -63,107 +63,107 @@ Info seq [hh:mm:ss:mss] Files (1) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectLoadingFinish", - "body": { - "project": "/users/username/projects/project/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectLoadingFinish", + "body": { + "project": "/users/username/projects/project/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectInfo", - "body": { - "projectId": "5b0be5fc7f7235edf5a31bffe614b4e0819e55ec5f118558864b1f882e283c0d", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 53, - "tsx": 0, - "tsxSize": 0, - "dts": 0, - "dtsSize": 0, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": {}, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectInfo", + "body": { + "projectId": "5b0be5fc7f7235edf5a31bffe614b4e0819e55ec5f118558864b1f882e283c0d", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 53, + "tsx": 0, + "tsxSize": 0, + "dts": 0, + "dtsSize": 0, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": {}, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::configFileDiag", - "body": { - "configFileName": "/users/username/projects/project/tsconfig.json", - "diagnostics": [ - { - "text": "File '/a/lib/lib.d.ts' not found.\n The file is in the program because:\n Default library for target 'es5'", - "code": 6053, - "category": "error" - }, - { - "text": "Cannot find global type 'Array'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Boolean'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Function'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'IArguments'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Number'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Object'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'RegExp'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'String'.", - "code": 2318, - "category": "error" - } - ], - "triggerFile": "/users/username/projects/project/file1Consumer1.ts" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::configFileDiag", + "body": { + "configFileName": "/users/username/projects/project/tsconfig.json", + "diagnostics": [ + { + "text": "File '/a/lib/lib.d.ts' not found.\n The file is in the program because:\n Default library for target 'es5'", + "code": 6053, + "category": "error" + }, + { + "text": "Cannot find global type 'Array'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Boolean'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Function'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'IArguments'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Number'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Object'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'RegExp'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'String'.", + "code": 2318, + "category": "error" + } + ], + "triggerFile": "/users/username/projects/project/file1Consumer1.ts" + } } Info seq [hh:mm:ss:mss] Project '/users/username/projects/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (1) @@ -388,14 +388,14 @@ Info seq [hh:mm:ss:mss] FileName: /users/username/projects/project/file1Consum Info seq [hh:mm:ss:mss] Projects: /users/username/projects/project/tsconfig.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/users/username/projects/project/file1Consumer1.ts" - ] - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/username/projects/project/file1Consumer1.ts" + ] + } } After running Timeout callback:: count: 0 @@ -477,14 +477,14 @@ Info seq [hh:mm:ss:mss] FileName: /users/username/projects/project/file1Consum Info seq [hh:mm:ss:mss] Projects: /users/username/projects/project/tsconfig.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/users/username/projects/project/file1Consumer1.ts" - ] - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/username/projects/project/file1Consumer1.ts" + ] + } } After running Timeout callback:: count: 0 @@ -554,13 +554,13 @@ Info seq [hh:mm:ss:mss] FileName: /users/username/projects/project/file1Consum Info seq [hh:mm:ss:mss] Projects: /users/username/projects/project/tsconfig.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/users/username/projects/project/file1Consumer1.ts" - ] - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/username/projects/project/file1Consumer1.ts" + ] + } } After running Timeout callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-should-work-fine-for-files-with-circular-references.js b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-should-work-fine-for-files-with-circular-references.js index 9cdc3f98281c2..5a971a7f443d6 100644 --- a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-should-work-fine-for-files-with-circular-references.js +++ b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-should-work-fine-for-files-with-circular-references.js @@ -25,13 +25,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /users/username/projects Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/project/tsconfig.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectLoadingStart", - "body": { - "project": "/users/username/projects/project/tsconfig.json", - "reason": "Creating possible configured project for /users/username/projects/project/file1.ts to open" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectLoadingStart", + "body": { + "project": "/users/username/projects/project/tsconfig.json", + "reason": "Creating possible configured project for /users/username/projects/project/file1.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /users/username/projects/project/tsconfig.json : { "rootNames": [ @@ -62,107 +62,107 @@ Info seq [hh:mm:ss:mss] Files (1) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectLoadingFinish", - "body": { - "project": "/users/username/projects/project/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectLoadingFinish", + "body": { + "project": "/users/username/projects/project/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectInfo", - "body": { - "projectId": "5b0be5fc7f7235edf5a31bffe614b4e0819e55ec5f118558864b1f882e283c0d", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 96, - "tsx": 0, - "tsxSize": 0, - "dts": 0, - "dtsSize": 0, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": {}, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectInfo", + "body": { + "projectId": "5b0be5fc7f7235edf5a31bffe614b4e0819e55ec5f118558864b1f882e283c0d", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 96, + "tsx": 0, + "tsxSize": 0, + "dts": 0, + "dtsSize": 0, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": {}, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::configFileDiag", - "body": { - "configFileName": "/users/username/projects/project/tsconfig.json", - "diagnostics": [ - { - "text": "File '/a/lib/lib.d.ts' not found.\n The file is in the program because:\n Default library for target 'es5'", - "code": 6053, - "category": "error" - }, - { - "text": "Cannot find global type 'Array'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Boolean'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Function'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'IArguments'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Number'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Object'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'RegExp'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'String'.", - "code": 2318, - "category": "error" - } - ], - "triggerFile": "/users/username/projects/project/file1.ts" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::configFileDiag", + "body": { + "configFileName": "/users/username/projects/project/tsconfig.json", + "diagnostics": [ + { + "text": "File '/a/lib/lib.d.ts' not found.\n The file is in the program because:\n Default library for target 'es5'", + "code": 6053, + "category": "error" + }, + { + "text": "Cannot find global type 'Array'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Boolean'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Function'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'IArguments'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Number'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Object'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'RegExp'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'String'.", + "code": 2318, + "category": "error" + } + ], + "triggerFile": "/users/username/projects/project/file1.ts" + } } Info seq [hh:mm:ss:mss] Project '/users/username/projects/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (1) @@ -292,14 +292,14 @@ Info seq [hh:mm:ss:mss] FileName: /users/username/projects/project/file1.ts Pr Info seq [hh:mm:ss:mss] Projects: /users/username/projects/project/tsconfig.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/users/username/projects/project/file1.ts" - ] - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/username/projects/project/file1.ts" + ] + } } After running Timeout callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-when---out-is-set.js b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-when---out-is-set.js index 9832c076a8f63..1dff53ccb2e65 100644 --- a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-when---out-is-set.js +++ b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-when---out-is-set.js @@ -36,13 +36,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /users/username/projects Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/project/tsconfig.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectLoadingStart", - "body": { - "project": "/users/username/projects/project/tsconfig.json", - "reason": "Creating possible configured project for /users/username/projects/project/a.ts to open" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectLoadingStart", + "body": { + "project": "/users/username/projects/project/tsconfig.json", + "reason": "Creating possible configured project for /users/username/projects/project/a.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /users/username/projects/project/tsconfig.json : { "rootNames": [ @@ -76,78 +76,78 @@ Info seq [hh:mm:ss:mss] Files (2) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectLoadingFinish", - "body": { - "project": "/users/username/projects/project/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectLoadingFinish", + "body": { + "project": "/users/username/projects/project/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectInfo", - "body": { - "projectId": "5b0be5fc7f7235edf5a31bffe614b4e0819e55ec5f118558864b1f882e283c0d", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 16, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": { - "out": "" - }, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectInfo", + "body": { + "projectId": "5b0be5fc7f7235edf5a31bffe614b4e0819e55ec5f118558864b1f882e283c0d", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 16, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "out": "" + }, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::configFileDiag", - "body": { - "configFileName": "/users/username/projects/project/tsconfig.json", - "diagnostics": [ - { - "start": { - "line": 1, - "offset": 21 - }, - "end": { - "line": 1, - "offset": 26 - }, - "text": "Option 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify compilerOption '\"ignoreDeprecations\": \"5.0\"' to silence this error.\n Use 'outFile' instead.", - "code": 5101, - "category": "error", - "fileName": "/users/username/projects/project/tsconfig.json" - } - ], - "triggerFile": "/users/username/projects/project/a.ts" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::configFileDiag", + "body": { + "configFileName": "/users/username/projects/project/tsconfig.json", + "diagnostics": [ + { + "start": { + "line": 1, + "offset": 21 + }, + "end": { + "line": 1, + "offset": 26 + }, + "text": "Option 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify compilerOption '\"ignoreDeprecations\": \"5.0\"' to silence this error.\n Use 'outFile' instead.", + "code": 5101, + "category": "error", + "fileName": "/users/username/projects/project/tsconfig.json" + } + ], + "triggerFile": "/users/username/projects/project/a.ts" + } } Info seq [hh:mm:ss:mss] Project '/users/username/projects/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (2) @@ -227,14 +227,14 @@ Info seq [hh:mm:ss:mss] FileName: /users/username/projects/project/a.ts Projec Info seq [hh:mm:ss:mss] Projects: /users/username/projects/project/tsconfig.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/users/username/projects/project/a.ts" - ] - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/username/projects/project/a.ts" + ] + } } After running Timeout callback:: count: 0 @@ -296,13 +296,13 @@ Info seq [hh:mm:ss:mss] FileName: /users/username/projects/project/a.ts Projec Info seq [hh:mm:ss:mss] Projects: /users/username/projects/project/tsconfig.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/users/username/projects/project/a.ts" - ] - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/username/projects/project/a.ts" + ] + } } After running Timeout callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-when---outFile-is-set.js b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-when---outFile-is-set.js index 952c297f69d2e..8abcab06513c7 100644 --- a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-when---outFile-is-set.js +++ b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-when---outFile-is-set.js @@ -36,13 +36,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /users/username/projects Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/project/tsconfig.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectLoadingStart", - "body": { - "project": "/users/username/projects/project/tsconfig.json", - "reason": "Creating possible configured project for /users/username/projects/project/a.ts to open" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectLoadingStart", + "body": { + "project": "/users/username/projects/project/tsconfig.json", + "reason": "Creating possible configured project for /users/username/projects/project/a.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /users/username/projects/project/tsconfig.json : { "rootNames": [ @@ -76,63 +76,63 @@ Info seq [hh:mm:ss:mss] Files (2) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectLoadingFinish", - "body": { - "project": "/users/username/projects/project/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectLoadingFinish", + "body": { + "project": "/users/username/projects/project/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectInfo", - "body": { - "projectId": "5b0be5fc7f7235edf5a31bffe614b4e0819e55ec5f118558864b1f882e283c0d", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 16, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": { - "outFile": "" - }, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectInfo", + "body": { + "projectId": "5b0be5fc7f7235edf5a31bffe614b4e0819e55ec5f118558864b1f882e283c0d", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 16, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "outFile": "" + }, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::configFileDiag", - "body": { - "configFileName": "/users/username/projects/project/tsconfig.json", - "diagnostics": [], - "triggerFile": "/users/username/projects/project/a.ts" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::configFileDiag", + "body": { + "configFileName": "/users/username/projects/project/tsconfig.json", + "diagnostics": [], + "triggerFile": "/users/username/projects/project/a.ts" + } } Info seq [hh:mm:ss:mss] Project '/users/username/projects/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (2) @@ -212,14 +212,14 @@ Info seq [hh:mm:ss:mss] FileName: /users/username/projects/project/a.ts Projec Info seq [hh:mm:ss:mss] Projects: /users/username/projects/project/tsconfig.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/users/username/projects/project/a.ts" - ] - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/username/projects/project/a.ts" + ] + } } After running Timeout callback:: count: 0 @@ -281,13 +281,13 @@ Info seq [hh:mm:ss:mss] FileName: /users/username/projects/project/a.ts Projec Info seq [hh:mm:ss:mss] Projects: /users/username/projects/project/tsconfig.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/users/username/projects/project/a.ts" - ] - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/username/projects/project/a.ts" + ] + } } After running Timeout callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-when-adding-new-file.js b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-when-adding-new-file.js index c78df5800a919..c0363bae75927 100644 --- a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-when-adding-new-file.js +++ b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-when-adding-new-file.js @@ -36,13 +36,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /users/username/projects Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/project/tsconfig.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectLoadingStart", - "body": { - "project": "/users/username/projects/project/tsconfig.json", - "reason": "Creating possible configured project for /users/username/projects/project/file1.ts to open" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectLoadingStart", + "body": { + "project": "/users/username/projects/project/tsconfig.json", + "reason": "Creating possible configured project for /users/username/projects/project/file1.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /users/username/projects/project/tsconfig.json : { "rootNames": [ @@ -75,61 +75,61 @@ Info seq [hh:mm:ss:mss] Files (2) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectLoadingFinish", - "body": { - "project": "/users/username/projects/project/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectLoadingFinish", + "body": { + "project": "/users/username/projects/project/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectInfo", - "body": { - "projectId": "5b0be5fc7f7235edf5a31bffe614b4e0819e55ec5f118558864b1f882e283c0d", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 18, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": {}, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectInfo", + "body": { + "projectId": "5b0be5fc7f7235edf5a31bffe614b4e0819e55ec5f118558864b1f882e283c0d", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 18, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": {}, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::configFileDiag", - "body": { - "configFileName": "/users/username/projects/project/tsconfig.json", - "diagnostics": [], - "triggerFile": "/users/username/projects/project/file1.ts" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::configFileDiag", + "body": { + "configFileName": "/users/username/projects/project/tsconfig.json", + "diagnostics": [], + "triggerFile": "/users/username/projects/project/file1.ts" + } } Info seq [hh:mm:ss:mss] Project '/users/username/projects/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (2) @@ -209,14 +209,14 @@ Info seq [hh:mm:ss:mss] FileName: /users/username/projects/project/file1.ts Pr Info seq [hh:mm:ss:mss] Projects: /users/username/projects/project/tsconfig.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/users/username/projects/project/file1.ts" - ] - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/username/projects/project/file1.ts" + ] + } } After running Timeout callback:: count: 0 @@ -290,14 +290,14 @@ Info seq [hh:mm:ss:mss] FileName: /users/username/projects/project/file1.ts Pr Info seq [hh:mm:ss:mss] Projects: /users/username/projects/project/tsconfig.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/users/username/projects/project/file1.ts" - ] - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/username/projects/project/file1.ts" + ] + } } After running Timeout callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-when-both-options-are-not-set.js b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-when-both-options-are-not-set.js index 2e40bd101a44a..1e544b0c66356 100644 --- a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-when-both-options-are-not-set.js +++ b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/when-event-handler-is-set-in-the-session-and-when-both-options-are-not-set.js @@ -36,13 +36,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /users/username/projects Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/project/tsconfig.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectLoadingStart", - "body": { - "project": "/users/username/projects/project/tsconfig.json", - "reason": "Creating possible configured project for /users/username/projects/project/a.ts to open" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectLoadingStart", + "body": { + "project": "/users/username/projects/project/tsconfig.json", + "reason": "Creating possible configured project for /users/username/projects/project/a.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /users/username/projects/project/tsconfig.json : { "rootNames": [ @@ -75,61 +75,61 @@ Info seq [hh:mm:ss:mss] Files (2) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectLoadingFinish", - "body": { - "project": "/users/username/projects/project/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectLoadingFinish", + "body": { + "project": "/users/username/projects/project/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectInfo", - "body": { - "projectId": "5b0be5fc7f7235edf5a31bffe614b4e0819e55ec5f118558864b1f882e283c0d", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 16, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": {}, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectInfo", + "body": { + "projectId": "5b0be5fc7f7235edf5a31bffe614b4e0819e55ec5f118558864b1f882e283c0d", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 16, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": {}, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::configFileDiag", - "body": { - "configFileName": "/users/username/projects/project/tsconfig.json", - "diagnostics": [], - "triggerFile": "/users/username/projects/project/a.ts" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::configFileDiag", + "body": { + "configFileName": "/users/username/projects/project/tsconfig.json", + "diagnostics": [], + "triggerFile": "/users/username/projects/project/a.ts" + } } Info seq [hh:mm:ss:mss] Project '/users/username/projects/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (2) @@ -209,14 +209,14 @@ Info seq [hh:mm:ss:mss] FileName: /users/username/projects/project/a.ts Projec Info seq [hh:mm:ss:mss] Projects: /users/username/projects/project/tsconfig.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/users/username/projects/project/a.ts" - ] - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/username/projects/project/a.ts" + ] + } } After running Timeout callback:: count: 0 @@ -278,13 +278,13 @@ Info seq [hh:mm:ss:mss] FileName: /users/username/projects/project/a.ts Projec Info seq [hh:mm:ss:mss] Projects: /users/username/projects/project/tsconfig.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/users/username/projects/project/a.ts" - ] - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/username/projects/project/a.ts" + ] + } } After running Timeout callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-project-is-at-root-level.js b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-project-is-at-root-level.js index 327786d150412..2321123fdef18 100644 --- a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-project-is-at-root-level.js +++ b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-project-is-at-root-level.js @@ -39,13 +39,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /a/b/project/tsconfig.js Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/b/project/tsconfig.json 2000 undefined Project: /a/b/project/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/a/b/project/tsconfig.json", - "reason": "Creating possible configured project for /a/b/project/file1.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/a/b/project/tsconfig.json", + "reason": "Creating possible configured project for /a/b/project/file1.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /a/b/project/tsconfig.json : { "rootNames": [ @@ -82,66 +82,66 @@ Info seq [hh:mm:ss:mss] Files (3) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/a/b/project/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/a/b/project/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "1cf2001c133ce00fd258494c136bfa9707203d90270d151ea0f575d93d990f9d", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 2, - "tsSize": 39, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": { - "typeRoots": [] - }, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "1cf2001c133ce00fd258494c136bfa9707203d90270d151ea0f575d93d990f9d", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 2, + "tsSize": 39, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "typeRoots": [] + }, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/a/b/project/file1.ts", - "configFile": "/a/b/project/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/a/b/project/file1.ts", + "configFile": "/a/b/project/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Project '/a/b/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (3) @@ -213,14 +213,14 @@ Info seq [hh:mm:ss:mss] Projects: /a/b/project/tsconfig.json Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for /a/b/project/file1.ts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/a/b/project/file1.ts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/a/b/project/file1.ts" + ] + } } After running Timeout callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-project-is-not-at-root-level.js b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-project-is-not-at-root-level.js index 301c2660ac107..70f5612856a33 100644 --- a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-project-is-not-at-root-level.js +++ b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-project-is-not-at-root-level.js @@ -39,13 +39,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /user/username/rootfolde Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json 2000 undefined Project: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/rootfolder/otherfolder/a/b/project/tsconfig.json", - "reason": "Creating possible configured project for /user/username/rootfolder/otherfolder/a/b/project/file1.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/rootfolder/otherfolder/a/b/project/tsconfig.json", + "reason": "Creating possible configured project for /user/username/rootfolder/otherfolder/a/b/project/file1.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json : { "rootNames": [ @@ -90,66 +90,66 @@ Info seq [hh:mm:ss:mss] Files (3) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/rootfolder/otherfolder/a/b/project/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/rootfolder/otherfolder/a/b/project/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "79b1a0103ed8006f174a1f979cf698219d4ec4ae3a48594da1085f7a1749553c", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 2, - "tsSize": 39, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": { - "typeRoots": [] - }, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "79b1a0103ed8006f174a1f979cf698219d4ec4ae3a48594da1085f7a1749553c", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 2, + "tsSize": 39, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "typeRoots": [] + }, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/rootfolder/otherfolder/a/b/project/file1.ts", - "configFile": "/user/username/rootfolder/otherfolder/a/b/project/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/rootfolder/otherfolder/a/b/project/file1.ts", + "configFile": "/user/username/rootfolder/otherfolder/a/b/project/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Project '/user/username/rootfolder/otherfolder/a/b/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (3) @@ -229,14 +229,14 @@ Info seq [hh:mm:ss:mss] Projects: /user/username/rootfolder/otherfolder/a/b/p Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for /user/username/rootfolder/otherfolder/a/b/project/file1.ts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/user/username/rootfolder/otherfolder/a/b/project/file1.ts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/user/username/rootfolder/otherfolder/a/b/project/file1.ts" + ] + } } After running Timeout callback:: count: 0 @@ -343,14 +343,14 @@ Info seq [hh:mm:ss:mss] Projects: /user/username/rootfolder/otherfolder/a/b/p Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for /user/username/rootfolder/otherfolder/a/b/project/file1.ts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/user/username/rootfolder/otherfolder/a/b/project/file1.ts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/user/username/rootfolder/otherfolder/a/b/project/file1.ts" + ] + } } After running Timeout callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-should-always-return-the-file-itself-if---isolatedModules-is-specified.js b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-should-always-return-the-file-itself-if---isolatedModules-is-specified.js index f3c200bca9a39..76b5d211a3890 100644 --- a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-should-always-return-the-file-itself-if---isolatedModules-is-specified.js +++ b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-should-always-return-the-file-itself-if---isolatedModules-is-specified.js @@ -23,13 +23,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /users/username/projects Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/project/tsconfig.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/users/username/projects/project/tsconfig.json", - "reason": "Creating possible configured project for /users/username/projects/project/file1Consumer1.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/users/username/projects/project/tsconfig.json", + "reason": "Creating possible configured project for /users/username/projects/project/file1Consumer1.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /users/username/projects/project/tsconfig.json : { "rootNames": [ @@ -64,112 +64,112 @@ Info seq [hh:mm:ss:mss] Files (1) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/users/username/projects/project/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/users/username/projects/project/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "5b0be5fc7f7235edf5a31bffe614b4e0819e55ec5f118558864b1f882e283c0d", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 53, - "tsx": 0, - "tsxSize": 0, - "dts": 0, - "dtsSize": 0, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": { - "isolatedModules": true - }, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "5b0be5fc7f7235edf5a31bffe614b4e0819e55ec5f118558864b1f882e283c0d", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 53, + "tsx": 0, + "tsxSize": 0, + "dts": 0, + "dtsSize": 0, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "isolatedModules": true + }, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/users/username/projects/project/file1Consumer1.ts", - "configFile": "/users/username/projects/project/tsconfig.json", - "diagnostics": [ - { - "text": "File '/a/lib/lib.d.ts' not found.\n The file is in the program because:\n Default library for target 'es5'", - "code": 6053, - "category": "error" - }, - { - "text": "Cannot find global type 'Array'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Boolean'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Function'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'IArguments'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Number'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Object'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'RegExp'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'String'.", - "code": 2318, - "category": "error" - } - ] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/users/username/projects/project/file1Consumer1.ts", + "configFile": "/users/username/projects/project/tsconfig.json", + "diagnostics": [ + { + "text": "File '/a/lib/lib.d.ts' not found.\n The file is in the program because:\n Default library for target 'es5'", + "code": 6053, + "category": "error" + }, + { + "text": "Cannot find global type 'Array'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Boolean'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Function'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'IArguments'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Number'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Object'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'RegExp'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'String'.", + "code": 2318, + "category": "error" + } + ] + } } Info seq [hh:mm:ss:mss] Project '/users/username/projects/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (1) @@ -361,14 +361,14 @@ Info seq [hh:mm:ss:mss] Projects: /users/username/projects/project/tsconfig.j Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for /users/username/projects/project/file1Consumer1.ts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/users/username/projects/project/file1Consumer1.ts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/username/projects/project/file1Consumer1.ts" + ] + } } After running Timeout callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-should-always-return-the-file-itself-if---out-or---outFile-is-specified.js b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-should-always-return-the-file-itself-if---out-or---outFile-is-specified.js index 77d34c102a10e..a23c0a17b3f1d 100644 --- a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-should-always-return-the-file-itself-if---out-or---outFile-is-specified.js +++ b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-should-always-return-the-file-itself-if---out-or---outFile-is-specified.js @@ -23,13 +23,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /users/username/projects Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/project/tsconfig.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/users/username/projects/project/tsconfig.json", - "reason": "Creating possible configured project for /users/username/projects/project/file1Consumer1.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/users/username/projects/project/tsconfig.json", + "reason": "Creating possible configured project for /users/username/projects/project/file1Consumer1.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /users/username/projects/project/tsconfig.json : { "rootNames": [ @@ -63,113 +63,113 @@ Info seq [hh:mm:ss:mss] Files (1) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/users/username/projects/project/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/users/username/projects/project/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "5b0be5fc7f7235edf5a31bffe614b4e0819e55ec5f118558864b1f882e283c0d", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 53, - "tsx": 0, - "tsxSize": 0, - "dts": 0, - "dtsSize": 0, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": { - "module": "system", - "outFile": "" - }, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "5b0be5fc7f7235edf5a31bffe614b4e0819e55ec5f118558864b1f882e283c0d", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 53, + "tsx": 0, + "tsxSize": 0, + "dts": 0, + "dtsSize": 0, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "module": "system", + "outFile": "" + }, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/users/username/projects/project/file1Consumer1.ts", - "configFile": "/users/username/projects/project/tsconfig.json", - "diagnostics": [ - { - "text": "File '/a/lib/lib.d.ts' not found.\n The file is in the program because:\n Default library for target 'es5'", - "code": 6053, - "category": "error" - }, - { - "text": "Cannot find global type 'Array'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Boolean'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Function'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'IArguments'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Number'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Object'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'RegExp'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'String'.", - "code": 2318, - "category": "error" - } - ] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/users/username/projects/project/file1Consumer1.ts", + "configFile": "/users/username/projects/project/tsconfig.json", + "diagnostics": [ + { + "text": "File '/a/lib/lib.d.ts' not found.\n The file is in the program because:\n Default library for target 'es5'", + "code": 6053, + "category": "error" + }, + { + "text": "Cannot find global type 'Array'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Boolean'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Function'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'IArguments'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Number'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Object'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'RegExp'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'String'.", + "code": 2318, + "category": "error" + } + ] + } } Info seq [hh:mm:ss:mss] Project '/users/username/projects/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (1) @@ -355,14 +355,14 @@ Info seq [hh:mm:ss:mss] Projects: /users/username/projects/project/tsconfig.j Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for /users/username/projects/project/file1Consumer1.ts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/users/username/projects/project/file1Consumer1.ts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/username/projects/project/file1Consumer1.ts" + ] + } } After running Timeout callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-should-be-up-to-date-with-deleted-files.js b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-should-be-up-to-date-with-deleted-files.js index 4be9d1526771b..229917d999b42 100644 --- a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-should-be-up-to-date-with-deleted-files.js +++ b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-should-be-up-to-date-with-deleted-files.js @@ -23,13 +23,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /users/username/projects Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/project/tsconfig.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/users/username/projects/project/tsconfig.json", - "reason": "Creating possible configured project for /users/username/projects/project/file1Consumer1.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/users/username/projects/project/tsconfig.json", + "reason": "Creating possible configured project for /users/username/projects/project/file1Consumer1.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /users/username/projects/project/tsconfig.json : { "rootNames": [ @@ -63,110 +63,110 @@ Info seq [hh:mm:ss:mss] Files (1) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/users/username/projects/project/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/users/username/projects/project/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "5b0be5fc7f7235edf5a31bffe614b4e0819e55ec5f118558864b1f882e283c0d", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 53, - "tsx": 0, - "tsxSize": 0, - "dts": 0, - "dtsSize": 0, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": {}, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "5b0be5fc7f7235edf5a31bffe614b4e0819e55ec5f118558864b1f882e283c0d", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 53, + "tsx": 0, + "tsxSize": 0, + "dts": 0, + "dtsSize": 0, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": {}, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/users/username/projects/project/file1Consumer1.ts", - "configFile": "/users/username/projects/project/tsconfig.json", - "diagnostics": [ - { - "text": "File '/a/lib/lib.d.ts' not found.\n The file is in the program because:\n Default library for target 'es5'", - "code": 6053, - "category": "error" - }, - { - "text": "Cannot find global type 'Array'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Boolean'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Function'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'IArguments'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Number'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Object'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'RegExp'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'String'.", - "code": 2318, - "category": "error" - } - ] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/users/username/projects/project/file1Consumer1.ts", + "configFile": "/users/username/projects/project/tsconfig.json", + "diagnostics": [ + { + "text": "File '/a/lib/lib.d.ts' not found.\n The file is in the program because:\n Default library for target 'es5'", + "code": 6053, + "category": "error" + }, + { + "text": "Cannot find global type 'Array'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Boolean'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Function'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'IArguments'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Number'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Object'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'RegExp'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'String'.", + "code": 2318, + "category": "error" + } + ] + } } Info seq [hh:mm:ss:mss] Project '/users/username/projects/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (1) @@ -363,14 +363,14 @@ Info seq [hh:mm:ss:mss] Projects: /users/username/projects/project/tsconfig.j Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for /users/username/projects/project/file1Consumer1.ts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/users/username/projects/project/file1Consumer1.ts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/username/projects/project/file1Consumer1.ts" + ] + } } After running Timeout callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-should-be-up-to-date-with-newly-created-files.js b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-should-be-up-to-date-with-newly-created-files.js index b06c826b784bc..eea2fbd8b23e3 100644 --- a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-should-be-up-to-date-with-newly-created-files.js +++ b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-should-be-up-to-date-with-newly-created-files.js @@ -23,13 +23,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /users/username/projects Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/project/tsconfig.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/users/username/projects/project/tsconfig.json", - "reason": "Creating possible configured project for /users/username/projects/project/file1Consumer1.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/users/username/projects/project/tsconfig.json", + "reason": "Creating possible configured project for /users/username/projects/project/file1Consumer1.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /users/username/projects/project/tsconfig.json : { "rootNames": [ @@ -63,110 +63,110 @@ Info seq [hh:mm:ss:mss] Files (1) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/users/username/projects/project/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/users/username/projects/project/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "5b0be5fc7f7235edf5a31bffe614b4e0819e55ec5f118558864b1f882e283c0d", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 53, - "tsx": 0, - "tsxSize": 0, - "dts": 0, - "dtsSize": 0, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": {}, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "5b0be5fc7f7235edf5a31bffe614b4e0819e55ec5f118558864b1f882e283c0d", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 53, + "tsx": 0, + "tsxSize": 0, + "dts": 0, + "dtsSize": 0, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": {}, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/users/username/projects/project/file1Consumer1.ts", - "configFile": "/users/username/projects/project/tsconfig.json", - "diagnostics": [ - { - "text": "File '/a/lib/lib.d.ts' not found.\n The file is in the program because:\n Default library for target 'es5'", - "code": 6053, - "category": "error" - }, - { - "text": "Cannot find global type 'Array'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Boolean'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Function'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'IArguments'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Number'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Object'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'RegExp'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'String'.", - "code": 2318, - "category": "error" - } - ] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/users/username/projects/project/file1Consumer1.ts", + "configFile": "/users/username/projects/project/tsconfig.json", + "diagnostics": [ + { + "text": "File '/a/lib/lib.d.ts' not found.\n The file is in the program because:\n Default library for target 'es5'", + "code": 6053, + "category": "error" + }, + { + "text": "Cannot find global type 'Array'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Boolean'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Function'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'IArguments'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Number'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Object'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'RegExp'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'String'.", + "code": 2318, + "category": "error" + } + ] + } } Info seq [hh:mm:ss:mss] Project '/users/username/projects/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (1) @@ -375,14 +375,14 @@ Info seq [hh:mm:ss:mss] Projects: /users/username/projects/project/tsconfig.j Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for /users/username/projects/project/file1Consumer1.ts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/users/username/projects/project/file1Consumer1.ts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/username/projects/project/file1Consumer1.ts" + ] + } } After running Timeout callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-should-be-up-to-date-with-the-reference-map-changes.js b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-should-be-up-to-date-with-the-reference-map-changes.js index 13aa08ea191a5..4f72020aad236 100644 --- a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-should-be-up-to-date-with-the-reference-map-changes.js +++ b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-should-be-up-to-date-with-the-reference-map-changes.js @@ -23,13 +23,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /users/username/projects Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/project/tsconfig.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/users/username/projects/project/tsconfig.json", - "reason": "Creating possible configured project for /users/username/projects/project/file1Consumer1.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/users/username/projects/project/tsconfig.json", + "reason": "Creating possible configured project for /users/username/projects/project/file1Consumer1.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /users/username/projects/project/tsconfig.json : { "rootNames": [ @@ -63,110 +63,110 @@ Info seq [hh:mm:ss:mss] Files (1) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/users/username/projects/project/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/users/username/projects/project/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "5b0be5fc7f7235edf5a31bffe614b4e0819e55ec5f118558864b1f882e283c0d", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 53, - "tsx": 0, - "tsxSize": 0, - "dts": 0, - "dtsSize": 0, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": {}, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "5b0be5fc7f7235edf5a31bffe614b4e0819e55ec5f118558864b1f882e283c0d", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 53, + "tsx": 0, + "tsxSize": 0, + "dts": 0, + "dtsSize": 0, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": {}, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/users/username/projects/project/file1Consumer1.ts", - "configFile": "/users/username/projects/project/tsconfig.json", - "diagnostics": [ - { - "text": "File '/a/lib/lib.d.ts' not found.\n The file is in the program because:\n Default library for target 'es5'", - "code": 6053, - "category": "error" - }, - { - "text": "Cannot find global type 'Array'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Boolean'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Function'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'IArguments'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Number'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Object'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'RegExp'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'String'.", - "code": 2318, - "category": "error" - } - ] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/users/username/projects/project/file1Consumer1.ts", + "configFile": "/users/username/projects/project/tsconfig.json", + "diagnostics": [ + { + "text": "File '/a/lib/lib.d.ts' not found.\n The file is in the program because:\n Default library for target 'es5'", + "code": 6053, + "category": "error" + }, + { + "text": "Cannot find global type 'Array'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Boolean'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Function'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'IArguments'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Number'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Object'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'RegExp'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'String'.", + "code": 2318, + "category": "error" + } + ] + } } Info seq [hh:mm:ss:mss] Project '/users/username/projects/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (1) @@ -372,14 +372,14 @@ Info seq [hh:mm:ss:mss] Projects: /users/username/projects/project/tsconfig.j Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for /users/username/projects/project/file1Consumer1.ts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/users/username/projects/project/file1Consumer1.ts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/username/projects/project/file1Consumer1.ts" + ] + } } After running Timeout callback:: count: 0 @@ -455,14 +455,14 @@ Info seq [hh:mm:ss:mss] Projects: /users/username/projects/project/tsconfig.j Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for /users/username/projects/project/file1Consumer1.ts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/users/username/projects/project/file1Consumer1.ts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/username/projects/project/file1Consumer1.ts" + ] + } } After running Timeout callback:: count: 0 @@ -540,14 +540,14 @@ Info seq [hh:mm:ss:mss] Projects: /users/username/projects/project/tsconfig.j Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for /users/username/projects/project/file1Consumer1.ts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/users/username/projects/project/file1Consumer1.ts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/username/projects/project/file1Consumer1.ts" + ] + } } After running Timeout callback:: count: 0 @@ -649,13 +649,13 @@ Info seq [hh:mm:ss:mss] Projects: /users/username/projects/project/tsconfig.j Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for /users/username/projects/project/file1Consumer1.ts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/users/username/projects/project/file1Consumer1.ts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/username/projects/project/file1Consumer1.ts" + ] + } } After running Timeout callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-should-contains-only-itself.js b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-should-contains-only-itself.js index 73fbadac755a4..a573d386bd46e 100644 --- a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-should-contains-only-itself.js +++ b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-should-contains-only-itself.js @@ -23,13 +23,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /users/username/projects Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/project/tsconfig.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/users/username/projects/project/tsconfig.json", - "reason": "Creating possible configured project for /users/username/projects/project/file1Consumer1.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/users/username/projects/project/tsconfig.json", + "reason": "Creating possible configured project for /users/username/projects/project/file1Consumer1.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /users/username/projects/project/tsconfig.json : { "rootNames": [ @@ -63,110 +63,110 @@ Info seq [hh:mm:ss:mss] Files (1) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/users/username/projects/project/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/users/username/projects/project/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "5b0be5fc7f7235edf5a31bffe614b4e0819e55ec5f118558864b1f882e283c0d", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 53, - "tsx": 0, - "tsxSize": 0, - "dts": 0, - "dtsSize": 0, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": {}, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "5b0be5fc7f7235edf5a31bffe614b4e0819e55ec5f118558864b1f882e283c0d", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 53, + "tsx": 0, + "tsxSize": 0, + "dts": 0, + "dtsSize": 0, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": {}, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/users/username/projects/project/file1Consumer1.ts", - "configFile": "/users/username/projects/project/tsconfig.json", - "diagnostics": [ - { - "text": "File '/a/lib/lib.d.ts' not found.\n The file is in the program because:\n Default library for target 'es5'", - "code": 6053, - "category": "error" - }, - { - "text": "Cannot find global type 'Array'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Boolean'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Function'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'IArguments'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Number'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Object'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'RegExp'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'String'.", - "code": 2318, - "category": "error" - } - ] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/users/username/projects/project/file1Consumer1.ts", + "configFile": "/users/username/projects/project/tsconfig.json", + "diagnostics": [ + { + "text": "File '/a/lib/lib.d.ts' not found.\n The file is in the program because:\n Default library for target 'es5'", + "code": 6053, + "category": "error" + }, + { + "text": "Cannot find global type 'Array'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Boolean'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Function'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'IArguments'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Number'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Object'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'RegExp'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'String'.", + "code": 2318, + "category": "error" + } + ] + } } Info seq [hh:mm:ss:mss] Project '/users/username/projects/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (1) @@ -358,14 +358,14 @@ Info seq [hh:mm:ss:mss] Projects: /users/username/projects/project/tsconfig.j Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for /users/username/projects/project/file1Consumer1.ts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/users/username/projects/project/file1Consumer1.ts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/username/projects/project/file1Consumer1.ts" + ] + } } After running Timeout callback:: count: 0 @@ -445,13 +445,13 @@ Info seq [hh:mm:ss:mss] Projects: /users/username/projects/project/tsconfig.j Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for /users/username/projects/project/file1Consumer1.ts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/users/username/projects/project/file1Consumer1.ts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/username/projects/project/file1Consumer1.ts" + ] + } } After running Timeout callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-should-detect-changes-in-non-root-files.js b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-should-detect-changes-in-non-root-files.js index 26f1e235e1070..c6ba2485e0360 100644 --- a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-should-detect-changes-in-non-root-files.js +++ b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-should-detect-changes-in-non-root-files.js @@ -23,13 +23,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /users/username/projects Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/project/tsconfig.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/users/username/projects/project/tsconfig.json", - "reason": "Creating possible configured project for /users/username/projects/project/file1Consumer1.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/users/username/projects/project/tsconfig.json", + "reason": "Creating possible configured project for /users/username/projects/project/file1Consumer1.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /users/username/projects/project/tsconfig.json : { "rootNames": [ @@ -61,110 +61,110 @@ Info seq [hh:mm:ss:mss] Files (1) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/users/username/projects/project/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/users/username/projects/project/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "5b0be5fc7f7235edf5a31bffe614b4e0819e55ec5f118558864b1f882e283c0d", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 53, - "tsx": 0, - "tsxSize": 0, - "dts": 0, - "dtsSize": 0, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": {}, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": true, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "5b0be5fc7f7235edf5a31bffe614b4e0819e55ec5f118558864b1f882e283c0d", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 53, + "tsx": 0, + "tsxSize": 0, + "dts": 0, + "dtsSize": 0, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": {}, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": true, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/users/username/projects/project/file1Consumer1.ts", - "configFile": "/users/username/projects/project/tsconfig.json", - "diagnostics": [ - { - "text": "File '/a/lib/lib.d.ts' not found.\n The file is in the program because:\n Default library for target 'es5'", - "code": 6053, - "category": "error" - }, - { - "text": "Cannot find global type 'Array'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Boolean'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Function'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'IArguments'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Number'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Object'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'RegExp'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'String'.", - "code": 2318, - "category": "error" - } - ] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/users/username/projects/project/file1Consumer1.ts", + "configFile": "/users/username/projects/project/tsconfig.json", + "diagnostics": [ + { + "text": "File '/a/lib/lib.d.ts' not found.\n The file is in the program because:\n Default library for target 'es5'", + "code": 6053, + "category": "error" + }, + { + "text": "Cannot find global type 'Array'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Boolean'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Function'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'IArguments'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Number'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Object'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'RegExp'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'String'.", + "code": 2318, + "category": "error" + } + ] + } } Info seq [hh:mm:ss:mss] Project '/users/username/projects/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (1) @@ -318,14 +318,14 @@ Info seq [hh:mm:ss:mss] Projects: /users/username/projects/project/tsconfig.j Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for /users/username/projects/project/file1Consumer1.ts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/users/username/projects/project/file1Consumer1.ts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/username/projects/project/file1Consumer1.ts" + ] + } } After running Timeout callback:: count: 0 @@ -392,13 +392,13 @@ Info seq [hh:mm:ss:mss] Projects: /users/username/projects/project/tsconfig.j Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for /users/username/projects/project/file1Consumer1.ts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/users/username/projects/project/file1Consumer1.ts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/username/projects/project/file1Consumer1.ts" + ] + } } After running Timeout callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-should-detect-non-existing-code-file.js b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-should-detect-non-existing-code-file.js index 19ac3bac596dc..399712e483b1e 100644 --- a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-should-detect-non-existing-code-file.js +++ b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-should-detect-non-existing-code-file.js @@ -25,13 +25,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /users/username/projects Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/project/tsconfig.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/users/username/projects/project/tsconfig.json", - "reason": "Creating possible configured project for /users/username/projects/project/referenceFile1.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/users/username/projects/project/tsconfig.json", + "reason": "Creating possible configured project for /users/username/projects/project/referenceFile1.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /users/username/projects/project/tsconfig.json : { "rootNames": [ @@ -62,110 +62,110 @@ Info seq [hh:mm:ss:mss] Files (1) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/users/username/projects/project/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/users/username/projects/project/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "5b0be5fc7f7235edf5a31bffe614b4e0819e55ec5f118558864b1f882e283c0d", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 104, - "tsx": 0, - "tsxSize": 0, - "dts": 0, - "dtsSize": 0, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": {}, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "5b0be5fc7f7235edf5a31bffe614b4e0819e55ec5f118558864b1f882e283c0d", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 104, + "tsx": 0, + "tsxSize": 0, + "dts": 0, + "dtsSize": 0, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": {}, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/users/username/projects/project/referenceFile1.ts", - "configFile": "/users/username/projects/project/tsconfig.json", - "diagnostics": [ - { - "text": "File '/a/lib/lib.d.ts' not found.\n The file is in the program because:\n Default library for target 'es5'", - "code": 6053, - "category": "error" - }, - { - "text": "Cannot find global type 'Array'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Boolean'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Function'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'IArguments'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Number'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Object'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'RegExp'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'String'.", - "code": 2318, - "category": "error" - } - ] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/users/username/projects/project/referenceFile1.ts", + "configFile": "/users/username/projects/project/tsconfig.json", + "diagnostics": [ + { + "text": "File '/a/lib/lib.d.ts' not found.\n The file is in the program because:\n Default library for target 'es5'", + "code": 6053, + "category": "error" + }, + { + "text": "Cannot find global type 'Array'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Boolean'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Function'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'IArguments'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Number'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Object'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'RegExp'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'String'.", + "code": 2318, + "category": "error" + } + ] + } } Info seq [hh:mm:ss:mss] Project '/users/username/projects/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (1) @@ -298,14 +298,14 @@ Info seq [hh:mm:ss:mss] Projects: /users/username/projects/project/tsconfig.j Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for /users/username/projects/project/referenceFile1.ts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/users/username/projects/project/referenceFile1.ts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/username/projects/project/referenceFile1.ts" + ] + } } After running Timeout callback:: count: 0 @@ -403,14 +403,14 @@ Info seq [hh:mm:ss:mss] Projects: /users/username/projects/project/tsconfig.j Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for /users/username/projects/project/referenceFile1.ts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/users/username/projects/project/referenceFile1.ts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/username/projects/project/referenceFile1.ts" + ] + } } After running Timeout callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-should-detect-removed-code-file.js b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-should-detect-removed-code-file.js index 783e25bcbd8f0..d0a3c52619207 100644 --- a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-should-detect-removed-code-file.js +++ b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-should-detect-removed-code-file.js @@ -25,13 +25,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /users/username/projects Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/project/tsconfig.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/users/username/projects/project/tsconfig.json", - "reason": "Creating possible configured project for /users/username/projects/project/referenceFile1.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/users/username/projects/project/tsconfig.json", + "reason": "Creating possible configured project for /users/username/projects/project/referenceFile1.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /users/username/projects/project/tsconfig.json : { "rootNames": [ @@ -62,110 +62,110 @@ Info seq [hh:mm:ss:mss] Files (1) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/users/username/projects/project/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/users/username/projects/project/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "5b0be5fc7f7235edf5a31bffe614b4e0819e55ec5f118558864b1f882e283c0d", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 104, - "tsx": 0, - "tsxSize": 0, - "dts": 0, - "dtsSize": 0, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": {}, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "5b0be5fc7f7235edf5a31bffe614b4e0819e55ec5f118558864b1f882e283c0d", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 104, + "tsx": 0, + "tsxSize": 0, + "dts": 0, + "dtsSize": 0, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": {}, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/users/username/projects/project/referenceFile1.ts", - "configFile": "/users/username/projects/project/tsconfig.json", - "diagnostics": [ - { - "text": "File '/a/lib/lib.d.ts' not found.\n The file is in the program because:\n Default library for target 'es5'", - "code": 6053, - "category": "error" - }, - { - "text": "Cannot find global type 'Array'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Boolean'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Function'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'IArguments'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Number'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Object'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'RegExp'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'String'.", - "code": 2318, - "category": "error" - } - ] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/users/username/projects/project/referenceFile1.ts", + "configFile": "/users/username/projects/project/tsconfig.json", + "diagnostics": [ + { + "text": "File '/a/lib/lib.d.ts' not found.\n The file is in the program because:\n Default library for target 'es5'", + "code": 6053, + "category": "error" + }, + { + "text": "Cannot find global type 'Array'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Boolean'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Function'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'IArguments'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Number'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Object'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'RegExp'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'String'.", + "code": 2318, + "category": "error" + } + ] + } } Info seq [hh:mm:ss:mss] Project '/users/username/projects/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (1) @@ -290,14 +290,14 @@ Info seq [hh:mm:ss:mss] Projects: /users/username/projects/project/tsconfig.j Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for /users/username/projects/project/referenceFile1.ts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/users/username/projects/project/referenceFile1.ts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/username/projects/project/referenceFile1.ts" + ] + } } After running Timeout callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-should-return-all-files-if-a-global-file-changed-shape.js b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-should-return-all-files-if-a-global-file-changed-shape.js index bacd04d03046e..4528bdf51ea14 100644 --- a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-should-return-all-files-if-a-global-file-changed-shape.js +++ b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-should-return-all-files-if-a-global-file-changed-shape.js @@ -23,13 +23,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /users/username/projects Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/project/tsconfig.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/users/username/projects/project/tsconfig.json", - "reason": "Creating possible configured project for /users/username/projects/project/file1Consumer1.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/users/username/projects/project/tsconfig.json", + "reason": "Creating possible configured project for /users/username/projects/project/file1Consumer1.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /users/username/projects/project/tsconfig.json : { "rootNames": [ @@ -63,110 +63,110 @@ Info seq [hh:mm:ss:mss] Files (1) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/users/username/projects/project/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/users/username/projects/project/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "5b0be5fc7f7235edf5a31bffe614b4e0819e55ec5f118558864b1f882e283c0d", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 53, - "tsx": 0, - "tsxSize": 0, - "dts": 0, - "dtsSize": 0, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": {}, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "5b0be5fc7f7235edf5a31bffe614b4e0819e55ec5f118558864b1f882e283c0d", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 53, + "tsx": 0, + "tsxSize": 0, + "dts": 0, + "dtsSize": 0, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": {}, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/users/username/projects/project/file1Consumer1.ts", - "configFile": "/users/username/projects/project/tsconfig.json", - "diagnostics": [ - { - "text": "File '/a/lib/lib.d.ts' not found.\n The file is in the program because:\n Default library for target 'es5'", - "code": 6053, - "category": "error" - }, - { - "text": "Cannot find global type 'Array'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Boolean'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Function'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'IArguments'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Number'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Object'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'RegExp'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'String'.", - "code": 2318, - "category": "error" - } - ] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/users/username/projects/project/file1Consumer1.ts", + "configFile": "/users/username/projects/project/tsconfig.json", + "diagnostics": [ + { + "text": "File '/a/lib/lib.d.ts' not found.\n The file is in the program because:\n Default library for target 'es5'", + "code": 6053, + "category": "error" + }, + { + "text": "Cannot find global type 'Array'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Boolean'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Function'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'IArguments'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Number'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Object'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'RegExp'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'String'.", + "code": 2318, + "category": "error" + } + ] + } } Info seq [hh:mm:ss:mss] Project '/users/username/projects/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (1) @@ -358,14 +358,14 @@ Info seq [hh:mm:ss:mss] Projects: /users/username/projects/project/tsconfig.j Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for /users/username/projects/project/file1Consumer1.ts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/users/username/projects/project/file1Consumer1.ts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/username/projects/project/file1Consumer1.ts" + ] + } } After running Timeout callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-should-return-cascaded-affected-file-list.js b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-should-return-cascaded-affected-file-list.js index 3a51541502132..b28a28381bb56 100644 --- a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-should-return-cascaded-affected-file-list.js +++ b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-should-return-cascaded-affected-file-list.js @@ -23,13 +23,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /users/username/projects Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/project/tsconfig.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/users/username/projects/project/tsconfig.json", - "reason": "Creating possible configured project for /users/username/projects/project/file1Consumer1.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/users/username/projects/project/tsconfig.json", + "reason": "Creating possible configured project for /users/username/projects/project/file1Consumer1.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /users/username/projects/project/tsconfig.json : { "rootNames": [ @@ -63,110 +63,110 @@ Info seq [hh:mm:ss:mss] Files (1) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/users/username/projects/project/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/users/username/projects/project/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "5b0be5fc7f7235edf5a31bffe614b4e0819e55ec5f118558864b1f882e283c0d", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 53, - "tsx": 0, - "tsxSize": 0, - "dts": 0, - "dtsSize": 0, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": {}, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "5b0be5fc7f7235edf5a31bffe614b4e0819e55ec5f118558864b1f882e283c0d", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 53, + "tsx": 0, + "tsxSize": 0, + "dts": 0, + "dtsSize": 0, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": {}, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/users/username/projects/project/file1Consumer1.ts", - "configFile": "/users/username/projects/project/tsconfig.json", - "diagnostics": [ - { - "text": "File '/a/lib/lib.d.ts' not found.\n The file is in the program because:\n Default library for target 'es5'", - "code": 6053, - "category": "error" - }, - { - "text": "Cannot find global type 'Array'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Boolean'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Function'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'IArguments'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Number'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Object'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'RegExp'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'String'.", - "code": 2318, - "category": "error" - } - ] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/users/username/projects/project/file1Consumer1.ts", + "configFile": "/users/username/projects/project/tsconfig.json", + "diagnostics": [ + { + "text": "File '/a/lib/lib.d.ts' not found.\n The file is in the program because:\n Default library for target 'es5'", + "code": 6053, + "category": "error" + }, + { + "text": "Cannot find global type 'Array'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Boolean'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Function'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'IArguments'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Number'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Object'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'RegExp'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'String'.", + "code": 2318, + "category": "error" + } + ] + } } Info seq [hh:mm:ss:mss] Project '/users/username/projects/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (1) @@ -392,14 +392,14 @@ Info seq [hh:mm:ss:mss] Projects: /users/username/projects/project/tsconfig.j Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for /users/username/projects/project/file1Consumer1.ts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/users/username/projects/project/file1Consumer1.ts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/username/projects/project/file1Consumer1.ts" + ] + } } After running Timeout callback:: count: 0 @@ -482,14 +482,14 @@ Info seq [hh:mm:ss:mss] Projects: /users/username/projects/project/tsconfig.j Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for /users/username/projects/project/file1Consumer1.ts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/users/username/projects/project/file1Consumer1.ts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/username/projects/project/file1Consumer1.ts" + ] + } } After running Timeout callback:: count: 0 @@ -560,13 +560,13 @@ Info seq [hh:mm:ss:mss] Projects: /users/username/projects/project/tsconfig.j Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for /users/username/projects/project/file1Consumer1.ts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/users/username/projects/project/file1Consumer1.ts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/username/projects/project/file1Consumer1.ts" + ] + } } After running Timeout callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-should-work-fine-for-files-with-circular-references.js b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-should-work-fine-for-files-with-circular-references.js index f2bcb5b059918..1d6e8b9cc1de9 100644 --- a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-should-work-fine-for-files-with-circular-references.js +++ b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-should-work-fine-for-files-with-circular-references.js @@ -25,13 +25,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /users/username/projects Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/project/tsconfig.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/users/username/projects/project/tsconfig.json", - "reason": "Creating possible configured project for /users/username/projects/project/file1.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/users/username/projects/project/tsconfig.json", + "reason": "Creating possible configured project for /users/username/projects/project/file1.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /users/username/projects/project/tsconfig.json : { "rootNames": [ @@ -62,110 +62,110 @@ Info seq [hh:mm:ss:mss] Files (1) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/users/username/projects/project/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/users/username/projects/project/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "5b0be5fc7f7235edf5a31bffe614b4e0819e55ec5f118558864b1f882e283c0d", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 96, - "tsx": 0, - "tsxSize": 0, - "dts": 0, - "dtsSize": 0, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": {}, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "5b0be5fc7f7235edf5a31bffe614b4e0819e55ec5f118558864b1f882e283c0d", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 96, + "tsx": 0, + "tsxSize": 0, + "dts": 0, + "dtsSize": 0, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": {}, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/users/username/projects/project/file1.ts", - "configFile": "/users/username/projects/project/tsconfig.json", - "diagnostics": [ - { - "text": "File '/a/lib/lib.d.ts' not found.\n The file is in the program because:\n Default library for target 'es5'", - "code": 6053, - "category": "error" - }, - { - "text": "Cannot find global type 'Array'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Boolean'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Function'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'IArguments'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Number'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Object'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'RegExp'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'String'.", - "code": 2318, - "category": "error" - } - ] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/users/username/projects/project/file1.ts", + "configFile": "/users/username/projects/project/tsconfig.json", + "diagnostics": [ + { + "text": "File '/a/lib/lib.d.ts' not found.\n The file is in the program because:\n Default library for target 'es5'", + "code": 6053, + "category": "error" + }, + { + "text": "Cannot find global type 'Array'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Boolean'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Function'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'IArguments'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Number'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Object'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'RegExp'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'String'.", + "code": 2318, + "category": "error" + } + ] + } } Info seq [hh:mm:ss:mss] Project '/users/username/projects/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (1) @@ -296,14 +296,14 @@ Info seq [hh:mm:ss:mss] Projects: /users/username/projects/project/tsconfig.j Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for /users/username/projects/project/file1.ts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/users/username/projects/project/file1.ts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/username/projects/project/file1.ts" + ] + } } After running Timeout callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-when---out-is-set.js b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-when---out-is-set.js index 9d2ddd5242fda..d24ed5084701c 100644 --- a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-when---out-is-set.js +++ b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-when---out-is-set.js @@ -36,13 +36,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /users/username/projects Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/project/tsconfig.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/users/username/projects/project/tsconfig.json", - "reason": "Creating possible configured project for /users/username/projects/project/a.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/users/username/projects/project/tsconfig.json", + "reason": "Creating possible configured project for /users/username/projects/project/a.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /users/username/projects/project/tsconfig.json : { "rootNames": [ @@ -76,81 +76,81 @@ Info seq [hh:mm:ss:mss] Files (2) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/users/username/projects/project/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/users/username/projects/project/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "5b0be5fc7f7235edf5a31bffe614b4e0819e55ec5f118558864b1f882e283c0d", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 16, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": { - "out": "" - }, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "5b0be5fc7f7235edf5a31bffe614b4e0819e55ec5f118558864b1f882e283c0d", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 16, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "out": "" + }, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/users/username/projects/project/a.ts", - "configFile": "/users/username/projects/project/tsconfig.json", - "diagnostics": [ - { - "start": { - "line": 1, - "offset": 21 - }, - "end": { - "line": 1, - "offset": 26 - }, - "text": "Option 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify compilerOption '\"ignoreDeprecations\": \"5.0\"' to silence this error.\n Use 'outFile' instead.", - "code": 5101, - "category": "error", - "fileName": "/users/username/projects/project/tsconfig.json" - } - ] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/users/username/projects/project/a.ts", + "configFile": "/users/username/projects/project/tsconfig.json", + "diagnostics": [ + { + "start": { + "line": 1, + "offset": 21 + }, + "end": { + "line": 1, + "offset": 26 + }, + "text": "Option 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify compilerOption '\"ignoreDeprecations\": \"5.0\"' to silence this error.\n Use 'outFile' instead.", + "code": 5101, + "category": "error", + "fileName": "/users/username/projects/project/tsconfig.json" + } + ] + } } Info seq [hh:mm:ss:mss] Project '/users/username/projects/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (2) @@ -231,14 +231,14 @@ Info seq [hh:mm:ss:mss] Projects: /users/username/projects/project/tsconfig.j Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for /users/username/projects/project/a.ts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/users/username/projects/project/a.ts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/username/projects/project/a.ts" + ] + } } After running Timeout callback:: count: 0 @@ -301,13 +301,13 @@ Info seq [hh:mm:ss:mss] Projects: /users/username/projects/project/tsconfig.j Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for /users/username/projects/project/a.ts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/users/username/projects/project/a.ts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/username/projects/project/a.ts" + ] + } } After running Timeout callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-when---outFile-is-set.js b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-when---outFile-is-set.js index bdc44c541e06c..c7675888dec07 100644 --- a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-when---outFile-is-set.js +++ b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-when---outFile-is-set.js @@ -36,13 +36,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /users/username/projects Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/project/tsconfig.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/users/username/projects/project/tsconfig.json", - "reason": "Creating possible configured project for /users/username/projects/project/a.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/users/username/projects/project/tsconfig.json", + "reason": "Creating possible configured project for /users/username/projects/project/a.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /users/username/projects/project/tsconfig.json : { "rootNames": [ @@ -76,66 +76,66 @@ Info seq [hh:mm:ss:mss] Files (2) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/users/username/projects/project/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/users/username/projects/project/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "5b0be5fc7f7235edf5a31bffe614b4e0819e55ec5f118558864b1f882e283c0d", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 16, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": { - "outFile": "" - }, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "5b0be5fc7f7235edf5a31bffe614b4e0819e55ec5f118558864b1f882e283c0d", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 16, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "outFile": "" + }, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/users/username/projects/project/a.ts", - "configFile": "/users/username/projects/project/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/users/username/projects/project/a.ts", + "configFile": "/users/username/projects/project/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Project '/users/username/projects/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (2) @@ -216,14 +216,14 @@ Info seq [hh:mm:ss:mss] Projects: /users/username/projects/project/tsconfig.j Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for /users/username/projects/project/a.ts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/users/username/projects/project/a.ts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/username/projects/project/a.ts" + ] + } } After running Timeout callback:: count: 0 @@ -286,13 +286,13 @@ Info seq [hh:mm:ss:mss] Projects: /users/username/projects/project/tsconfig.j Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for /users/username/projects/project/a.ts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/users/username/projects/project/a.ts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/username/projects/project/a.ts" + ] + } } After running Timeout callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-when-adding-new-file.js b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-when-adding-new-file.js index f8b844095bdf5..c728f4f7d8631 100644 --- a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-when-adding-new-file.js +++ b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-when-adding-new-file.js @@ -36,13 +36,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /users/username/projects Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/project/tsconfig.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/users/username/projects/project/tsconfig.json", - "reason": "Creating possible configured project for /users/username/projects/project/file1.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/users/username/projects/project/tsconfig.json", + "reason": "Creating possible configured project for /users/username/projects/project/file1.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /users/username/projects/project/tsconfig.json : { "rootNames": [ @@ -75,64 +75,64 @@ Info seq [hh:mm:ss:mss] Files (2) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/users/username/projects/project/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/users/username/projects/project/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "5b0be5fc7f7235edf5a31bffe614b4e0819e55ec5f118558864b1f882e283c0d", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 18, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": {}, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "5b0be5fc7f7235edf5a31bffe614b4e0819e55ec5f118558864b1f882e283c0d", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 18, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": {}, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/users/username/projects/project/file1.ts", - "configFile": "/users/username/projects/project/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/users/username/projects/project/file1.ts", + "configFile": "/users/username/projects/project/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Project '/users/username/projects/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (2) @@ -213,14 +213,14 @@ Info seq [hh:mm:ss:mss] Projects: /users/username/projects/project/tsconfig.j Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for /users/username/projects/project/file1.ts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/users/username/projects/project/file1.ts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/username/projects/project/file1.ts" + ] + } } After running Timeout callback:: count: 0 @@ -295,14 +295,14 @@ Info seq [hh:mm:ss:mss] Projects: /users/username/projects/project/tsconfig.j Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for /users/username/projects/project/file1.ts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/users/username/projects/project/file1.ts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/username/projects/project/file1.ts" + ] + } } After running Timeout callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-when-both-options-are-not-set.js b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-when-both-options-are-not-set.js index 1b4f4cfba5bfb..b2be4e6051f22 100644 --- a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-when-both-options-are-not-set.js +++ b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/with-noGetErrOnBackgroundUpdate-and-when-both-options-are-not-set.js @@ -36,13 +36,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /users/username/projects Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/project/tsconfig.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/users/username/projects/project/tsconfig.json", - "reason": "Creating possible configured project for /users/username/projects/project/a.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/users/username/projects/project/tsconfig.json", + "reason": "Creating possible configured project for /users/username/projects/project/a.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /users/username/projects/project/tsconfig.json : { "rootNames": [ @@ -75,64 +75,64 @@ Info seq [hh:mm:ss:mss] Files (2) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/users/username/projects/project/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/users/username/projects/project/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "5b0be5fc7f7235edf5a31bffe614b4e0819e55ec5f118558864b1f882e283c0d", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 16, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": {}, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "5b0be5fc7f7235edf5a31bffe614b4e0819e55ec5f118558864b1f882e283c0d", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 16, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": {}, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/users/username/projects/project/a.ts", - "configFile": "/users/username/projects/project/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/users/username/projects/project/a.ts", + "configFile": "/users/username/projects/project/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Project '/users/username/projects/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (2) @@ -213,14 +213,14 @@ Info seq [hh:mm:ss:mss] Projects: /users/username/projects/project/tsconfig.j Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for /users/username/projects/project/a.ts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/users/username/projects/project/a.ts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/username/projects/project/a.ts" + ] + } } After running Timeout callback:: count: 0 @@ -283,13 +283,13 @@ Info seq [hh:mm:ss:mss] Projects: /users/username/projects/project/tsconfig.j Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for /users/username/projects/project/a.ts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/users/username/projects/project/a.ts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/username/projects/project/a.ts" + ] + } } After running Timeout callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-project-is-at-root-level.js b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-project-is-at-root-level.js index f2224dd7f67da..bf4a6f01b64de 100644 --- a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-project-is-at-root-level.js +++ b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-project-is-at-root-level.js @@ -39,13 +39,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /a/b/project/tsconfig.js Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/b/project/tsconfig.json 2000 undefined Project: /a/b/project/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/a/b/project/tsconfig.json", - "reason": "Creating possible configured project for /a/b/project/file1.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/a/b/project/tsconfig.json", + "reason": "Creating possible configured project for /a/b/project/file1.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /a/b/project/tsconfig.json : { "rootNames": [ @@ -82,66 +82,66 @@ Info seq [hh:mm:ss:mss] Files (3) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/a/b/project/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/a/b/project/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "1cf2001c133ce00fd258494c136bfa9707203d90270d151ea0f575d93d990f9d", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 2, - "tsSize": 39, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": { - "typeRoots": [] - }, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "1cf2001c133ce00fd258494c136bfa9707203d90270d151ea0f575d93d990f9d", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 2, + "tsSize": 39, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "typeRoots": [] + }, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/a/b/project/file1.ts", - "configFile": "/a/b/project/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/a/b/project/file1.ts", + "configFile": "/a/b/project/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Project '/a/b/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (3) @@ -213,14 +213,14 @@ Info seq [hh:mm:ss:mss] Projects: /a/b/project/tsconfig.json Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for /a/b/project/file1.ts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/a/b/project/file1.ts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/a/b/project/file1.ts" + ] + } } After running Timeout callback:: count: 1 3: checkOne @@ -233,13 +233,13 @@ export class a { } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/a/b/project/file1.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/a/b/project/file1.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-project-is-not-at-root-level.js b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-project-is-not-at-root-level.js index 8c19811479ca3..228ef5015bb95 100644 --- a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-project-is-not-at-root-level.js +++ b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-project-is-not-at-root-level.js @@ -39,13 +39,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /user/username/rootfolde Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json 2000 undefined Project: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/rootfolder/otherfolder/a/b/project/tsconfig.json", - "reason": "Creating possible configured project for /user/username/rootfolder/otherfolder/a/b/project/file1.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/rootfolder/otherfolder/a/b/project/tsconfig.json", + "reason": "Creating possible configured project for /user/username/rootfolder/otherfolder/a/b/project/file1.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /user/username/rootfolder/otherfolder/a/b/project/tsconfig.json : { "rootNames": [ @@ -90,66 +90,66 @@ Info seq [hh:mm:ss:mss] Files (3) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/rootfolder/otherfolder/a/b/project/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/rootfolder/otherfolder/a/b/project/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "79b1a0103ed8006f174a1f979cf698219d4ec4ae3a48594da1085f7a1749553c", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 2, - "tsSize": 39, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": { - "typeRoots": [] - }, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "79b1a0103ed8006f174a1f979cf698219d4ec4ae3a48594da1085f7a1749553c", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 2, + "tsSize": 39, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "typeRoots": [] + }, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/rootfolder/otherfolder/a/b/project/file1.ts", - "configFile": "/user/username/rootfolder/otherfolder/a/b/project/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/rootfolder/otherfolder/a/b/project/file1.ts", + "configFile": "/user/username/rootfolder/otherfolder/a/b/project/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Project '/user/username/rootfolder/otherfolder/a/b/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (3) @@ -229,14 +229,14 @@ Info seq [hh:mm:ss:mss] Projects: /user/username/rootfolder/otherfolder/a/b/p Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for /user/username/rootfolder/otherfolder/a/b/project/file1.ts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/user/username/rootfolder/otherfolder/a/b/project/file1.ts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/user/username/rootfolder/otherfolder/a/b/project/file1.ts" + ] + } } After running Timeout callback:: count: 1 3: checkOne @@ -316,13 +316,13 @@ Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/rootfolder/otherfolder/a/b/project/file1.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/rootfolder/otherfolder/a/b/project/file1.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 1 7: *ensureProjectForOpenFiles* @@ -376,14 +376,14 @@ Info seq [hh:mm:ss:mss] Projects: /user/username/rootfolder/otherfolder/a/b/p Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for /user/username/rootfolder/otherfolder/a/b/project/file1.ts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/user/username/rootfolder/otherfolder/a/b/project/file1.ts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/user/username/rootfolder/otherfolder/a/b/project/file1.ts" + ] + } } After running Timeout callback:: count: 1 8: checkOne diff --git a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-should-always-return-the-file-itself-if---isolatedModules-is-specified.js b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-should-always-return-the-file-itself-if---isolatedModules-is-specified.js index 1bd697fb8fc72..9acaf3715e8c2 100644 --- a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-should-always-return-the-file-itself-if---isolatedModules-is-specified.js +++ b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-should-always-return-the-file-itself-if---isolatedModules-is-specified.js @@ -23,13 +23,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /users/username/projects Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/project/tsconfig.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/users/username/projects/project/tsconfig.json", - "reason": "Creating possible configured project for /users/username/projects/project/file1Consumer1.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/users/username/projects/project/tsconfig.json", + "reason": "Creating possible configured project for /users/username/projects/project/file1Consumer1.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /users/username/projects/project/tsconfig.json : { "rootNames": [ @@ -64,112 +64,112 @@ Info seq [hh:mm:ss:mss] Files (1) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/users/username/projects/project/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/users/username/projects/project/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "5b0be5fc7f7235edf5a31bffe614b4e0819e55ec5f118558864b1f882e283c0d", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 53, - "tsx": 0, - "tsxSize": 0, - "dts": 0, - "dtsSize": 0, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": { - "isolatedModules": true - }, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "5b0be5fc7f7235edf5a31bffe614b4e0819e55ec5f118558864b1f882e283c0d", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 53, + "tsx": 0, + "tsxSize": 0, + "dts": 0, + "dtsSize": 0, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "isolatedModules": true + }, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/users/username/projects/project/file1Consumer1.ts", - "configFile": "/users/username/projects/project/tsconfig.json", - "diagnostics": [ - { - "text": "File '/a/lib/lib.d.ts' not found.\n The file is in the program because:\n Default library for target 'es5'", - "code": 6053, - "category": "error" - }, - { - "text": "Cannot find global type 'Array'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Boolean'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Function'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'IArguments'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Number'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Object'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'RegExp'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'String'.", - "code": 2318, - "category": "error" - } - ] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/users/username/projects/project/file1Consumer1.ts", + "configFile": "/users/username/projects/project/tsconfig.json", + "diagnostics": [ + { + "text": "File '/a/lib/lib.d.ts' not found.\n The file is in the program because:\n Default library for target 'es5'", + "code": 6053, + "category": "error" + }, + { + "text": "Cannot find global type 'Array'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Boolean'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Function'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'IArguments'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Number'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Object'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'RegExp'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'String'.", + "code": 2318, + "category": "error" + } + ] + } } Info seq [hh:mm:ss:mss] Project '/users/username/projects/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (1) @@ -361,14 +361,14 @@ Info seq [hh:mm:ss:mss] Projects: /users/username/projects/project/tsconfig.j Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for /users/username/projects/project/file1Consumer1.ts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/users/username/projects/project/file1Consumer1.ts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/username/projects/project/file1Consumer1.ts" + ] + } } After running Timeout callback:: count: 1 17: checkOne diff --git a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-should-always-return-the-file-itself-if---out-or---outFile-is-specified.js b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-should-always-return-the-file-itself-if---out-or---outFile-is-specified.js index eb46ff916b00e..7f91944fc4c3a 100644 --- a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-should-always-return-the-file-itself-if---out-or---outFile-is-specified.js +++ b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-should-always-return-the-file-itself-if---out-or---outFile-is-specified.js @@ -23,13 +23,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /users/username/projects Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/project/tsconfig.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/users/username/projects/project/tsconfig.json", - "reason": "Creating possible configured project for /users/username/projects/project/file1Consumer1.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/users/username/projects/project/tsconfig.json", + "reason": "Creating possible configured project for /users/username/projects/project/file1Consumer1.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /users/username/projects/project/tsconfig.json : { "rootNames": [ @@ -63,113 +63,113 @@ Info seq [hh:mm:ss:mss] Files (1) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/users/username/projects/project/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/users/username/projects/project/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "5b0be5fc7f7235edf5a31bffe614b4e0819e55ec5f118558864b1f882e283c0d", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 53, - "tsx": 0, - "tsxSize": 0, - "dts": 0, - "dtsSize": 0, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": { - "module": "system", - "outFile": "" - }, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "5b0be5fc7f7235edf5a31bffe614b4e0819e55ec5f118558864b1f882e283c0d", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 53, + "tsx": 0, + "tsxSize": 0, + "dts": 0, + "dtsSize": 0, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "module": "system", + "outFile": "" + }, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/users/username/projects/project/file1Consumer1.ts", - "configFile": "/users/username/projects/project/tsconfig.json", - "diagnostics": [ - { - "text": "File '/a/lib/lib.d.ts' not found.\n The file is in the program because:\n Default library for target 'es5'", - "code": 6053, - "category": "error" - }, - { - "text": "Cannot find global type 'Array'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Boolean'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Function'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'IArguments'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Number'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Object'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'RegExp'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'String'.", - "code": 2318, - "category": "error" - } - ] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/users/username/projects/project/file1Consumer1.ts", + "configFile": "/users/username/projects/project/tsconfig.json", + "diagnostics": [ + { + "text": "File '/a/lib/lib.d.ts' not found.\n The file is in the program because:\n Default library for target 'es5'", + "code": 6053, + "category": "error" + }, + { + "text": "Cannot find global type 'Array'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Boolean'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Function'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'IArguments'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Number'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Object'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'RegExp'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'String'.", + "code": 2318, + "category": "error" + } + ] + } } Info seq [hh:mm:ss:mss] Project '/users/username/projects/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (1) @@ -355,14 +355,14 @@ Info seq [hh:mm:ss:mss] Projects: /users/username/projects/project/tsconfig.j Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for /users/username/projects/project/file1Consumer1.ts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/users/username/projects/project/file1Consumer1.ts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/username/projects/project/file1Consumer1.ts" + ] + } } After running Timeout callback:: count: 1 17: checkOne diff --git a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-should-be-up-to-date-with-deleted-files.js b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-should-be-up-to-date-with-deleted-files.js index 7f4a08a042fcf..e6b8d9a88a3c8 100644 --- a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-should-be-up-to-date-with-deleted-files.js +++ b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-should-be-up-to-date-with-deleted-files.js @@ -23,13 +23,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /users/username/projects Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/project/tsconfig.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/users/username/projects/project/tsconfig.json", - "reason": "Creating possible configured project for /users/username/projects/project/file1Consumer1.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/users/username/projects/project/tsconfig.json", + "reason": "Creating possible configured project for /users/username/projects/project/file1Consumer1.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /users/username/projects/project/tsconfig.json : { "rootNames": [ @@ -63,110 +63,110 @@ Info seq [hh:mm:ss:mss] Files (1) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/users/username/projects/project/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/users/username/projects/project/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "5b0be5fc7f7235edf5a31bffe614b4e0819e55ec5f118558864b1f882e283c0d", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 53, - "tsx": 0, - "tsxSize": 0, - "dts": 0, - "dtsSize": 0, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": {}, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "5b0be5fc7f7235edf5a31bffe614b4e0819e55ec5f118558864b1f882e283c0d", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 53, + "tsx": 0, + "tsxSize": 0, + "dts": 0, + "dtsSize": 0, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": {}, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/users/username/projects/project/file1Consumer1.ts", - "configFile": "/users/username/projects/project/tsconfig.json", - "diagnostics": [ - { - "text": "File '/a/lib/lib.d.ts' not found.\n The file is in the program because:\n Default library for target 'es5'", - "code": 6053, - "category": "error" - }, - { - "text": "Cannot find global type 'Array'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Boolean'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Function'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'IArguments'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Number'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Object'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'RegExp'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'String'.", - "code": 2318, - "category": "error" - } - ] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/users/username/projects/project/file1Consumer1.ts", + "configFile": "/users/username/projects/project/tsconfig.json", + "diagnostics": [ + { + "text": "File '/a/lib/lib.d.ts' not found.\n The file is in the program because:\n Default library for target 'es5'", + "code": 6053, + "category": "error" + }, + { + "text": "Cannot find global type 'Array'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Boolean'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Function'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'IArguments'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Number'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Object'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'RegExp'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'String'.", + "code": 2318, + "category": "error" + } + ] + } } Info seq [hh:mm:ss:mss] Project '/users/username/projects/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (1) @@ -363,14 +363,14 @@ Info seq [hh:mm:ss:mss] Projects: /users/username/projects/project/tsconfig.j Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for /users/username/projects/project/file1Consumer1.ts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/users/username/projects/project/file1Consumer1.ts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/username/projects/project/file1Consumer1.ts" + ] + } } After running Timeout callback:: count: 1 20: checkOne diff --git a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-should-be-up-to-date-with-newly-created-files.js b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-should-be-up-to-date-with-newly-created-files.js index 6887454380403..74cd3c42afc72 100644 --- a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-should-be-up-to-date-with-newly-created-files.js +++ b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-should-be-up-to-date-with-newly-created-files.js @@ -23,13 +23,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /users/username/projects Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/project/tsconfig.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/users/username/projects/project/tsconfig.json", - "reason": "Creating possible configured project for /users/username/projects/project/file1Consumer1.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/users/username/projects/project/tsconfig.json", + "reason": "Creating possible configured project for /users/username/projects/project/file1Consumer1.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /users/username/projects/project/tsconfig.json : { "rootNames": [ @@ -63,110 +63,110 @@ Info seq [hh:mm:ss:mss] Files (1) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/users/username/projects/project/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/users/username/projects/project/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "5b0be5fc7f7235edf5a31bffe614b4e0819e55ec5f118558864b1f882e283c0d", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 53, - "tsx": 0, - "tsxSize": 0, - "dts": 0, - "dtsSize": 0, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": {}, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "5b0be5fc7f7235edf5a31bffe614b4e0819e55ec5f118558864b1f882e283c0d", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 53, + "tsx": 0, + "tsxSize": 0, + "dts": 0, + "dtsSize": 0, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": {}, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/users/username/projects/project/file1Consumer1.ts", - "configFile": "/users/username/projects/project/tsconfig.json", - "diagnostics": [ - { - "text": "File '/a/lib/lib.d.ts' not found.\n The file is in the program because:\n Default library for target 'es5'", - "code": 6053, - "category": "error" - }, - { - "text": "Cannot find global type 'Array'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Boolean'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Function'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'IArguments'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Number'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Object'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'RegExp'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'String'.", - "code": 2318, - "category": "error" - } - ] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/users/username/projects/project/file1Consumer1.ts", + "configFile": "/users/username/projects/project/tsconfig.json", + "diagnostics": [ + { + "text": "File '/a/lib/lib.d.ts' not found.\n The file is in the program because:\n Default library for target 'es5'", + "code": 6053, + "category": "error" + }, + { + "text": "Cannot find global type 'Array'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Boolean'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Function'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'IArguments'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Number'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Object'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'RegExp'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'String'.", + "code": 2318, + "category": "error" + } + ] + } } Info seq [hh:mm:ss:mss] Project '/users/username/projects/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (1) @@ -375,14 +375,14 @@ Info seq [hh:mm:ss:mss] Projects: /users/username/projects/project/tsconfig.j Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for /users/username/projects/project/file1Consumer1.ts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/users/username/projects/project/file1Consumer1.ts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/username/projects/project/file1Consumer1.ts" + ] + } } After running Timeout callback:: count: 1 20: checkOne diff --git a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-should-be-up-to-date-with-the-reference-map-changes.js b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-should-be-up-to-date-with-the-reference-map-changes.js index 36153a153c42c..f81ea95828be8 100644 --- a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-should-be-up-to-date-with-the-reference-map-changes.js +++ b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-should-be-up-to-date-with-the-reference-map-changes.js @@ -23,13 +23,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /users/username/projects Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/project/tsconfig.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/users/username/projects/project/tsconfig.json", - "reason": "Creating possible configured project for /users/username/projects/project/file1Consumer1.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/users/username/projects/project/tsconfig.json", + "reason": "Creating possible configured project for /users/username/projects/project/file1Consumer1.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /users/username/projects/project/tsconfig.json : { "rootNames": [ @@ -63,110 +63,110 @@ Info seq [hh:mm:ss:mss] Files (1) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/users/username/projects/project/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/users/username/projects/project/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "5b0be5fc7f7235edf5a31bffe614b4e0819e55ec5f118558864b1f882e283c0d", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 53, - "tsx": 0, - "tsxSize": 0, - "dts": 0, - "dtsSize": 0, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": {}, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "5b0be5fc7f7235edf5a31bffe614b4e0819e55ec5f118558864b1f882e283c0d", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 53, + "tsx": 0, + "tsxSize": 0, + "dts": 0, + "dtsSize": 0, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": {}, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/users/username/projects/project/file1Consumer1.ts", - "configFile": "/users/username/projects/project/tsconfig.json", - "diagnostics": [ - { - "text": "File '/a/lib/lib.d.ts' not found.\n The file is in the program because:\n Default library for target 'es5'", - "code": 6053, - "category": "error" - }, - { - "text": "Cannot find global type 'Array'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Boolean'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Function'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'IArguments'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Number'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Object'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'RegExp'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'String'.", - "code": 2318, - "category": "error" - } - ] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/users/username/projects/project/file1Consumer1.ts", + "configFile": "/users/username/projects/project/tsconfig.json", + "diagnostics": [ + { + "text": "File '/a/lib/lib.d.ts' not found.\n The file is in the program because:\n Default library for target 'es5'", + "code": 6053, + "category": "error" + }, + { + "text": "Cannot find global type 'Array'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Boolean'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Function'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'IArguments'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Number'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Object'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'RegExp'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'String'.", + "code": 2318, + "category": "error" + } + ] + } } Info seq [hh:mm:ss:mss] Project '/users/username/projects/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (1) @@ -372,14 +372,14 @@ Info seq [hh:mm:ss:mss] Projects: /users/username/projects/project/tsconfig.j Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for /users/username/projects/project/file1Consumer1.ts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/users/username/projects/project/file1Consumer1.ts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/username/projects/project/file1Consumer1.ts" + ] + } } After running Timeout callback:: count: 1 17: checkOne @@ -438,13 +438,13 @@ Info seq [hh:mm:ss:mss] Files (6) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/users/username/projects/project/file1Consumer1.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/users/username/projects/project/file1Consumer1.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Running: /users/username/projects/project/tsconfig.json Info seq [hh:mm:ss:mss] Running: *ensureProjectForOpenFiles* @@ -467,14 +467,14 @@ Info seq [hh:mm:ss:mss] Projects: /users/username/projects/project/tsconfig.j Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for /users/username/projects/project/file1Consumer1.ts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/users/username/projects/project/file1Consumer1.ts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/username/projects/project/file1Consumer1.ts" + ] + } } After running Timeout callback:: count: 1 20: checkOne @@ -554,14 +554,14 @@ Info seq [hh:mm:ss:mss] Projects: /users/username/projects/project/tsconfig.j Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for /users/username/projects/project/file1Consumer1.ts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/users/username/projects/project/file1Consumer1.ts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/username/projects/project/file1Consumer1.ts" + ] + } } After running Timeout callback:: count: 1 23: checkOne @@ -665,14 +665,14 @@ Info seq [hh:mm:ss:mss] Projects: /users/username/projects/project/tsconfig.j Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for /users/username/projects/project/file1Consumer1.ts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/users/username/projects/project/file1Consumer1.ts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/username/projects/project/file1Consumer1.ts" + ] + } } After running Timeout callback:: count: 1 26: checkOne diff --git a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-should-contains-only-itself.js b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-should-contains-only-itself.js index 2c51c8fe6c982..9388fc8f9cb6b 100644 --- a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-should-contains-only-itself.js +++ b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-should-contains-only-itself.js @@ -23,13 +23,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /users/username/projects Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/project/tsconfig.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/users/username/projects/project/tsconfig.json", - "reason": "Creating possible configured project for /users/username/projects/project/file1Consumer1.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/users/username/projects/project/tsconfig.json", + "reason": "Creating possible configured project for /users/username/projects/project/file1Consumer1.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /users/username/projects/project/tsconfig.json : { "rootNames": [ @@ -63,110 +63,110 @@ Info seq [hh:mm:ss:mss] Files (1) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/users/username/projects/project/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/users/username/projects/project/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "5b0be5fc7f7235edf5a31bffe614b4e0819e55ec5f118558864b1f882e283c0d", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 53, - "tsx": 0, - "tsxSize": 0, - "dts": 0, - "dtsSize": 0, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": {}, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "5b0be5fc7f7235edf5a31bffe614b4e0819e55ec5f118558864b1f882e283c0d", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 53, + "tsx": 0, + "tsxSize": 0, + "dts": 0, + "dtsSize": 0, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": {}, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/users/username/projects/project/file1Consumer1.ts", - "configFile": "/users/username/projects/project/tsconfig.json", - "diagnostics": [ - { - "text": "File '/a/lib/lib.d.ts' not found.\n The file is in the program because:\n Default library for target 'es5'", - "code": 6053, - "category": "error" - }, - { - "text": "Cannot find global type 'Array'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Boolean'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Function'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'IArguments'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Number'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Object'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'RegExp'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'String'.", - "code": 2318, - "category": "error" - } - ] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/users/username/projects/project/file1Consumer1.ts", + "configFile": "/users/username/projects/project/tsconfig.json", + "diagnostics": [ + { + "text": "File '/a/lib/lib.d.ts' not found.\n The file is in the program because:\n Default library for target 'es5'", + "code": 6053, + "category": "error" + }, + { + "text": "Cannot find global type 'Array'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Boolean'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Function'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'IArguments'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Number'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Object'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'RegExp'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'String'.", + "code": 2318, + "category": "error" + } + ] + } } Info seq [hh:mm:ss:mss] Project '/users/username/projects/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (1) @@ -358,14 +358,14 @@ Info seq [hh:mm:ss:mss] Projects: /users/username/projects/project/tsconfig.j Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for /users/username/projects/project/file1Consumer1.ts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/users/username/projects/project/file1Consumer1.ts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/username/projects/project/file1Consumer1.ts" + ] + } } After running Timeout callback:: count: 1 17: checkOne @@ -428,13 +428,13 @@ Info seq [hh:mm:ss:mss] Files (6) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/users/username/projects/project/file1Consumer1.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/users/username/projects/project/file1Consumer1.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Running: /users/username/projects/project/tsconfig.json Info seq [hh:mm:ss:mss] Running: *ensureProjectForOpenFiles* @@ -457,14 +457,14 @@ Info seq [hh:mm:ss:mss] Projects: /users/username/projects/project/tsconfig.j Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for /users/username/projects/project/file1Consumer1.ts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/users/username/projects/project/file1Consumer1.ts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/username/projects/project/file1Consumer1.ts" + ] + } } After running Timeout callback:: count: 1 20: checkOne diff --git a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-should-detect-changes-in-non-root-files.js b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-should-detect-changes-in-non-root-files.js index f58ea7da0ab3b..6c244c2344ecd 100644 --- a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-should-detect-changes-in-non-root-files.js +++ b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-should-detect-changes-in-non-root-files.js @@ -23,13 +23,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /users/username/projects Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/project/tsconfig.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/users/username/projects/project/tsconfig.json", - "reason": "Creating possible configured project for /users/username/projects/project/file1Consumer1.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/users/username/projects/project/tsconfig.json", + "reason": "Creating possible configured project for /users/username/projects/project/file1Consumer1.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /users/username/projects/project/tsconfig.json : { "rootNames": [ @@ -61,110 +61,110 @@ Info seq [hh:mm:ss:mss] Files (1) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/users/username/projects/project/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/users/username/projects/project/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "5b0be5fc7f7235edf5a31bffe614b4e0819e55ec5f118558864b1f882e283c0d", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 53, - "tsx": 0, - "tsxSize": 0, - "dts": 0, - "dtsSize": 0, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": {}, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": true, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "5b0be5fc7f7235edf5a31bffe614b4e0819e55ec5f118558864b1f882e283c0d", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 53, + "tsx": 0, + "tsxSize": 0, + "dts": 0, + "dtsSize": 0, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": {}, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": true, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/users/username/projects/project/file1Consumer1.ts", - "configFile": "/users/username/projects/project/tsconfig.json", - "diagnostics": [ - { - "text": "File '/a/lib/lib.d.ts' not found.\n The file is in the program because:\n Default library for target 'es5'", - "code": 6053, - "category": "error" - }, - { - "text": "Cannot find global type 'Array'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Boolean'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Function'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'IArguments'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Number'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Object'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'RegExp'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'String'.", - "code": 2318, - "category": "error" - } - ] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/users/username/projects/project/file1Consumer1.ts", + "configFile": "/users/username/projects/project/tsconfig.json", + "diagnostics": [ + { + "text": "File '/a/lib/lib.d.ts' not found.\n The file is in the program because:\n Default library for target 'es5'", + "code": 6053, + "category": "error" + }, + { + "text": "Cannot find global type 'Array'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Boolean'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Function'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'IArguments'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Number'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Object'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'RegExp'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'String'.", + "code": 2318, + "category": "error" + } + ] + } } Info seq [hh:mm:ss:mss] Project '/users/username/projects/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (1) @@ -318,14 +318,14 @@ Info seq [hh:mm:ss:mss] Projects: /users/username/projects/project/tsconfig.j Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for /users/username/projects/project/file1Consumer1.ts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/users/username/projects/project/file1Consumer1.ts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/username/projects/project/file1Consumer1.ts" + ] + } } After running Timeout callback:: count: 1 9: checkOne @@ -375,13 +375,13 @@ Info seq [hh:mm:ss:mss] Files (3) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/users/username/projects/project/file1Consumer1.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/users/username/projects/project/file1Consumer1.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Running: /users/username/projects/project/tsconfig.json Info seq [hh:mm:ss:mss] Running: *ensureProjectForOpenFiles* @@ -404,14 +404,14 @@ Info seq [hh:mm:ss:mss] Projects: /users/username/projects/project/tsconfig.j Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for /users/username/projects/project/file1Consumer1.ts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/users/username/projects/project/file1Consumer1.ts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/username/projects/project/file1Consumer1.ts" + ] + } } After running Timeout callback:: count: 1 12: checkOne diff --git a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-should-detect-non-existing-code-file.js b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-should-detect-non-existing-code-file.js index bb68f350ab747..514d7fb251964 100644 --- a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-should-detect-non-existing-code-file.js +++ b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-should-detect-non-existing-code-file.js @@ -25,13 +25,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /users/username/projects Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/project/tsconfig.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/users/username/projects/project/tsconfig.json", - "reason": "Creating possible configured project for /users/username/projects/project/referenceFile1.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/users/username/projects/project/tsconfig.json", + "reason": "Creating possible configured project for /users/username/projects/project/referenceFile1.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /users/username/projects/project/tsconfig.json : { "rootNames": [ @@ -62,110 +62,110 @@ Info seq [hh:mm:ss:mss] Files (1) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/users/username/projects/project/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/users/username/projects/project/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "5b0be5fc7f7235edf5a31bffe614b4e0819e55ec5f118558864b1f882e283c0d", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 104, - "tsx": 0, - "tsxSize": 0, - "dts": 0, - "dtsSize": 0, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": {}, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "5b0be5fc7f7235edf5a31bffe614b4e0819e55ec5f118558864b1f882e283c0d", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 104, + "tsx": 0, + "tsxSize": 0, + "dts": 0, + "dtsSize": 0, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": {}, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/users/username/projects/project/referenceFile1.ts", - "configFile": "/users/username/projects/project/tsconfig.json", - "diagnostics": [ - { - "text": "File '/a/lib/lib.d.ts' not found.\n The file is in the program because:\n Default library for target 'es5'", - "code": 6053, - "category": "error" - }, - { - "text": "Cannot find global type 'Array'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Boolean'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Function'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'IArguments'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Number'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Object'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'RegExp'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'String'.", - "code": 2318, - "category": "error" - } - ] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/users/username/projects/project/referenceFile1.ts", + "configFile": "/users/username/projects/project/tsconfig.json", + "diagnostics": [ + { + "text": "File '/a/lib/lib.d.ts' not found.\n The file is in the program because:\n Default library for target 'es5'", + "code": 6053, + "category": "error" + }, + { + "text": "Cannot find global type 'Array'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Boolean'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Function'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'IArguments'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Number'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Object'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'RegExp'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'String'.", + "code": 2318, + "category": "error" + } + ] + } } Info seq [hh:mm:ss:mss] Project '/users/username/projects/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (1) @@ -298,14 +298,14 @@ Info seq [hh:mm:ss:mss] Projects: /users/username/projects/project/tsconfig.j Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for /users/username/projects/project/referenceFile1.ts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/users/username/projects/project/referenceFile1.ts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/username/projects/project/referenceFile1.ts" + ] + } } After running Timeout callback:: count: 1 3: checkOne @@ -386,13 +386,13 @@ Info seq [hh:mm:ss:mss] Files (3) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/users/username/projects/project/referenceFile1.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/users/username/projects/project/referenceFile1.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Running: /users/username/projects/project/tsconfig.json Info seq [hh:mm:ss:mss] Running: *ensureProjectForOpenFiles* @@ -415,14 +415,14 @@ Info seq [hh:mm:ss:mss] Projects: /users/username/projects/project/tsconfig.j Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for /users/username/projects/project/referenceFile1.ts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/users/username/projects/project/referenceFile1.ts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/username/projects/project/referenceFile1.ts" + ] + } } After running Timeout callback:: count: 1 8: checkOne diff --git a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-should-detect-removed-code-file.js b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-should-detect-removed-code-file.js index b22cb7ee35160..47d64fbd1a539 100644 --- a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-should-detect-removed-code-file.js +++ b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-should-detect-removed-code-file.js @@ -25,13 +25,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /users/username/projects Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/project/tsconfig.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/users/username/projects/project/tsconfig.json", - "reason": "Creating possible configured project for /users/username/projects/project/referenceFile1.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/users/username/projects/project/tsconfig.json", + "reason": "Creating possible configured project for /users/username/projects/project/referenceFile1.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /users/username/projects/project/tsconfig.json : { "rootNames": [ @@ -62,110 +62,110 @@ Info seq [hh:mm:ss:mss] Files (1) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/users/username/projects/project/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/users/username/projects/project/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "5b0be5fc7f7235edf5a31bffe614b4e0819e55ec5f118558864b1f882e283c0d", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 104, - "tsx": 0, - "tsxSize": 0, - "dts": 0, - "dtsSize": 0, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": {}, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "5b0be5fc7f7235edf5a31bffe614b4e0819e55ec5f118558864b1f882e283c0d", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 104, + "tsx": 0, + "tsxSize": 0, + "dts": 0, + "dtsSize": 0, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": {}, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/users/username/projects/project/referenceFile1.ts", - "configFile": "/users/username/projects/project/tsconfig.json", - "diagnostics": [ - { - "text": "File '/a/lib/lib.d.ts' not found.\n The file is in the program because:\n Default library for target 'es5'", - "code": 6053, - "category": "error" - }, - { - "text": "Cannot find global type 'Array'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Boolean'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Function'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'IArguments'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Number'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Object'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'RegExp'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'String'.", - "code": 2318, - "category": "error" - } - ] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/users/username/projects/project/referenceFile1.ts", + "configFile": "/users/username/projects/project/tsconfig.json", + "diagnostics": [ + { + "text": "File '/a/lib/lib.d.ts' not found.\n The file is in the program because:\n Default library for target 'es5'", + "code": 6053, + "category": "error" + }, + { + "text": "Cannot find global type 'Array'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Boolean'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Function'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'IArguments'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Number'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Object'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'RegExp'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'String'.", + "code": 2318, + "category": "error" + } + ] + } } Info seq [hh:mm:ss:mss] Project '/users/username/projects/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (1) @@ -290,14 +290,14 @@ Info seq [hh:mm:ss:mss] Projects: /users/username/projects/project/tsconfig.j Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for /users/username/projects/project/referenceFile1.ts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/users/username/projects/project/referenceFile1.ts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/username/projects/project/referenceFile1.ts" + ] + } } After running Timeout callback:: count: 1 9: checkOne diff --git a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-should-return-all-files-if-a-global-file-changed-shape.js b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-should-return-all-files-if-a-global-file-changed-shape.js index 9dc0eae186ffd..b3473b593d8e9 100644 --- a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-should-return-all-files-if-a-global-file-changed-shape.js +++ b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-should-return-all-files-if-a-global-file-changed-shape.js @@ -23,13 +23,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /users/username/projects Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/project/tsconfig.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/users/username/projects/project/tsconfig.json", - "reason": "Creating possible configured project for /users/username/projects/project/file1Consumer1.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/users/username/projects/project/tsconfig.json", + "reason": "Creating possible configured project for /users/username/projects/project/file1Consumer1.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /users/username/projects/project/tsconfig.json : { "rootNames": [ @@ -63,110 +63,110 @@ Info seq [hh:mm:ss:mss] Files (1) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/users/username/projects/project/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/users/username/projects/project/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "5b0be5fc7f7235edf5a31bffe614b4e0819e55ec5f118558864b1f882e283c0d", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 53, - "tsx": 0, - "tsxSize": 0, - "dts": 0, - "dtsSize": 0, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": {}, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "5b0be5fc7f7235edf5a31bffe614b4e0819e55ec5f118558864b1f882e283c0d", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 53, + "tsx": 0, + "tsxSize": 0, + "dts": 0, + "dtsSize": 0, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": {}, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/users/username/projects/project/file1Consumer1.ts", - "configFile": "/users/username/projects/project/tsconfig.json", - "diagnostics": [ - { - "text": "File '/a/lib/lib.d.ts' not found.\n The file is in the program because:\n Default library for target 'es5'", - "code": 6053, - "category": "error" - }, - { - "text": "Cannot find global type 'Array'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Boolean'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Function'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'IArguments'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Number'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Object'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'RegExp'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'String'.", - "code": 2318, - "category": "error" - } - ] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/users/username/projects/project/file1Consumer1.ts", + "configFile": "/users/username/projects/project/tsconfig.json", + "diagnostics": [ + { + "text": "File '/a/lib/lib.d.ts' not found.\n The file is in the program because:\n Default library for target 'es5'", + "code": 6053, + "category": "error" + }, + { + "text": "Cannot find global type 'Array'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Boolean'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Function'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'IArguments'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Number'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Object'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'RegExp'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'String'.", + "code": 2318, + "category": "error" + } + ] + } } Info seq [hh:mm:ss:mss] Project '/users/username/projects/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (1) @@ -358,14 +358,14 @@ Info seq [hh:mm:ss:mss] Projects: /users/username/projects/project/tsconfig.j Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for /users/username/projects/project/file1Consumer1.ts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/users/username/projects/project/file1Consumer1.ts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/username/projects/project/file1Consumer1.ts" + ] + } } After running Timeout callback:: count: 1 17: checkOne diff --git a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-should-return-cascaded-affected-file-list.js b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-should-return-cascaded-affected-file-list.js index df95ae1386687..1347546008ba4 100644 --- a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-should-return-cascaded-affected-file-list.js +++ b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-should-return-cascaded-affected-file-list.js @@ -23,13 +23,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /users/username/projects Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/project/tsconfig.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/users/username/projects/project/tsconfig.json", - "reason": "Creating possible configured project for /users/username/projects/project/file1Consumer1.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/users/username/projects/project/tsconfig.json", + "reason": "Creating possible configured project for /users/username/projects/project/file1Consumer1.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /users/username/projects/project/tsconfig.json : { "rootNames": [ @@ -63,110 +63,110 @@ Info seq [hh:mm:ss:mss] Files (1) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/users/username/projects/project/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/users/username/projects/project/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "5b0be5fc7f7235edf5a31bffe614b4e0819e55ec5f118558864b1f882e283c0d", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 53, - "tsx": 0, - "tsxSize": 0, - "dts": 0, - "dtsSize": 0, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": {}, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "5b0be5fc7f7235edf5a31bffe614b4e0819e55ec5f118558864b1f882e283c0d", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 53, + "tsx": 0, + "tsxSize": 0, + "dts": 0, + "dtsSize": 0, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": {}, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/users/username/projects/project/file1Consumer1.ts", - "configFile": "/users/username/projects/project/tsconfig.json", - "diagnostics": [ - { - "text": "File '/a/lib/lib.d.ts' not found.\n The file is in the program because:\n Default library for target 'es5'", - "code": 6053, - "category": "error" - }, - { - "text": "Cannot find global type 'Array'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Boolean'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Function'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'IArguments'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Number'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Object'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'RegExp'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'String'.", - "code": 2318, - "category": "error" - } - ] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/users/username/projects/project/file1Consumer1.ts", + "configFile": "/users/username/projects/project/tsconfig.json", + "diagnostics": [ + { + "text": "File '/a/lib/lib.d.ts' not found.\n The file is in the program because:\n Default library for target 'es5'", + "code": 6053, + "category": "error" + }, + { + "text": "Cannot find global type 'Array'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Boolean'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Function'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'IArguments'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Number'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Object'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'RegExp'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'String'.", + "code": 2318, + "category": "error" + } + ] + } } Info seq [hh:mm:ss:mss] Project '/users/username/projects/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (1) @@ -392,14 +392,14 @@ Info seq [hh:mm:ss:mss] Projects: /users/username/projects/project/tsconfig.j Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for /users/username/projects/project/file1Consumer1.ts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/users/username/projects/project/file1Consumer1.ts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/username/projects/project/file1Consumer1.ts" + ] + } } After running Timeout callback:: count: 1 20: checkOne @@ -465,13 +465,13 @@ Info seq [hh:mm:ss:mss] Files (7) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/users/username/projects/project/file1Consumer1.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/users/username/projects/project/file1Consumer1.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Running: /users/username/projects/project/tsconfig.json Info seq [hh:mm:ss:mss] Running: *ensureProjectForOpenFiles* @@ -494,14 +494,14 @@ Info seq [hh:mm:ss:mss] Projects: /users/username/projects/project/tsconfig.j Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for /users/username/projects/project/file1Consumer1.ts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/users/username/projects/project/file1Consumer1.ts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/username/projects/project/file1Consumer1.ts" + ] + } } After running Timeout callback:: count: 1 23: checkOne @@ -574,14 +574,14 @@ Info seq [hh:mm:ss:mss] Projects: /users/username/projects/project/tsconfig.j Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for /users/username/projects/project/file1Consumer1.ts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/users/username/projects/project/file1Consumer1.ts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/username/projects/project/file1Consumer1.ts" + ] + } } After running Timeout callback:: count: 1 26: checkOne diff --git a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-should-work-fine-for-files-with-circular-references.js b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-should-work-fine-for-files-with-circular-references.js index 76f0c0f7e78d3..2fbbe48acf1a2 100644 --- a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-should-work-fine-for-files-with-circular-references.js +++ b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-should-work-fine-for-files-with-circular-references.js @@ -25,13 +25,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /users/username/projects Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/project/tsconfig.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/users/username/projects/project/tsconfig.json", - "reason": "Creating possible configured project for /users/username/projects/project/file1.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/users/username/projects/project/tsconfig.json", + "reason": "Creating possible configured project for /users/username/projects/project/file1.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /users/username/projects/project/tsconfig.json : { "rootNames": [ @@ -62,110 +62,110 @@ Info seq [hh:mm:ss:mss] Files (1) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/users/username/projects/project/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/users/username/projects/project/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "5b0be5fc7f7235edf5a31bffe614b4e0819e55ec5f118558864b1f882e283c0d", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 96, - "tsx": 0, - "tsxSize": 0, - "dts": 0, - "dtsSize": 0, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": {}, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "5b0be5fc7f7235edf5a31bffe614b4e0819e55ec5f118558864b1f882e283c0d", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 96, + "tsx": 0, + "tsxSize": 0, + "dts": 0, + "dtsSize": 0, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": {}, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/users/username/projects/project/file1.ts", - "configFile": "/users/username/projects/project/tsconfig.json", - "diagnostics": [ - { - "text": "File '/a/lib/lib.d.ts' not found.\n The file is in the program because:\n Default library for target 'es5'", - "code": 6053, - "category": "error" - }, - { - "text": "Cannot find global type 'Array'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Boolean'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Function'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'IArguments'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Number'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Object'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'RegExp'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'String'.", - "code": 2318, - "category": "error" - } - ] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/users/username/projects/project/file1.ts", + "configFile": "/users/username/projects/project/tsconfig.json", + "diagnostics": [ + { + "text": "File '/a/lib/lib.d.ts' not found.\n The file is in the program because:\n Default library for target 'es5'", + "code": 6053, + "category": "error" + }, + { + "text": "Cannot find global type 'Array'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Boolean'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Function'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'IArguments'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Number'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Object'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'RegExp'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'String'.", + "code": 2318, + "category": "error" + } + ] + } } Info seq [hh:mm:ss:mss] Project '/users/username/projects/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (1) @@ -296,14 +296,14 @@ Info seq [hh:mm:ss:mss] Projects: /users/username/projects/project/tsconfig.j Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for /users/username/projects/project/file1.ts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/users/username/projects/project/file1.ts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/username/projects/project/file1.ts" + ] + } } After running Timeout callback:: count: 1 7: checkOne diff --git a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-when---out-is-set.js b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-when---out-is-set.js index e8a337e00b62a..beb35f6e5facf 100644 --- a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-when---out-is-set.js +++ b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-when---out-is-set.js @@ -36,13 +36,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /users/username/projects Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/project/tsconfig.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/users/username/projects/project/tsconfig.json", - "reason": "Creating possible configured project for /users/username/projects/project/a.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/users/username/projects/project/tsconfig.json", + "reason": "Creating possible configured project for /users/username/projects/project/a.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /users/username/projects/project/tsconfig.json : { "rootNames": [ @@ -76,81 +76,81 @@ Info seq [hh:mm:ss:mss] Files (2) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/users/username/projects/project/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/users/username/projects/project/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "5b0be5fc7f7235edf5a31bffe614b4e0819e55ec5f118558864b1f882e283c0d", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 16, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": { - "out": "" - }, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "5b0be5fc7f7235edf5a31bffe614b4e0819e55ec5f118558864b1f882e283c0d", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 16, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "out": "" + }, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/users/username/projects/project/a.ts", - "configFile": "/users/username/projects/project/tsconfig.json", - "diagnostics": [ - { - "start": { - "line": 1, - "offset": 21 - }, - "end": { - "line": 1, - "offset": 26 - }, - "text": "Option 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify compilerOption '\"ignoreDeprecations\": \"5.0\"' to silence this error.\n Use 'outFile' instead.", - "code": 5101, - "category": "error", - "fileName": "/users/username/projects/project/tsconfig.json" - } - ] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/users/username/projects/project/a.ts", + "configFile": "/users/username/projects/project/tsconfig.json", + "diagnostics": [ + { + "start": { + "line": 1, + "offset": 21 + }, + "end": { + "line": 1, + "offset": 26 + }, + "text": "Option 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify compilerOption '\"ignoreDeprecations\": \"5.0\"' to silence this error.\n Use 'outFile' instead.", + "code": 5101, + "category": "error", + "fileName": "/users/username/projects/project/tsconfig.json" + } + ] + } } Info seq [hh:mm:ss:mss] Project '/users/username/projects/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (2) @@ -231,14 +231,14 @@ Info seq [hh:mm:ss:mss] Projects: /users/username/projects/project/tsconfig.j Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for /users/username/projects/project/a.ts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/users/username/projects/project/a.ts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/username/projects/project/a.ts" + ] + } } After running Timeout callback:: count: 1 3: checkOne @@ -284,13 +284,13 @@ Info seq [hh:mm:ss:mss] Files (3) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/users/username/projects/project/a.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/users/username/projects/project/a.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Running: /users/username/projects/project/tsconfig.json Info seq [hh:mm:ss:mss] Running: *ensureProjectForOpenFiles* @@ -313,14 +313,14 @@ Info seq [hh:mm:ss:mss] Projects: /users/username/projects/project/tsconfig.j Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for /users/username/projects/project/a.ts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/users/username/projects/project/a.ts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/username/projects/project/a.ts" + ] + } } After running Timeout callback:: count: 1 6: checkOne diff --git a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-when---outFile-is-set.js b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-when---outFile-is-set.js index b439bd39ca502..d95ade5814fe5 100644 --- a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-when---outFile-is-set.js +++ b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-when---outFile-is-set.js @@ -36,13 +36,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /users/username/projects Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/project/tsconfig.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/users/username/projects/project/tsconfig.json", - "reason": "Creating possible configured project for /users/username/projects/project/a.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/users/username/projects/project/tsconfig.json", + "reason": "Creating possible configured project for /users/username/projects/project/a.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /users/username/projects/project/tsconfig.json : { "rootNames": [ @@ -76,66 +76,66 @@ Info seq [hh:mm:ss:mss] Files (2) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/users/username/projects/project/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/users/username/projects/project/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "5b0be5fc7f7235edf5a31bffe614b4e0819e55ec5f118558864b1f882e283c0d", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 16, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": { - "outFile": "" - }, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "5b0be5fc7f7235edf5a31bffe614b4e0819e55ec5f118558864b1f882e283c0d", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 16, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "outFile": "" + }, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/users/username/projects/project/a.ts", - "configFile": "/users/username/projects/project/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/users/username/projects/project/a.ts", + "configFile": "/users/username/projects/project/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Project '/users/username/projects/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (2) @@ -216,14 +216,14 @@ Info seq [hh:mm:ss:mss] Projects: /users/username/projects/project/tsconfig.j Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for /users/username/projects/project/a.ts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/users/username/projects/project/a.ts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/username/projects/project/a.ts" + ] + } } After running Timeout callback:: count: 1 3: checkOne @@ -269,13 +269,13 @@ Info seq [hh:mm:ss:mss] Files (3) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/users/username/projects/project/a.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/users/username/projects/project/a.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Running: /users/username/projects/project/tsconfig.json Info seq [hh:mm:ss:mss] Running: *ensureProjectForOpenFiles* @@ -298,14 +298,14 @@ Info seq [hh:mm:ss:mss] Projects: /users/username/projects/project/tsconfig.j Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for /users/username/projects/project/a.ts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/users/username/projects/project/a.ts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/username/projects/project/a.ts" + ] + } } After running Timeout callback:: count: 1 6: checkOne diff --git a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-when-adding-new-file.js b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-when-adding-new-file.js index 7746ca7bf7043..5cd471e9568ab 100644 --- a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-when-adding-new-file.js +++ b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-when-adding-new-file.js @@ -36,13 +36,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /users/username/projects Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/project/tsconfig.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/users/username/projects/project/tsconfig.json", - "reason": "Creating possible configured project for /users/username/projects/project/file1.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/users/username/projects/project/tsconfig.json", + "reason": "Creating possible configured project for /users/username/projects/project/file1.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /users/username/projects/project/tsconfig.json : { "rootNames": [ @@ -75,64 +75,64 @@ Info seq [hh:mm:ss:mss] Files (2) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/users/username/projects/project/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/users/username/projects/project/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "5b0be5fc7f7235edf5a31bffe614b4e0819e55ec5f118558864b1f882e283c0d", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 18, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": {}, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "5b0be5fc7f7235edf5a31bffe614b4e0819e55ec5f118558864b1f882e283c0d", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 18, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": {}, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/users/username/projects/project/file1.ts", - "configFile": "/users/username/projects/project/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/users/username/projects/project/file1.ts", + "configFile": "/users/username/projects/project/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Project '/users/username/projects/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (2) @@ -213,14 +213,14 @@ Info seq [hh:mm:ss:mss] Projects: /users/username/projects/project/tsconfig.j Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for /users/username/projects/project/file1.ts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/users/username/projects/project/file1.ts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/username/projects/project/file1.ts" + ] + } } After running Timeout callback:: count: 1 3: checkOne @@ -278,13 +278,13 @@ Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/users/username/projects/project/file1.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/users/username/projects/project/file1.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Running: /users/username/projects/project/tsconfig.json Info seq [hh:mm:ss:mss] Running: *ensureProjectForOpenFiles* @@ -307,14 +307,14 @@ Info seq [hh:mm:ss:mss] Projects: /users/username/projects/project/tsconfig.j Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for /users/username/projects/project/file1.ts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/users/username/projects/project/file1.ts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/username/projects/project/file1.ts" + ] + } } After running Timeout callback:: count: 1 6: checkOne diff --git a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-when-both-options-are-not-set.js b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-when-both-options-are-not-set.js index 7f86560897e66..85bbfbc8722c0 100644 --- a/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-when-both-options-are-not-set.js +++ b/tests/baselines/reference/tsserver/events/projectUpdatedInBackground/without-noGetErrOnBackgroundUpdate-and-when-both-options-are-not-set.js @@ -36,13 +36,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /users/username/projects Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/project/tsconfig.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/users/username/projects/project/tsconfig.json", - "reason": "Creating possible configured project for /users/username/projects/project/a.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/users/username/projects/project/tsconfig.json", + "reason": "Creating possible configured project for /users/username/projects/project/a.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /users/username/projects/project/tsconfig.json : { "rootNames": [ @@ -75,64 +75,64 @@ Info seq [hh:mm:ss:mss] Files (2) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/users/username/projects/project/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/users/username/projects/project/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "5b0be5fc7f7235edf5a31bffe614b4e0819e55ec5f118558864b1f882e283c0d", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 16, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": {}, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "5b0be5fc7f7235edf5a31bffe614b4e0819e55ec5f118558864b1f882e283c0d", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 16, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": {}, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/users/username/projects/project/a.ts", - "configFile": "/users/username/projects/project/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/users/username/projects/project/a.ts", + "configFile": "/users/username/projects/project/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Project '/users/username/projects/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (2) @@ -213,14 +213,14 @@ Info seq [hh:mm:ss:mss] Projects: /users/username/projects/project/tsconfig.j Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for /users/username/projects/project/a.ts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/users/username/projects/project/a.ts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/username/projects/project/a.ts" + ] + } } After running Timeout callback:: count: 1 3: checkOne @@ -266,13 +266,13 @@ Info seq [hh:mm:ss:mss] Files (3) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/users/username/projects/project/a.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/users/username/projects/project/a.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Running: /users/username/projects/project/tsconfig.json Info seq [hh:mm:ss:mss] Running: *ensureProjectForOpenFiles* @@ -295,14 +295,14 @@ Info seq [hh:mm:ss:mss] Projects: /users/username/projects/project/tsconfig.j Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for /users/username/projects/project/a.ts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/users/username/projects/project/a.ts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/username/projects/project/a.ts" + ] + } } After running Timeout callback:: count: 1 6: checkOne diff --git a/tests/baselines/reference/tsserver/events/watchEvents/canUseWatchEvents-without-canUseEvents.js b/tests/baselines/reference/tsserver/events/watchEvents/canUseWatchEvents-without-canUseEvents.js index 4e9b6ceeb3f8d..1f483b65e6620 100644 --- a/tests/baselines/reference/tsserver/events/watchEvents/canUseWatchEvents-without-canUseEvents.js +++ b/tests/baselines/reference/tsserver/events/watchEvents/canUseWatchEvents-without-canUseEvents.js @@ -337,18 +337,27 @@ Info seq [hh:mm:ss:mss] request: "type": "request" } Info seq [hh:mm:ss:mss] Err:: Unrecognized JSON command: - {"command":"watchChange","arguments":{"id":1,"path":"/user/username/projects/myproject/b.ts","eventType":"update"},"seq":4,"type":"request"} + { + "command": "watchChange", + "arguments": { + "id": 1, + "path": "/user/username/projects/myproject/b.ts", + "eventType": "update" + }, + "seq": 4, + "type": "request" + } Info seq [hh:mm:ss:mss] response: { - "seq": 0, - "type": "response", - "command": "unknown", - "request_seq": 4, - "success": false, - "performanceData": { - "updateGraphDurationMs": * - }, - "message": "Unrecognized JSON command: watchChange" + "seq": 0, + "type": "response", + "command": "unknown", + "request_seq": 4, + "success": false, + "performanceData": { + "updateGraphDurationMs": * + }, + "message": "Unrecognized JSON command: watchChange" } Info seq [hh:mm:ss:mss] response: { diff --git a/tests/baselines/reference/tsserver/events/watchEvents/canUseWatchEvents.js b/tests/baselines/reference/tsserver/events/watchEvents/canUseWatchEvents.js index 34a10b3434b73..57b9abb873a4b 100644 --- a/tests/baselines/reference/tsserver/events/watchEvents/canUseWatchEvents.js +++ b/tests/baselines/reference/tsserver/events/watchEvents/canUseWatchEvents.js @@ -39,24 +39,24 @@ Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::createFileWatcher", - "body": { - "id": 1, - "path": "/user/username/projects/myproject/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::createFileWatcher", + "body": { + "id": 1, + "path": "/user/username/projects/myproject/tsconfig.json" + } } Custom watchFile: 1: /user/username/projects/myproject/tsconfig.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectLoadingStart", - "body": { - "project": "/user/username/projects/myproject/tsconfig.json", - "reason": "Creating possible configured project for /user/username/projects/myproject/a.ts to open" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectLoadingStart", + "body": { + "project": "/user/username/projects/myproject/tsconfig.json", + "reason": "Creating possible configured project for /user/username/projects/myproject/a.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/tsconfig.json : { "rootNames": [ @@ -70,67 +70,67 @@ Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/tsconfig.json Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject 1 undefined Config: /user/username/projects/myproject/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::createDirectoryWatcher", - "body": { - "id": 2, - "path": "/user/username/projects/myproject", - "recursive": true - } + "seq": 0, + "type": "event", + "event": "CustomHandler::createDirectoryWatcher", + "body": { + "id": 2, + "path": "/user/username/projects/myproject", + "recursive": true + } } Custom watchDirectory: 2: /user/username/projects/myproject true Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject 1 undefined Config: /user/username/projects/myproject/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/b.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::createFileWatcher", - "body": { - "id": 3, - "path": "/user/username/projects/myproject/b.ts" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::createFileWatcher", + "body": { + "id": 3, + "path": "/user/username/projects/myproject/b.ts" + } } Custom watchFile: 3: /user/username/projects/myproject/b.ts Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::createFileWatcher", - "body": { - "id": 4, - "path": "/a/lib/lib.d.ts" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::createFileWatcher", + "body": { + "id": 4, + "path": "/a/lib/lib.d.ts" + } } Custom watchFile: 4: /a/lib/lib.d.ts Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::createDirectoryWatcher", - "body": { - "id": 5, - "path": "/user/username/projects/myproject/node_modules/@types", - "recursive": true - } + "seq": 0, + "type": "event", + "event": "CustomHandler::createDirectoryWatcher", + "body": { + "id": 5, + "path": "/user/username/projects/myproject/node_modules/@types", + "recursive": true + } } Custom watchDirectory: 5: /user/username/projects/myproject/node_modules/@types true Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::createDirectoryWatcher", - "body": { - "id": 6, - "path": "/user/username/projects/node_modules/@types", - "recursive": true - } + "seq": 0, + "type": "event", + "event": "CustomHandler::createDirectoryWatcher", + "body": { + "id": 6, + "path": "/user/username/projects/node_modules/@types", + "recursive": true + } } Custom watchDirectory: 6: /user/username/projects/node_modules/@types true Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Type roots @@ -152,61 +152,61 @@ Info seq [hh:mm:ss:mss] Files (3) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectLoadingFinish", - "body": { - "project": "/user/username/projects/myproject/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectLoadingFinish", + "body": { + "project": "/user/username/projects/myproject/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectInfo", - "body": { - "projectId": "4a33d78ee40d836c4f4e64c59aed976628aea0013be9585c5ff171dfc41baf98", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 2, - "tsSize": 124, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": {}, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectInfo", + "body": { + "projectId": "4a33d78ee40d836c4f4e64c59aed976628aea0013be9585c5ff171dfc41baf98", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 2, + "tsSize": 124, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": {}, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::configFileDiag", - "body": { - "configFileName": "/user/username/projects/myproject/tsconfig.json", - "diagnostics": [], - "triggerFile": "/user/username/projects/myproject/a.ts" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::configFileDiag", + "body": { + "configFileName": "/user/username/projects/myproject/tsconfig.json", + "diagnostics": [], + "triggerFile": "/user/username/projects/myproject/a.ts" + } } Info seq [hh:mm:ss:mss] Project '/user/username/projects/myproject/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (3) @@ -277,13 +277,13 @@ Info seq [hh:mm:ss:mss] Running: /user/username/projects/myproject/tsconfig.jso Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/c.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::createFileWatcher", - "body": { - "id": 7, - "path": "/user/username/projects/myproject/c.ts" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::createFileWatcher", + "body": { + "id": 7, + "path": "/user/username/projects/myproject/c.ts" + } } Custom watchFile: 7: /user/username/projects/myproject/c.ts Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig.json @@ -325,14 +325,14 @@ Info seq [hh:mm:ss:mss] FileName: /user/username/projects/myproject/a.ts Proje Info seq [hh:mm:ss:mss] Projects: /user/username/projects/myproject/tsconfig.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/user/username/projects/myproject/a.ts" - ] - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/user/username/projects/myproject/a.ts" + ] + } } After running Timeout callback:: count: 0 @@ -420,14 +420,14 @@ Info seq [hh:mm:ss:mss] FileName: /user/username/projects/myproject/a.ts Proje Info seq [hh:mm:ss:mss] Projects: /user/username/projects/myproject/tsconfig.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/user/username/projects/myproject/a.ts" - ] - } + "seq": 0, + "type": "event", + "event": "CustomHandler::projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/user/username/projects/myproject/a.ts" + ] + } } After running Timeout callback:: count: 0 @@ -445,12 +445,12 @@ Info seq [hh:mm:ss:mss] request: Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/b.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::closeFileWatcher", - "body": { - "id": 3 - } + "seq": 0, + "type": "event", + "event": "CustomHandler::closeFileWatcher", + "body": { + "id": 3 + } } Custom watchFile:: Close:: 3: /user/username/projects/myproject/b.ts Info seq [hh:mm:ss:mss] Search path: /user/username/projects/myproject @@ -504,13 +504,13 @@ Info seq [hh:mm:ss:mss] request: Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/b.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "CustomHandler::createFileWatcher", - "body": { - "id": 8, - "path": "/user/username/projects/myproject/b.ts" - } + "seq": 0, + "type": "event", + "event": "CustomHandler::createFileWatcher", + "body": { + "id": 8, + "path": "/user/username/projects/myproject/b.ts" + } } Custom watchFile: 8: /user/username/projects/myproject/b.ts Info seq [hh:mm:ss:mss] Project '/user/username/projects/myproject/tsconfig.json' (Configured) diff --git a/tests/baselines/reference/tsserver/exportMapCache/invalidates-the-cache-when-a-file-is-opened-with-different-contents.js b/tests/baselines/reference/tsserver/exportMapCache/invalidates-the-cache-when-a-file-is-opened-with-different-contents.js index e5dc1356cac4c..25447dbf5b7a3 100644 --- a/tests/baselines/reference/tsserver/exportMapCache/invalidates-the-cache-when-a-file-is-opened-with-different-contents.js +++ b/tests/baselines/reference/tsserver/exportMapCache/invalidates-the-cache-when-a-file-is-opened-with-different-contents.js @@ -36,13 +36,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /tsconfig.json Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tsconfig.json 2000 undefined Project: /tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/tsconfig.json", - "reason": "Creating possible configured project for /classes.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/tsconfig.json", + "reason": "Creating possible configured project for /classes.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /tsconfig.json : { "rootNames": [ @@ -74,110 +74,110 @@ Info seq [hh:mm:ss:mss] Files (2) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "aace87d7c1572ff43c6978074161b586788b4518c7a9d06c79c03e613b6ce5a3", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 2, - "tsSize": 302, - "tsx": 0, - "tsxSize": 0, - "dts": 0, - "dtsSize": 0, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": {}, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "aace87d7c1572ff43c6978074161b586788b4518c7a9d06c79c03e613b6ce5a3", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 2, + "tsSize": 302, + "tsx": 0, + "tsxSize": 0, + "dts": 0, + "dtsSize": 0, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": {}, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/classes.ts", - "configFile": "/tsconfig.json", - "diagnostics": [ - { - "text": "File '/a/lib/lib.d.ts' not found.\n The file is in the program because:\n Default library for target 'es5'", - "code": 6053, - "category": "error" - }, - { - "text": "Cannot find global type 'Array'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Boolean'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Function'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'IArguments'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Number'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Object'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'RegExp'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'String'.", - "code": 2318, - "category": "error" - } - ] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/classes.ts", + "configFile": "/tsconfig.json", + "diagnostics": [ + { + "text": "File '/a/lib/lib.d.ts' not found.\n The file is in the program because:\n Default library for target 'es5'", + "code": 6053, + "category": "error" + }, + { + "text": "Cannot find global type 'Array'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Boolean'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Function'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'IArguments'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Number'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Object'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'RegExp'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'String'.", + "code": 2318, + "category": "error" + } + ] + } } Info seq [hh:mm:ss:mss] Project '/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (2) @@ -223,14 +223,14 @@ Info seq [hh:mm:ss:mss] request: } Info seq [hh:mm:ss:mss] response: { - "seq": 0, - "type": "response", - "command": "configure", - "request_seq": 2, - "success": true, - "performanceData": { - "updateGraphDurationMs": * - } + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 2, + "success": true, + "performanceData": { + "updateGraphDurationMs": * + } } Info seq [hh:mm:ss:mss] response: { diff --git a/tests/baselines/reference/tsserver/externalProjects/can-handle-tsconfig-file-name-with-difference-casing-with-lazyConfiguredProjectsFromExternalProject.js b/tests/baselines/reference/tsserver/externalProjects/can-handle-tsconfig-file-name-with-difference-casing-with-lazyConfiguredProjectsFromExternalProject.js index 4407f52471d74..34768d2d5ebba 100644 --- a/tests/baselines/reference/tsserver/externalProjects/can-handle-tsconfig-file-name-with-difference-casing-with-lazyConfiguredProjectsFromExternalProject.js +++ b/tests/baselines/reference/tsserver/externalProjects/can-handle-tsconfig-file-name-with-difference-casing-with-lazyConfiguredProjectsFromExternalProject.js @@ -21,11 +21,11 @@ Info seq [hh:mm:ss:mss] request: } Info seq [hh:mm:ss:mss] response: { - "seq": 0, - "type": "response", - "command": "configure", - "request_seq": 1, - "success": true + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 1, + "success": true } Info seq [hh:mm:ss:mss] response: { diff --git a/tests/baselines/reference/tsserver/externalProjects/can-handle-tsconfig-file-name-with-difference-casing.js b/tests/baselines/reference/tsserver/externalProjects/can-handle-tsconfig-file-name-with-difference-casing.js index bcc8e9817932a..9d20bdf916f25 100644 --- a/tests/baselines/reference/tsserver/externalProjects/can-handle-tsconfig-file-name-with-difference-casing.js +++ b/tests/baselines/reference/tsserver/externalProjects/can-handle-tsconfig-file-name-with-difference-casing.js @@ -21,11 +21,11 @@ Info seq [hh:mm:ss:mss] request: } Info seq [hh:mm:ss:mss] response: { - "seq": 0, - "type": "response", - "command": "configure", - "request_seq": 1, - "success": true + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 1, + "success": true } Info seq [hh:mm:ss:mss] response: { diff --git a/tests/baselines/reference/tsserver/forceConsistentCasingInFileNames/when-changing-module-name-with-different-casing.js b/tests/baselines/reference/tsserver/forceConsistentCasingInFileNames/when-changing-module-name-with-different-casing.js index c641df57ecd74..923cde1aa33c0 100644 --- a/tests/baselines/reference/tsserver/forceConsistentCasingInFileNames/when-changing-module-name-with-different-casing.js +++ b/tests/baselines/reference/tsserver/forceConsistentCasingInFileNames/when-changing-module-name-with-different-casing.js @@ -40,13 +40,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json", - "reason": "Creating possible configured project for /user/username/projects/myproject/another.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json", + "reason": "Creating possible configured project for /user/username/projects/myproject/another.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/tsconfig.json : { "rootNames": [ @@ -86,66 +86,66 @@ Info seq [hh:mm:ss:mss] Files (3) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "4a33d78ee40d836c4f4e64c59aed976628aea0013be9585c5ff171dfc41baf98", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 2, - "tsSize": 71, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": { - "forceConsistentCasingInFileNames": true - }, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "4a33d78ee40d836c4f4e64c59aed976628aea0013be9585c5ff171dfc41baf98", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 2, + "tsSize": 71, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "forceConsistentCasingInFileNames": true + }, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/myproject/another.ts", - "configFile": "/user/username/projects/myproject/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/myproject/another.ts", + "configFile": "/user/username/projects/myproject/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Project '/user/username/projects/myproject/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (3) @@ -203,13 +203,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/another.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/another.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -218,13 +218,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/another.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/another.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 1 2: suggestionCheck @@ -234,22 +234,22 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/another.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/another.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 2 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 2 + } } After running Immedidate callback:: count: 0 @@ -322,13 +322,13 @@ Info seq [hh:mm:ss:mss] Files (3) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/another.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/another.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -337,27 +337,27 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/another.ts", - "diagnostics": [ - { - "start": { - "line": 1, - "offset": 24 - }, - "end": { - "line": 1, - "offset": 34 - }, - "text": "File name '/user/username/projects/myproject/logger.ts' differs from already included file name '/user/username/projects/myproject/Logger.ts' only in casing.\n The file is in the program because:\n Matched by default include pattern '**/*'\n Imported via \"./logger\" from file '/user/username/projects/myproject/another.ts'", - "code": 1149, - "category": "error" - } - ] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/another.ts", + "diagnostics": [ + { + "start": { + "line": 1, + "offset": 24 + }, + "end": { + "line": 1, + "offset": 34 + }, + "text": "File name '/user/username/projects/myproject/logger.ts' differs from already included file name '/user/username/projects/myproject/Logger.ts' only in casing.\n The file is in the program because:\n Matched by default include pattern '**/*'\n Imported via \"./logger\" from file '/user/username/projects/myproject/another.ts'", + "code": 1149, + "category": "error" + } + ] + } } After running Immedidate callback:: count: 1 4: suggestionCheck @@ -367,21 +367,21 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/another.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/another.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 4 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 4 + } } After running Immedidate callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/forceConsistentCasingInFileNames/works-when-renaming-file-with-different-casing.js b/tests/baselines/reference/tsserver/forceConsistentCasingInFileNames/works-when-renaming-file-with-different-casing.js index 97ed2d423d0a1..01e021a310804 100644 --- a/tests/baselines/reference/tsserver/forceConsistentCasingInFileNames/works-when-renaming-file-with-different-casing.js +++ b/tests/baselines/reference/tsserver/forceConsistentCasingInFileNames/works-when-renaming-file-with-different-casing.js @@ -40,13 +40,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json", - "reason": "Creating possible configured project for /user/username/projects/myproject/Logger.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json", + "reason": "Creating possible configured project for /user/username/projects/myproject/Logger.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/tsconfig.json : { "rootNames": [ @@ -86,66 +86,66 @@ Info seq [hh:mm:ss:mss] Files (3) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "4a33d78ee40d836c4f4e64c59aed976628aea0013be9585c5ff171dfc41baf98", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 2, - "tsSize": 71, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": { - "forceConsistentCasingInFileNames": true - }, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "4a33d78ee40d836c4f4e64c59aed976628aea0013be9585c5ff171dfc41baf98", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 2, + "tsSize": 71, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "forceConsistentCasingInFileNames": true + }, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/myproject/Logger.ts", - "configFile": "/user/username/projects/myproject/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/myproject/Logger.ts", + "configFile": "/user/username/projects/myproject/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Project '/user/username/projects/myproject/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (3) @@ -203,13 +203,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/Logger.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/Logger.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -218,13 +218,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/Logger.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/Logger.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 1 2: suggestionCheck @@ -234,22 +234,22 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/Logger.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/Logger.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 2 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 2 + } } After running Immedidate callback:: count: 0 @@ -481,13 +481,13 @@ Info seq [hh:mm:ss:mss] Files (3) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/logger.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/logger.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -496,13 +496,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/logger.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/logger.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 1 4: suggestionCheck @@ -512,13 +512,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/logger.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/logger.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 0 @@ -527,13 +527,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/another.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/another.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -542,13 +542,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/another.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/another.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 1 6: suggestionCheck @@ -558,21 +558,21 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/another.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/another.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 7 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 7 + } } After running Immedidate callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/formatSettings/works-when-extends-is-specified-with-a-case-insensitive-file-system.js b/tests/baselines/reference/tsserver/formatSettings/works-when-extends-is-specified-with-a-case-insensitive-file-system.js index 723e229d520c1..2363b9cf4e3ae 100644 --- a/tests/baselines/reference/tsserver/formatSettings/works-when-extends-is-specified-with-a-case-insensitive-file-system.js +++ b/tests/baselines/reference/tsserver/formatSettings/works-when-extends-is-specified-with-a-case-insensitive-file-system.js @@ -82,14 +82,14 @@ Info seq [hh:mm:ss:mss] request: Info seq [hh:mm:ss:mss] Format host information updated Info seq [hh:mm:ss:mss] response: { - "seq": 0, - "type": "response", - "command": "configure", - "request_seq": 2, - "success": true, - "performanceData": { - "updateGraphDurationMs": * - } + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 2, + "success": true, + "performanceData": { + "updateGraphDurationMs": * + } } Info seq [hh:mm:ss:mss] response: { @@ -159,14 +159,14 @@ Info seq [hh:mm:ss:mss] request: Info seq [hh:mm:ss:mss] Host configuration update for file /a/b/app.ts Info seq [hh:mm:ss:mss] response: { - "seq": 0, - "type": "response", - "command": "configure", - "request_seq": 3, - "success": true, - "performanceData": { - "updateGraphDurationMs": * - } + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 3, + "success": true, + "performanceData": { + "updateGraphDurationMs": * + } } Info seq [hh:mm:ss:mss] response: { @@ -235,14 +235,14 @@ Info seq [hh:mm:ss:mss] request: Info seq [hh:mm:ss:mss] Format host information updated Info seq [hh:mm:ss:mss] response: { - "seq": 0, - "type": "response", - "command": "configure", - "request_seq": 4, - "success": true, - "performanceData": { - "updateGraphDurationMs": * - } + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 4, + "success": true, + "performanceData": { + "updateGraphDurationMs": * + } } Info seq [hh:mm:ss:mss] response: { diff --git a/tests/baselines/reference/tsserver/getFileReferences/should-skip-lineText-from-file-references.js b/tests/baselines/reference/tsserver/getFileReferences/should-skip-lineText-from-file-references.js index b73d3d8635ef9..7355241ef093f 100644 --- a/tests/baselines/reference/tsserver/getFileReferences/should-skip-lineText-from-file-references.js +++ b/tests/baselines/reference/tsserver/getFileReferences/should-skip-lineText-from-file-references.js @@ -265,14 +265,14 @@ Info seq [hh:mm:ss:mss] request: } Info seq [hh:mm:ss:mss] response: { - "seq": 0, - "type": "response", - "command": "configure", - "request_seq": 5, - "success": true, - "performanceData": { - "updateGraphDurationMs": * - } + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 5, + "success": true, + "performanceData": { + "updateGraphDurationMs": * + } } Info seq [hh:mm:ss:mss] response: { diff --git a/tests/baselines/reference/tsserver/inconsistentErrorInEditor/should-not-error.js b/tests/baselines/reference/tsserver/inconsistentErrorInEditor/should-not-error.js index 27c53fce2ec2f..8142c60a4c6d5 100644 --- a/tests/baselines/reference/tsserver/inconsistentErrorInEditor/should-not-error.js +++ b/tests/baselines/reference/tsserver/inconsistentErrorInEditor/should-not-error.js @@ -134,13 +134,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "^/untitled/ts-nul-authority/Untitled-1", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "^/untitled/ts-nul-authority/Untitled-1", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -149,13 +149,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "^/untitled/ts-nul-authority/Untitled-1", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "^/untitled/ts-nul-authority/Untitled-1", + "diagnostics": [] + } } After running Immedidate callback:: count: 1 2: suggestionCheck @@ -165,36 +165,36 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "^/untitled/ts-nul-authority/Untitled-1", - "diagnostics": [ - { - "start": { - "line": 9, - "offset": 5 - }, - "end": { - "line": 9, - "offset": 6 - }, - "text": "'x' is declared but its value is never read.", - "code": 6133, - "category": "suggestion", - "reportsUnnecessary": true - } - ] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "^/untitled/ts-nul-authority/Untitled-1", + "diagnostics": [ + { + "start": { + "line": 9, + "offset": 5 + }, + "end": { + "line": 9, + "offset": 6 + }, + "text": "'x' is declared but its value is never read.", + "code": 6133, + "category": "suggestion", + "reportsUnnecessary": true + } + ] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 3 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 3 + } } After running Immedidate callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/inconsistentErrorInEditor2/should-not-error.js b/tests/baselines/reference/tsserver/inconsistentErrorInEditor2/should-not-error.js index 74c20336ea281..791ee1b59b9e0 100644 --- a/tests/baselines/reference/tsserver/inconsistentErrorInEditor2/should-not-error.js +++ b/tests/baselines/reference/tsserver/inconsistentErrorInEditor2/should-not-error.js @@ -119,13 +119,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "^/untitled/ts-nul-authority/Untitled-1", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "^/untitled/ts-nul-authority/Untitled-1", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -134,13 +134,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "^/untitled/ts-nul-authority/Untitled-1", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "^/untitled/ts-nul-authority/Untitled-1", + "diagnostics": [] + } } After running Immedidate callback:: count: 1 2: suggestionCheck @@ -150,21 +150,21 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "^/untitled/ts-nul-authority/Untitled-1", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "^/untitled/ts-nul-authority/Untitled-1", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 3 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 3 + } } After running Immedidate callback:: count: 0 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 46a5f6f22b11b..fd2c233ca1089 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 @@ -89,10 +89,10 @@ PolledWatches:: /a/lib/lib.es6.d.ts: *new* {"pollingInterval":500} -TI:: [hh:mm:ss:mss] Global cache location '/a/data/', safe file path '/safeList.json', types map path /typesMap.json -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Global cache location '/a/data', safe file path '/safeList.json', types map path /typesMap.json +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Trying to find '/a/data/package.json'... -TI:: [hh:mm:ss:mss] Finished processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Finished processing cache location '/a/data' TI:: [hh:mm:ss:mss] Npm config file: /a/data/package.json TI:: [hh:mm:ss:mss] Npm config file: '/a/data/package.json' is missing, creating new one... TI:: [hh:mm:ss:mss] Updating types-registry npm package... @@ -108,23 +108,76 @@ TI:: typing installer creation complete } -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject1*","fileNames":["/a/file1.ts"],"compilerOptions":{"allowJs":true,"target":2,"allowNonTsExtensions":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/a","cachePath":"/a/data/","kind":"discover"} -TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data/', loading cached information... -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject1*", + "fileNames": [ + "/a/file1.ts" + ], + "compilerOptions": { + "allowJs": true, + "target": 2, + "allowNonTsExtensions": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/a", + "cachePath": "/a/data", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/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] Result: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/a/bower_components","/a/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/a/bower_components","/a/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/a/bower_components", + "/a/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject1*","files":["/a/bower_components","/a/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject1*", + "files": [ + "/a/bower_components", + "/a/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /a/bower_components 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a/bower_components 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /a/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer TI:: [hh:mm:ss:mss] Sending response: - {"projectName":"/dev/null/inferredProject1*","typeAcquisition":{"enable":true,"include":[],"exclude":[]},"compilerOptions":{"allowJs":true,"target":2,"allowNonTsExtensions":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typings":[],"unresolvedImports":[],"kind":"action::set"} + { + "projectName": "/dev/null/inferredProject1*", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "target": 2, + "allowNonTsExtensions": 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] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (1) @@ -177,18 +230,68 @@ Info seq [hh:mm:ss:mss] Files (2) Root file specified for compilation Info seq [hh:mm:ss:mss] ----------------------------------------------- -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject1*","fileNames":["/a/file1.ts","/A/file2.ts"],"compilerOptions":{"allowJs":true,"target":2,"allowNonTsExtensions":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/a","cachePath":"/a/data/","kind":"discover"} -TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data/', loading cached information... -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject1*", + "fileNames": [ + "/a/file1.ts", + "/A/file2.ts" + ], + "compilerOptions": { + "allowJs": true, + "target": 2, + "allowNonTsExtensions": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/a", + "cachePath": "/a/data", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/a/bower_components","/a/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/a/bower_components","/a/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/a/bower_components", + "/a/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject1*"} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject1*" + } TI:: [hh:mm:ss:mss] Sending response: - {"projectName":"/dev/null/inferredProject1*","typeAcquisition":{"enable":true,"include":[],"exclude":[]},"compilerOptions":{"allowJs":true,"target":2,"allowNonTsExtensions":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typings":[],"unresolvedImports":[],"kind":"action::set"} + { + "projectName": "/dev/null/inferredProject1*", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "target": 2, + "allowNonTsExtensions": 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] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (2) @@ -233,22 +336,75 @@ Info seq [hh:mm:ss:mss] Files (1) Root file specified for compilation Info seq [hh:mm:ss:mss] ----------------------------------------------- -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject2*","fileNames":["/b/file2.ts"],"compilerOptions":{"allowJs":true,"target":99,"allowNonTsExtensions":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/b","cachePath":"/a/data/","kind":"discover"} -TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data/', loading cached information... -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject2*", + "fileNames": [ + "/b/file2.ts" + ], + "compilerOptions": { + "allowJs": true, + "target": 99, + "allowNonTsExtensions": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/b", + "cachePath": "/a/data", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/b/bower_components","/b/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/b/bower_components","/b/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/b/bower_components", + "/b/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject2*","files":["/b/bower_components","/b/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject2*", + "files": [ + "/b/bower_components", + "/b/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /b/bower_components 1 undefined Project: /dev/null/inferredProject2* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /b/bower_components 1 undefined Project: /dev/null/inferredProject2* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /b/node_modules 1 undefined Project: /dev/null/inferredProject2* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /b/node_modules 1 undefined Project: /dev/null/inferredProject2* WatchType: Directory location for typing installer TI:: [hh:mm:ss:mss] Sending response: - {"projectName":"/dev/null/inferredProject2*","typeAcquisition":{"enable":true,"include":[],"exclude":[]},"compilerOptions":{"allowJs":true,"target":99,"allowNonTsExtensions":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typings":[],"unresolvedImports":[],"kind":"action::set"} + { + "projectName": "/dev/null/inferredProject2*", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "target": 99, + "allowNonTsExtensions": 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] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (2) @@ -312,22 +468,75 @@ Info seq [hh:mm:ss:mss] Files (1) Root file specified for compilation Info seq [hh:mm:ss:mss] ----------------------------------------------- -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject3*","fileNames":["/c/file3.ts"],"compilerOptions":{"allowJs":true,"target":99,"allowNonTsExtensions":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/","cachePath":"/a/data/","kind":"discover"} -TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data/', loading cached information... -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject3*", + "fileNames": [ + "/c/file3.ts" + ], + "compilerOptions": { + "allowJs": true, + "target": 99, + "allowNonTsExtensions": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/", + "cachePath": "/a/data", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/bower_components","/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/bower_components","/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/bower_components", + "/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject3*","files":["/bower_components","/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject3*", + "files": [ + "/bower_components", + "/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /bower_components 1 undefined Project: /dev/null/inferredProject3* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /bower_components 1 undefined Project: /dev/null/inferredProject3* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /node_modules 1 undefined Project: /dev/null/inferredProject3* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /node_modules 1 undefined Project: /dev/null/inferredProject3* WatchType: Directory location for typing installer TI:: [hh:mm:ss:mss] Sending response: - {"projectName":"/dev/null/inferredProject3*","typeAcquisition":{"enable":true,"include":[],"exclude":[]},"compilerOptions":{"allowJs":true,"target":99,"allowNonTsExtensions":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typings":[],"unresolvedImports":[],"kind":"action::set"} + { + "projectName": "/dev/null/inferredProject3*", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "target": 99, + "allowNonTsExtensions": 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] Project '/dev/null/inferredProject3*' (Inferred) Info seq [hh:mm:ss:mss] Files (1) @@ -638,18 +847,67 @@ Info seq [hh:mm:ss:mss] Files (1) Root file specified for compilation Info seq [hh:mm:ss:mss] ----------------------------------------------- -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject1*","fileNames":["/a/file1.ts"],"compilerOptions":{"allowJs":true,"target":2,"allowNonTsExtensions":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/a","cachePath":"/a/data/","kind":"discover"} -TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data/', loading cached information... -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject1*", + "fileNames": [ + "/a/file1.ts" + ], + "compilerOptions": { + "allowJs": true, + "target": 2, + "allowNonTsExtensions": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/a", + "cachePath": "/a/data", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/a/bower_components","/a/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/a/bower_components","/a/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/a/bower_components", + "/a/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject1*"} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject1*" + } TI:: [hh:mm:ss:mss] Sending response: - {"projectName":"/dev/null/inferredProject1*","typeAcquisition":{"enable":true,"include":[],"exclude":[]},"compilerOptions":{"allowJs":true,"target":2,"allowNonTsExtensions":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typings":[],"unresolvedImports":[],"kind":"action::set"} + { + "projectName": "/dev/null/inferredProject1*", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "target": 2, + "allowNonTsExtensions": 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] `remove Project:: Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject3*' (Inferred) @@ -663,7 +921,11 @@ Info seq [hh:mm:ss:mss] Files (1) Info seq [hh:mm:ss:mss] ----------------------------------------------- TI:: [hh:mm:ss:mss] Closing file watchers for project '/dev/null/inferredProject3*' TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject3*","files":[]} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject3*", + "files": [] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /bower_components 1 undefined Project: /dev/null/inferredProject3* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /bower_components 1 undefined Project: /dev/null/inferredProject3* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /node_modules 1 undefined Project: /dev/null/inferredProject3* WatchType: Directory location for typing installer @@ -682,7 +944,11 @@ Info seq [hh:mm:ss:mss] Files (1) Info seq [hh:mm:ss:mss] ----------------------------------------------- TI:: [hh:mm:ss:mss] Closing file watchers for project '/dev/null/inferredProject2*' TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject2*","files":[]} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject2*", + "files": [] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /b/bower_components 1 undefined Project: /dev/null/inferredProject2* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /b/bower_components 1 undefined Project: /dev/null/inferredProject2* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /b/node_modules 1 undefined Project: /dev/null/inferredProject2* WatchType: Directory location for typing installer @@ -765,18 +1031,68 @@ Info seq [hh:mm:ss:mss] Files (2) Root file specified for compilation Info seq [hh:mm:ss:mss] ----------------------------------------------- -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject1*","fileNames":["/a/file1.ts","/A/file2.ts"],"compilerOptions":{"allowJs":true,"target":2,"allowNonTsExtensions":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/a","cachePath":"/a/data/","kind":"discover"} -TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data/', loading cached information... -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject1*", + "fileNames": [ + "/a/file1.ts", + "/A/file2.ts" + ], + "compilerOptions": { + "allowJs": true, + "target": 2, + "allowNonTsExtensions": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/a", + "cachePath": "/a/data", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/a/bower_components","/a/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/a/bower_components","/a/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/a/bower_components", + "/a/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject1*"} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject1*" + } TI:: [hh:mm:ss:mss] Sending response: - {"projectName":"/dev/null/inferredProject1*","typeAcquisition":{"enable":true,"include":[],"exclude":[]},"compilerOptions":{"allowJs":true,"target":2,"allowNonTsExtensions":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typings":[],"unresolvedImports":[],"kind":"action::set"} + { + "projectName": "/dev/null/inferredProject1*", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "target": 2, + "allowNonTsExtensions": 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] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (2) @@ -821,22 +1137,75 @@ Info seq [hh:mm:ss:mss] Files (1) Root file specified for compilation Info seq [hh:mm:ss:mss] ----------------------------------------------- -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject4*","fileNames":["/b/file2.ts"],"compilerOptions":{"allowJs":true,"target":99,"allowNonTsExtensions":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/b","cachePath":"/a/data/","kind":"discover"} -TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data/', loading cached information... -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject4*", + "fileNames": [ + "/b/file2.ts" + ], + "compilerOptions": { + "allowJs": true, + "target": 99, + "allowNonTsExtensions": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/b", + "cachePath": "/a/data", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/b/bower_components","/b/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/b/bower_components","/b/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/b/bower_components", + "/b/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject4*","files":["/b/bower_components","/b/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject4*", + "files": [ + "/b/bower_components", + "/b/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /b/bower_components 1 undefined Project: /dev/null/inferredProject4* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /b/bower_components 1 undefined Project: /dev/null/inferredProject4* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /b/node_modules 1 undefined Project: /dev/null/inferredProject4* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /b/node_modules 1 undefined Project: /dev/null/inferredProject4* WatchType: Directory location for typing installer TI:: [hh:mm:ss:mss] Sending response: - {"projectName":"/dev/null/inferredProject4*","typeAcquisition":{"enable":true,"include":[],"exclude":[]},"compilerOptions":{"allowJs":true,"target":99,"allowNonTsExtensions":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typings":[],"unresolvedImports":[],"kind":"action::set"} + { + "projectName": "/dev/null/inferredProject4*", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "target": 99, + "allowNonTsExtensions": 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] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (2) @@ -900,22 +1269,75 @@ Info seq [hh:mm:ss:mss] Files (1) Root file specified for compilation Info seq [hh:mm:ss:mss] ----------------------------------------------- -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject5*","fileNames":["/c/file3.ts"],"compilerOptions":{"allowJs":true,"target":99,"allowNonTsExtensions":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/","cachePath":"/a/data/","kind":"discover"} -TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data/', loading cached information... -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject5*", + "fileNames": [ + "/c/file3.ts" + ], + "compilerOptions": { + "allowJs": true, + "target": 99, + "allowNonTsExtensions": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/", + "cachePath": "/a/data", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/bower_components","/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/bower_components","/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/bower_components", + "/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject5*","files":["/bower_components","/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject5*", + "files": [ + "/bower_components", + "/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /bower_components 1 undefined Project: /dev/null/inferredProject5* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /bower_components 1 undefined Project: /dev/null/inferredProject5* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /node_modules 1 undefined Project: /dev/null/inferredProject5* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /node_modules 1 undefined Project: /dev/null/inferredProject5* WatchType: Directory location for typing installer TI:: [hh:mm:ss:mss] Sending response: - {"projectName":"/dev/null/inferredProject5*","typeAcquisition":{"enable":true,"include":[],"exclude":[]},"compilerOptions":{"allowJs":true,"target":99,"allowNonTsExtensions":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typings":[],"unresolvedImports":[],"kind":"action::set"} + { + "projectName": "/dev/null/inferredProject5*", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "target": 99, + "allowNonTsExtensions": 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] Project '/dev/null/inferredProject5*' (Inferred) Info seq [hh:mm:ss:mss] Files (1) @@ -1251,18 +1673,67 @@ Info seq [hh:mm:ss:mss] Files (1) Root file specified for compilation Info seq [hh:mm:ss:mss] ----------------------------------------------- -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject1*","fileNames":["/a/file1.ts"],"compilerOptions":{"allowJs":true,"target":4,"allowNonTsExtensions":true,"maxNodeModuleJsDepth":2,"noEmitForJsFiles":true},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/a","cachePath":"/a/data/","kind":"discover"} -TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data/', loading cached information... -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject1*", + "fileNames": [ + "/a/file1.ts" + ], + "compilerOptions": { + "allowJs": true, + "target": 4, + "allowNonTsExtensions": true, + "maxNodeModuleJsDepth": 2, + "noEmitForJsFiles": true + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/a", + "cachePath": "/a/data", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/a/bower_components","/a/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/a/bower_components","/a/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/a/bower_components", + "/a/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject1*"} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject1*" + } TI:: [hh:mm:ss:mss] Sending response: - {"projectName":"/dev/null/inferredProject1*","typeAcquisition":{"enable":true,"include":[],"exclude":[]},"compilerOptions":{"allowJs":true,"target":4,"allowNonTsExtensions":true,"maxNodeModuleJsDepth":2,"noEmitForJsFiles":true},"typings":[],"unresolvedImports":[],"kind":"action::set"} + { + "projectName": "/dev/null/inferredProject1*", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "target": 4, + "allowNonTsExtensions": true, + "maxNodeModuleJsDepth": 2, + "noEmitForJsFiles": true + }, + "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] `remove Project:: Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject5*' (Inferred) @@ -1276,7 +1747,11 @@ Info seq [hh:mm:ss:mss] Files (1) Info seq [hh:mm:ss:mss] ----------------------------------------------- TI:: [hh:mm:ss:mss] Closing file watchers for project '/dev/null/inferredProject5*' TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject5*","files":[]} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject5*", + "files": [] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /bower_components 1 undefined Project: /dev/null/inferredProject5* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /bower_components 1 undefined Project: /dev/null/inferredProject5* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /node_modules 1 undefined Project: /dev/null/inferredProject5* WatchType: Directory location for typing installer @@ -1295,7 +1770,11 @@ Info seq [hh:mm:ss:mss] Files (1) Info seq [hh:mm:ss:mss] ----------------------------------------------- TI:: [hh:mm:ss:mss] Closing file watchers for project '/dev/null/inferredProject4*' TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject4*","files":[]} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject4*", + "files": [] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /b/bower_components 1 undefined Project: /dev/null/inferredProject4* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /b/bower_components 1 undefined Project: /dev/null/inferredProject4* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /b/node_modules 1 undefined Project: /dev/null/inferredProject4* WatchType: Directory location for typing installer @@ -1380,18 +1859,68 @@ Info seq [hh:mm:ss:mss] Files (2) Root file specified for compilation Info seq [hh:mm:ss:mss] ----------------------------------------------- -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject1*","fileNames":["/a/file1.ts","/A/file2.ts"],"compilerOptions":{"allowJs":true,"target":4,"allowNonTsExtensions":true,"maxNodeModuleJsDepth":2,"noEmitForJsFiles":true},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/a","cachePath":"/a/data/","kind":"discover"} -TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data/', loading cached information... -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject1*", + "fileNames": [ + "/a/file1.ts", + "/A/file2.ts" + ], + "compilerOptions": { + "allowJs": true, + "target": 4, + "allowNonTsExtensions": true, + "maxNodeModuleJsDepth": 2, + "noEmitForJsFiles": true + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/a", + "cachePath": "/a/data", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/a/bower_components","/a/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/a/bower_components","/a/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/a/bower_components", + "/a/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject1*"} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject1*" + } TI:: [hh:mm:ss:mss] Sending response: - {"projectName":"/dev/null/inferredProject1*","typeAcquisition":{"enable":true,"include":[],"exclude":[]},"compilerOptions":{"allowJs":true,"target":4,"allowNonTsExtensions":true,"maxNodeModuleJsDepth":2,"noEmitForJsFiles":true},"typings":[],"unresolvedImports":[],"kind":"action::set"} + { + "projectName": "/dev/null/inferredProject1*", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "target": 4, + "allowNonTsExtensions": true, + "maxNodeModuleJsDepth": 2, + "noEmitForJsFiles": true + }, + "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] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (2) @@ -1436,22 +1965,75 @@ Info seq [hh:mm:ss:mss] Files (1) Root file specified for compilation Info seq [hh:mm:ss:mss] ----------------------------------------------- -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject6*","fileNames":["/b/file2.ts"],"compilerOptions":{"allowJs":true,"target":99,"allowNonTsExtensions":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/b","cachePath":"/a/data/","kind":"discover"} -TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data/', loading cached information... -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject6*", + "fileNames": [ + "/b/file2.ts" + ], + "compilerOptions": { + "allowJs": true, + "target": 99, + "allowNonTsExtensions": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/b", + "cachePath": "/a/data", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/b/bower_components","/b/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/b/bower_components","/b/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/b/bower_components", + "/b/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject6*","files":["/b/bower_components","/b/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject6*", + "files": [ + "/b/bower_components", + "/b/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /b/bower_components 1 undefined Project: /dev/null/inferredProject6* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /b/bower_components 1 undefined Project: /dev/null/inferredProject6* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /b/node_modules 1 undefined Project: /dev/null/inferredProject6* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /b/node_modules 1 undefined Project: /dev/null/inferredProject6* WatchType: Directory location for typing installer TI:: [hh:mm:ss:mss] Sending response: - {"projectName":"/dev/null/inferredProject6*","typeAcquisition":{"enable":true,"include":[],"exclude":[]},"compilerOptions":{"allowJs":true,"target":99,"allowNonTsExtensions":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typings":[],"unresolvedImports":[],"kind":"action::set"} + { + "projectName": "/dev/null/inferredProject6*", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "target": 99, + "allowNonTsExtensions": 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] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (2) @@ -1515,22 +2097,75 @@ Info seq [hh:mm:ss:mss] Files (1) Root file specified for compilation Info seq [hh:mm:ss:mss] ----------------------------------------------- -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject7*","fileNames":["/c/file3.ts"],"compilerOptions":{"allowJs":true,"target":99,"allowNonTsExtensions":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/","cachePath":"/a/data/","kind":"discover"} -TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data/', loading cached information... -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject7*", + "fileNames": [ + "/c/file3.ts" + ], + "compilerOptions": { + "allowJs": true, + "target": 99, + "allowNonTsExtensions": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/", + "cachePath": "/a/data", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/bower_components","/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/bower_components","/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/bower_components", + "/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject7*","files":["/bower_components","/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject7*", + "files": [ + "/bower_components", + "/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /bower_components 1 undefined Project: /dev/null/inferredProject7* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /bower_components 1 undefined Project: /dev/null/inferredProject7* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /node_modules 1 undefined Project: /dev/null/inferredProject7* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /node_modules 1 undefined Project: /dev/null/inferredProject7* WatchType: Directory location for typing installer TI:: [hh:mm:ss:mss] Sending response: - {"projectName":"/dev/null/inferredProject7*","typeAcquisition":{"enable":true,"include":[],"exclude":[]},"compilerOptions":{"allowJs":true,"target":99,"allowNonTsExtensions":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typings":[],"unresolvedImports":[],"kind":"action::set"} + { + "projectName": "/dev/null/inferredProject7*", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "target": 99, + "allowNonTsExtensions": 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] Project '/dev/null/inferredProject7*' (Inferred) Info seq [hh:mm:ss:mss] Files (1) @@ -1841,18 +2476,67 @@ Info seq [hh:mm:ss:mss] Files (1) Root file specified for compilation Info seq [hh:mm:ss:mss] ----------------------------------------------- -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject1*","fileNames":["/a/file1.ts"],"compilerOptions":{"allowJs":true,"target":4,"allowNonTsExtensions":true,"maxNodeModuleJsDepth":2,"noEmitForJsFiles":true},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/a","cachePath":"/a/data/","kind":"discover"} -TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data/', loading cached information... -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject1*", + "fileNames": [ + "/a/file1.ts" + ], + "compilerOptions": { + "allowJs": true, + "target": 4, + "allowNonTsExtensions": true, + "maxNodeModuleJsDepth": 2, + "noEmitForJsFiles": true + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/a", + "cachePath": "/a/data", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/a/bower_components","/a/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/a/bower_components","/a/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/a/bower_components", + "/a/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject1*"} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject1*" + } TI:: [hh:mm:ss:mss] Sending response: - {"projectName":"/dev/null/inferredProject1*","typeAcquisition":{"enable":true,"include":[],"exclude":[]},"compilerOptions":{"allowJs":true,"target":4,"allowNonTsExtensions":true,"maxNodeModuleJsDepth":2,"noEmitForJsFiles":true},"typings":[],"unresolvedImports":[],"kind":"action::set"} + { + "projectName": "/dev/null/inferredProject1*", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "target": 4, + "allowNonTsExtensions": true, + "maxNodeModuleJsDepth": 2, + "noEmitForJsFiles": true + }, + "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] `remove Project:: Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject7*' (Inferred) @@ -1866,7 +2550,11 @@ Info seq [hh:mm:ss:mss] Files (1) Info seq [hh:mm:ss:mss] ----------------------------------------------- TI:: [hh:mm:ss:mss] Closing file watchers for project '/dev/null/inferredProject7*' TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject7*","files":[]} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject7*", + "files": [] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /bower_components 1 undefined Project: /dev/null/inferredProject7* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /bower_components 1 undefined Project: /dev/null/inferredProject7* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /node_modules 1 undefined Project: /dev/null/inferredProject7* WatchType: Directory location for typing installer @@ -1885,7 +2573,11 @@ Info seq [hh:mm:ss:mss] Files (1) Info seq [hh:mm:ss:mss] ----------------------------------------------- TI:: [hh:mm:ss:mss] Closing file watchers for project '/dev/null/inferredProject6*' TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject6*","files":[]} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject6*", + "files": [] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /b/bower_components 1 undefined Project: /dev/null/inferredProject6* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /b/bower_components 1 undefined Project: /dev/null/inferredProject6* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /b/node_modules 1 undefined Project: /dev/null/inferredProject6* WatchType: Directory location for typing installer @@ -1968,18 +2660,68 @@ Info seq [hh:mm:ss:mss] Files (2) Root file specified for compilation Info seq [hh:mm:ss:mss] ----------------------------------------------- -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject1*","fileNames":["/a/file1.ts","/A/file2.ts"],"compilerOptions":{"allowJs":true,"target":4,"allowNonTsExtensions":true,"maxNodeModuleJsDepth":2,"noEmitForJsFiles":true},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/a","cachePath":"/a/data/","kind":"discover"} -TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data/', loading cached information... -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject1*", + "fileNames": [ + "/a/file1.ts", + "/A/file2.ts" + ], + "compilerOptions": { + "allowJs": true, + "target": 4, + "allowNonTsExtensions": true, + "maxNodeModuleJsDepth": 2, + "noEmitForJsFiles": true + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/a", + "cachePath": "/a/data", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/a/bower_components","/a/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/a/bower_components","/a/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/a/bower_components", + "/a/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject1*"} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject1*" + } TI:: [hh:mm:ss:mss] Sending response: - {"projectName":"/dev/null/inferredProject1*","typeAcquisition":{"enable":true,"include":[],"exclude":[]},"compilerOptions":{"allowJs":true,"target":4,"allowNonTsExtensions":true,"maxNodeModuleJsDepth":2,"noEmitForJsFiles":true},"typings":[],"unresolvedImports":[],"kind":"action::set"} + { + "projectName": "/dev/null/inferredProject1*", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "target": 4, + "allowNonTsExtensions": true, + "maxNodeModuleJsDepth": 2, + "noEmitForJsFiles": true + }, + "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] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (2) @@ -2024,22 +2766,75 @@ Info seq [hh:mm:ss:mss] Files (1) Root file specified for compilation Info seq [hh:mm:ss:mss] ----------------------------------------------- -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject8*","fileNames":["/b/file2.ts"],"compilerOptions":{"allowJs":true,"target":99,"allowNonTsExtensions":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/b","cachePath":"/a/data/","kind":"discover"} -TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data/', loading cached information... -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject8*", + "fileNames": [ + "/b/file2.ts" + ], + "compilerOptions": { + "allowJs": true, + "target": 99, + "allowNonTsExtensions": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/b", + "cachePath": "/a/data", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/b/bower_components","/b/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/b/bower_components","/b/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/b/bower_components", + "/b/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject8*","files":["/b/bower_components","/b/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject8*", + "files": [ + "/b/bower_components", + "/b/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /b/bower_components 1 undefined Project: /dev/null/inferredProject8* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /b/bower_components 1 undefined Project: /dev/null/inferredProject8* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /b/node_modules 1 undefined Project: /dev/null/inferredProject8* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /b/node_modules 1 undefined Project: /dev/null/inferredProject8* WatchType: Directory location for typing installer TI:: [hh:mm:ss:mss] Sending response: - {"projectName":"/dev/null/inferredProject8*","typeAcquisition":{"enable":true,"include":[],"exclude":[]},"compilerOptions":{"allowJs":true,"target":99,"allowNonTsExtensions":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typings":[],"unresolvedImports":[],"kind":"action::set"} + { + "projectName": "/dev/null/inferredProject8*", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "target": 99, + "allowNonTsExtensions": 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] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (2) @@ -2103,22 +2898,75 @@ Info seq [hh:mm:ss:mss] Files (1) Root file specified for compilation Info seq [hh:mm:ss:mss] ----------------------------------------------- -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject9*","fileNames":["/c/file3.ts"],"compilerOptions":{"allowJs":true,"target":99,"allowNonTsExtensions":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/","cachePath":"/a/data/","kind":"discover"} -TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data/', loading cached information... -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject9*", + "fileNames": [ + "/c/file3.ts" + ], + "compilerOptions": { + "allowJs": true, + "target": 99, + "allowNonTsExtensions": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/", + "cachePath": "/a/data", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/bower_components","/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/bower_components","/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/bower_components", + "/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject9*","files":["/bower_components","/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject9*", + "files": [ + "/bower_components", + "/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /bower_components 1 undefined Project: /dev/null/inferredProject9* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /bower_components 1 undefined Project: /dev/null/inferredProject9* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /node_modules 1 undefined Project: /dev/null/inferredProject9* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /node_modules 1 undefined Project: /dev/null/inferredProject9* WatchType: Directory location for typing installer TI:: [hh:mm:ss:mss] Sending response: - {"projectName":"/dev/null/inferredProject9*","typeAcquisition":{"enable":true,"include":[],"exclude":[]},"compilerOptions":{"allowJs":true,"target":99,"allowNonTsExtensions":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typings":[],"unresolvedImports":[],"kind":"action::set"} + { + "projectName": "/dev/null/inferredProject9*", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "target": 99, + "allowNonTsExtensions": 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] Project '/dev/null/inferredProject9*' (Inferred) Info seq [hh:mm:ss:mss] Files (1) 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 490da24a08efa..129da6972a8e5 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 @@ -89,10 +89,10 @@ PolledWatches:: /a/lib/lib.es6.d.ts: *new* {"pollingInterval":500} -TI:: [hh:mm:ss:mss] Global cache location '/a/data/', safe file path '/safeList.json', types map path /typesMap.json -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Global cache location '/a/data', safe file path '/safeList.json', types map path /typesMap.json +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Trying to find '/a/data/package.json'... -TI:: [hh:mm:ss:mss] Finished processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Finished processing cache location '/a/data' TI:: [hh:mm:ss:mss] Npm config file: /a/data/package.json TI:: [hh:mm:ss:mss] Npm config file: '/a/data/package.json' is missing, creating new one... TI:: [hh:mm:ss:mss] Updating types-registry npm package... @@ -108,23 +108,76 @@ TI:: typing installer creation complete } -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject1*","fileNames":["/a/file1.ts"],"compilerOptions":{"allowJs":true,"target":2,"allowNonTsExtensions":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/a","cachePath":"/a/data/","kind":"discover"} -TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data/', loading cached information... -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject1*", + "fileNames": [ + "/a/file1.ts" + ], + "compilerOptions": { + "allowJs": true, + "target": 2, + "allowNonTsExtensions": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/a", + "cachePath": "/a/data", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/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] Result: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/a/bower_components","/a/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/a/bower_components","/a/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/a/bower_components", + "/a/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject1*","files":["/a/bower_components","/a/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject1*", + "files": [ + "/a/bower_components", + "/a/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /a/bower_components 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a/bower_components 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /a/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer TI:: [hh:mm:ss:mss] Sending response: - {"projectName":"/dev/null/inferredProject1*","typeAcquisition":{"enable":true,"include":[],"exclude":[]},"compilerOptions":{"allowJs":true,"target":2,"allowNonTsExtensions":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typings":[],"unresolvedImports":[],"kind":"action::set"} + { + "projectName": "/dev/null/inferredProject1*", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "target": 2, + "allowNonTsExtensions": 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] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (1) @@ -177,18 +230,68 @@ Info seq [hh:mm:ss:mss] Files (2) Root file specified for compilation Info seq [hh:mm:ss:mss] ----------------------------------------------- -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject1*","fileNames":["/a/file1.ts","/A/file2.ts"],"compilerOptions":{"allowJs":true,"target":2,"allowNonTsExtensions":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/a","cachePath":"/a/data/","kind":"discover"} -TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data/', loading cached information... -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject1*", + "fileNames": [ + "/a/file1.ts", + "/A/file2.ts" + ], + "compilerOptions": { + "allowJs": true, + "target": 2, + "allowNonTsExtensions": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/a", + "cachePath": "/a/data", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/a/bower_components","/a/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/a/bower_components","/a/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/a/bower_components", + "/a/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject1*"} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject1*" + } TI:: [hh:mm:ss:mss] Sending response: - {"projectName":"/dev/null/inferredProject1*","typeAcquisition":{"enable":true,"include":[],"exclude":[]},"compilerOptions":{"allowJs":true,"target":2,"allowNonTsExtensions":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typings":[],"unresolvedImports":[],"kind":"action::set"} + { + "projectName": "/dev/null/inferredProject1*", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "target": 2, + "allowNonTsExtensions": 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] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (2) @@ -233,22 +336,75 @@ Info seq [hh:mm:ss:mss] Files (1) Root file specified for compilation Info seq [hh:mm:ss:mss] ----------------------------------------------- -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject2*","fileNames":["/b/file2.ts"],"compilerOptions":{"allowJs":true,"target":99,"allowNonTsExtensions":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/b","cachePath":"/a/data/","kind":"discover"} -TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data/', loading cached information... -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject2*", + "fileNames": [ + "/b/file2.ts" + ], + "compilerOptions": { + "allowJs": true, + "target": 99, + "allowNonTsExtensions": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/b", + "cachePath": "/a/data", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/b/bower_components","/b/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/b/bower_components","/b/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/b/bower_components", + "/b/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject2*","files":["/b/bower_components","/b/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject2*", + "files": [ + "/b/bower_components", + "/b/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /b/bower_components 1 undefined Project: /dev/null/inferredProject2* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /b/bower_components 1 undefined Project: /dev/null/inferredProject2* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /b/node_modules 1 undefined Project: /dev/null/inferredProject2* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /b/node_modules 1 undefined Project: /dev/null/inferredProject2* WatchType: Directory location for typing installer TI:: [hh:mm:ss:mss] Sending response: - {"projectName":"/dev/null/inferredProject2*","typeAcquisition":{"enable":true,"include":[],"exclude":[]},"compilerOptions":{"allowJs":true,"target":99,"allowNonTsExtensions":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typings":[],"unresolvedImports":[],"kind":"action::set"} + { + "projectName": "/dev/null/inferredProject2*", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "target": 99, + "allowNonTsExtensions": 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] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (2) @@ -312,22 +468,75 @@ Info seq [hh:mm:ss:mss] Files (1) Root file specified for compilation Info seq [hh:mm:ss:mss] ----------------------------------------------- -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject3*","fileNames":["/c/file3.ts"],"compilerOptions":{"allowJs":true,"target":99,"allowNonTsExtensions":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/","cachePath":"/a/data/","kind":"discover"} -TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data/', loading cached information... -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject3*", + "fileNames": [ + "/c/file3.ts" + ], + "compilerOptions": { + "allowJs": true, + "target": 99, + "allowNonTsExtensions": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/", + "cachePath": "/a/data", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/bower_components","/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/bower_components","/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/bower_components", + "/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject3*","files":["/bower_components","/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject3*", + "files": [ + "/bower_components", + "/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /bower_components 1 undefined Project: /dev/null/inferredProject3* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /bower_components 1 undefined Project: /dev/null/inferredProject3* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /node_modules 1 undefined Project: /dev/null/inferredProject3* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /node_modules 1 undefined Project: /dev/null/inferredProject3* WatchType: Directory location for typing installer TI:: [hh:mm:ss:mss] Sending response: - {"projectName":"/dev/null/inferredProject3*","typeAcquisition":{"enable":true,"include":[],"exclude":[]},"compilerOptions":{"allowJs":true,"target":99,"allowNonTsExtensions":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typings":[],"unresolvedImports":[],"kind":"action::set"} + { + "projectName": "/dev/null/inferredProject3*", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "target": 99, + "allowNonTsExtensions": 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] Project '/dev/null/inferredProject3*' (Inferred) Info seq [hh:mm:ss:mss] Files (1) @@ -638,18 +847,67 @@ Info seq [hh:mm:ss:mss] Files (1) Root file specified for compilation Info seq [hh:mm:ss:mss] ----------------------------------------------- -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject1*","fileNames":["/a/file1.ts"],"compilerOptions":{"allowJs":true,"target":2,"allowNonTsExtensions":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/a","cachePath":"/a/data/","kind":"discover"} -TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data/', loading cached information... -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject1*", + "fileNames": [ + "/a/file1.ts" + ], + "compilerOptions": { + "allowJs": true, + "target": 2, + "allowNonTsExtensions": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/a", + "cachePath": "/a/data", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/a/bower_components","/a/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/a/bower_components","/a/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/a/bower_components", + "/a/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject1*"} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject1*" + } TI:: [hh:mm:ss:mss] Sending response: - {"projectName":"/dev/null/inferredProject1*","typeAcquisition":{"enable":true,"include":[],"exclude":[]},"compilerOptions":{"allowJs":true,"target":2,"allowNonTsExtensions":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typings":[],"unresolvedImports":[],"kind":"action::set"} + { + "projectName": "/dev/null/inferredProject1*", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "target": 2, + "allowNonTsExtensions": 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] `remove Project:: Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject3*' (Inferred) @@ -663,7 +921,11 @@ Info seq [hh:mm:ss:mss] Files (1) Info seq [hh:mm:ss:mss] ----------------------------------------------- TI:: [hh:mm:ss:mss] Closing file watchers for project '/dev/null/inferredProject3*' TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject3*","files":[]} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject3*", + "files": [] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /bower_components 1 undefined Project: /dev/null/inferredProject3* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /bower_components 1 undefined Project: /dev/null/inferredProject3* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /node_modules 1 undefined Project: /dev/null/inferredProject3* WatchType: Directory location for typing installer @@ -682,7 +944,11 @@ Info seq [hh:mm:ss:mss] Files (1) Info seq [hh:mm:ss:mss] ----------------------------------------------- TI:: [hh:mm:ss:mss] Closing file watchers for project '/dev/null/inferredProject2*' TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject2*","files":[]} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject2*", + "files": [] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /b/bower_components 1 undefined Project: /dev/null/inferredProject2* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /b/bower_components 1 undefined Project: /dev/null/inferredProject2* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /b/node_modules 1 undefined Project: /dev/null/inferredProject2* WatchType: Directory location for typing installer @@ -763,22 +1029,75 @@ Info seq [hh:mm:ss:mss] Files (1) Root file specified for compilation Info seq [hh:mm:ss:mss] ----------------------------------------------- -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject4*","fileNames":["/A/file2.ts"],"compilerOptions":{"allowJs":true,"target":99,"allowNonTsExtensions":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/A","cachePath":"/a/data/","kind":"discover"} -TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data/', loading cached information... -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject4*", + "fileNames": [ + "/A/file2.ts" + ], + "compilerOptions": { + "allowJs": true, + "target": 99, + "allowNonTsExtensions": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/A", + "cachePath": "/a/data", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/A/bower_components","/A/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/A/bower_components","/A/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/A/bower_components", + "/A/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject4*","files":["/A/bower_components","/A/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject4*", + "files": [ + "/A/bower_components", + "/A/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /A/bower_components 1 undefined Project: /dev/null/inferredProject4* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /A/bower_components 1 undefined Project: /dev/null/inferredProject4* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /A/node_modules 1 undefined Project: /dev/null/inferredProject4* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /A/node_modules 1 undefined Project: /dev/null/inferredProject4* WatchType: Directory location for typing installer TI:: [hh:mm:ss:mss] Sending response: - {"projectName":"/dev/null/inferredProject4*","typeAcquisition":{"enable":true,"include":[],"exclude":[]},"compilerOptions":{"allowJs":true,"target":99,"allowNonTsExtensions":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typings":[],"unresolvedImports":[],"kind":"action::set"} + { + "projectName": "/dev/null/inferredProject4*", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "target": 99, + "allowNonTsExtensions": 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] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (1) @@ -841,22 +1160,75 @@ Info seq [hh:mm:ss:mss] Files (1) Root file specified for compilation Info seq [hh:mm:ss:mss] ----------------------------------------------- -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject5*","fileNames":["/b/file2.ts"],"compilerOptions":{"allowJs":true,"target":99,"allowNonTsExtensions":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/b","cachePath":"/a/data/","kind":"discover"} -TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data/', loading cached information... -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject5*", + "fileNames": [ + "/b/file2.ts" + ], + "compilerOptions": { + "allowJs": true, + "target": 99, + "allowNonTsExtensions": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/b", + "cachePath": "/a/data", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/b/bower_components","/b/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/b/bower_components","/b/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/b/bower_components", + "/b/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject5*","files":["/b/bower_components","/b/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject5*", + "files": [ + "/b/bower_components", + "/b/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /b/bower_components 1 undefined Project: /dev/null/inferredProject5* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /b/bower_components 1 undefined Project: /dev/null/inferredProject5* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /b/node_modules 1 undefined Project: /dev/null/inferredProject5* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /b/node_modules 1 undefined Project: /dev/null/inferredProject5* WatchType: Directory location for typing installer TI:: [hh:mm:ss:mss] Sending response: - {"projectName":"/dev/null/inferredProject5*","typeAcquisition":{"enable":true,"include":[],"exclude":[]},"compilerOptions":{"allowJs":true,"target":99,"allowNonTsExtensions":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typings":[],"unresolvedImports":[],"kind":"action::set"} + { + "projectName": "/dev/null/inferredProject5*", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "target": 99, + "allowNonTsExtensions": 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] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (1) @@ -928,22 +1300,75 @@ Info seq [hh:mm:ss:mss] Files (1) Root file specified for compilation Info seq [hh:mm:ss:mss] ----------------------------------------------- -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject6*","fileNames":["/c/file3.ts"],"compilerOptions":{"allowJs":true,"target":99,"allowNonTsExtensions":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/","cachePath":"/a/data/","kind":"discover"} -TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data/', loading cached information... -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject6*", + "fileNames": [ + "/c/file3.ts" + ], + "compilerOptions": { + "allowJs": true, + "target": 99, + "allowNonTsExtensions": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/", + "cachePath": "/a/data", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/bower_components","/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/bower_components","/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/bower_components", + "/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject6*","files":["/bower_components","/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject6*", + "files": [ + "/bower_components", + "/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /bower_components 1 undefined Project: /dev/null/inferredProject6* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /bower_components 1 undefined Project: /dev/null/inferredProject6* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /node_modules 1 undefined Project: /dev/null/inferredProject6* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /node_modules 1 undefined Project: /dev/null/inferredProject6* WatchType: Directory location for typing installer TI:: [hh:mm:ss:mss] Sending response: - {"projectName":"/dev/null/inferredProject6*","typeAcquisition":{"enable":true,"include":[],"exclude":[]},"compilerOptions":{"allowJs":true,"target":99,"allowNonTsExtensions":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typings":[],"unresolvedImports":[],"kind":"action::set"} + { + "projectName": "/dev/null/inferredProject6*", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "target": 99, + "allowNonTsExtensions": 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] Project '/dev/null/inferredProject6*' (Inferred) Info seq [hh:mm:ss:mss] Files (1) @@ -1309,18 +1734,67 @@ Info seq [hh:mm:ss:mss] For info: /a/file1.ts :: No config files found. Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* Version: 4 structureChanged: false structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Same program as before -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject1*","fileNames":["/a/file1.ts"],"compilerOptions":{"allowJs":true,"target":2,"allowNonTsExtensions":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/a","cachePath":"/a/data/","kind":"discover"} -TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data/', loading cached information... -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject1*", + "fileNames": [ + "/a/file1.ts" + ], + "compilerOptions": { + "allowJs": true, + "target": 2, + "allowNonTsExtensions": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/a", + "cachePath": "/a/data", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/a/bower_components","/a/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/a/bower_components","/a/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/a/bower_components", + "/a/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject1*"} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject1*" + } TI:: [hh:mm:ss:mss] Sending response: - {"projectName":"/dev/null/inferredProject1*","typeAcquisition":{"enable":true,"include":[],"exclude":[]},"compilerOptions":{"allowJs":true,"target":2,"allowNonTsExtensions":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typings":[],"unresolvedImports":[],"kind":"action::set"} + { + "projectName": "/dev/null/inferredProject1*", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "target": 2, + "allowNonTsExtensions": 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] `remove Project:: Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject6*' (Inferred) @@ -1334,7 +1808,11 @@ Info seq [hh:mm:ss:mss] Files (1) Info seq [hh:mm:ss:mss] ----------------------------------------------- TI:: [hh:mm:ss:mss] Closing file watchers for project '/dev/null/inferredProject6*' TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject6*","files":[]} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject6*", + "files": [] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /bower_components 1 undefined Project: /dev/null/inferredProject6* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /bower_components 1 undefined Project: /dev/null/inferredProject6* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /node_modules 1 undefined Project: /dev/null/inferredProject6* WatchType: Directory location for typing installer @@ -1353,7 +1831,11 @@ Info seq [hh:mm:ss:mss] Files (1) Info seq [hh:mm:ss:mss] ----------------------------------------------- TI:: [hh:mm:ss:mss] Closing file watchers for project '/dev/null/inferredProject4*' TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject4*","files":[]} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject4*", + "files": [] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /A/bower_components 1 undefined Project: /dev/null/inferredProject4* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /A/bower_components 1 undefined Project: /dev/null/inferredProject4* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /A/node_modules 1 undefined Project: /dev/null/inferredProject4* WatchType: Directory location for typing installer @@ -1372,7 +1854,11 @@ Info seq [hh:mm:ss:mss] Files (1) Info seq [hh:mm:ss:mss] ----------------------------------------------- TI:: [hh:mm:ss:mss] Closing file watchers for project '/dev/null/inferredProject5*' TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject5*","files":[]} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject5*", + "files": [] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /b/bower_components 1 undefined Project: /dev/null/inferredProject5* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /b/bower_components 1 undefined Project: /dev/null/inferredProject5* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /b/node_modules 1 undefined Project: /dev/null/inferredProject5* WatchType: Directory location for typing installer @@ -1459,18 +1945,68 @@ Info seq [hh:mm:ss:mss] Files (2) Root file specified for compilation Info seq [hh:mm:ss:mss] ----------------------------------------------- -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject1*","fileNames":["/a/file1.ts","/A/file2.ts"],"compilerOptions":{"allowJs":true,"target":2,"allowNonTsExtensions":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/a","cachePath":"/a/data/","kind":"discover"} -TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data/', loading cached information... -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject1*", + "fileNames": [ + "/a/file1.ts", + "/A/file2.ts" + ], + "compilerOptions": { + "allowJs": true, + "target": 2, + "allowNonTsExtensions": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/a", + "cachePath": "/a/data", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/a/bower_components","/a/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/a/bower_components","/a/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/a/bower_components", + "/a/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject1*"} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject1*" + } TI:: [hh:mm:ss:mss] Sending response: - {"projectName":"/dev/null/inferredProject1*","typeAcquisition":{"enable":true,"include":[],"exclude":[]},"compilerOptions":{"allowJs":true,"target":2,"allowNonTsExtensions":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typings":[],"unresolvedImports":[],"kind":"action::set"} + { + "projectName": "/dev/null/inferredProject1*", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "target": 2, + "allowNonTsExtensions": 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] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (2) @@ -1515,22 +2051,75 @@ Info seq [hh:mm:ss:mss] Files (1) Root file specified for compilation Info seq [hh:mm:ss:mss] ----------------------------------------------- -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject7*","fileNames":["/b/file2.ts"],"compilerOptions":{"allowJs":true,"target":99,"allowNonTsExtensions":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/b","cachePath":"/a/data/","kind":"discover"} -TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data/', loading cached information... -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject7*", + "fileNames": [ + "/b/file2.ts" + ], + "compilerOptions": { + "allowJs": true, + "target": 99, + "allowNonTsExtensions": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/b", + "cachePath": "/a/data", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/b/bower_components","/b/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/b/bower_components","/b/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/b/bower_components", + "/b/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject7*","files":["/b/bower_components","/b/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject7*", + "files": [ + "/b/bower_components", + "/b/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /b/bower_components 1 undefined Project: /dev/null/inferredProject7* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /b/bower_components 1 undefined Project: /dev/null/inferredProject7* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /b/node_modules 1 undefined Project: /dev/null/inferredProject7* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /b/node_modules 1 undefined Project: /dev/null/inferredProject7* WatchType: Directory location for typing installer TI:: [hh:mm:ss:mss] Sending response: - {"projectName":"/dev/null/inferredProject7*","typeAcquisition":{"enable":true,"include":[],"exclude":[]},"compilerOptions":{"allowJs":true,"target":99,"allowNonTsExtensions":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typings":[],"unresolvedImports":[],"kind":"action::set"} + { + "projectName": "/dev/null/inferredProject7*", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "target": 99, + "allowNonTsExtensions": 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] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (2) @@ -1594,22 +2183,75 @@ Info seq [hh:mm:ss:mss] Files (1) Root file specified for compilation Info seq [hh:mm:ss:mss] ----------------------------------------------- -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject8*","fileNames":["/c/file3.ts"],"compilerOptions":{"allowJs":true,"target":99,"allowNonTsExtensions":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/","cachePath":"/a/data/","kind":"discover"} -TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data/', loading cached information... -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject8*", + "fileNames": [ + "/c/file3.ts" + ], + "compilerOptions": { + "allowJs": true, + "target": 99, + "allowNonTsExtensions": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/", + "cachePath": "/a/data", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/bower_components","/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/bower_components","/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/bower_components", + "/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject8*","files":["/bower_components","/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject8*", + "files": [ + "/bower_components", + "/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /bower_components 1 undefined Project: /dev/null/inferredProject8* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /bower_components 1 undefined Project: /dev/null/inferredProject8* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /node_modules 1 undefined Project: /dev/null/inferredProject8* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /node_modules 1 undefined Project: /dev/null/inferredProject8* WatchType: Directory location for typing installer TI:: [hh:mm:ss:mss] Sending response: - {"projectName":"/dev/null/inferredProject8*","typeAcquisition":{"enable":true,"include":[],"exclude":[]},"compilerOptions":{"allowJs":true,"target":99,"allowNonTsExtensions":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typings":[],"unresolvedImports":[],"kind":"action::set"} + { + "projectName": "/dev/null/inferredProject8*", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "target": 99, + "allowNonTsExtensions": 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] Project '/dev/null/inferredProject8*' (Inferred) Info seq [hh:mm:ss:mss] Files (1) @@ -1920,18 +2562,67 @@ Info seq [hh:mm:ss:mss] Files (1) Root file specified for compilation Info seq [hh:mm:ss:mss] ----------------------------------------------- -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject1*","fileNames":["/a/file1.ts"],"compilerOptions":{"allowJs":true,"target":2,"allowNonTsExtensions":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/a","cachePath":"/a/data/","kind":"discover"} -TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data/', loading cached information... -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject1*", + "fileNames": [ + "/a/file1.ts" + ], + "compilerOptions": { + "allowJs": true, + "target": 2, + "allowNonTsExtensions": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/a", + "cachePath": "/a/data", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/a/bower_components","/a/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/a/bower_components","/a/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/a/bower_components", + "/a/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject1*"} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject1*" + } TI:: [hh:mm:ss:mss] Sending response: - {"projectName":"/dev/null/inferredProject1*","typeAcquisition":{"enable":true,"include":[],"exclude":[]},"compilerOptions":{"allowJs":true,"target":2,"allowNonTsExtensions":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typings":[],"unresolvedImports":[],"kind":"action::set"} + { + "projectName": "/dev/null/inferredProject1*", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "target": 2, + "allowNonTsExtensions": 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] `remove Project:: Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject8*' (Inferred) @@ -1945,7 +2636,11 @@ Info seq [hh:mm:ss:mss] Files (1) Info seq [hh:mm:ss:mss] ----------------------------------------------- TI:: [hh:mm:ss:mss] Closing file watchers for project '/dev/null/inferredProject8*' TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject8*","files":[]} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject8*", + "files": [] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /bower_components 1 undefined Project: /dev/null/inferredProject8* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /bower_components 1 undefined Project: /dev/null/inferredProject8* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /node_modules 1 undefined Project: /dev/null/inferredProject8* WatchType: Directory location for typing installer @@ -1964,7 +2659,11 @@ Info seq [hh:mm:ss:mss] Files (1) Info seq [hh:mm:ss:mss] ----------------------------------------------- TI:: [hh:mm:ss:mss] Closing file watchers for project '/dev/null/inferredProject7*' TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject7*","files":[]} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject7*", + "files": [] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /b/bower_components 1 undefined Project: /dev/null/inferredProject7* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /b/bower_components 1 undefined Project: /dev/null/inferredProject7* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /b/node_modules 1 undefined Project: /dev/null/inferredProject7* WatchType: Directory location for typing installer @@ -2045,22 +2744,75 @@ Info seq [hh:mm:ss:mss] Files (1) Root file specified for compilation Info seq [hh:mm:ss:mss] ----------------------------------------------- -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject9*","fileNames":["/A/file2.ts"],"compilerOptions":{"allowJs":true,"target":4,"allowNonTsExtensions":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/A","cachePath":"/a/data/","kind":"discover"} -TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data/', loading cached information... -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject9*", + "fileNames": [ + "/A/file2.ts" + ], + "compilerOptions": { + "allowJs": true, + "target": 4, + "allowNonTsExtensions": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/A", + "cachePath": "/a/data", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/A/bower_components","/A/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/A/bower_components","/A/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/A/bower_components", + "/A/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject9*","files":["/A/bower_components","/A/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject9*", + "files": [ + "/A/bower_components", + "/A/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /A/bower_components 1 undefined Project: /dev/null/inferredProject9* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /A/bower_components 1 undefined Project: /dev/null/inferredProject9* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /A/node_modules 1 undefined Project: /dev/null/inferredProject9* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /A/node_modules 1 undefined Project: /dev/null/inferredProject9* WatchType: Directory location for typing installer TI:: [hh:mm:ss:mss] Sending response: - {"projectName":"/dev/null/inferredProject9*","typeAcquisition":{"enable":true,"include":[],"exclude":[]},"compilerOptions":{"allowJs":true,"target":4,"allowNonTsExtensions":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typings":[],"unresolvedImports":[],"kind":"action::set"} + { + "projectName": "/dev/null/inferredProject9*", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "target": 4, + "allowNonTsExtensions": 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] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (1) @@ -2123,22 +2875,75 @@ Info seq [hh:mm:ss:mss] Files (1) Root file specified for compilation Info seq [hh:mm:ss:mss] ----------------------------------------------- -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject10*","fileNames":["/b/file2.ts"],"compilerOptions":{"allowJs":true,"target":99,"allowNonTsExtensions":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/b","cachePath":"/a/data/","kind":"discover"} -TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data/', loading cached information... -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject10*", + "fileNames": [ + "/b/file2.ts" + ], + "compilerOptions": { + "allowJs": true, + "target": 99, + "allowNonTsExtensions": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/b", + "cachePath": "/a/data", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/b/bower_components","/b/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/b/bower_components","/b/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/b/bower_components", + "/b/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject10*","files":["/b/bower_components","/b/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject10*", + "files": [ + "/b/bower_components", + "/b/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /b/bower_components 1 undefined Project: /dev/null/inferredProject10* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /b/bower_components 1 undefined Project: /dev/null/inferredProject10* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /b/node_modules 1 undefined Project: /dev/null/inferredProject10* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /b/node_modules 1 undefined Project: /dev/null/inferredProject10* WatchType: Directory location for typing installer TI:: [hh:mm:ss:mss] Sending response: - {"projectName":"/dev/null/inferredProject10*","typeAcquisition":{"enable":true,"include":[],"exclude":[]},"compilerOptions":{"allowJs":true,"target":99,"allowNonTsExtensions":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typings":[],"unresolvedImports":[],"kind":"action::set"} + { + "projectName": "/dev/null/inferredProject10*", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "target": 99, + "allowNonTsExtensions": 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] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (1) @@ -2212,22 +3017,75 @@ Info seq [hh:mm:ss:mss] Files (1) Root file specified for compilation Info seq [hh:mm:ss:mss] ----------------------------------------------- -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject11*","fileNames":["/c/file3.ts"],"compilerOptions":{"allowJs":true,"target":99,"allowNonTsExtensions":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/","cachePath":"/a/data/","kind":"discover"} -TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data/', loading cached information... -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject11*", + "fileNames": [ + "/c/file3.ts" + ], + "compilerOptions": { + "allowJs": true, + "target": 99, + "allowNonTsExtensions": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/", + "cachePath": "/a/data", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/bower_components","/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/bower_components","/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/bower_components", + "/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject11*","files":["/bower_components","/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject11*", + "files": [ + "/bower_components", + "/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /bower_components 1 undefined Project: /dev/null/inferredProject11* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /bower_components 1 undefined Project: /dev/null/inferredProject11* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /node_modules 1 undefined Project: /dev/null/inferredProject11* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /node_modules 1 undefined Project: /dev/null/inferredProject11* WatchType: Directory location for typing installer TI:: [hh:mm:ss:mss] Sending response: - {"projectName":"/dev/null/inferredProject11*","typeAcquisition":{"enable":true,"include":[],"exclude":[]},"compilerOptions":{"allowJs":true,"target":99,"allowNonTsExtensions":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typings":[],"unresolvedImports":[],"kind":"action::set"} + { + "projectName": "/dev/null/inferredProject11*", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "target": 99, + "allowNonTsExtensions": 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] Project '/dev/null/inferredProject11*' (Inferred) Info seq [hh:mm:ss:mss] Files (1) 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 b76b239fec406..bdf055bd1e272 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 @@ -89,10 +89,10 @@ PolledWatches:: /a/lib/lib.esnext.full.d.ts: *new* {"pollingInterval":500} -TI:: [hh:mm:ss:mss] Global cache location '/a/data/', safe file path '/safeList.json', types map path /typesMap.json -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Global cache location '/a/data', safe file path '/safeList.json', types map path /typesMap.json +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Trying to find '/a/data/package.json'... -TI:: [hh:mm:ss:mss] Finished processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Finished processing cache location '/a/data' TI:: [hh:mm:ss:mss] Npm config file: /a/data/package.json TI:: [hh:mm:ss:mss] Npm config file: '/a/data/package.json' is missing, creating new one... TI:: [hh:mm:ss:mss] Updating types-registry npm package... @@ -108,23 +108,76 @@ TI:: typing installer creation complete } -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject1*","fileNames":["/a/file1.ts"],"compilerOptions":{"allowJs":true,"target":99,"allowNonTsExtensions":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/a","cachePath":"/a/data/","kind":"discover"} -TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data/', loading cached information... -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject1*", + "fileNames": [ + "/a/file1.ts" + ], + "compilerOptions": { + "allowJs": true, + "target": 99, + "allowNonTsExtensions": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/a", + "cachePath": "/a/data", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/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] Result: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/a/bower_components","/a/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/a/bower_components","/a/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/a/bower_components", + "/a/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject1*","files":["/a/bower_components","/a/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject1*", + "files": [ + "/a/bower_components", + "/a/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /a/bower_components 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a/bower_components 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /a/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer TI:: [hh:mm:ss:mss] Sending response: - {"projectName":"/dev/null/inferredProject1*","typeAcquisition":{"enable":true,"include":[],"exclude":[]},"compilerOptions":{"allowJs":true,"target":99,"allowNonTsExtensions":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typings":[],"unresolvedImports":[],"kind":"action::set"} + { + "projectName": "/dev/null/inferredProject1*", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "target": 99, + "allowNonTsExtensions": 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] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (1) @@ -177,18 +230,68 @@ Info seq [hh:mm:ss:mss] Files (2) Root file specified for compilation Info seq [hh:mm:ss:mss] ----------------------------------------------- -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject1*","fileNames":["/a/file1.ts","/a/file2.ts"],"compilerOptions":{"allowJs":true,"target":99,"allowNonTsExtensions":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/a","cachePath":"/a/data/","kind":"discover"} -TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data/', loading cached information... -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject1*", + "fileNames": [ + "/a/file1.ts", + "/a/file2.ts" + ], + "compilerOptions": { + "allowJs": true, + "target": 99, + "allowNonTsExtensions": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/a", + "cachePath": "/a/data", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/a/bower_components","/a/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/a/bower_components","/a/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/a/bower_components", + "/a/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject1*"} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject1*" + } TI:: [hh:mm:ss:mss] Sending response: - {"projectName":"/dev/null/inferredProject1*","typeAcquisition":{"enable":true,"include":[],"exclude":[]},"compilerOptions":{"allowJs":true,"target":99,"allowNonTsExtensions":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typings":[],"unresolvedImports":[],"kind":"action::set"} + { + "projectName": "/dev/null/inferredProject1*", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "target": 99, + "allowNonTsExtensions": 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] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (2) @@ -233,22 +336,75 @@ Info seq [hh:mm:ss:mss] Files (1) Root file specified for compilation Info seq [hh:mm:ss:mss] ----------------------------------------------- -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject2*","fileNames":["/b/file2.ts"],"compilerOptions":{"allowJs":true,"target":2,"allowNonTsExtensions":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/b","cachePath":"/a/data/","kind":"discover"} -TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data/', loading cached information... -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject2*", + "fileNames": [ + "/b/file2.ts" + ], + "compilerOptions": { + "allowJs": true, + "target": 2, + "allowNonTsExtensions": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/b", + "cachePath": "/a/data", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/b/bower_components","/b/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/b/bower_components","/b/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/b/bower_components", + "/b/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject2*","files":["/b/bower_components","/b/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject2*", + "files": [ + "/b/bower_components", + "/b/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /b/bower_components 1 undefined Project: /dev/null/inferredProject2* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /b/bower_components 1 undefined Project: /dev/null/inferredProject2* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /b/node_modules 1 undefined Project: /dev/null/inferredProject2* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /b/node_modules 1 undefined Project: /dev/null/inferredProject2* WatchType: Directory location for typing installer TI:: [hh:mm:ss:mss] Sending response: - {"projectName":"/dev/null/inferredProject2*","typeAcquisition":{"enable":true,"include":[],"exclude":[]},"compilerOptions":{"allowJs":true,"target":2,"allowNonTsExtensions":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typings":[],"unresolvedImports":[],"kind":"action::set"} + { + "projectName": "/dev/null/inferredProject2*", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "target": 2, + "allowNonTsExtensions": 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] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (2) @@ -312,22 +468,75 @@ Info seq [hh:mm:ss:mss] Files (1) Root file specified for compilation Info seq [hh:mm:ss:mss] ----------------------------------------------- -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject3*","fileNames":["/c/file3.ts"],"compilerOptions":{"allowJs":true,"target":99,"allowNonTsExtensions":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/","cachePath":"/a/data/","kind":"discover"} -TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data/', loading cached information... -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject3*", + "fileNames": [ + "/c/file3.ts" + ], + "compilerOptions": { + "allowJs": true, + "target": 99, + "allowNonTsExtensions": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/", + "cachePath": "/a/data", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/bower_components","/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/bower_components","/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/bower_components", + "/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject3*","files":["/bower_components","/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject3*", + "files": [ + "/bower_components", + "/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /bower_components 1 undefined Project: /dev/null/inferredProject3* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /bower_components 1 undefined Project: /dev/null/inferredProject3* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /node_modules 1 undefined Project: /dev/null/inferredProject3* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /node_modules 1 undefined Project: /dev/null/inferredProject3* WatchType: Directory location for typing installer TI:: [hh:mm:ss:mss] Sending response: - {"projectName":"/dev/null/inferredProject3*","typeAcquisition":{"enable":true,"include":[],"exclude":[]},"compilerOptions":{"allowJs":true,"target":99,"allowNonTsExtensions":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typings":[],"unresolvedImports":[],"kind":"action::set"} + { + "projectName": "/dev/null/inferredProject3*", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "target": 99, + "allowNonTsExtensions": 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] Project '/dev/null/inferredProject3*' (Inferred) Info seq [hh:mm:ss:mss] Files (1) 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 670c41435d893..d0c14f3c618f0 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 @@ -111,10 +111,10 @@ FsWatchesRecursive:: /user/username/projects/myproject: *new* {} -TI:: [hh:mm:ss:mss] Global cache location '/a/data/', safe file path '/safeList.json', types map path /typesMap.json -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Global cache location '/a/data', safe file path '/safeList.json', types map path /typesMap.json +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Trying to find '/a/data/package.json'... -TI:: [hh:mm:ss:mss] Finished processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Finished processing cache location '/a/data' TI:: [hh:mm:ss:mss] Npm config file: /a/data/package.json TI:: [hh:mm:ss:mss] Npm config file: '/a/data/package.json' is missing, creating new one... TI:: [hh:mm:ss:mss] Updating types-registry npm package... @@ -130,23 +130,79 @@ TI:: typing installer creation complete } -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject1*","fileNames":["/a/lib/lib.d.ts","/user/username/projects/myproject/jsFile1.js"],"compilerOptions":{"target":1,"jsx":1,"allowNonTsExtensions":true,"allowJs":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/user/username/projects/myproject","cachePath":"/a/data/","kind":"discover"} -TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data/', loading cached information... -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject1*", + "fileNames": [ + "/a/lib/lib.d.ts", + "/user/username/projects/myproject/jsFile1.js" + ], + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/user/username/projects/myproject", + "cachePath": "/a/data", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/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] Result: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/user/username/projects/myproject/bower_components","/user/username/projects/myproject/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/user/username/projects/myproject/bower_components","/user/username/projects/myproject/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/user/username/projects/myproject/bower_components", + "/user/username/projects/myproject/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject1*","files":["/user/username/projects/myproject/bower_components","/user/username/projects/myproject/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject1*", + "files": [ + "/user/username/projects/myproject/bower_components", + "/user/username/projects/myproject/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/bower_components 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/bower_components 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer 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"} + { + "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] Project '/user/username/projects/myproject/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (2) @@ -273,18 +329,70 @@ Info seq [hh:mm:ss:mss] Files (2) Root file specified for compilation Info seq [hh:mm:ss:mss] ----------------------------------------------- -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject1*","fileNames":["/a/lib/lib.d.ts","/user/username/projects/myproject/jsFile2.js"],"compilerOptions":{"target":1,"jsx":1,"allowNonTsExtensions":true,"allowJs":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/user/username/projects/myproject","cachePath":"/a/data/","kind":"discover"} -TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data/', loading cached information... -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject1*", + "fileNames": [ + "/a/lib/lib.d.ts", + "/user/username/projects/myproject/jsFile2.js" + ], + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/user/username/projects/myproject", + "cachePath": "/a/data", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/user/username/projects/myproject/bower_components","/user/username/projects/myproject/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/user/username/projects/myproject/bower_components","/user/username/projects/myproject/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/user/username/projects/myproject/bower_components", + "/user/username/projects/myproject/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject1*"} + { + "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"} + { + "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] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/jsFile1.js 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Project '/user/username/projects/myproject/tsconfig.json' (Configured) @@ -363,22 +471,78 @@ Info seq [hh:mm:ss:mss] Files (2) Root file specified for compilation Info seq [hh:mm:ss:mss] ----------------------------------------------- -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject2*","fileNames":["/a/lib/lib.d.ts","/user/username/projects/myproject/jsFile1.js"],"compilerOptions":{"target":1,"jsx":1,"allowNonTsExtensions":true,"allowJs":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/user/username/projects/myproject","cachePath":"/a/data/","kind":"discover"} -TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data/', loading cached information... -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject2*", + "fileNames": [ + "/a/lib/lib.d.ts", + "/user/username/projects/myproject/jsFile1.js" + ], + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/user/username/projects/myproject", + "cachePath": "/a/data", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/user/username/projects/myproject/bower_components","/user/username/projects/myproject/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/user/username/projects/myproject/bower_components","/user/username/projects/myproject/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/user/username/projects/myproject/bower_components", + "/user/username/projects/myproject/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject2*","files":["/user/username/projects/myproject/bower_components","/user/username/projects/myproject/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject2*", + "files": [ + "/user/username/projects/myproject/bower_components", + "/user/username/projects/myproject/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/bower_components 1 undefined Project: /dev/null/inferredProject2* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/bower_components 1 undefined Project: /dev/null/inferredProject2* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /dev/null/inferredProject2* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /dev/null/inferredProject2* WatchType: Directory location for typing installer TI:: [hh:mm:ss:mss] Sending response: - {"projectName":"/dev/null/inferredProject2*","typeAcquisition":{"enable":true,"include":[],"exclude":[]},"compilerOptions":{"target":1,"jsx":1,"allowNonTsExtensions":true,"allowJs":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typings":[],"unresolvedImports":[],"kind":"action::set"} + { + "projectName": "/dev/null/inferredProject2*", + "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] Project '/user/username/projects/myproject/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (2) 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 ae364ca6b5a19..cdd0edb84e85d 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 @@ -56,10 +56,10 @@ PolledWatches:: /a/lib/lib.d.ts: *new* {"pollingInterval":500} -TI:: [hh:mm:ss:mss] Global cache location '/a/data/', safe file path '/safeList.json', types map path /typesMap.json -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Global cache location '/a/data', safe file path '/safeList.json', types map path /typesMap.json +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Trying to find '/a/data/package.json'... -TI:: [hh:mm:ss:mss] Finished processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Finished processing cache location '/a/data' TI:: [hh:mm:ss:mss] Npm config file: /a/data/package.json TI:: [hh:mm:ss:mss] Npm config file: '/a/data/package.json' is missing, creating new one... TI:: [hh:mm:ss:mss] Updating types-registry npm package... @@ -75,23 +75,74 @@ TI:: typing installer creation complete } -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject1*","fileNames":["/a/compile"],"compilerOptions":{"allowJs":true,"allowNonTsExtensions":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/a","cachePath":"/a/data/","kind":"discover"} -TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data/', loading cached information... -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject1*", + "fileNames": [ + "/a/compile" + ], + "compilerOptions": { + "allowJs": true, + "allowNonTsExtensions": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/a", + "cachePath": "/a/data", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/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] Result: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/a/bower_components","/a/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/a/bower_components","/a/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/a/bower_components", + "/a/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject1*","files":["/a/bower_components","/a/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject1*", + "files": [ + "/a/bower_components", + "/a/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /a/bower_components 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a/bower_components 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /a/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer TI:: [hh:mm:ss:mss] Sending response: - {"projectName":"/dev/null/inferredProject1*","typeAcquisition":{"enable":true,"include":[],"exclude":[]},"compilerOptions":{"allowJs":true,"allowNonTsExtensions":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typings":[],"unresolvedImports":[],"kind":"action::set"} + { + "projectName": "/dev/null/inferredProject1*", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "allowNonTsExtensions": 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] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (1) 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 bf6ef4cb44676..2bc19b8c564bd 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 @@ -238,10 +238,10 @@ FsWatchesRecursive:: /user/username/projects/myproject/node_modules: {} -TI:: [hh:mm:ss:mss] Global cache location '/a/data/', safe file path '/safeList.json', types map path /typesMap.json -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Global cache location '/a/data', safe file path '/safeList.json', types map path /typesMap.json +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Trying to find '/a/data/package.json'... -TI:: [hh:mm:ss:mss] Finished processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Finished processing cache location '/a/data' TI:: [hh:mm:ss:mss] Npm config file: /a/data/package.json TI:: [hh:mm:ss:mss] Npm config file: '/a/data/package.json' is missing, creating new one... TI:: [hh:mm:ss:mss] Updating types-registry npm package... @@ -257,19 +257,55 @@ TI:: typing installer creation complete } -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject1*","fileNames":[],"compilerOptions":{"target":1,"jsx":1,"allowNonTsExtensions":true,"allowJs":true,"noEmitForJsFiles":true},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/user/username/projects/myproject","cachePath":"/a/data/","kind":"discover"} -TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data/', loading cached information... -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject1*", + "fileNames": [], + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/user/username/projects/myproject", + "cachePath": "/a/data", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/typesMap.json' 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] Result: {"cachedTypingPaths":[],"newTypingNames":["module3"],"filesToWatch":["/user/username/projects/myproject/bower_components","/user/username/projects/myproject/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":["module3"],"filesToWatch":["/user/username/projects/myproject/bower_components","/user/username/projects/myproject/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "module3" + ], + "filesToWatch": [ + "/user/username/projects/myproject/bower_components", + "/user/username/projects/myproject/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject1*","files":["/user/username/projects/myproject/bower_components","/user/username/projects/myproject/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject1*", + "files": [ + "/user/username/projects/myproject/bower_components", + "/user/username/projects/myproject/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/bower_components 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/bower_components 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer @@ -278,7 +314,24 @@ TI:: [hh:mm:ss:mss] Installing typings ["module3"] TI:: [hh:mm:ss:mss] 'module3':: Entry for package 'module3' does not exist in local types registry - 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},"typings":[],"unresolvedImports":[],"kind":"action::set"} + { + "projectName": "/dev/null/inferredProject1*", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true + }, + "typings": [], + "unresolvedImports": [], + "kind": "action::set" + } Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* @@ -306,23 +359,76 @@ Info seq [hh:mm:ss:mss] Files (4) Root file specified for compilation Info seq [hh:mm:ss:mss] ----------------------------------------------- -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject1*","fileNames":["/a/lib/lib.d.ts","/user/username/projects/myproject/module2.d.ts","/user/username/projects/myproject/module.d.ts"],"compilerOptions":{"target":1,"jsx":1,"allowNonTsExtensions":true,"allowJs":true,"noEmitForJsFiles":true},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/user/username/projects/myproject","cachePath":"/a/data/","kind":"discover"} -TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data/', loading cached information... -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject1*", + "fileNames": [ + "/a/lib/lib.d.ts", + "/user/username/projects/myproject/module2.d.ts", + "/user/username/projects/myproject/module.d.ts" + ], + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/user/username/projects/myproject", + "cachePath": "/a/data", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... 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] Result: {"cachedTypingPaths":[],"newTypingNames":["module3"],"filesToWatch":["/user/username/projects/myproject/bower_components","/user/username/projects/myproject/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":["module3"],"filesToWatch":["/user/username/projects/myproject/bower_components","/user/username/projects/myproject/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "module3" + ], + "filesToWatch": [ + "/user/username/projects/myproject/bower_components", + "/user/username/projects/myproject/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject1*"} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject1*" + } TI:: [hh:mm:ss:mss] Installing typings ["module3"] TI:: [hh:mm:ss:mss] 'module3':: Entry for package 'module3' does not exist in local types registry - 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},"typings":[],"unresolvedImports":[],"kind":"action::set"} + { + "projectName": "/dev/null/inferredProject1*", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true + }, + "typings": [], + "unresolvedImports": [], + "kind": "action::set" + } Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/app.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (4) diff --git a/tests/baselines/reference/tsserver/inlayHints/with-updateOpen-request-does-not-corrupt-documents.js b/tests/baselines/reference/tsserver/inlayHints/with-updateOpen-request-does-not-corrupt-documents.js index a5fab562b50bc..f26ba74f69a7e 100644 --- a/tests/baselines/reference/tsserver/inlayHints/with-updateOpen-request-does-not-corrupt-documents.js +++ b/tests/baselines/reference/tsserver/inlayHints/with-updateOpen-request-does-not-corrupt-documents.js @@ -118,14 +118,14 @@ Info seq [hh:mm:ss:mss] request: } Info seq [hh:mm:ss:mss] response: { - "seq": 0, - "type": "response", - "command": "configure", - "request_seq": 2, - "success": true, - "performanceData": { - "updateGraphDurationMs": * - } + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 2, + "success": true, + "performanceData": { + "updateGraphDurationMs": * + } } Info seq [hh:mm:ss:mss] response: { diff --git a/tests/baselines/reference/tsserver/jsdocTag/for-completions,-should-provide-a-string-for-a-working-link-in-a-comment.js b/tests/baselines/reference/tsserver/jsdocTag/for-completions,-should-provide-a-string-for-a-working-link-in-a-comment.js index 44a0808d26bbd..ebd6aff4fc2f3 100644 --- a/tests/baselines/reference/tsserver/jsdocTag/for-completions,-should-provide-a-string-for-a-working-link-in-a-comment.js +++ b/tests/baselines/reference/tsserver/jsdocTag/for-completions,-should-provide-a-string-for-a-working-link-in-a-comment.js @@ -31,11 +31,11 @@ Info seq [hh:mm:ss:mss] request: } Info seq [hh:mm:ss:mss] response: { - "seq": 0, - "type": "response", - "command": "configure", - "request_seq": 1, - "success": true + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 1, + "success": true } Info seq [hh:mm:ss:mss] response: { diff --git a/tests/baselines/reference/tsserver/jsdocTag/for-completions,-should-provide-display-parts-for-a-working-link-in-a-comment.js b/tests/baselines/reference/tsserver/jsdocTag/for-completions,-should-provide-display-parts-for-a-working-link-in-a-comment.js index dfc023938f7a6..19da292534c13 100644 --- a/tests/baselines/reference/tsserver/jsdocTag/for-completions,-should-provide-display-parts-for-a-working-link-in-a-comment.js +++ b/tests/baselines/reference/tsserver/jsdocTag/for-completions,-should-provide-display-parts-for-a-working-link-in-a-comment.js @@ -31,11 +31,11 @@ Info seq [hh:mm:ss:mss] request: } Info seq [hh:mm:ss:mss] response: { - "seq": 0, - "type": "response", - "command": "configure", - "request_seq": 1, - "success": true + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 1, + "success": true } Info seq [hh:mm:ss:mss] response: { diff --git a/tests/baselines/reference/tsserver/jsdocTag/for-completions-full,-should-provide-a-string-for-a-working-link-in-a-comment.js b/tests/baselines/reference/tsserver/jsdocTag/for-completions-full,-should-provide-a-string-for-a-working-link-in-a-comment.js index c562e7d3b04d8..9c059b21ddec5 100644 --- a/tests/baselines/reference/tsserver/jsdocTag/for-completions-full,-should-provide-a-string-for-a-working-link-in-a-comment.js +++ b/tests/baselines/reference/tsserver/jsdocTag/for-completions-full,-should-provide-a-string-for-a-working-link-in-a-comment.js @@ -31,11 +31,11 @@ Info seq [hh:mm:ss:mss] request: } Info seq [hh:mm:ss:mss] response: { - "seq": 0, - "type": "response", - "command": "configure", - "request_seq": 1, - "success": true + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 1, + "success": true } Info seq [hh:mm:ss:mss] response: { diff --git a/tests/baselines/reference/tsserver/jsdocTag/for-completions-full,-should-provide-display-parts-for-a-working-link-in-a-comment.js b/tests/baselines/reference/tsserver/jsdocTag/for-completions-full,-should-provide-display-parts-for-a-working-link-in-a-comment.js index ede0efbbcea63..f77125796aace 100644 --- a/tests/baselines/reference/tsserver/jsdocTag/for-completions-full,-should-provide-display-parts-for-a-working-link-in-a-comment.js +++ b/tests/baselines/reference/tsserver/jsdocTag/for-completions-full,-should-provide-display-parts-for-a-working-link-in-a-comment.js @@ -31,11 +31,11 @@ Info seq [hh:mm:ss:mss] request: } Info seq [hh:mm:ss:mss] response: { - "seq": 0, - "type": "response", - "command": "configure", - "request_seq": 1, - "success": true + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 1, + "success": true } Info seq [hh:mm:ss:mss] response: { diff --git a/tests/baselines/reference/tsserver/jsdocTag/for-quickinfo,-should-provide-a-string-for-a-working-link-in-a-comment.js b/tests/baselines/reference/tsserver/jsdocTag/for-quickinfo,-should-provide-a-string-for-a-working-link-in-a-comment.js index 18038c3b0e272..858613ce38141 100644 --- a/tests/baselines/reference/tsserver/jsdocTag/for-quickinfo,-should-provide-a-string-for-a-working-link-in-a-comment.js +++ b/tests/baselines/reference/tsserver/jsdocTag/for-quickinfo,-should-provide-a-string-for-a-working-link-in-a-comment.js @@ -31,11 +31,11 @@ Info seq [hh:mm:ss:mss] request: } Info seq [hh:mm:ss:mss] response: { - "seq": 0, - "type": "response", - "command": "configure", - "request_seq": 1, - "success": true + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 1, + "success": true } Info seq [hh:mm:ss:mss] response: { diff --git a/tests/baselines/reference/tsserver/jsdocTag/for-quickinfo,-should-provide-a-string-for-a-working-link-in-a-tag.js b/tests/baselines/reference/tsserver/jsdocTag/for-quickinfo,-should-provide-a-string-for-a-working-link-in-a-tag.js index ea8443db1a18a..f16a83dc61f8d 100644 --- a/tests/baselines/reference/tsserver/jsdocTag/for-quickinfo,-should-provide-a-string-for-a-working-link-in-a-tag.js +++ b/tests/baselines/reference/tsserver/jsdocTag/for-quickinfo,-should-provide-a-string-for-a-working-link-in-a-tag.js @@ -30,11 +30,11 @@ Info seq [hh:mm:ss:mss] request: } Info seq [hh:mm:ss:mss] response: { - "seq": 0, - "type": "response", - "command": "configure", - "request_seq": 1, - "success": true + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 1, + "success": true } Info seq [hh:mm:ss:mss] response: { diff --git a/tests/baselines/reference/tsserver/jsdocTag/for-quickinfo,-should-provide-display-parts-for-a-working-link-in-a-comment.js b/tests/baselines/reference/tsserver/jsdocTag/for-quickinfo,-should-provide-display-parts-for-a-working-link-in-a-comment.js index 095b1ae2145d0..abe17343a009f 100644 --- a/tests/baselines/reference/tsserver/jsdocTag/for-quickinfo,-should-provide-display-parts-for-a-working-link-in-a-comment.js +++ b/tests/baselines/reference/tsserver/jsdocTag/for-quickinfo,-should-provide-display-parts-for-a-working-link-in-a-comment.js @@ -31,11 +31,11 @@ Info seq [hh:mm:ss:mss] request: } Info seq [hh:mm:ss:mss] response: { - "seq": 0, - "type": "response", - "command": "configure", - "request_seq": 1, - "success": true + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 1, + "success": true } Info seq [hh:mm:ss:mss] response: { diff --git a/tests/baselines/reference/tsserver/jsdocTag/for-quickinfo,-should-provide-display-parts-plus-a-span-for-a-working-link-in-a-tag.js b/tests/baselines/reference/tsserver/jsdocTag/for-quickinfo,-should-provide-display-parts-plus-a-span-for-a-working-link-in-a-tag.js index 98cf7ed95f52d..e5cb36dd1aa5b 100644 --- a/tests/baselines/reference/tsserver/jsdocTag/for-quickinfo,-should-provide-display-parts-plus-a-span-for-a-working-link-in-a-tag.js +++ b/tests/baselines/reference/tsserver/jsdocTag/for-quickinfo,-should-provide-display-parts-plus-a-span-for-a-working-link-in-a-tag.js @@ -30,11 +30,11 @@ Info seq [hh:mm:ss:mss] request: } Info seq [hh:mm:ss:mss] response: { - "seq": 0, - "type": "response", - "command": "configure", - "request_seq": 1, - "success": true + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 1, + "success": true } Info seq [hh:mm:ss:mss] response: { diff --git a/tests/baselines/reference/tsserver/jsdocTag/for-quickinfo-full,-should-provide-a-string-for-a-working-link-in-a-comment.js b/tests/baselines/reference/tsserver/jsdocTag/for-quickinfo-full,-should-provide-a-string-for-a-working-link-in-a-comment.js index 86037f2b32287..449ebdfef4be3 100644 --- a/tests/baselines/reference/tsserver/jsdocTag/for-quickinfo-full,-should-provide-a-string-for-a-working-link-in-a-comment.js +++ b/tests/baselines/reference/tsserver/jsdocTag/for-quickinfo-full,-should-provide-a-string-for-a-working-link-in-a-comment.js @@ -31,11 +31,11 @@ Info seq [hh:mm:ss:mss] request: } Info seq [hh:mm:ss:mss] response: { - "seq": 0, - "type": "response", - "command": "configure", - "request_seq": 1, - "success": true + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 1, + "success": true } Info seq [hh:mm:ss:mss] response: { diff --git a/tests/baselines/reference/tsserver/jsdocTag/for-quickinfo-full,-should-provide-a-string-for-a-working-link-in-a-tag.js b/tests/baselines/reference/tsserver/jsdocTag/for-quickinfo-full,-should-provide-a-string-for-a-working-link-in-a-tag.js index 3513bc92fb9a3..4ec1a1f253f77 100644 --- a/tests/baselines/reference/tsserver/jsdocTag/for-quickinfo-full,-should-provide-a-string-for-a-working-link-in-a-tag.js +++ b/tests/baselines/reference/tsserver/jsdocTag/for-quickinfo-full,-should-provide-a-string-for-a-working-link-in-a-tag.js @@ -30,11 +30,11 @@ Info seq [hh:mm:ss:mss] request: } Info seq [hh:mm:ss:mss] response: { - "seq": 0, - "type": "response", - "command": "configure", - "request_seq": 1, - "success": true + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 1, + "success": true } Info seq [hh:mm:ss:mss] response: { diff --git a/tests/baselines/reference/tsserver/jsdocTag/for-quickinfo-full,-should-provide-display-parts-plus-a-span-for-a-working-link-in-a-comment.js b/tests/baselines/reference/tsserver/jsdocTag/for-quickinfo-full,-should-provide-display-parts-plus-a-span-for-a-working-link-in-a-comment.js index c950d90beb7fe..19ef45bfee720 100644 --- a/tests/baselines/reference/tsserver/jsdocTag/for-quickinfo-full,-should-provide-display-parts-plus-a-span-for-a-working-link-in-a-comment.js +++ b/tests/baselines/reference/tsserver/jsdocTag/for-quickinfo-full,-should-provide-display-parts-plus-a-span-for-a-working-link-in-a-comment.js @@ -31,11 +31,11 @@ Info seq [hh:mm:ss:mss] request: } Info seq [hh:mm:ss:mss] response: { - "seq": 0, - "type": "response", - "command": "configure", - "request_seq": 1, - "success": true + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 1, + "success": true } Info seq [hh:mm:ss:mss] response: { diff --git a/tests/baselines/reference/tsserver/jsdocTag/for-quickinfo-full,-should-provide-display-parts-plus-a-span-for-a-working-link-in-a-tag.js b/tests/baselines/reference/tsserver/jsdocTag/for-quickinfo-full,-should-provide-display-parts-plus-a-span-for-a-working-link-in-a-tag.js index 6e360cb619543..b9623a7a876ef 100644 --- a/tests/baselines/reference/tsserver/jsdocTag/for-quickinfo-full,-should-provide-display-parts-plus-a-span-for-a-working-link-in-a-tag.js +++ b/tests/baselines/reference/tsserver/jsdocTag/for-quickinfo-full,-should-provide-display-parts-plus-a-span-for-a-working-link-in-a-tag.js @@ -30,11 +30,11 @@ Info seq [hh:mm:ss:mss] request: } Info seq [hh:mm:ss:mss] response: { - "seq": 0, - "type": "response", - "command": "configure", - "request_seq": 1, - "success": true + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 1, + "success": true } Info seq [hh:mm:ss:mss] response: { diff --git a/tests/baselines/reference/tsserver/jsdocTag/for-signature-help,-should-provide-a-string-for-a-working-link-in-a-comment.js b/tests/baselines/reference/tsserver/jsdocTag/for-signature-help,-should-provide-a-string-for-a-working-link-in-a-comment.js index dc6568e2d21e2..d91e1f7b6b39a 100644 --- a/tests/baselines/reference/tsserver/jsdocTag/for-signature-help,-should-provide-a-string-for-a-working-link-in-a-comment.js +++ b/tests/baselines/reference/tsserver/jsdocTag/for-signature-help,-should-provide-a-string-for-a-working-link-in-a-comment.js @@ -31,11 +31,11 @@ Info seq [hh:mm:ss:mss] request: } Info seq [hh:mm:ss:mss] response: { - "seq": 0, - "type": "response", - "command": "configure", - "request_seq": 1, - "success": true + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 1, + "success": true } Info seq [hh:mm:ss:mss] response: { diff --git a/tests/baselines/reference/tsserver/jsdocTag/for-signature-help,-should-provide-display-parts-for-a-working-link-in-a-comment.js b/tests/baselines/reference/tsserver/jsdocTag/for-signature-help,-should-provide-display-parts-for-a-working-link-in-a-comment.js index 8970ac21b0a13..854adc95426f2 100644 --- a/tests/baselines/reference/tsserver/jsdocTag/for-signature-help,-should-provide-display-parts-for-a-working-link-in-a-comment.js +++ b/tests/baselines/reference/tsserver/jsdocTag/for-signature-help,-should-provide-display-parts-for-a-working-link-in-a-comment.js @@ -31,11 +31,11 @@ Info seq [hh:mm:ss:mss] request: } Info seq [hh:mm:ss:mss] response: { - "seq": 0, - "type": "response", - "command": "configure", - "request_seq": 1, - "success": true + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 1, + "success": true } Info seq [hh:mm:ss:mss] response: { diff --git a/tests/baselines/reference/tsserver/jsdocTag/for-signature-help-full,-should-provide-a-string-for-a-working-link-in-a-comment.js b/tests/baselines/reference/tsserver/jsdocTag/for-signature-help-full,-should-provide-a-string-for-a-working-link-in-a-comment.js index f64ac00c48f96..7d85cac0d58d1 100644 --- a/tests/baselines/reference/tsserver/jsdocTag/for-signature-help-full,-should-provide-a-string-for-a-working-link-in-a-comment.js +++ b/tests/baselines/reference/tsserver/jsdocTag/for-signature-help-full,-should-provide-a-string-for-a-working-link-in-a-comment.js @@ -31,11 +31,11 @@ Info seq [hh:mm:ss:mss] request: } Info seq [hh:mm:ss:mss] response: { - "seq": 0, - "type": "response", - "command": "configure", - "request_seq": 1, - "success": true + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 1, + "success": true } Info seq [hh:mm:ss:mss] response: { diff --git a/tests/baselines/reference/tsserver/jsdocTag/for-signature-help-full,-should-provide-display-parts-for-a-working-link-in-a-comment.js b/tests/baselines/reference/tsserver/jsdocTag/for-signature-help-full,-should-provide-display-parts-for-a-working-link-in-a-comment.js index d5c46aa48a8e1..218cb62e25923 100644 --- a/tests/baselines/reference/tsserver/jsdocTag/for-signature-help-full,-should-provide-display-parts-for-a-working-link-in-a-comment.js +++ b/tests/baselines/reference/tsserver/jsdocTag/for-signature-help-full,-should-provide-display-parts-for-a-working-link-in-a-comment.js @@ -31,11 +31,11 @@ Info seq [hh:mm:ss:mss] request: } Info seq [hh:mm:ss:mss] response: { - "seq": 0, - "type": "response", - "command": "configure", - "request_seq": 1, - "success": true + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 1, + "success": true } Info seq [hh:mm:ss:mss] response: { diff --git a/tests/baselines/reference/tsserver/maxNodeModuleJsDepth/handles-resolutions-when-currentNodeModulesDepth-changes-when-referencing-file-from-another-file.js b/tests/baselines/reference/tsserver/maxNodeModuleJsDepth/handles-resolutions-when-currentNodeModulesDepth-changes-when-referencing-file-from-another-file.js index 3b86c2be28370..2aa87508308b9 100644 --- a/tests/baselines/reference/tsserver/maxNodeModuleJsDepth/handles-resolutions-when-currentNodeModulesDepth-changes-when-referencing-file-from-another-file.js +++ b/tests/baselines/reference/tsserver/maxNodeModuleJsDepth/handles-resolutions-when-currentNodeModulesDepth-changes-when-referencing-file-from-another-file.js @@ -100,10 +100,10 @@ FsWatchesRecursive:: /user/username/projects/project1/src/node_modules: *new* {} -TI:: [hh:mm:ss:mss] Global cache location '/a/data/', safe file path '/safeList.json', types map path /typesMap.json -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Global cache location '/a/data', safe file path '/safeList.json', types map path /typesMap.json +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Trying to find '/a/data/package.json'... -TI:: [hh:mm:ss:mss] Finished processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Finished processing cache location '/a/data' TI:: [hh:mm:ss:mss] Npm config file: /a/data/package.json TI:: [hh:mm:ss:mss] Npm config file: '/a/data/package.json' is missing, creating new one... TI:: [hh:mm:ss:mss] Updating types-registry npm package... @@ -119,19 +119,69 @@ TI:: typing installer creation complete } -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject1*","fileNames":["/a/lib/lib.d.ts","/user/username/projects/project1/src/file1.js"],"compilerOptions":{"target":1,"jsx":1,"allowNonTsExtensions":true,"allowJs":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":["glob","minimatch","path"],"projectRootPath":"/","cachePath":"/a/data/","kind":"discover"} -TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data/', loading cached information... -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject1*", + "fileNames": [ + "/a/lib/lib.d.ts", + "/user/username/projects/project1/src/file1.js" + ], + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [ + "glob", + "minimatch", + "path" + ], + "projectRootPath": "/", + "cachePath": "/a/data", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/typesMap.json' TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Searching for typing names in /user/username/projects/project1/src/node_modules; all files: [] TI:: [hh:mm:ss:mss] Found package names: [] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["glob","minimatch","node"] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":["glob","minimatch","node"],"filesToWatch":["/user/username/projects/project1/src/bower_components","/user/username/projects/project1/src/node_modules","/bower_components","/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":["glob","minimatch","node"],"filesToWatch":["/user/username/projects/project1/src/bower_components","/user/username/projects/project1/src/node_modules","/bower_components","/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "glob", + "minimatch", + "node" + ], + "filesToWatch": [ + "/user/username/projects/project1/src/bower_components", + "/user/username/projects/project1/src/node_modules", + "/bower_components", + "/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject1*","files":["/user/username/projects/project1/src/bower_components","/user/username/projects/project1/src/node_modules","/bower_components","/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject1*", + "files": [ + "/user/username/projects/project1/src/bower_components", + "/user/username/projects/project1/src/node_modules", + "/bower_components", + "/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /bower_components 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer @@ -144,7 +194,29 @@ TI:: [hh:mm:ss:mss] 'minimatch':: Entry for package 'minimatch' does not exist i TI:: [hh:mm:ss:mss] 'node':: Entry for package 'node' does not exist in local types registry - 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":["glob","minimatch","path"],"kind":"action::set"} + { + "projectName": "/dev/null/inferredProject1*", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typings": [], + "unresolvedImports": [ + "glob", + "minimatch", + "path" + ], + "kind": "action::set" + } Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (5) diff --git a/tests/baselines/reference/tsserver/maxNodeModuleJsDepth/should-be-set-to-2-if-the-project-has-js-root-files.js b/tests/baselines/reference/tsserver/maxNodeModuleJsDepth/should-be-set-to-2-if-the-project-has-js-root-files.js index 2982d33e80a55..7bb5369517de3 100644 --- a/tests/baselines/reference/tsserver/maxNodeModuleJsDepth/should-be-set-to-2-if-the-project-has-js-root-files.js +++ b/tests/baselines/reference/tsserver/maxNodeModuleJsDepth/should-be-set-to-2-if-the-project-has-js-root-files.js @@ -46,10 +46,10 @@ FsWatchesRecursive:: /a/b/node_modules: *new* {} -TI:: [hh:mm:ss:mss] Global cache location '/a/data/', safe file path '/safeList.json', types map path /typesMap.json -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Global cache location '/a/data', safe file path '/safeList.json', types map path /typesMap.json +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Trying to find '/a/data/package.json'... -TI:: [hh:mm:ss:mss] Finished processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Finished processing cache location '/a/data' TI:: [hh:mm:ss:mss] Npm config file: /a/data/package.json TI:: [hh:mm:ss:mss] Npm config file: '/a/data/package.json' is missing, creating new one... TI:: [hh:mm:ss:mss] Updating types-registry npm package... @@ -65,19 +65,60 @@ TI:: typing installer creation complete } -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject1*","fileNames":["/a/b/file1.js"],"compilerOptions":{"target":1,"jsx":1,"allowNonTsExtensions":true,"allowJs":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":["test"],"projectRootPath":"/a/b","cachePath":"/a/data/","kind":"discover"} -TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data/', loading cached information... -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject1*", + "fileNames": [ + "/a/b/file1.js" + ], + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [ + "test" + ], + "projectRootPath": "/a/b", + "cachePath": "/a/data", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/typesMap.json' TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Searching for typing names in /a/b/node_modules; all files: [] TI:: [hh:mm:ss:mss] Found package names: [] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["test"] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":["test"],"filesToWatch":["/a/b/bower_components","/a/b/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":["test"],"filesToWatch":["/a/b/bower_components","/a/b/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "test" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject1*","files":["/a/b/bower_components","/a/b/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject1*", + "files": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /a/b/bower_components 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a/b/bower_components 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /a/b/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer @@ -86,7 +127,27 @@ TI:: [hh:mm:ss:mss] Installing typings ["test"] TI:: [hh:mm:ss:mss] 'test':: Entry for package 'test' does not exist in local types registry - 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":["test"],"kind":"action::set"} + { + "projectName": "/dev/null/inferredProject1*", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typings": [], + "unresolvedImports": [ + "test" + ], + "kind": "action::set" + } Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (2) diff --git a/tests/baselines/reference/tsserver/moduleResolution/node10Result.js b/tests/baselines/reference/tsserver/moduleResolution/node10Result.js index 7c0dca9ec6f4c..85187e38c2365 100644 --- a/tests/baselines/reference/tsserver/moduleResolution/node10Result.js +++ b/tests/baselines/reference/tsserver/moduleResolution/node10Result.js @@ -156,13 +156,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /home/src/projects/proje Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/projects/project/tsconfig.json 2000 undefined Project: /home/src/projects/project/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/home/src/projects/project/tsconfig.json", - "reason": "Creating possible configured project for /home/src/projects/project/index.mts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/home/src/projects/project/tsconfig.json", + "reason": "Creating possible configured project for /home/src/projects/project/index.mts to open" + } } Info seq [hh:mm:ss:mss] Config: /home/src/projects/project/tsconfig.json : { "rootNames": [ @@ -387,76 +387,76 @@ Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/home/src/projects/project/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/home/src/projects/project/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "1097a5f82e8323ba7aba7567ec06402f7ad4ea74abce44ec5efd223ac77ff169", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 112, - "tsx": 0, - "tsxSize": 0, - "dts": 3, - "dtsSize": 402, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": { - "moduleResolution": "node16", - "traceResolution": true, - "incremental": true, - "strict": true, - "types": [] - }, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": true, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "1097a5f82e8323ba7aba7567ec06402f7ad4ea74abce44ec5efd223ac77ff169", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 112, + "tsx": 0, + "tsxSize": 0, + "dts": 3, + "dtsSize": 402, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "moduleResolution": "node16", + "traceResolution": true, + "incremental": true, + "strict": true, + "types": [] + }, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": true, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/home/src/projects/project/index.mts", - "configFile": "/home/src/projects/project/tsconfig.json", - "diagnostics": [ - { - "text": "Option 'module' must be set to 'Node16' when option 'moduleResolution' is set to 'Node16'.", - "code": 5110, - "category": "error" - } - ] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/home/src/projects/project/index.mts", + "configFile": "/home/src/projects/project/tsconfig.json", + "diagnostics": [ + { + "text": "Option 'module' must be set to 'Node16' when option 'moduleResolution' is set to 'Node16'.", + "code": 5110, + "category": "error" + } + ] + } } Info seq [hh:mm:ss:mss] Project '/home/src/projects/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (4) @@ -526,13 +526,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/home/src/projects/project/index.mts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/home/src/projects/project/index.mts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -541,40 +541,40 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/home/src/projects/project/index.mts", - "diagnostics": [ - { - "start": { - "line": 1, - "offset": 21 - }, - "end": { - "line": 1, - "offset": 26 - }, - "text": "Could not find a declaration file for module 'foo'. '/home/src/projects/project/node_modules/foo/index.mjs' implicitly has an 'any' type.\n There are types at '/home/src/projects/project/node_modules/foo/index.d.ts', but this result could not be resolved when respecting package.json \"exports\". The 'foo' library may need to update its package.json or typings.", - "code": 7016, - "category": "error" - }, - { - "start": { - "line": 2, - "offset": 21 - }, - "end": { - "line": 2, - "offset": 26 - }, - "text": "Could not find a declaration file for module 'bar'. '/home/src/projects/project/node_modules/bar/index.mjs' implicitly has an 'any' type.\n There are types at '/home/src/projects/project/node_modules/@types/bar/index.d.ts', but this result could not be resolved when respecting package.json \"exports\". The '@types/bar' library may need to update its package.json or typings.", - "code": 7016, - "category": "error" - } - ] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/home/src/projects/project/index.mts", + "diagnostics": [ + { + "start": { + "line": 1, + "offset": 21 + }, + "end": { + "line": 1, + "offset": 26 + }, + "text": "Could not find a declaration file for module 'foo'. '/home/src/projects/project/node_modules/foo/index.mjs' implicitly has an 'any' type.\n There are types at '/home/src/projects/project/node_modules/foo/index.d.ts', but this result could not be resolved when respecting package.json \"exports\". The 'foo' library may need to update its package.json or typings.", + "code": 7016, + "category": "error" + }, + { + "start": { + "line": 2, + "offset": 21 + }, + "end": { + "line": 2, + "offset": 26 + }, + "text": "Could not find a declaration file for module 'bar'. '/home/src/projects/project/node_modules/bar/index.mjs' implicitly has an 'any' type.\n There are types at '/home/src/projects/project/node_modules/@types/bar/index.d.ts', but this result could not be resolved when respecting package.json \"exports\". The '@types/bar' library may need to update its package.json or typings.", + "code": 7016, + "category": "error" + } + ] + } } After running Immedidate callback:: count: 1 2: suggestionCheck @@ -584,79 +584,79 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/home/src/projects/project/index.mts", - "diagnostics": [ - { - "start": { - "line": 1, - "offset": 1 - }, - "end": { - "line": 1, - "offset": 27 - }, - "text": "'foo' is declared but its value is never read.", - "code": 6133, - "category": "suggestion", - "reportsUnnecessary": true - }, - { - "start": { - "line": 2, - "offset": 1 - }, - "end": { - "line": 2, - "offset": 27 - }, - "text": "'bar' is declared but its value is never read.", - "code": 6133, - "category": "suggestion", - "reportsUnnecessary": true - }, - { - "start": { - "line": 3, - "offset": 1 - }, - "end": { - "line": 3, - "offset": 29 - }, - "text": "'foo2' is declared but its value is never read.", - "code": 6133, - "category": "suggestion", - "reportsUnnecessary": true - }, - { - "start": { - "line": 4, - "offset": 1 - }, - "end": { - "line": 4, - "offset": 29 - }, - "text": "'bar2' is declared but its value is never read.", - "code": 6133, - "category": "suggestion", - "reportsUnnecessary": true - } - ] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/home/src/projects/project/index.mts", + "diagnostics": [ + { + "start": { + "line": 1, + "offset": 1 + }, + "end": { + "line": 1, + "offset": 27 + }, + "text": "'foo' is declared but its value is never read.", + "code": 6133, + "category": "suggestion", + "reportsUnnecessary": true + }, + { + "start": { + "line": 2, + "offset": 1 + }, + "end": { + "line": 2, + "offset": 27 + }, + "text": "'bar' is declared but its value is never read.", + "code": 6133, + "category": "suggestion", + "reportsUnnecessary": true + }, + { + "start": { + "line": 3, + "offset": 1 + }, + "end": { + "line": 3, + "offset": 29 + }, + "text": "'foo2' is declared but its value is never read.", + "code": 6133, + "category": "suggestion", + "reportsUnnecessary": true + }, + { + "start": { + "line": 4, + "offset": 1 + }, + "end": { + "line": 4, + "offset": 29 + }, + "text": "'bar2' is declared but its value is never read.", + "code": 6133, + "category": "suggestion", + "reportsUnnecessary": true + } + ] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 2 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 2 + } } After running Immedidate callback:: count: 0 @@ -829,23 +829,23 @@ Info seq [hh:mm:ss:mss] Projects: /home/src/projects/project/tsconfig.json Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for /home/src/projects/project/index.mts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 3 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 3 + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/home/src/projects/project/index.mts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/home/src/projects/project/index.mts" + ] + } } After running Timeout callback:: count: 1 6: checkOne @@ -955,13 +955,13 @@ Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/home/src/projects/project/index.mts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/home/src/projects/project/index.mts", + "diagnostics": [] + } } After running Timeout callback:: count: 1 8: *ensureProjectForOpenFiles* @@ -971,40 +971,40 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/home/src/projects/project/index.mts", - "diagnostics": [ - { - "start": { - "line": 1, - "offset": 21 - }, - "end": { - "line": 1, - "offset": 26 - }, - "text": "Could not find a declaration file for module 'foo'. '/home/src/projects/project/node_modules/foo/index.mjs' implicitly has an 'any' type.\n Try `npm i --save-dev @types/foo` if it exists or add a new declaration (.d.ts) file containing `declare module 'foo';`", - "code": 7016, - "category": "error" - }, - { - "start": { - "line": 2, - "offset": 21 - }, - "end": { - "line": 2, - "offset": 26 - }, - "text": "Could not find a declaration file for module 'bar'. '/home/src/projects/project/node_modules/bar/index.mjs' implicitly has an 'any' type.\n Try `npm i --save-dev @types/bar` if it exists or add a new declaration (.d.ts) file containing `declare module 'bar';`", - "code": 7016, - "category": "error" - } - ] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/home/src/projects/project/index.mts", + "diagnostics": [ + { + "start": { + "line": 1, + "offset": 21 + }, + "end": { + "line": 1, + "offset": 26 + }, + "text": "Could not find a declaration file for module 'foo'. '/home/src/projects/project/node_modules/foo/index.mjs' implicitly has an 'any' type.\n Try `npm i --save-dev @types/foo` if it exists or add a new declaration (.d.ts) file containing `declare module 'foo';`", + "code": 7016, + "category": "error" + }, + { + "start": { + "line": 2, + "offset": 21 + }, + "end": { + "line": 2, + "offset": 26 + }, + "text": "Could not find a declaration file for module 'bar'. '/home/src/projects/project/node_modules/bar/index.mjs' implicitly has an 'any' type.\n Try `npm i --save-dev @types/bar` if it exists or add a new declaration (.d.ts) file containing `declare module 'bar';`", + "code": 7016, + "category": "error" + } + ] + } } After running Immedidate callback:: count: 1 4: suggestionCheck @@ -1053,23 +1053,23 @@ Info seq [hh:mm:ss:mss] Projects: /home/src/projects/project/tsconfig.json Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for /home/src/projects/project/index.mts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 4 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 4 + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/home/src/projects/project/index.mts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/home/src/projects/project/index.mts" + ] + } } After running Timeout callback:: count: 1 10: checkOne @@ -1187,13 +1187,13 @@ Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/home/src/projects/project/index.mts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/home/src/projects/project/index.mts", + "diagnostics": [] + } } After running Timeout callback:: count: 1 12: *ensureProjectForOpenFiles* @@ -1203,40 +1203,40 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/home/src/projects/project/index.mts", - "diagnostics": [ - { - "start": { - "line": 1, - "offset": 21 - }, - "end": { - "line": 1, - "offset": 26 - }, - "text": "Could not find a declaration file for module 'foo'. '/home/src/projects/project/node_modules/foo/index.mjs' implicitly has an 'any' type.\n Try `npm i --save-dev @types/foo` if it exists or add a new declaration (.d.ts) file containing `declare module 'foo';`", - "code": 7016, - "category": "error" - }, - { - "start": { - "line": 2, - "offset": 21 - }, - "end": { - "line": 2, - "offset": 26 - }, - "text": "Could not find a declaration file for module 'bar'. '/home/src/projects/project/node_modules/bar/index.mjs' implicitly has an 'any' type.\n There are types at '/home/src/projects/project/node_modules/@types/bar/index.d.ts', but this result could not be resolved when respecting package.json \"exports\". The '@types/bar' library may need to update its package.json or typings.", - "code": 7016, - "category": "error" - } - ] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/home/src/projects/project/index.mts", + "diagnostics": [ + { + "start": { + "line": 1, + "offset": 21 + }, + "end": { + "line": 1, + "offset": 26 + }, + "text": "Could not find a declaration file for module 'foo'. '/home/src/projects/project/node_modules/foo/index.mjs' implicitly has an 'any' type.\n Try `npm i --save-dev @types/foo` if it exists or add a new declaration (.d.ts) file containing `declare module 'foo';`", + "code": 7016, + "category": "error" + }, + { + "start": { + "line": 2, + "offset": 21 + }, + "end": { + "line": 2, + "offset": 26 + }, + "text": "Could not find a declaration file for module 'bar'. '/home/src/projects/project/node_modules/bar/index.mjs' implicitly has an 'any' type.\n There are types at '/home/src/projects/project/node_modules/@types/bar/index.d.ts', but this result could not be resolved when respecting package.json \"exports\". The '@types/bar' library may need to update its package.json or typings.", + "code": 7016, + "category": "error" + } + ] + } } After running Immedidate callback:: count: 1 6: suggestionCheck @@ -1285,23 +1285,23 @@ Info seq [hh:mm:ss:mss] Projects: /home/src/projects/project/tsconfig.json Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for /home/src/projects/project/index.mts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 5 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 5 + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/home/src/projects/project/index.mts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/home/src/projects/project/index.mts" + ] + } } After running Timeout callback:: count: 1 14: checkOne @@ -1400,13 +1400,13 @@ Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/home/src/projects/project/index.mts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/home/src/projects/project/index.mts", + "diagnostics": [] + } } After running Timeout callback:: count: 1 16: *ensureProjectForOpenFiles* @@ -1416,40 +1416,40 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/home/src/projects/project/index.mts", - "diagnostics": [ - { - "start": { - "line": 1, - "offset": 21 - }, - "end": { - "line": 1, - "offset": 26 - }, - "text": "Could not find a declaration file for module 'foo'. '/home/src/projects/project/node_modules/foo/index.mjs' implicitly has an 'any' type.\n There are types at '/home/src/projects/project/node_modules/foo/index.d.ts', but this result could not be resolved when respecting package.json \"exports\". The 'foo' library may need to update its package.json or typings.", - "code": 7016, - "category": "error" - }, - { - "start": { - "line": 2, - "offset": 21 - }, - "end": { - "line": 2, - "offset": 26 - }, - "text": "Could not find a declaration file for module 'bar'. '/home/src/projects/project/node_modules/bar/index.mjs' implicitly has an 'any' type.\n There are types at '/home/src/projects/project/node_modules/@types/bar/index.d.ts', but this result could not be resolved when respecting package.json \"exports\". The '@types/bar' library may need to update its package.json or typings.", - "code": 7016, - "category": "error" - } - ] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/home/src/projects/project/index.mts", + "diagnostics": [ + { + "start": { + "line": 1, + "offset": 21 + }, + "end": { + "line": 1, + "offset": 26 + }, + "text": "Could not find a declaration file for module 'foo'. '/home/src/projects/project/node_modules/foo/index.mjs' implicitly has an 'any' type.\n There are types at '/home/src/projects/project/node_modules/foo/index.d.ts', but this result could not be resolved when respecting package.json \"exports\". The 'foo' library may need to update its package.json or typings.", + "code": 7016, + "category": "error" + }, + { + "start": { + "line": 2, + "offset": 21 + }, + "end": { + "line": 2, + "offset": 26 + }, + "text": "Could not find a declaration file for module 'bar'. '/home/src/projects/project/node_modules/bar/index.mjs' implicitly has an 'any' type.\n There are types at '/home/src/projects/project/node_modules/@types/bar/index.d.ts', but this result could not be resolved when respecting package.json \"exports\". The '@types/bar' library may need to update its package.json or typings.", + "code": 7016, + "category": "error" + } + ] + } } After running Immedidate callback:: count: 1 8: suggestionCheck @@ -1498,23 +1498,23 @@ Info seq [hh:mm:ss:mss] Projects: /home/src/projects/project/tsconfig.json Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for /home/src/projects/project/index.mts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 6 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 6 + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/home/src/projects/project/index.mts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/home/src/projects/project/index.mts" + ] + } } After running Timeout callback:: count: 1 18: checkOne @@ -1619,13 +1619,13 @@ Info seq [hh:mm:ss:mss] Files (5) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/home/src/projects/project/index.mts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/home/src/projects/project/index.mts", + "diagnostics": [] + } } After running Timeout callback:: count: 1 20: *ensureProjectForOpenFiles* @@ -1635,27 +1635,27 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/home/src/projects/project/index.mts", - "diagnostics": [ - { - "start": { - "line": 1, - "offset": 21 - }, - "end": { - "line": 1, - "offset": 26 - }, - "text": "Could not find a declaration file for module 'foo'. '/home/src/projects/project/node_modules/foo/index.mjs' implicitly has an 'any' type.\n There are types at '/home/src/projects/project/node_modules/foo/index.d.ts', but this result could not be resolved when respecting package.json \"exports\". The 'foo' library may need to update its package.json or typings.", - "code": 7016, - "category": "error" - } - ] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/home/src/projects/project/index.mts", + "diagnostics": [ + { + "start": { + "line": 1, + "offset": 21 + }, + "end": { + "line": 1, + "offset": 26 + }, + "text": "Could not find a declaration file for module 'foo'. '/home/src/projects/project/node_modules/foo/index.mjs' implicitly has an 'any' type.\n There are types at '/home/src/projects/project/node_modules/foo/index.d.ts', but this result could not be resolved when respecting package.json \"exports\". The 'foo' library may need to update its package.json or typings.", + "code": 7016, + "category": "error" + } + ] + } } After running Immedidate callback:: count: 1 10: suggestionCheck @@ -1704,23 +1704,23 @@ Info seq [hh:mm:ss:mss] Projects: /home/src/projects/project/tsconfig.json Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for /home/src/projects/project/index.mts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 7 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 7 + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/home/src/projects/project/index.mts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/home/src/projects/project/index.mts" + ] + } } After running Timeout callback:: count: 1 22: checkOne @@ -1825,13 +1825,13 @@ Info seq [hh:mm:ss:mss] Files (6) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/home/src/projects/project/index.mts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/home/src/projects/project/index.mts", + "diagnostics": [] + } } After running Timeout callback:: count: 1 24: *ensureProjectForOpenFiles* @@ -1871,13 +1871,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/home/src/projects/project/index.mts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/home/src/projects/project/index.mts", + "diagnostics": [] + } } After running Immedidate callback:: count: 1 12: suggestionCheck @@ -1926,23 +1926,23 @@ Info seq [hh:mm:ss:mss] Projects: /home/src/projects/project/tsconfig.json Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for /home/src/projects/project/index.mts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 8 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 8 + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/home/src/projects/project/index.mts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/home/src/projects/project/index.mts" + ] + } } After running Timeout callback:: count: 1 26: checkOne @@ -2089,13 +2089,13 @@ Info seq [hh:mm:ss:mss] Files (5) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/home/src/projects/project/index.mts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/home/src/projects/project/index.mts", + "diagnostics": [] + } } After running Timeout callback:: count: 1 28: *ensureProjectForOpenFiles* @@ -2135,27 +2135,27 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/home/src/projects/project/index.mts", - "diagnostics": [ - { - "start": { - "line": 4, - "offset": 22 - }, - "end": { - "line": 4, - "offset": 28 - }, - "text": "Could not find a declaration file for module 'bar2'. '/home/src/projects/project/node_modules/bar2/index.mjs' implicitly has an 'any' type.\n There are types at '/home/src/projects/project/node_modules/@types/bar2/index.d.ts', but this result could not be resolved when respecting package.json \"exports\". The '@types/bar2' library may need to update its package.json or typings.", - "code": 7016, - "category": "error" - } - ] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/home/src/projects/project/index.mts", + "diagnostics": [ + { + "start": { + "line": 4, + "offset": 22 + }, + "end": { + "line": 4, + "offset": 28 + }, + "text": "Could not find a declaration file for module 'bar2'. '/home/src/projects/project/node_modules/bar2/index.mjs' implicitly has an 'any' type.\n There are types at '/home/src/projects/project/node_modules/@types/bar2/index.d.ts', but this result could not be resolved when respecting package.json \"exports\". The '@types/bar2' library may need to update its package.json or typings.", + "code": 7016, + "category": "error" + } + ] + } } After running Immedidate callback:: count: 1 14: suggestionCheck @@ -2204,23 +2204,23 @@ Info seq [hh:mm:ss:mss] Projects: /home/src/projects/project/tsconfig.json Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for /home/src/projects/project/index.mts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 9 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 9 + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/home/src/projects/project/index.mts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/home/src/projects/project/index.mts" + ] + } } After running Timeout callback:: count: 1 30: checkOne @@ -2341,13 +2341,13 @@ Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/home/src/projects/project/index.mts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/home/src/projects/project/index.mts", + "diagnostics": [] + } } After running Timeout callback:: count: 1 32: *ensureProjectForOpenFiles* @@ -2357,40 +2357,40 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/home/src/projects/project/index.mts", - "diagnostics": [ - { - "start": { - "line": 3, - "offset": 22 - }, - "end": { - "line": 3, - "offset": 28 - }, - "text": "Could not find a declaration file for module 'foo2'. '/home/src/projects/project/node_modules/foo2/index.mjs' implicitly has an 'any' type.\n There are types at '/home/src/projects/project/node_modules/foo2/index.d.ts', but this result could not be resolved when respecting package.json \"exports\". The 'foo2' library may need to update its package.json or typings.", - "code": 7016, - "category": "error" - }, - { - "start": { - "line": 4, - "offset": 22 - }, - "end": { - "line": 4, - "offset": 28 - }, - "text": "Could not find a declaration file for module 'bar2'. '/home/src/projects/project/node_modules/bar2/index.mjs' implicitly has an 'any' type.\n There are types at '/home/src/projects/project/node_modules/@types/bar2/index.d.ts', but this result could not be resolved when respecting package.json \"exports\". The '@types/bar2' library may need to update its package.json or typings.", - "code": 7016, - "category": "error" - } - ] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/home/src/projects/project/index.mts", + "diagnostics": [ + { + "start": { + "line": 3, + "offset": 22 + }, + "end": { + "line": 3, + "offset": 28 + }, + "text": "Could not find a declaration file for module 'foo2'. '/home/src/projects/project/node_modules/foo2/index.mjs' implicitly has an 'any' type.\n There are types at '/home/src/projects/project/node_modules/foo2/index.d.ts', but this result could not be resolved when respecting package.json \"exports\". The 'foo2' library may need to update its package.json or typings.", + "code": 7016, + "category": "error" + }, + { + "start": { + "line": 4, + "offset": 22 + }, + "end": { + "line": 4, + "offset": 28 + }, + "text": "Could not find a declaration file for module 'bar2'. '/home/src/projects/project/node_modules/bar2/index.mjs' implicitly has an 'any' type.\n There are types at '/home/src/projects/project/node_modules/@types/bar2/index.d.ts', but this result could not be resolved when respecting package.json \"exports\". The '@types/bar2' library may need to update its package.json or typings.", + "code": 7016, + "category": "error" + } + ] + } } After running Immedidate callback:: count: 1 16: suggestionCheck @@ -2439,23 +2439,23 @@ Info seq [hh:mm:ss:mss] Projects: /home/src/projects/project/tsconfig.json Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for /home/src/projects/project/index.mts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 10 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 10 + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/home/src/projects/project/index.mts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/home/src/projects/project/index.mts" + ] + } } After running Timeout callback:: count: 1 34: checkOne @@ -2584,13 +2584,13 @@ Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/home/src/projects/project/index.mts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/home/src/projects/project/index.mts", + "diagnostics": [] + } } After running Timeout callback:: count: 1 36: *ensureProjectForOpenFiles* @@ -2600,40 +2600,40 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/home/src/projects/project/index.mts", - "diagnostics": [ - { - "start": { - "line": 3, - "offset": 22 - }, - "end": { - "line": 3, - "offset": 28 - }, - "text": "Could not find a declaration file for module 'foo2'. '/home/src/projects/project/node_modules/foo2/index.mjs' implicitly has an 'any' type.\n There are types at '/home/src/projects/project/node_modules/foo2/index.d.ts', but this result could not be resolved when respecting package.json \"exports\". The 'foo2' library may need to update its package.json or typings.", - "code": 7016, - "category": "error" - }, - { - "start": { - "line": 4, - "offset": 22 - }, - "end": { - "line": 4, - "offset": 28 - }, - "text": "Could not find a declaration file for module 'bar2'. '/home/src/projects/project/node_modules/bar2/index.mjs' implicitly has an 'any' type.\n Try `npm i --save-dev @types/bar2` if it exists or add a new declaration (.d.ts) file containing `declare module 'bar2';`", - "code": 7016, - "category": "error" - } - ] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/home/src/projects/project/index.mts", + "diagnostics": [ + { + "start": { + "line": 3, + "offset": 22 + }, + "end": { + "line": 3, + "offset": 28 + }, + "text": "Could not find a declaration file for module 'foo2'. '/home/src/projects/project/node_modules/foo2/index.mjs' implicitly has an 'any' type.\n There are types at '/home/src/projects/project/node_modules/foo2/index.d.ts', but this result could not be resolved when respecting package.json \"exports\". The 'foo2' library may need to update its package.json or typings.", + "code": 7016, + "category": "error" + }, + { + "start": { + "line": 4, + "offset": 22 + }, + "end": { + "line": 4, + "offset": 28 + }, + "text": "Could not find a declaration file for module 'bar2'. '/home/src/projects/project/node_modules/bar2/index.mjs' implicitly has an 'any' type.\n Try `npm i --save-dev @types/bar2` if it exists or add a new declaration (.d.ts) file containing `declare module 'bar2';`", + "code": 7016, + "category": "error" + } + ] + } } After running Immedidate callback:: count: 1 18: suggestionCheck @@ -2682,23 +2682,23 @@ Info seq [hh:mm:ss:mss] Projects: /home/src/projects/project/tsconfig.json Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for /home/src/projects/project/index.mts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 11 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 11 + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/home/src/projects/project/index.mts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/home/src/projects/project/index.mts" + ] + } } After running Timeout callback:: count: 1 38: checkOne @@ -2808,13 +2808,13 @@ Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/home/src/projects/project/index.mts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/home/src/projects/project/index.mts", + "diagnostics": [] + } } After running Timeout callback:: count: 1 40: *ensureProjectForOpenFiles* @@ -2824,40 +2824,40 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/home/src/projects/project/index.mts", - "diagnostics": [ - { - "start": { - "line": 3, - "offset": 22 - }, - "end": { - "line": 3, - "offset": 28 - }, - "text": "Could not find a declaration file for module 'foo2'. '/home/src/projects/project/node_modules/foo2/index.mjs' implicitly has an 'any' type.\n Try `npm i --save-dev @types/foo2` if it exists or add a new declaration (.d.ts) file containing `declare module 'foo2';`", - "code": 7016, - "category": "error" - }, - { - "start": { - "line": 4, - "offset": 22 - }, - "end": { - "line": 4, - "offset": 28 - }, - "text": "Could not find a declaration file for module 'bar2'. '/home/src/projects/project/node_modules/bar2/index.mjs' implicitly has an 'any' type.\n Try `npm i --save-dev @types/bar2` if it exists or add a new declaration (.d.ts) file containing `declare module 'bar2';`", - "code": 7016, - "category": "error" - } - ] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/home/src/projects/project/index.mts", + "diagnostics": [ + { + "start": { + "line": 3, + "offset": 22 + }, + "end": { + "line": 3, + "offset": 28 + }, + "text": "Could not find a declaration file for module 'foo2'. '/home/src/projects/project/node_modules/foo2/index.mjs' implicitly has an 'any' type.\n Try `npm i --save-dev @types/foo2` if it exists or add a new declaration (.d.ts) file containing `declare module 'foo2';`", + "code": 7016, + "category": "error" + }, + { + "start": { + "line": 4, + "offset": 22 + }, + "end": { + "line": 4, + "offset": 28 + }, + "text": "Could not find a declaration file for module 'bar2'. '/home/src/projects/project/node_modules/bar2/index.mjs' implicitly has an 'any' type.\n Try `npm i --save-dev @types/bar2` if it exists or add a new declaration (.d.ts) file containing `declare module 'bar2';`", + "code": 7016, + "category": "error" + } + ] + } } After running Immedidate callback:: count: 1 20: suggestionCheck @@ -2906,23 +2906,23 @@ Info seq [hh:mm:ss:mss] Projects: /home/src/projects/project/tsconfig.json Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for /home/src/projects/project/index.mts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 12 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 12 + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/home/src/projects/project/index.mts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/home/src/projects/project/index.mts" + ] + } } After running Timeout callback:: count: 1 42: checkOne @@ -3040,13 +3040,13 @@ Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/home/src/projects/project/index.mts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/home/src/projects/project/index.mts", + "diagnostics": [] + } } After running Timeout callback:: count: 1 44: *ensureProjectForOpenFiles* @@ -3056,40 +3056,40 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/home/src/projects/project/index.mts", - "diagnostics": [ - { - "start": { - "line": 3, - "offset": 22 - }, - "end": { - "line": 3, - "offset": 28 - }, - "text": "Could not find a declaration file for module 'foo2'. '/home/src/projects/project/node_modules/foo2/index.mjs' implicitly has an 'any' type.\n Try `npm i --save-dev @types/foo2` if it exists or add a new declaration (.d.ts) file containing `declare module 'foo2';`", - "code": 7016, - "category": "error" - }, - { - "start": { - "line": 4, - "offset": 22 - }, - "end": { - "line": 4, - "offset": 28 - }, - "text": "Could not find a declaration file for module 'bar2'. '/home/src/projects/project/node_modules/bar2/index.mjs' implicitly has an 'any' type.\n There are types at '/home/src/projects/project/node_modules/@types/bar2/index.d.ts', but this result could not be resolved when respecting package.json \"exports\". The '@types/bar2' library may need to update its package.json or typings.", - "code": 7016, - "category": "error" - } - ] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/home/src/projects/project/index.mts", + "diagnostics": [ + { + "start": { + "line": 3, + "offset": 22 + }, + "end": { + "line": 3, + "offset": 28 + }, + "text": "Could not find a declaration file for module 'foo2'. '/home/src/projects/project/node_modules/foo2/index.mjs' implicitly has an 'any' type.\n Try `npm i --save-dev @types/foo2` if it exists or add a new declaration (.d.ts) file containing `declare module 'foo2';`", + "code": 7016, + "category": "error" + }, + { + "start": { + "line": 4, + "offset": 22 + }, + "end": { + "line": 4, + "offset": 28 + }, + "text": "Could not find a declaration file for module 'bar2'. '/home/src/projects/project/node_modules/bar2/index.mjs' implicitly has an 'any' type.\n There are types at '/home/src/projects/project/node_modules/@types/bar2/index.d.ts', but this result could not be resolved when respecting package.json \"exports\". The '@types/bar2' library may need to update its package.json or typings.", + "code": 7016, + "category": "error" + } + ] + } } After running Immedidate callback:: count: 1 22: suggestionCheck @@ -3138,23 +3138,23 @@ Info seq [hh:mm:ss:mss] Projects: /home/src/projects/project/tsconfig.json Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for /home/src/projects/project/index.mts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 13 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 13 + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/home/src/projects/project/index.mts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/home/src/projects/project/index.mts" + ] + } } After running Timeout callback:: count: 1 46: checkOne @@ -3253,13 +3253,13 @@ Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/home/src/projects/project/index.mts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/home/src/projects/project/index.mts", + "diagnostics": [] + } } After running Timeout callback:: count: 1 48: *ensureProjectForOpenFiles* @@ -3269,40 +3269,40 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/home/src/projects/project/index.mts", - "diagnostics": [ - { - "start": { - "line": 3, - "offset": 22 - }, - "end": { - "line": 3, - "offset": 28 - }, - "text": "Could not find a declaration file for module 'foo2'. '/home/src/projects/project/node_modules/foo2/index.mjs' implicitly has an 'any' type.\n There are types at '/home/src/projects/project/node_modules/foo2/index.d.ts', but this result could not be resolved when respecting package.json \"exports\". The 'foo2' library may need to update its package.json or typings.", - "code": 7016, - "category": "error" - }, - { - "start": { - "line": 4, - "offset": 22 - }, - "end": { - "line": 4, - "offset": 28 - }, - "text": "Could not find a declaration file for module 'bar2'. '/home/src/projects/project/node_modules/bar2/index.mjs' implicitly has an 'any' type.\n There are types at '/home/src/projects/project/node_modules/@types/bar2/index.d.ts', but this result could not be resolved when respecting package.json \"exports\". The '@types/bar2' library may need to update its package.json or typings.", - "code": 7016, - "category": "error" - } - ] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/home/src/projects/project/index.mts", + "diagnostics": [ + { + "start": { + "line": 3, + "offset": 22 + }, + "end": { + "line": 3, + "offset": 28 + }, + "text": "Could not find a declaration file for module 'foo2'. '/home/src/projects/project/node_modules/foo2/index.mjs' implicitly has an 'any' type.\n There are types at '/home/src/projects/project/node_modules/foo2/index.d.ts', but this result could not be resolved when respecting package.json \"exports\". The 'foo2' library may need to update its package.json or typings.", + "code": 7016, + "category": "error" + }, + { + "start": { + "line": 4, + "offset": 22 + }, + "end": { + "line": 4, + "offset": 28 + }, + "text": "Could not find a declaration file for module 'bar2'. '/home/src/projects/project/node_modules/bar2/index.mjs' implicitly has an 'any' type.\n There are types at '/home/src/projects/project/node_modules/@types/bar2/index.d.ts', but this result could not be resolved when respecting package.json \"exports\". The '@types/bar2' library may need to update its package.json or typings.", + "code": 7016, + "category": "error" + } + ] + } } After running Immedidate callback:: count: 1 24: suggestionCheck @@ -3351,23 +3351,23 @@ Info seq [hh:mm:ss:mss] Projects: /home/src/projects/project/tsconfig.json Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for /home/src/projects/project/index.mts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 14 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 14 + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/home/src/projects/project/index.mts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/home/src/projects/project/index.mts" + ] + } } After running Timeout callback:: count: 1 50: checkOne diff --git a/tests/baselines/reference/tsserver/moduleResolution/package-json-file-is-edited-when-package-json-with-type-module-exists.js b/tests/baselines/reference/tsserver/moduleResolution/package-json-file-is-edited-when-package-json-with-type-module-exists.js index e5daa9d3bc421..87ba4ca82000b 100644 --- a/tests/baselines/reference/tsserver/moduleResolution/package-json-file-is-edited-when-package-json-with-type-module-exists.js +++ b/tests/baselines/reference/tsserver/moduleResolution/package-json-file-is-edited-when-package-json-with-type-module-exists.js @@ -46,13 +46,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/src/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/src/tsconfig.json", - "reason": "Creating possible configured project for /user/username/projects/myproject/src/fileA.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/src/tsconfig.json", + "reason": "Creating possible configured project for /user/username/projects/myproject/src/fileA.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/src/tsconfig.json : { "rootNames": [ @@ -113,69 +113,69 @@ Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 250 undefined WatchType: package.json file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/src/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/src/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "f026568af42c61ce0537de8ee0fa07c9359a76dcfb046248ed49dc76c91e4a37", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 2, - "tsSize": 68, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": { - "target": "es2016", - "module": "node16", - "outDir": "", - "traceResolution": true - }, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "f026568af42c61ce0537de8ee0fa07c9359a76dcfb046248ed49dc76c91e4a37", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 2, + "tsSize": 68, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "target": "es2016", + "module": "node16", + "outDir": "", + "traceResolution": true + }, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/myproject/src/fileA.ts", - "configFile": "/user/username/projects/myproject/src/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/myproject/src/fileA.ts", + "configFile": "/user/username/projects/myproject/src/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Project '/user/username/projects/myproject/src/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (3) @@ -284,14 +284,14 @@ Info seq [hh:mm:ss:mss] Projects: /user/username/projects/myproject/src/tscon Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for /user/username/projects/myproject/src/fileA.ts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/user/username/projects/myproject/src/fileA.ts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/user/username/projects/myproject/src/fileA.ts" + ] + } } After running Timeout callback:: count: 1 4: checkOne @@ -321,13 +321,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/src/fileA.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/src/fileA.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -336,27 +336,27 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/src/fileA.ts", - "diagnostics": [ - { - "start": { - "line": 1, - "offset": 21 - }, - "end": { - "line": 1, - "offset": 34 - }, - "text": "The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import(\"./fileB.mjs\")' call instead.\n To convert this file to an ECMAScript module, change its file extension to '.mts', or add the field `\"type\": \"module\"` to '/user/username/projects/myproject/package.json'.", - "code": 1479, - "category": "error" - } - ] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/src/fileA.ts", + "diagnostics": [ + { + "start": { + "line": 1, + "offset": 21 + }, + "end": { + "line": 1, + "offset": 34 + }, + "text": "The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import(\"./fileB.mjs\")' call instead.\n To convert this file to an ECMAScript module, change its file extension to '.mts', or add the field `\"type\": \"module\"` to '/user/username/projects/myproject/package.json'.", + "code": 1479, + "category": "error" + } + ] + } } After running Immedidate callback:: count: 1 2: suggestionCheck @@ -366,22 +366,22 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/src/fileA.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/src/fileA.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 2 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 2 + } } After running Immedidate callback:: count: 0 @@ -455,14 +455,14 @@ Info seq [hh:mm:ss:mss] Projects: /user/username/projects/myproject/src/tscon Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for /user/username/projects/myproject/src/fileA.ts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/user/username/projects/myproject/src/fileA.ts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/user/username/projects/myproject/src/fileA.ts" + ] + } } After running Timeout callback:: count: 1 9: checkOne @@ -492,13 +492,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/src/fileA.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/src/fileA.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -507,13 +507,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/src/fileA.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/src/fileA.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 1 4: suggestionCheck @@ -523,22 +523,22 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/src/fileA.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/src/fileA.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 3 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 3 + } } After running Immedidate callback:: count: 0 @@ -620,14 +620,14 @@ Info seq [hh:mm:ss:mss] Projects: /user/username/projects/myproject/src/tscon Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for /user/username/projects/myproject/src/fileA.ts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/user/username/projects/myproject/src/fileA.ts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/user/username/projects/myproject/src/fileA.ts" + ] + } } After running Timeout callback:: count: 1 14: checkOne @@ -683,13 +683,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/src/fileA.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/src/fileA.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -698,27 +698,27 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/src/fileA.ts", - "diagnostics": [ - { - "start": { - "line": 1, - "offset": 21 - }, - "end": { - "line": 1, - "offset": 34 - }, - "text": "The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import(\"./fileB.mjs\")' call instead.\n To convert this file to an ECMAScript module, change its file extension to '.mts' or create a local package.json file with `{ \"type\": \"module\" }`.", - "code": 1479, - "category": "error" - } - ] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/src/fileA.ts", + "diagnostics": [ + { + "start": { + "line": 1, + "offset": 21 + }, + "end": { + "line": 1, + "offset": 34 + }, + "text": "The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import(\"./fileB.mjs\")' call instead.\n To convert this file to an ECMAScript module, change its file extension to '.mts' or create a local package.json file with `{ \"type\": \"module\" }`.", + "code": 1479, + "category": "error" + } + ] + } } After running Immedidate callback:: count: 1 6: suggestionCheck @@ -728,22 +728,22 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/src/fileA.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/src/fileA.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 4 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 4 + } } After running Immedidate callback:: count: 0 @@ -810,14 +810,14 @@ Info seq [hh:mm:ss:mss] Projects: /user/username/projects/myproject/src/tscon Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for /user/username/projects/myproject/src/fileA.ts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/user/username/projects/myproject/src/fileA.ts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/user/username/projects/myproject/src/fileA.ts" + ] + } } After running Timeout callback:: count: 1 19: checkOne @@ -875,13 +875,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/src/fileA.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/src/fileA.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -890,27 +890,27 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/src/fileA.ts", - "diagnostics": [ - { - "start": { - "line": 1, - "offset": 21 - }, - "end": { - "line": 1, - "offset": 34 - }, - "text": "The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import(\"./fileB.mjs\")' call instead.\n To convert this file to an ECMAScript module, change its file extension to '.mts', or add the field `\"type\": \"module\"` to '/user/username/projects/myproject/package.json'.", - "code": 1479, - "category": "error" - } - ] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/src/fileA.ts", + "diagnostics": [ + { + "start": { + "line": 1, + "offset": 21 + }, + "end": { + "line": 1, + "offset": 34 + }, + "text": "The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import(\"./fileB.mjs\")' call instead.\n To convert this file to an ECMAScript module, change its file extension to '.mts', or add the field `\"type\": \"module\"` to '/user/username/projects/myproject/package.json'.", + "code": 1479, + "category": "error" + } + ] + } } After running Immedidate callback:: count: 1 8: suggestionCheck @@ -920,22 +920,22 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/src/fileA.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/src/fileA.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 5 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 5 + } } After running Immedidate callback:: count: 0 @@ -1008,14 +1008,14 @@ Info seq [hh:mm:ss:mss] Projects: /user/username/projects/myproject/src/tscon Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for /user/username/projects/myproject/src/fileA.ts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/user/username/projects/myproject/src/fileA.ts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/user/username/projects/myproject/src/fileA.ts" + ] + } } After running Timeout callback:: count: 1 24: checkOne @@ -1071,13 +1071,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/src/fileA.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/src/fileA.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -1086,27 +1086,27 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/src/fileA.ts", - "diagnostics": [ - { - "start": { - "line": 1, - "offset": 21 - }, - "end": { - "line": 1, - "offset": 34 - }, - "text": "The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import(\"./fileB.mjs\")' call instead.\n To convert this file to an ECMAScript module, change its file extension to '.mts' or create a local package.json file with `{ \"type\": \"module\" }`.", - "code": 1479, - "category": "error" - } - ] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/src/fileA.ts", + "diagnostics": [ + { + "start": { + "line": 1, + "offset": 21 + }, + "end": { + "line": 1, + "offset": 34 + }, + "text": "The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import(\"./fileB.mjs\")' call instead.\n To convert this file to an ECMAScript module, change its file extension to '.mts' or create a local package.json file with `{ \"type\": \"module\" }`.", + "code": 1479, + "category": "error" + } + ] + } } After running Immedidate callback:: count: 1 10: suggestionCheck @@ -1116,21 +1116,21 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/src/fileA.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/src/fileA.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 6 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 6 + } } After running Immedidate callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/moduleResolution/package-json-file-is-edited.js b/tests/baselines/reference/tsserver/moduleResolution/package-json-file-is-edited.js index 6705d7ae7bbef..95d5ebf94d4c7 100644 --- a/tests/baselines/reference/tsserver/moduleResolution/package-json-file-is-edited.js +++ b/tests/baselines/reference/tsserver/moduleResolution/package-json-file-is-edited.js @@ -46,13 +46,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/src/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/src/tsconfig.json", - "reason": "Creating possible configured project for /user/username/projects/myproject/src/fileA.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/src/tsconfig.json", + "reason": "Creating possible configured project for /user/username/projects/myproject/src/fileA.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/src/tsconfig.json : { "rootNames": [ @@ -113,69 +113,69 @@ Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/package.json 250 undefined WatchType: package.json file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/src/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/src/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "f026568af42c61ce0537de8ee0fa07c9359a76dcfb046248ed49dc76c91e4a37", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 2, - "tsSize": 68, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": { - "target": "es2016", - "module": "node16", - "outDir": "", - "traceResolution": true - }, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "f026568af42c61ce0537de8ee0fa07c9359a76dcfb046248ed49dc76c91e4a37", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 2, + "tsSize": 68, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "target": "es2016", + "module": "node16", + "outDir": "", + "traceResolution": true + }, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/myproject/src/fileA.ts", - "configFile": "/user/username/projects/myproject/src/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/myproject/src/fileA.ts", + "configFile": "/user/username/projects/myproject/src/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Project '/user/username/projects/myproject/src/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (3) @@ -284,14 +284,14 @@ Info seq [hh:mm:ss:mss] Projects: /user/username/projects/myproject/src/tscon Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for /user/username/projects/myproject/src/fileA.ts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/user/username/projects/myproject/src/fileA.ts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/user/username/projects/myproject/src/fileA.ts" + ] + } } After running Timeout callback:: count: 1 4: checkOne @@ -321,13 +321,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/src/fileA.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/src/fileA.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -336,13 +336,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/src/fileA.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/src/fileA.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 1 2: suggestionCheck @@ -352,22 +352,22 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/src/fileA.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/src/fileA.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 2 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 2 + } } After running Immedidate callback:: count: 0 @@ -441,14 +441,14 @@ Info seq [hh:mm:ss:mss] Projects: /user/username/projects/myproject/src/tscon Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for /user/username/projects/myproject/src/fileA.ts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/user/username/projects/myproject/src/fileA.ts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/user/username/projects/myproject/src/fileA.ts" + ] + } } After running Timeout callback:: count: 1 9: checkOne @@ -478,13 +478,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/src/fileA.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/src/fileA.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -493,27 +493,27 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/src/fileA.ts", - "diagnostics": [ - { - "start": { - "line": 1, - "offset": 21 - }, - "end": { - "line": 1, - "offset": 34 - }, - "text": "The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import(\"./fileB.mjs\")' call instead.\n To convert this file to an ECMAScript module, change its file extension to '.mts', or add the field `\"type\": \"module\"` to '/user/username/projects/myproject/package.json'.", - "code": 1479, - "category": "error" - } - ] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/src/fileA.ts", + "diagnostics": [ + { + "start": { + "line": 1, + "offset": 21 + }, + "end": { + "line": 1, + "offset": 34 + }, + "text": "The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import(\"./fileB.mjs\")' call instead.\n To convert this file to an ECMAScript module, change its file extension to '.mts', or add the field `\"type\": \"module\"` to '/user/username/projects/myproject/package.json'.", + "code": 1479, + "category": "error" + } + ] + } } After running Immedidate callback:: count: 1 4: suggestionCheck @@ -523,22 +523,22 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/src/fileA.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/src/fileA.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 3 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 3 + } } After running Immedidate callback:: count: 0 @@ -614,14 +614,14 @@ Info seq [hh:mm:ss:mss] Projects: /user/username/projects/myproject/src/tscon Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for /user/username/projects/myproject/src/fileA.ts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/user/username/projects/myproject/src/fileA.ts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/user/username/projects/myproject/src/fileA.ts" + ] + } } After running Timeout callback:: count: 1 14: checkOne @@ -677,13 +677,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/src/fileA.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/src/fileA.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -692,27 +692,27 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/src/fileA.ts", - "diagnostics": [ - { - "start": { - "line": 1, - "offset": 21 - }, - "end": { - "line": 1, - "offset": 34 - }, - "text": "The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import(\"./fileB.mjs\")' call instead.\n To convert this file to an ECMAScript module, change its file extension to '.mts' or create a local package.json file with `{ \"type\": \"module\" }`.", - "code": 1479, - "category": "error" - } - ] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/src/fileA.ts", + "diagnostics": [ + { + "start": { + "line": 1, + "offset": 21 + }, + "end": { + "line": 1, + "offset": 34 + }, + "text": "The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import(\"./fileB.mjs\")' call instead.\n To convert this file to an ECMAScript module, change its file extension to '.mts' or create a local package.json file with `{ \"type\": \"module\" }`.", + "code": 1479, + "category": "error" + } + ] + } } After running Immedidate callback:: count: 1 6: suggestionCheck @@ -722,22 +722,22 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/src/fileA.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/src/fileA.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 4 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 4 + } } After running Immedidate callback:: count: 0 @@ -810,14 +810,14 @@ Info seq [hh:mm:ss:mss] Projects: /user/username/projects/myproject/src/tscon Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for /user/username/projects/myproject/src/fileA.ts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/user/username/projects/myproject/src/fileA.ts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/user/username/projects/myproject/src/fileA.ts" + ] + } } After running Timeout callback:: count: 1 19: checkOne @@ -875,13 +875,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/src/fileA.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/src/fileA.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -890,13 +890,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/src/fileA.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/src/fileA.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 1 8: suggestionCheck @@ -906,22 +906,22 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/src/fileA.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/src/fileA.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 5 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 5 + } } After running Immedidate callback:: count: 0 @@ -1000,14 +1000,14 @@ Info seq [hh:mm:ss:mss] Projects: /user/username/projects/myproject/src/tscon Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for /user/username/projects/myproject/src/fileA.ts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/user/username/projects/myproject/src/fileA.ts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/user/username/projects/myproject/src/fileA.ts" + ] + } } After running Timeout callback:: count: 1 24: checkOne @@ -1063,13 +1063,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/src/fileA.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/src/fileA.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -1078,27 +1078,27 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/src/fileA.ts", - "diagnostics": [ - { - "start": { - "line": 1, - "offset": 21 - }, - "end": { - "line": 1, - "offset": 34 - }, - "text": "The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import(\"./fileB.mjs\")' call instead.\n To convert this file to an ECMAScript module, change its file extension to '.mts' or create a local package.json file with `{ \"type\": \"module\" }`.", - "code": 1479, - "category": "error" - } - ] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/src/fileA.ts", + "diagnostics": [ + { + "start": { + "line": 1, + "offset": 21 + }, + "end": { + "line": 1, + "offset": 34 + }, + "text": "The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import(\"./fileB.mjs\")' call instead.\n To convert this file to an ECMAScript module, change its file extension to '.mts' or create a local package.json file with `{ \"type\": \"module\" }`.", + "code": 1479, + "category": "error" + } + ] + } } After running Immedidate callback:: count: 1 10: suggestionCheck @@ -1108,21 +1108,21 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/src/fileA.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/src/fileA.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 6 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 6 + } } After running Immedidate callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/moduleResolution/using-referenced-project-built.js b/tests/baselines/reference/tsserver/moduleResolution/using-referenced-project-built.js index 58888bd75d444..20e6cc559d6a2 100644 --- a/tests/baselines/reference/tsserver/moduleResolution/using-referenced-project-built.js +++ b/tests/baselines/reference/tsserver/moduleResolution/using-referenced-project-built.js @@ -291,13 +291,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /home/src/projects/proje Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/projects/project/packages/package-b/tsconfig.json 2000 undefined Project: /home/src/projects/project/packages/package-b/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/home/src/projects/project/packages/package-b/tsconfig.json", - "reason": "Creating possible configured project for /home/src/projects/project/packages/package-b/src/index.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/home/src/projects/project/packages/package-b/tsconfig.json", + "reason": "Creating possible configured project for /home/src/projects/project/packages/package-b/src/index.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /home/src/projects/project/packages/package-b/tsconfig.json : { "rootNames": [ @@ -476,80 +476,80 @@ Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/projects/project/packages/package-b/package.json 250 undefined WatchType: package.json file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/home/src/projects/project/packages/package-b/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/home/src/projects/project/packages/package-b/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "31d6ef54b3d69660fe2a0a8a081a9ece9327825701681ae8fea02692e5414063", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 3, - "tsSize": 104, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 413, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": { - "allowSyntheticDefaultImports": true, - "baseUrl": "", - "composite": true, - "declarationMap": true, - "esModuleInterop": true, - "lib": [ - "es2021" - ], - "module": "esnext", - "moduleResolution": "bundler", - "outDir": "", - "rootDir": "", - "target": "es2021", - "traceResolution": true, - "tsBuildInfoFile": "" - }, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": true, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "31d6ef54b3d69660fe2a0a8a081a9ece9327825701681ae8fea02692e5414063", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 3, + "tsSize": 104, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 413, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "allowSyntheticDefaultImports": true, + "baseUrl": "", + "composite": true, + "declarationMap": true, + "esModuleInterop": true, + "lib": [ + "es2021" + ], + "module": "esnext", + "moduleResolution": "bundler", + "outDir": "", + "rootDir": "", + "target": "es2021", + "traceResolution": true, + "tsBuildInfoFile": "" + }, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": true, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/home/src/projects/project/packages/package-b/src/index.ts", - "configFile": "/home/src/projects/project/packages/package-b/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/home/src/projects/project/packages/package-b/src/index.ts", + "configFile": "/home/src/projects/project/packages/package-b/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Search path: /home/src/projects/project/packages/package-b Info seq [hh:mm:ss:mss] For info: /home/src/projects/project/packages/package-b/tsconfig.json :: No config files found. @@ -637,13 +637,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/home/src/projects/project/packages/package-b/src/index.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/home/src/projects/project/packages/package-b/src/index.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -652,13 +652,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/home/src/projects/project/packages/package-b/src/index.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/home/src/projects/project/packages/package-b/src/index.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 1 2: suggestionCheck @@ -668,22 +668,22 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/home/src/projects/project/packages/package-b/src/index.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/home/src/projects/project/packages/package-b/src/index.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 2 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 2 + } } After running Immedidate callback:: count: 0 @@ -807,13 +807,13 @@ Info seq [hh:mm:ss:mss] Files (2) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/home/src/projects/project/packages/package-b/src/index.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/home/src/projects/project/packages/package-b/src/index.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -876,27 +876,27 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/home/src/projects/project/packages/package-b/src/index.ts", - "diagnostics": [ - { - "start": { - "line": 1, - "offset": 21 - }, - "end": { - "line": 1, - "offset": 33 - }, - "text": "Cannot find module 'package-aX' or its corresponding type declarations.", - "code": 2307, - "category": "error" - } - ] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/home/src/projects/project/packages/package-b/src/index.ts", + "diagnostics": [ + { + "start": { + "line": 1, + "offset": 21 + }, + "end": { + "line": 1, + "offset": 33 + }, + "text": "Cannot find module 'package-aX' or its corresponding type declarations.", + "code": 2307, + "category": "error" + } + ] + } } After running Immedidate callback:: count: 1 4: suggestionCheck @@ -906,22 +906,22 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/home/src/projects/project/packages/package-b/src/index.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/home/src/projects/project/packages/package-b/src/index.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 4 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 4 + } } After running Immedidate callback:: count: 0 @@ -1053,13 +1053,13 @@ Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/home/src/projects/project/packages/package-b/src/index.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/home/src/projects/project/packages/package-b/src/index.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -1118,13 +1118,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/home/src/projects/project/packages/package-b/src/index.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/home/src/projects/project/packages/package-b/src/index.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 1 6: suggestionCheck @@ -1134,21 +1134,21 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/home/src/projects/project/packages/package-b/src/index.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/home/src/projects/project/packages/package-b/src/index.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 6 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 6 + } } After running Immedidate callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/moduleResolution/using-referenced-project.js b/tests/baselines/reference/tsserver/moduleResolution/using-referenced-project.js index d74e51330643d..1518a6659d019 100644 --- a/tests/baselines/reference/tsserver/moduleResolution/using-referenced-project.js +++ b/tests/baselines/reference/tsserver/moduleResolution/using-referenced-project.js @@ -83,13 +83,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /home/src/projects/proje Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/projects/project/packages/package-b/tsconfig.json 2000 undefined Project: /home/src/projects/project/packages/package-b/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/home/src/projects/project/packages/package-b/tsconfig.json", - "reason": "Creating possible configured project for /home/src/projects/project/packages/package-b/src/index.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/home/src/projects/project/packages/package-b/tsconfig.json", + "reason": "Creating possible configured project for /home/src/projects/project/packages/package-b/src/index.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /home/src/projects/project/packages/package-b/tsconfig.json : { "rootNames": [ @@ -268,80 +268,80 @@ Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/projects/project/packages/package-b/package.json 250 undefined WatchType: package.json file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/home/src/projects/project/packages/package-b/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/home/src/projects/project/packages/package-b/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "31d6ef54b3d69660fe2a0a8a081a9ece9327825701681ae8fea02692e5414063", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 3, - "tsSize": 104, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 413, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": { - "allowSyntheticDefaultImports": true, - "baseUrl": "", - "composite": true, - "declarationMap": true, - "esModuleInterop": true, - "lib": [ - "es2021" - ], - "module": "esnext", - "moduleResolution": "bundler", - "outDir": "", - "rootDir": "", - "target": "es2021", - "traceResolution": true, - "tsBuildInfoFile": "" - }, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": true, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "31d6ef54b3d69660fe2a0a8a081a9ece9327825701681ae8fea02692e5414063", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 3, + "tsSize": 104, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 413, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "allowSyntheticDefaultImports": true, + "baseUrl": "", + "composite": true, + "declarationMap": true, + "esModuleInterop": true, + "lib": [ + "es2021" + ], + "module": "esnext", + "moduleResolution": "bundler", + "outDir": "", + "rootDir": "", + "target": "es2021", + "traceResolution": true, + "tsBuildInfoFile": "" + }, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": true, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/home/src/projects/project/packages/package-b/src/index.ts", - "configFile": "/home/src/projects/project/packages/package-b/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/home/src/projects/project/packages/package-b/src/index.ts", + "configFile": "/home/src/projects/project/packages/package-b/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Search path: /home/src/projects/project/packages/package-b Info seq [hh:mm:ss:mss] For info: /home/src/projects/project/packages/package-b/tsconfig.json :: No config files found. @@ -429,13 +429,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/home/src/projects/project/packages/package-b/src/index.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/home/src/projects/project/packages/package-b/src/index.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -444,13 +444,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/home/src/projects/project/packages/package-b/src/index.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/home/src/projects/project/packages/package-b/src/index.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 1 2: suggestionCheck @@ -460,22 +460,22 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/home/src/projects/project/packages/package-b/src/index.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/home/src/projects/project/packages/package-b/src/index.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 2 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 2 + } } After running Immedidate callback:: count: 0 @@ -599,13 +599,13 @@ Info seq [hh:mm:ss:mss] Files (2) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/home/src/projects/project/packages/package-b/src/index.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/home/src/projects/project/packages/package-b/src/index.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -668,27 +668,27 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/home/src/projects/project/packages/package-b/src/index.ts", - "diagnostics": [ - { - "start": { - "line": 1, - "offset": 21 - }, - "end": { - "line": 1, - "offset": 33 - }, - "text": "Cannot find module 'package-aX' or its corresponding type declarations.", - "code": 2307, - "category": "error" - } - ] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/home/src/projects/project/packages/package-b/src/index.ts", + "diagnostics": [ + { + "start": { + "line": 1, + "offset": 21 + }, + "end": { + "line": 1, + "offset": 33 + }, + "text": "Cannot find module 'package-aX' or its corresponding type declarations.", + "code": 2307, + "category": "error" + } + ] + } } After running Immedidate callback:: count: 1 4: suggestionCheck @@ -698,22 +698,22 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/home/src/projects/project/packages/package-b/src/index.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/home/src/projects/project/packages/package-b/src/index.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 4 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 4 + } } After running Immedidate callback:: count: 0 @@ -845,13 +845,13 @@ Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/home/src/projects/project/packages/package-b/src/index.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/home/src/projects/project/packages/package-b/src/index.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -910,13 +910,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/home/src/projects/project/packages/package-b/src/index.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/home/src/projects/project/packages/package-b/src/index.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 1 6: suggestionCheck @@ -926,21 +926,21 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/home/src/projects/project/packages/package-b/src/index.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/home/src/projects/project/packages/package-b/src/index.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 6 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 6 + } } After running Immedidate callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/moduleSpecifierCache/caches-importability-within-a-file.js b/tests/baselines/reference/tsserver/moduleSpecifierCache/caches-importability-within-a-file.js index 593908078ee7a..9564f346114cf 100644 --- a/tests/baselines/reference/tsserver/moduleSpecifierCache/caches-importability-within-a-file.js +++ b/tests/baselines/reference/tsserver/moduleSpecifierCache/caches-importability-within-a-file.js @@ -274,15 +274,15 @@ Info seq [hh:mm:ss:mss] request: } Info seq [hh:mm:ss:mss] response: { - "seq": 0, - "type": "response", - "command": "configure", - "request_seq": 4, - "success": true, - "performanceData": { - "updateGraphDurationMs": *, - "createAutoImportProviderProgramDurationMs": * - } + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 4, + "success": true, + "performanceData": { + "updateGraphDurationMs": *, + "createAutoImportProviderProgramDurationMs": * + } } Info seq [hh:mm:ss:mss] response: { diff --git a/tests/baselines/reference/tsserver/moduleSpecifierCache/caches-module-specifiers-within-a-file.js b/tests/baselines/reference/tsserver/moduleSpecifierCache/caches-module-specifiers-within-a-file.js index 526d308040921..a30e8b2e6a59d 100644 --- a/tests/baselines/reference/tsserver/moduleSpecifierCache/caches-module-specifiers-within-a-file.js +++ b/tests/baselines/reference/tsserver/moduleSpecifierCache/caches-module-specifiers-within-a-file.js @@ -274,15 +274,15 @@ Info seq [hh:mm:ss:mss] request: } Info seq [hh:mm:ss:mss] response: { - "seq": 0, - "type": "response", - "command": "configure", - "request_seq": 4, - "success": true, - "performanceData": { - "updateGraphDurationMs": *, - "createAutoImportProviderProgramDurationMs": * - } + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 4, + "success": true, + "performanceData": { + "updateGraphDurationMs": *, + "createAutoImportProviderProgramDurationMs": * + } } Info seq [hh:mm:ss:mss] response: { diff --git a/tests/baselines/reference/tsserver/moduleSpecifierCache/does-not-invalidate-the-cache-when-new-files-are-added.js b/tests/baselines/reference/tsserver/moduleSpecifierCache/does-not-invalidate-the-cache-when-new-files-are-added.js index 14b7754ce6ea8..42035841bcf64 100644 --- a/tests/baselines/reference/tsserver/moduleSpecifierCache/does-not-invalidate-the-cache-when-new-files-are-added.js +++ b/tests/baselines/reference/tsserver/moduleSpecifierCache/does-not-invalidate-the-cache-when-new-files-are-added.js @@ -274,15 +274,15 @@ Info seq [hh:mm:ss:mss] request: } Info seq [hh:mm:ss:mss] response: { - "seq": 0, - "type": "response", - "command": "configure", - "request_seq": 4, - "success": true, - "performanceData": { - "updateGraphDurationMs": *, - "createAutoImportProviderProgramDurationMs": * - } + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 4, + "success": true, + "performanceData": { + "updateGraphDurationMs": *, + "createAutoImportProviderProgramDurationMs": * + } } Info seq [hh:mm:ss:mss] response: { diff --git a/tests/baselines/reference/tsserver/moduleSpecifierCache/invalidates-module-specifiers-when-changes-happen-in-contained-node_modules-directories.js b/tests/baselines/reference/tsserver/moduleSpecifierCache/invalidates-module-specifiers-when-changes-happen-in-contained-node_modules-directories.js index 5c00c5f38ff3b..54533a72044b0 100644 --- a/tests/baselines/reference/tsserver/moduleSpecifierCache/invalidates-module-specifiers-when-changes-happen-in-contained-node_modules-directories.js +++ b/tests/baselines/reference/tsserver/moduleSpecifierCache/invalidates-module-specifiers-when-changes-happen-in-contained-node_modules-directories.js @@ -274,15 +274,15 @@ Info seq [hh:mm:ss:mss] request: } Info seq [hh:mm:ss:mss] response: { - "seq": 0, - "type": "response", - "command": "configure", - "request_seq": 4, - "success": true, - "performanceData": { - "updateGraphDurationMs": *, - "createAutoImportProviderProgramDurationMs": * - } + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 4, + "success": true, + "performanceData": { + "updateGraphDurationMs": *, + "createAutoImportProviderProgramDurationMs": * + } } Info seq [hh:mm:ss:mss] response: { diff --git a/tests/baselines/reference/tsserver/moduleSpecifierCache/invalidates-the-cache-when-local-packageJson-changes.js b/tests/baselines/reference/tsserver/moduleSpecifierCache/invalidates-the-cache-when-local-packageJson-changes.js index 5debf8ba50766..5bf69d9ff3b80 100644 --- a/tests/baselines/reference/tsserver/moduleSpecifierCache/invalidates-the-cache-when-local-packageJson-changes.js +++ b/tests/baselines/reference/tsserver/moduleSpecifierCache/invalidates-the-cache-when-local-packageJson-changes.js @@ -274,15 +274,15 @@ Info seq [hh:mm:ss:mss] request: } Info seq [hh:mm:ss:mss] response: { - "seq": 0, - "type": "response", - "command": "configure", - "request_seq": 4, - "success": true, - "performanceData": { - "updateGraphDurationMs": *, - "createAutoImportProviderProgramDurationMs": * - } + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 4, + "success": true, + "performanceData": { + "updateGraphDurationMs": *, + "createAutoImportProviderProgramDurationMs": * + } } Info seq [hh:mm:ss:mss] response: { diff --git a/tests/baselines/reference/tsserver/moduleSpecifierCache/invalidates-the-cache-when-module-resolution-settings-change.js b/tests/baselines/reference/tsserver/moduleSpecifierCache/invalidates-the-cache-when-module-resolution-settings-change.js index c9a8c7dc6e4b0..63bdc566a57b4 100644 --- a/tests/baselines/reference/tsserver/moduleSpecifierCache/invalidates-the-cache-when-module-resolution-settings-change.js +++ b/tests/baselines/reference/tsserver/moduleSpecifierCache/invalidates-the-cache-when-module-resolution-settings-change.js @@ -274,15 +274,15 @@ Info seq [hh:mm:ss:mss] request: } Info seq [hh:mm:ss:mss] response: { - "seq": 0, - "type": "response", - "command": "configure", - "request_seq": 4, - "success": true, - "performanceData": { - "updateGraphDurationMs": *, - "createAutoImportProviderProgramDurationMs": * - } + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 4, + "success": true, + "performanceData": { + "updateGraphDurationMs": *, + "createAutoImportProviderProgramDurationMs": * + } } Info seq [hh:mm:ss:mss] response: { diff --git a/tests/baselines/reference/tsserver/moduleSpecifierCache/invalidates-the-cache-when-symlinks-are-added-or-removed.js b/tests/baselines/reference/tsserver/moduleSpecifierCache/invalidates-the-cache-when-symlinks-are-added-or-removed.js index 87cef3ef3e9ac..41430fee244de 100644 --- a/tests/baselines/reference/tsserver/moduleSpecifierCache/invalidates-the-cache-when-symlinks-are-added-or-removed.js +++ b/tests/baselines/reference/tsserver/moduleSpecifierCache/invalidates-the-cache-when-symlinks-are-added-or-removed.js @@ -274,15 +274,15 @@ Info seq [hh:mm:ss:mss] request: } Info seq [hh:mm:ss:mss] response: { - "seq": 0, - "type": "response", - "command": "configure", - "request_seq": 4, - "success": true, - "performanceData": { - "updateGraphDurationMs": *, - "createAutoImportProviderProgramDurationMs": * - } + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 4, + "success": true, + "performanceData": { + "updateGraphDurationMs": *, + "createAutoImportProviderProgramDurationMs": * + } } Info seq [hh:mm:ss:mss] response: { diff --git a/tests/baselines/reference/tsserver/moduleSpecifierCache/invalidates-the-cache-when-user-preferences-change.js b/tests/baselines/reference/tsserver/moduleSpecifierCache/invalidates-the-cache-when-user-preferences-change.js index 32e2dfe016e66..3a7162d9a812b 100644 --- a/tests/baselines/reference/tsserver/moduleSpecifierCache/invalidates-the-cache-when-user-preferences-change.js +++ b/tests/baselines/reference/tsserver/moduleSpecifierCache/invalidates-the-cache-when-user-preferences-change.js @@ -274,15 +274,15 @@ Info seq [hh:mm:ss:mss] request: } Info seq [hh:mm:ss:mss] response: { - "seq": 0, - "type": "response", - "command": "configure", - "request_seq": 4, - "success": true, - "performanceData": { - "updateGraphDurationMs": *, - "createAutoImportProviderProgramDurationMs": * - } + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 4, + "success": true, + "performanceData": { + "updateGraphDurationMs": *, + "createAutoImportProviderProgramDurationMs": * + } } Info seq [hh:mm:ss:mss] response: { @@ -765,15 +765,15 @@ Info seq [hh:mm:ss:mss] request: } Info seq [hh:mm:ss:mss] response: { - "seq": 0, - "type": "response", - "command": "configure", - "request_seq": 6, - "success": true, - "performanceData": { - "updateGraphDurationMs": *, - "createAutoImportProviderProgramDurationMs": * - } + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 6, + "success": true, + "performanceData": { + "updateGraphDurationMs": *, + "createAutoImportProviderProgramDurationMs": * + } } Info seq [hh:mm:ss:mss] response: { @@ -1259,15 +1259,15 @@ Info seq [hh:mm:ss:mss] request: } Info seq [hh:mm:ss:mss] response: { - "seq": 0, - "type": "response", - "command": "configure", - "request_seq": 8, - "success": true, - "performanceData": { - "updateGraphDurationMs": *, - "createAutoImportProviderProgramDurationMs": * - } + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 8, + "success": true, + "performanceData": { + "updateGraphDurationMs": *, + "createAutoImportProviderProgramDurationMs": * + } } Info seq [hh:mm:ss:mss] response: { 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 a385469fa01ee..a53bff73ec04f 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 @@ -76,10 +76,10 @@ FsWatchesRecursive:: /a/b: *new* {} -TI:: [hh:mm:ss:mss] Global cache location '/a/data/', safe file path '/safeList.json', types map path /typesMap.json -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Global cache location '/a/data', safe file path '/safeList.json', types map path /typesMap.json +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Trying to find '/a/data/package.json'... -TI:: [hh:mm:ss:mss] Finished processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Finished processing cache location '/a/data' TI:: [hh:mm:ss:mss] Npm config file: /a/data/package.json TI:: [hh:mm:ss:mss] Npm config file: '/a/data/package.json' is missing, creating new one... TI:: [hh:mm:ss:mss] Updating types-registry npm package... @@ -95,23 +95,81 @@ TI:: typing installer creation complete } -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/a/b/jsconfig.json","fileNames":["/a/lib/lib.d.ts","/a/b/file1.js"],"compilerOptions":{"allowJs":true,"maxNodeModuleJsDepth":2,"allowSyntheticDefaultImports":true,"skipLibCheck":true,"noEmit":true,"configFilePath":"/a/b/jsconfig.json","allowNonTsExtensions":true},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/a/b","cachePath":"/a/data/","kind":"discover"} -TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data/', loading cached information... -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/a/b/jsconfig.json", + "fileNames": [ + "/a/lib/lib.d.ts", + "/a/b/file1.js" + ], + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "configFilePath": "/a/b/jsconfig.json", + "allowNonTsExtensions": true + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/a/b", + "cachePath": "/a/data", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/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] Result: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/a/b/bower_components","/a/b/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/a/b/bower_components","/a/b/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/a/b/jsconfig.json","files":["/a/b/bower_components","/a/b/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "/a/b/jsconfig.json", + "files": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /a/b/bower_components 1 undefined Project: /a/b/jsconfig.json WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a/b/bower_components 1 undefined Project: /a/b/jsconfig.json WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /a/b/node_modules 1 undefined Project: /a/b/jsconfig.json WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a/b/node_modules 1 undefined Project: /a/b/jsconfig.json WatchType: Directory location for typing installer TI:: [hh:mm:ss:mss] Sending response: - {"projectName":"/a/b/jsconfig.json","typeAcquisition":{"enable":true,"include":[],"exclude":[]},"compilerOptions":{"allowJs":true,"maxNodeModuleJsDepth":2,"allowSyntheticDefaultImports":true,"skipLibCheck":true,"noEmit":true,"configFilePath":"/a/b/jsconfig.json","allowNonTsExtensions":true},"typings":[],"unresolvedImports":[],"kind":"action::set"} + { + "projectName": "/a/b/jsconfig.json", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "configFilePath": "/a/b/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 Info seq [hh:mm:ss:mss] Project '/a/b/jsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (2) 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 60fe176191c8f..b7f64764270ef 100644 --- a/tests/baselines/reference/tsserver/navTo/should-work-with-Deprecated.js +++ b/tests/baselines/reference/tsserver/navTo/should-work-with-Deprecated.js @@ -77,10 +77,10 @@ FsWatchesRecursive:: /a/b: *new* {} -TI:: [hh:mm:ss:mss] Global cache location '/a/data/', safe file path '/safeList.json', types map path /typesMap.json -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Global cache location '/a/data', safe file path '/safeList.json', types map path /typesMap.json +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Trying to find '/a/data/package.json'... -TI:: [hh:mm:ss:mss] Finished processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Finished processing cache location '/a/data' TI:: [hh:mm:ss:mss] Npm config file: /a/data/package.json TI:: [hh:mm:ss:mss] Npm config file: '/a/data/package.json' is missing, creating new one... TI:: [hh:mm:ss:mss] Updating types-registry npm package... @@ -96,23 +96,81 @@ TI:: typing installer creation complete } -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/a/b/jsconfig.json","fileNames":["/a/lib/lib.d.ts","/a/b/file1.js"],"compilerOptions":{"allowJs":true,"maxNodeModuleJsDepth":2,"allowSyntheticDefaultImports":true,"skipLibCheck":true,"noEmit":true,"configFilePath":"/a/b/jsconfig.json","allowNonTsExtensions":true},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/a/b","cachePath":"/a/data/","kind":"discover"} -TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data/', loading cached information... -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/a/b/jsconfig.json", + "fileNames": [ + "/a/lib/lib.d.ts", + "/a/b/file1.js" + ], + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "configFilePath": "/a/b/jsconfig.json", + "allowNonTsExtensions": true + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/a/b", + "cachePath": "/a/data", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/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] Result: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/a/b/bower_components","/a/b/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/a/b/bower_components","/a/b/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/a/b/jsconfig.json","files":["/a/b/bower_components","/a/b/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "/a/b/jsconfig.json", + "files": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /a/b/bower_components 1 undefined Project: /a/b/jsconfig.json WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a/b/bower_components 1 undefined Project: /a/b/jsconfig.json WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /a/b/node_modules 1 undefined Project: /a/b/jsconfig.json WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a/b/node_modules 1 undefined Project: /a/b/jsconfig.json WatchType: Directory location for typing installer TI:: [hh:mm:ss:mss] Sending response: - {"projectName":"/a/b/jsconfig.json","typeAcquisition":{"enable":true,"include":[],"exclude":[]},"compilerOptions":{"allowJs":true,"maxNodeModuleJsDepth":2,"allowSyntheticDefaultImports":true,"skipLibCheck":true,"noEmit":true,"configFilePath":"/a/b/jsconfig.json","allowNonTsExtensions":true},"typings":[],"unresolvedImports":[],"kind":"action::set"} + { + "projectName": "/a/b/jsconfig.json", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "configFilePath": "/a/b/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 Info seq [hh:mm:ss:mss] Project '/a/b/jsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (2) diff --git a/tests/baselines/reference/tsserver/openfile/when-file-makes-edits-to-add/remove-comment-directives,-they-are-handled-correcrly.js b/tests/baselines/reference/tsserver/openfile/when-file-makes-edits-to-add/remove-comment-directives,-they-are-handled-correcrly.js index f6933c9ad3713..7578943b09c1d 100644 --- a/tests/baselines/reference/tsserver/openfile/when-file-makes-edits-to-add/remove-comment-directives,-they-are-handled-correcrly.js +++ b/tests/baselines/reference/tsserver/openfile/when-file-makes-edits-to-add/remove-comment-directives,-they-are-handled-correcrly.js @@ -114,13 +114,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/file.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/file.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -129,13 +129,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/file.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/file.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 1 2: suggestionCheck @@ -145,22 +145,22 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/file.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/file.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 2 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 2 + } } After running Immedidate callback:: count: 0 @@ -232,13 +232,13 @@ Info seq [hh:mm:ss:mss] Files (2) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/file.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/file.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -247,27 +247,27 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/file.ts", - "diagnostics": [ - { - "start": { - "line": 4, - "offset": 9 - }, - "end": { - "line": 4, - "offset": 10 - }, - "text": "Type 'number' is not assignable to type 'string'.", - "code": 2322, - "category": "error" - } - ] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/file.ts", + "diagnostics": [ + { + "start": { + "line": 4, + "offset": 9 + }, + "end": { + "line": 4, + "offset": 10 + }, + "text": "Type 'number' is not assignable to type 'string'.", + "code": 2322, + "category": "error" + } + ] + } } After running Immedidate callback:: count: 1 4: suggestionCheck @@ -277,22 +277,22 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/file.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/file.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 4 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 4 + } } After running Immedidate callback:: count: 0 @@ -364,13 +364,13 @@ Info seq [hh:mm:ss:mss] Files (2) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/file.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/file.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -379,13 +379,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/file.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/file.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 1 6: suggestionCheck @@ -395,21 +395,21 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/file.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/file.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 6 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 6 + } } After running Immedidate callback:: count: 0 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 b6a592c667121..45dc7f51fb8d5 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 @@ -58,10 +58,10 @@ FsWatchesRecursive:: /: *new* {} -TI:: [hh:mm:ss:mss] Global cache location '/a/data/', safe file path '/safeList.json', types map path /typesMap.json -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Global cache location '/a/data', safe file path '/safeList.json', types map path /typesMap.json +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Trying to find '/a/data/package.json'... -TI:: [hh:mm:ss:mss] Finished processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Finished processing cache location '/a/data' TI:: [hh:mm:ss:mss] Npm config file: /a/data/package.json TI:: [hh:mm:ss:mss] Npm config file: '/a/data/package.json' is missing, creating new one... Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with a :: WatchInfo: 1 undefined Config: /tsconfig.json WatchType: Wild card directory @@ -115,23 +115,76 @@ FsWatchesRecursive:: /: {} -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject1*","fileNames":["/tsconfig.json"],"compilerOptions":{"target":1,"jsx":1,"allowNonTsExtensions":true,"allowJs":true,"noEmitForJsFiles":true},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/","cachePath":"/a/data/","kind":"discover"} -TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data/', loading cached information... -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject1*", + "fileNames": [ + "/tsconfig.json" + ], + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/", + "cachePath": "/a/data", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/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] Result: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/bower_components","/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/bower_components","/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/bower_components", + "/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject1*","files":["/bower_components","/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject1*", + "files": [ + "/bower_components", + "/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /bower_components 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /bower_components 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer 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},"typings":[],"unresolvedImports":[],"kind":"action::set"} + { + "projectName": "/dev/null/inferredProject1*", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true + }, + "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] Project '/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (0) 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 96414fb8952bd..9127021b7ad0f 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 @@ -74,10 +74,10 @@ FsWatchesRecursive:: /: *new* {} -TI:: [hh:mm:ss:mss] Global cache location '/a/data/', safe file path '/safeList.json', types map path /typesMap.json -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Global cache location '/a/data', safe file path '/safeList.json', types map path /typesMap.json +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Trying to find '/a/data/package.json'... -TI:: [hh:mm:ss:mss] Finished processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Finished processing cache location '/a/data' TI:: [hh:mm:ss:mss] Npm config file: /a/data/package.json TI:: [hh:mm:ss:mss] Npm config file: '/a/data/package.json' is missing, creating new one... Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with a :: WatchInfo: 1 undefined Config: /tsconfig.json WatchType: Wild card directory @@ -131,18 +131,61 @@ FsWatchesRecursive:: /: {} -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject1*","fileNames":["/tsconfig.json"],"compilerOptions":{"target":1,"jsx":1,"allowNonTsExtensions":true,"allowJs":true,"noEmitForJsFiles":true},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/","cachePath":"/a/data/","kind":"discover"} -TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data/', loading cached information... -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject1*", + "fileNames": [ + "/tsconfig.json" + ], + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/", + "cachePath": "/a/data", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/typesMap.json' TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Typing names in '/package.json' dependencies: ["redux","webpack","typescript","react"] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":["redux","webpack","typescript","react"],"filesToWatch":["/bower_components","/package.json","/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":["redux","webpack","typescript","react"],"filesToWatch":["/bower_components","/package.json","/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "redux", + "webpack", + "typescript", + "react" + ], + "filesToWatch": [ + "/bower_components", + "/package.json", + "/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject1*","files":["/bower_components","/package.json","/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject1*", + "files": [ + "/bower_components", + "/package.json", + "/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /bower_components 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /bower_components 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location for typing installer @@ -155,7 +198,24 @@ TI:: [hh:mm:ss:mss] 'typescript':: Entry for package 'typescript' does not exist TI:: [hh:mm:ss:mss] 'react':: Entry for package 'react' does not exist in local types registry - 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},"typings":[],"unresolvedImports":[],"kind":"action::set"} + { + "projectName": "/dev/null/inferredProject1*", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true + }, + "typings": [], + "unresolvedImports": [], + "kind": "action::set" + } Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /package.json 250 undefined WatchType: package.json file Info seq [hh:mm:ss:mss] Project '/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (0) 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 fc19d798ee3df..81333e166c049 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 @@ -74,10 +74,10 @@ FsWatchesRecursive:: /: *new* {} -TI:: [hh:mm:ss:mss] Global cache location '/a/data/', safe file path '/safeList.json', types map path /typesMap.json -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Global cache location '/a/data', safe file path '/safeList.json', types map path /typesMap.json +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Trying to find '/a/data/package.json'... -TI:: [hh:mm:ss:mss] Finished processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Finished processing cache location '/a/data' TI:: [hh:mm:ss:mss] Npm config file: /a/data/package.json TI:: [hh:mm:ss:mss] Npm config file: '/a/data/package.json' is missing, creating new one... Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with a :: WatchInfo: 1 undefined Config: /tsconfig.json WatchType: Wild card directory @@ -131,18 +131,61 @@ FsWatchesRecursive:: /: {} -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject1*","fileNames":["/tsconfig.json"],"compilerOptions":{"target":1,"jsx":1,"allowNonTsExtensions":true,"allowJs":true,"noEmitForJsFiles":true},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/","cachePath":"/a/data/","kind":"discover"} -TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data/', loading cached information... -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject1*", + "fileNames": [ + "/tsconfig.json" + ], + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/", + "cachePath": "/a/data", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/typesMap.json' TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Typing names in '/package.json' dependencies: ["redux","webpack","typescript","react"] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":["redux","webpack","typescript","react"],"filesToWatch":["/bower_components","/package.json","/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":["redux","webpack","typescript","react"],"filesToWatch":["/bower_components","/package.json","/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "redux", + "webpack", + "typescript", + "react" + ], + "filesToWatch": [ + "/bower_components", + "/package.json", + "/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject1*","files":["/bower_components","/package.json","/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject1*", + "files": [ + "/bower_components", + "/package.json", + "/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /bower_components 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /bower_components 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location for typing installer @@ -155,7 +198,24 @@ TI:: [hh:mm:ss:mss] 'typescript':: Entry for package 'typescript' does not exist TI:: [hh:mm:ss:mss] 'react':: Entry for package 'react' does not exist in local types registry - 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},"typings":[],"unresolvedImports":[],"kind":"action::set"} + { + "projectName": "/dev/null/inferredProject1*", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true + }, + "typings": [], + "unresolvedImports": [], + "kind": "action::set" + } Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /package.json 250 undefined WatchType: package.json file Info seq [hh:mm:ss:mss] Project '/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (0) @@ -195,19 +255,72 @@ FsWatchesRecursive:: {} Info seq [hh:mm:ss:mss] FileWatcher:: Triggered with /package.json 2:: WatchInfo: /package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location for typing installer -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject1*","fileNames":["/tsconfig.json"],"compilerOptions":{"target":1,"jsx":1,"allowNonTsExtensions":true,"allowJs":true,"noEmitForJsFiles":true},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/","cachePath":"/a/data/","kind":"discover"} -TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data/', loading cached information... -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject1*", + "fileNames": [ + "/tsconfig.json" + ], + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/", + "cachePath": "/a/data", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/bower_components","/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/bower_components","/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/bower_components", + "/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject1*","files":["/bower_components","/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject1*", + "files": [ + "/bower_components", + "/node_modules" + ] + } Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location for typing installer 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},"typings":[],"unresolvedImports":[],"kind":"action::set"} + { + "projectName": "/dev/null/inferredProject1*", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true + }, + "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] Elapsed:: *ms FileWatcher:: Triggered with /package.json 2:: WatchInfo: /package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location for typing installer Info seq [hh:mm:ss:mss] FileWatcher:: Triggered with /package.json 2:: WatchInfo: /package.json 250 undefined WatchType: package.json file 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 2796e34c7f84f..d8a80b40d0e5b 100644 --- a/tests/baselines/reference/tsserver/packageJsonInfo/handles-empty-package.json.js +++ b/tests/baselines/reference/tsserver/packageJsonInfo/handles-empty-package.json.js @@ -61,10 +61,10 @@ FsWatchesRecursive:: /: *new* {} -TI:: [hh:mm:ss:mss] Global cache location '/a/data/', safe file path '/safeList.json', types map path /typesMap.json -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Global cache location '/a/data', safe file path '/safeList.json', types map path /typesMap.json +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Trying to find '/a/data/package.json'... -TI:: [hh:mm:ss:mss] Finished processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Finished processing cache location '/a/data' TI:: [hh:mm:ss:mss] Npm config file: /a/data/package.json TI:: [hh:mm:ss:mss] Npm config file: '/a/data/package.json' is missing, creating new one... Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with a :: WatchInfo: 1 undefined Config: /tsconfig.json WatchType: Wild card directory @@ -118,25 +118,80 @@ FsWatchesRecursive:: /: {} -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject1*","fileNames":["/tsconfig.json"],"compilerOptions":{"target":1,"jsx":1,"allowNonTsExtensions":true,"allowJs":true,"noEmitForJsFiles":true},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/","cachePath":"/a/data/","kind":"discover"} -TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data/', loading cached information... -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject1*", + "fileNames": [ + "/tsconfig.json" + ], + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/", + "cachePath": "/a/data", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/typesMap.json' TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Typing names in '/package.json' dependencies: [] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/bower_components","/package.json","/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/bower_components","/package.json","/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/bower_components", + "/package.json", + "/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject1*","files":["/bower_components","/package.json","/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject1*", + "files": [ + "/bower_components", + "/package.json", + "/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /bower_components 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /bower_components 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location for typing installer Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer 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},"typings":[],"unresolvedImports":[],"kind":"action::set"} + { + "projectName": "/dev/null/inferredProject1*", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true + }, + "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] FileWatcher:: Added:: WatchInfo: /package.json 250 undefined WatchType: package.json file Info seq [hh:mm:ss:mss] Project '/tsconfig.json' (Configured) @@ -177,17 +232,55 @@ FsWatchesRecursive:: {} Info seq [hh:mm:ss:mss] FileWatcher:: Triggered with /package.json 1:: WatchInfo: /package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location for typing installer -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject1*","fileNames":["/tsconfig.json"],"compilerOptions":{"target":1,"jsx":1,"allowNonTsExtensions":true,"allowJs":true,"noEmitForJsFiles":true},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/","cachePath":"/a/data/","kind":"discover"} -TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data/', loading cached information... -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject1*", + "fileNames": [ + "/tsconfig.json" + ], + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/", + "cachePath": "/a/data", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Typing names in '/package.json' dependencies: ["redux","webpack","typescript","react"] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":["redux","webpack","typescript","react"],"filesToWatch":["/bower_components","/package.json","/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":["redux","webpack","typescript","react"],"filesToWatch":["/bower_components","/package.json","/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "redux", + "webpack", + "typescript", + "react" + ], + "filesToWatch": [ + "/bower_components", + "/package.json", + "/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject1*"} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject1*" + } TI:: [hh:mm:ss:mss] Installing typings ["redux","webpack","typescript","react"] TI:: [hh:mm:ss:mss] 'redux':: Entry for package 'redux' does not exist in local types registry - skipping... TI:: [hh:mm:ss:mss] 'webpack':: Entry for package 'webpack' does not exist in local types registry - skipping... @@ -195,7 +288,24 @@ TI:: [hh:mm:ss:mss] 'typescript':: Entry for package 'typescript' does not exist TI:: [hh:mm:ss:mss] 'react':: Entry for package 'react' does not exist in local types registry - 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},"typings":[],"unresolvedImports":[],"kind":"action::set"} + { + "projectName": "/dev/null/inferredProject1*", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true + }, + "typings": [], + "unresolvedImports": [], + "kind": "action::set" + } Info seq [hh:mm:ss:mss] Elapsed:: *ms FileWatcher:: Triggered with /package.json 1:: WatchInfo: /package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location for typing installer Info seq [hh:mm:ss:mss] FileWatcher:: Triggered with /package.json 1:: WatchInfo: /package.json 250 undefined WatchType: package.json file Info seq [hh:mm:ss:mss] Elapsed:: *ms FileWatcher:: Triggered with /package.json 1:: WatchInfo: /package.json 250 undefined WatchType: package.json file 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 27bc19a32397f..5ad5141e0f314 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 @@ -61,10 +61,10 @@ FsWatchesRecursive:: /: *new* {} -TI:: [hh:mm:ss:mss] Global cache location '/a/data/', safe file path '/safeList.json', types map path /typesMap.json -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Global cache location '/a/data', safe file path '/safeList.json', types map path /typesMap.json +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Trying to find '/a/data/package.json'... -TI:: [hh:mm:ss:mss] Finished processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Finished processing cache location '/a/data' TI:: [hh:mm:ss:mss] Npm config file: /a/data/package.json TI:: [hh:mm:ss:mss] Npm config file: '/a/data/package.json' is missing, creating new one... Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with a :: WatchInfo: 1 undefined Config: /tsconfig.json WatchType: Wild card directory @@ -118,25 +118,80 @@ FsWatchesRecursive:: /: {} -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject1*","fileNames":["/tsconfig.json"],"compilerOptions":{"target":1,"jsx":1,"allowNonTsExtensions":true,"allowJs":true,"noEmitForJsFiles":true},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/","cachePath":"/a/data/","kind":"discover"} -TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data/', loading cached information... -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject1*", + "fileNames": [ + "/tsconfig.json" + ], + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/", + "cachePath": "/a/data", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/typesMap.json' TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Typing names in '/package.json' dependencies: [] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/bower_components","/package.json","/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/bower_components","/package.json","/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/bower_components", + "/package.json", + "/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject1*","files":["/bower_components","/package.json","/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject1*", + "files": [ + "/bower_components", + "/package.json", + "/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /bower_components 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /bower_components 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location for typing installer Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer 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},"typings":[],"unresolvedImports":[],"kind":"action::set"} + { + "projectName": "/dev/null/inferredProject1*", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true + }, + "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] FileWatcher:: Added:: WatchInfo: /package.json 250 undefined WatchType: package.json file Info seq [hh:mm:ss:mss] Project '/tsconfig.json' (Configured) @@ -177,17 +232,55 @@ FsWatchesRecursive:: {} Info seq [hh:mm:ss:mss] FileWatcher:: Triggered with /package.json 1:: WatchInfo: /package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location for typing installer -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject1*","fileNames":["/tsconfig.json"],"compilerOptions":{"target":1,"jsx":1,"allowNonTsExtensions":true,"allowJs":true,"noEmitForJsFiles":true},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/","cachePath":"/a/data/","kind":"discover"} -TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data/', loading cached information... -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject1*", + "fileNames": [ + "/tsconfig.json" + ], + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/", + "cachePath": "/a/data", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Typing names in '/package.json' dependencies: ["redux","webpack","typescript","react"] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":["redux","webpack","typescript","react"],"filesToWatch":["/bower_components","/package.json","/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":["redux","webpack","typescript","react"],"filesToWatch":["/bower_components","/package.json","/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "redux", + "webpack", + "typescript", + "react" + ], + "filesToWatch": [ + "/bower_components", + "/package.json", + "/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject1*"} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject1*" + } TI:: [hh:mm:ss:mss] Installing typings ["redux","webpack","typescript","react"] TI:: [hh:mm:ss:mss] 'redux':: Entry for package 'redux' does not exist in local types registry - skipping... TI:: [hh:mm:ss:mss] 'webpack':: Entry for package 'webpack' does not exist in local types registry - skipping... @@ -195,7 +288,24 @@ TI:: [hh:mm:ss:mss] 'typescript':: Entry for package 'typescript' does not exist TI:: [hh:mm:ss:mss] 'react':: Entry for package 'react' does not exist in local types registry - 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},"typings":[],"unresolvedImports":[],"kind":"action::set"} + { + "projectName": "/dev/null/inferredProject1*", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true + }, + "typings": [], + "unresolvedImports": [], + "kind": "action::set" + } Info seq [hh:mm:ss:mss] Elapsed:: *ms FileWatcher:: Triggered with /package.json 1:: WatchInfo: /package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location for typing installer Info seq [hh:mm:ss:mss] FileWatcher:: Triggered with /package.json 1:: WatchInfo: /package.json 250 undefined WatchType: package.json file Info seq [hh:mm:ss:mss] Elapsed:: *ms FileWatcher:: Triggered with /package.json 1:: WatchInfo: /package.json 250 undefined WatchType: package.json file diff --git a/tests/baselines/reference/tsserver/pluginsAsync/adds-external-files.js b/tests/baselines/reference/tsserver/pluginsAsync/adds-external-files.js index b780f5f11ead4..42f7696009db8 100644 --- a/tests/baselines/reference/tsserver/pluginsAsync/adds-external-files.js +++ b/tests/baselines/reference/tsserver/pluginsAsync/adds-external-files.js @@ -68,14 +68,14 @@ Info seq [hh:mm:ss:mss] Scheduled: /dev/null/inferredProject1* Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for ^memfs:/foo.ts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "^memfs:/foo.ts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "^memfs:/foo.ts" + ] + } } Before running Timeout callback:: count: 2 1: /dev/null/inferredProject1* @@ -87,13 +87,13 @@ Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferre Info seq [hh:mm:ss:mss] Same program as before Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "^memfs:/foo.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "^memfs:/foo.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/pluginsAsync/plugins-are-not-loaded-immediately.js b/tests/baselines/reference/tsserver/pluginsAsync/plugins-are-not-loaded-immediately.js index b60f0f193ffdb..c6515ed96e0d3 100644 --- a/tests/baselines/reference/tsserver/pluginsAsync/plugins-are-not-loaded-immediately.js +++ b/tests/baselines/reference/tsserver/pluginsAsync/plugins-are-not-loaded-immediately.js @@ -73,14 +73,14 @@ Info seq [hh:mm:ss:mss] Scheduled: /dev/null/inferredProject1* Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for ^memfs:/foo.ts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "^memfs:/foo.ts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "^memfs:/foo.ts" + ] + } } at this point all plugin modules should have been instantiated and all plugins should have been invoked pluginModuleInstantiated:: true diff --git a/tests/baselines/reference/tsserver/pluginsAsync/plugins-evaluation-in-correct-order-even-if-imports-resolve-out-of-order.js b/tests/baselines/reference/tsserver/pluginsAsync/plugins-evaluation-in-correct-order-even-if-imports-resolve-out-of-order.js index 3519584133e05..41504f18355cf 100644 --- a/tests/baselines/reference/tsserver/pluginsAsync/plugins-evaluation-in-correct-order-even-if-imports-resolve-out-of-order.js +++ b/tests/baselines/reference/tsserver/pluginsAsync/plugins-evaluation-in-correct-order-even-if-imports-resolve-out-of-order.js @@ -77,12 +77,12 @@ Info seq [hh:mm:ss:mss] Scheduled: /dev/null/inferredProject1* Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for ^memfs:/foo.ts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "^memfs:/foo.ts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "^memfs:/foo.ts" + ] + } } \ No newline at end of file diff --git a/tests/baselines/reference/tsserver/pluginsAsync/sends-projectsUpdatedInBackground-event.js b/tests/baselines/reference/tsserver/pluginsAsync/sends-projectsUpdatedInBackground-event.js index bf6f6366a07fd..9e20e8a02e590 100644 --- a/tests/baselines/reference/tsserver/pluginsAsync/sends-projectsUpdatedInBackground-event.js +++ b/tests/baselines/reference/tsserver/pluginsAsync/sends-projectsUpdatedInBackground-event.js @@ -67,12 +67,12 @@ Info seq [hh:mm:ss:mss] Scheduled: /dev/null/inferredProject1* Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for ^memfs:/foo.ts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "^memfs:/foo.ts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "^memfs:/foo.ts" + ] + } } \ No newline at end of file diff --git a/tests/baselines/reference/tsserver/projectErrors/configFileDiagnostic-events-are-generated-when-the-config-file-changes.js b/tests/baselines/reference/tsserver/projectErrors/configFileDiagnostic-events-are-generated-when-the-config-file-changes.js index 59e6d3ccf6baf..f91c5c910caf3 100644 --- a/tests/baselines/reference/tsserver/projectErrors/configFileDiagnostic-events-are-generated-when-the-config-file-changes.js +++ b/tests/baselines/reference/tsserver/projectErrors/configFileDiagnostic-events-are-generated-when-the-config-file-changes.js @@ -38,13 +38,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /a/b/tsconfig.json Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/b/tsconfig.json 2000 undefined Project: /a/b/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/a/b/tsconfig.json", - "reason": "Creating possible configured project for /a/b/app.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/a/b/tsconfig.json", + "reason": "Creating possible configured project for /a/b/app.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /a/b/tsconfig.json : { "rootNames": [ @@ -73,64 +73,64 @@ Info seq [hh:mm:ss:mss] Files (2) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/a/b/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/a/b/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "e10a1dc99ee63f16cb9b69bcee75540cdf41a1137371d3afbd4e7de507be5207", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 10, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": {}, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "e10a1dc99ee63f16cb9b69bcee75540cdf41a1137371d3afbd4e7de507be5207", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 10, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": {}, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/a/b/app.ts", - "configFile": "/a/b/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/a/b/app.ts", + "configFile": "/a/b/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Project '/a/b/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (2) @@ -174,13 +174,13 @@ Info seq [hh:mm:ss:mss] Running: /a/b/tsconfig.json Info seq [hh:mm:ss:mss] Reloading configured project /a/b/tsconfig.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/a/b/tsconfig.json", - "reason": "Change in config file detected" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/a/b/tsconfig.json", + "reason": "Change in config file detected" + } } Info seq [hh:mm:ss:mss] Config: /a/b/tsconfig.json : { "rootNames": [ @@ -200,38 +200,38 @@ Info seq [hh:mm:ss:mss] Files (2) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/a/b/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/a/b/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/a/b/tsconfig.json", - "configFile": "/a/b/tsconfig.json", - "diagnostics": [ - { - "start": { - "line": 3, - "offset": 21 - }, - "end": { - "line": 3, - "offset": 27 - }, - "text": "Unknown compiler option 'haha'.", - "code": 5023, - "category": "error", - "fileName": "/a/b/tsconfig.json" - } - ] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/a/b/tsconfig.json", + "configFile": "/a/b/tsconfig.json", + "diagnostics": [ + { + "start": { + "line": 3, + "offset": 21 + }, + "end": { + "line": 3, + "offset": 27 + }, + "text": "Unknown compiler option 'haha'.", + "code": 5023, + "category": "error", + "fileName": "/a/b/tsconfig.json" + } + ] + } } Info seq [hh:mm:ss:mss] Running: *ensureProjectForOpenFiles* Info seq [hh:mm:ss:mss] Before ensureProjectForOpenFiles: @@ -253,14 +253,14 @@ Info seq [hh:mm:ss:mss] Projects: /a/b/tsconfig.json Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for /a/b/app.ts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/a/b/app.ts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/a/b/app.ts" + ] + } } After running Timeout callback:: count: 1 3: checkOne @@ -282,13 +282,13 @@ Before running Timeout callback:: count: 3 Info seq [hh:mm:ss:mss] Reloading configured project /a/b/tsconfig.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/a/b/tsconfig.json", - "reason": "Change in config file detected" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/a/b/tsconfig.json", + "reason": "Change in config file detected" + } } Info seq [hh:mm:ss:mss] Config: /a/b/tsconfig.json : { "rootNames": [ @@ -308,33 +308,33 @@ Info seq [hh:mm:ss:mss] Files (2) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/a/b/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/a/b/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/a/b/tsconfig.json", - "configFile": "/a/b/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/a/b/tsconfig.json", + "configFile": "/a/b/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/a/b/app.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/a/b/app.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Running: /a/b/tsconfig.json Info seq [hh:mm:ss:mss] Running: *ensureProjectForOpenFiles* @@ -357,14 +357,14 @@ Info seq [hh:mm:ss:mss] Projects: /a/b/tsconfig.json Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for /a/b/app.ts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/a/b/app.ts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/a/b/app.ts" + ] + } } After running Timeout callback:: count: 1 6: checkOne diff --git a/tests/baselines/reference/tsserver/projectErrors/configFileDiagnostic-events-are-generated-when-the-config-file-doesnt-have-errors.js b/tests/baselines/reference/tsserver/projectErrors/configFileDiagnostic-events-are-generated-when-the-config-file-doesnt-have-errors.js index 5c88f423647be..f46e35f172b1b 100644 --- a/tests/baselines/reference/tsserver/projectErrors/configFileDiagnostic-events-are-generated-when-the-config-file-doesnt-have-errors.js +++ b/tests/baselines/reference/tsserver/projectErrors/configFileDiagnostic-events-are-generated-when-the-config-file-doesnt-have-errors.js @@ -38,13 +38,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /a/b/tsconfig.json Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/b/tsconfig.json 2000 undefined Project: /a/b/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/a/b/tsconfig.json", - "reason": "Creating possible configured project for /a/b/app.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/a/b/tsconfig.json", + "reason": "Creating possible configured project for /a/b/app.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /a/b/tsconfig.json : { "rootNames": [ @@ -73,64 +73,64 @@ Info seq [hh:mm:ss:mss] Files (2) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/a/b/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/a/b/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "e10a1dc99ee63f16cb9b69bcee75540cdf41a1137371d3afbd4e7de507be5207", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 10, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": {}, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "e10a1dc99ee63f16cb9b69bcee75540cdf41a1137371d3afbd4e7de507be5207", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 10, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": {}, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/a/b/app.ts", - "configFile": "/a/b/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/a/b/app.ts", + "configFile": "/a/b/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Project '/a/b/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (2) diff --git a/tests/baselines/reference/tsserver/projectErrors/configFileDiagnostic-events-are-generated-when-the-config-file-has-errors.js b/tests/baselines/reference/tsserver/projectErrors/configFileDiagnostic-events-are-generated-when-the-config-file-has-errors.js index cb44461a4b2e4..7f16014fffbcf 100644 --- a/tests/baselines/reference/tsserver/projectErrors/configFileDiagnostic-events-are-generated-when-the-config-file-has-errors.js +++ b/tests/baselines/reference/tsserver/projectErrors/configFileDiagnostic-events-are-generated-when-the-config-file-has-errors.js @@ -41,13 +41,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /a/b/tsconfig.json Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/b/tsconfig.json 2000 undefined Project: /a/b/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/a/b/tsconfig.json", - "reason": "Creating possible configured project for /a/b/app.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/a/b/tsconfig.json", + "reason": "Creating possible configured project for /a/b/app.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /a/b/tsconfig.json : { "rootNames": [ @@ -76,93 +76,93 @@ Info seq [hh:mm:ss:mss] Files (2) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/a/b/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/a/b/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "e10a1dc99ee63f16cb9b69bcee75540cdf41a1137371d3afbd4e7de507be5207", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 10, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": {}, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "e10a1dc99ee63f16cb9b69bcee75540cdf41a1137371d3afbd4e7de507be5207", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 10, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": {}, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/a/b/app.ts", - "configFile": "/a/b/tsconfig.json", - "diagnostics": [ - { - "start": { - "line": 3, - "offset": 25 - }, - "end": { - "line": 3, - "offset": 30 - }, - "text": "Unknown compiler option 'foo'.", - "code": 5023, - "category": "error", - "fileName": "/a/b/tsconfig.json" - }, - { - "start": { - "line": 4, - "offset": 25 - }, - "end": { - "line": 4, - "offset": 34 - }, - "text": "Unknown compiler option 'allowJS'. Did you mean 'allowJs'?", - "code": 5025, - "category": "error", - "fileName": "/a/b/tsconfig.json" - } - ] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/a/b/app.ts", + "configFile": "/a/b/tsconfig.json", + "diagnostics": [ + { + "start": { + "line": 3, + "offset": 25 + }, + "end": { + "line": 3, + "offset": 30 + }, + "text": "Unknown compiler option 'foo'.", + "code": 5023, + "category": "error", + "fileName": "/a/b/tsconfig.json" + }, + { + "start": { + "line": 4, + "offset": 25 + }, + "end": { + "line": 4, + "offset": 34 + }, + "text": "Unknown compiler option 'allowJS'. Did you mean 'allowJs'?", + "code": 5025, + "category": "error", + "fileName": "/a/b/tsconfig.json" + } + ] + } } Info seq [hh:mm:ss:mss] Project '/a/b/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (2) diff --git a/tests/baselines/reference/tsserver/projectErrors/configFileDiagnostic-events-are-not-generated-when-the-config-file-does-not-include-file-opened-and-config-file-has-errors.js b/tests/baselines/reference/tsserver/projectErrors/configFileDiagnostic-events-are-not-generated-when-the-config-file-does-not-include-file-opened-and-config-file-has-errors.js index c45fb6e86d4fc..885d9cd2adc0f 100644 --- a/tests/baselines/reference/tsserver/projectErrors/configFileDiagnostic-events-are-not-generated-when-the-config-file-does-not-include-file-opened-and-config-file-has-errors.js +++ b/tests/baselines/reference/tsserver/projectErrors/configFileDiagnostic-events-are-not-generated-when-the-config-file-does-not-include-file-opened-and-config-file-has-errors.js @@ -42,13 +42,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /a/b/tsconfig.json Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/b/tsconfig.json 2000 undefined Project: /a/b/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/a/b/tsconfig.json", - "reason": "Creating possible configured project for /a/b/test.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/a/b/tsconfig.json", + "reason": "Creating possible configured project for /a/b/test.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /a/b/tsconfig.json : { "rootNames": [ @@ -76,93 +76,93 @@ Info seq [hh:mm:ss:mss] Files (2) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/a/b/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/a/b/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "e10a1dc99ee63f16cb9b69bcee75540cdf41a1137371d3afbd4e7de507be5207", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 10, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": {}, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": true, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "e10a1dc99ee63f16cb9b69bcee75540cdf41a1137371d3afbd4e7de507be5207", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 10, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": {}, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": true, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/a/b/test.ts", - "configFile": "/a/b/tsconfig.json", - "diagnostics": [ - { - "start": { - "line": 3, - "offset": 25 - }, - "end": { - "line": 3, - "offset": 30 - }, - "text": "Unknown compiler option 'foo'.", - "code": 5023, - "category": "error", - "fileName": "/a/b/tsconfig.json" - }, - { - "start": { - "line": 4, - "offset": 25 - }, - "end": { - "line": 4, - "offset": 34 - }, - "text": "Unknown compiler option 'allowJS'. Did you mean 'allowJs'?", - "code": 5025, - "category": "error", - "fileName": "/a/b/tsconfig.json" - } - ] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/a/b/test.ts", + "configFile": "/a/b/tsconfig.json", + "diagnostics": [ + { + "start": { + "line": 3, + "offset": 25 + }, + "end": { + "line": 3, + "offset": 30 + }, + "text": "Unknown compiler option 'foo'.", + "code": 5023, + "category": "error", + "fileName": "/a/b/tsconfig.json" + }, + { + "start": { + "line": 4, + "offset": 25 + }, + "end": { + "line": 4, + "offset": 34 + }, + "text": "Unknown compiler option 'allowJS'. Did you mean 'allowJs'?", + "code": 5025, + "category": "error", + "fileName": "/a/b/tsconfig.json" + } + ] + } } Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms @@ -261,43 +261,43 @@ Info seq [hh:mm:ss:mss] Search path: /a/b Info seq [hh:mm:ss:mss] For info: /a/b/test2.ts :: Config file name: /a/b/tsconfig.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/a/b/test2.ts", - "configFile": "/a/b/tsconfig.json", - "diagnostics": [ - { - "start": { - "line": 3, - "offset": 25 - }, - "end": { - "line": 3, - "offset": 30 - }, - "text": "Unknown compiler option 'foo'.", - "code": 5023, - "category": "error", - "fileName": "/a/b/tsconfig.json" - }, - { - "start": { - "line": 4, - "offset": 25 - }, - "end": { - "line": 4, - "offset": 34 - }, - "text": "Unknown compiler option 'allowJS'. Did you mean 'allowJs'?", - "code": 5025, - "category": "error", - "fileName": "/a/b/tsconfig.json" - } - ] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/a/b/test2.ts", + "configFile": "/a/b/tsconfig.json", + "diagnostics": [ + { + "start": { + "line": 3, + "offset": 25 + }, + "end": { + "line": 3, + "offset": 30 + }, + "text": "Unknown compiler option 'foo'.", + "code": 5023, + "category": "error", + "fileName": "/a/b/tsconfig.json" + }, + { + "start": { + "line": 4, + "offset": 25 + }, + "end": { + "line": 4, + "offset": 34 + }, + "text": "Unknown compiler option 'allowJS'. Did you mean 'allowJs'?", + "code": 5025, + "category": "error", + "fileName": "/a/b/tsconfig.json" + } + ] + } } Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject2* Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject2* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms diff --git a/tests/baselines/reference/tsserver/projectErrors/configFileDiagnostic-events-are-not-generated-when-the-config-file-does-not-include-file-opened-and-doesnt-contain-any-errors.js b/tests/baselines/reference/tsserver/projectErrors/configFileDiagnostic-events-are-not-generated-when-the-config-file-does-not-include-file-opened-and-doesnt-contain-any-errors.js index 0a10984cbc0f8..aece93461d500 100644 --- a/tests/baselines/reference/tsserver/projectErrors/configFileDiagnostic-events-are-not-generated-when-the-config-file-does-not-include-file-opened-and-doesnt-contain-any-errors.js +++ b/tests/baselines/reference/tsserver/projectErrors/configFileDiagnostic-events-are-not-generated-when-the-config-file-does-not-include-file-opened-and-doesnt-contain-any-errors.js @@ -44,13 +44,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /a/b/tsconfig.json Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/b/tsconfig.json 2000 undefined Project: /a/b/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/a/b/tsconfig.json", - "reason": "Creating possible configured project for /a/b/test.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/a/b/tsconfig.json", + "reason": "Creating possible configured project for /a/b/test.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /a/b/tsconfig.json : { "rootNames": [ @@ -78,64 +78,64 @@ Info seq [hh:mm:ss:mss] Files (2) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/a/b/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/a/b/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "e10a1dc99ee63f16cb9b69bcee75540cdf41a1137371d3afbd4e7de507be5207", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 10, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": {}, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": true, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "e10a1dc99ee63f16cb9b69bcee75540cdf41a1137371d3afbd4e7de507be5207", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 10, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": {}, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": true, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/a/b/test.ts", - "configFile": "/a/b/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/a/b/test.ts", + "configFile": "/a/b/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms @@ -234,14 +234,14 @@ Info seq [hh:mm:ss:mss] Search path: /a/b Info seq [hh:mm:ss:mss] For info: /a/b/test2.ts :: Config file name: /a/b/tsconfig.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/a/b/test2.ts", - "configFile": "/a/b/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/a/b/test2.ts", + "configFile": "/a/b/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject2* Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject2* Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms diff --git a/tests/baselines/reference/tsserver/projectErrors/configFileDiagnostic-events-are-not-generated-when-the-config-file-has-errors-but-suppressDiagnosticEvents-is-true.js b/tests/baselines/reference/tsserver/projectErrors/configFileDiagnostic-events-are-not-generated-when-the-config-file-has-errors-but-suppressDiagnosticEvents-is-true.js index a95b2c735be0b..5d883d041be1e 100644 --- a/tests/baselines/reference/tsserver/projectErrors/configFileDiagnostic-events-are-not-generated-when-the-config-file-has-errors-but-suppressDiagnosticEvents-is-true.js +++ b/tests/baselines/reference/tsserver/projectErrors/configFileDiagnostic-events-are-not-generated-when-the-config-file-has-errors-but-suppressDiagnosticEvents-is-true.js @@ -41,13 +41,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /a/b/tsconfig.json Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/b/tsconfig.json 2000 undefined Project: /a/b/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/a/b/tsconfig.json", - "reason": "Creating possible configured project for /a/b/app.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/a/b/tsconfig.json", + "reason": "Creating possible configured project for /a/b/app.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /a/b/tsconfig.json : { "rootNames": [ @@ -76,53 +76,53 @@ Info seq [hh:mm:ss:mss] Files (2) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/a/b/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/a/b/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "e10a1dc99ee63f16cb9b69bcee75540cdf41a1137371d3afbd4e7de507be5207", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 10, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": {}, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "e10a1dc99ee63f16cb9b69bcee75540cdf41a1137371d3afbd4e7de507be5207", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 10, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": {}, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } - } } Info seq [hh:mm:ss:mss] Project '/a/b/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (2) diff --git a/tests/baselines/reference/tsserver/projectErrors/configFileDiagnostic-events-contains-the-project-reference-errors.js b/tests/baselines/reference/tsserver/projectErrors/configFileDiagnostic-events-contains-the-project-reference-errors.js index 8af1e664ad871..5f31dcf0d1cdc 100644 --- a/tests/baselines/reference/tsserver/projectErrors/configFileDiagnostic-events-contains-the-project-reference-errors.js +++ b/tests/baselines/reference/tsserver/projectErrors/configFileDiagnostic-events-contains-the-project-reference-errors.js @@ -39,13 +39,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /a/b/tsconfig.json Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/b/tsconfig.json 2000 undefined Project: /a/b/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/a/b/tsconfig.json", - "reason": "Creating possible configured project for /a/b/app.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/a/b/tsconfig.json", + "reason": "Creating possible configured project for /a/b/app.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /a/b/tsconfig.json : { "rootNames": [ @@ -87,79 +87,79 @@ Info seq [hh:mm:ss:mss] Files (2) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/a/b/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/a/b/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "e10a1dc99ee63f16cb9b69bcee75540cdf41a1137371d3afbd4e7de507be5207", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 10, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": {}, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": true, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "e10a1dc99ee63f16cb9b69bcee75540cdf41a1137371d3afbd4e7de507be5207", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 10, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": {}, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": true, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/a/b/app.ts", - "configFile": "/a/b/tsconfig.json", - "diagnostics": [ - { - "start": { - "line": 3, - "offset": 36 - }, - "end": { - "line": 3, - "offset": 70 - }, - "text": "File '/a/b/no-such-tsconfig.json' not found.", - "code": 6053, - "category": "error", - "fileName": "/a/b/tsconfig.json" - } - ] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/a/b/app.ts", + "configFile": "/a/b/tsconfig.json", + "diagnostics": [ + { + "start": { + "line": 3, + "offset": 36 + }, + "end": { + "line": 3, + "offset": 70 + }, + "text": "File '/a/b/no-such-tsconfig.json' not found.", + "code": 6053, + "category": "error", + "fileName": "/a/b/tsconfig.json" + } + ] + } } Info seq [hh:mm:ss:mss] Project '/a/b/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (2) diff --git a/tests/baselines/reference/tsserver/projectErrors/correct-errors-when-resolution-resolves-to-file-that-has-same-ambient-module-and-is-also-module.js b/tests/baselines/reference/tsserver/projectErrors/correct-errors-when-resolution-resolves-to-file-that-has-same-ambient-module-and-is-also-module.js index 5ed1a030f62b3..aff7394f53400 100644 --- a/tests/baselines/reference/tsserver/projectErrors/correct-errors-when-resolution-resolves-to-file-that-has-same-ambient-module-and-is-also-module.js +++ b/tests/baselines/reference/tsserver/projectErrors/correct-errors-when-resolution-resolves-to-file-that-has-same-ambient-module-and-is-also-module.js @@ -50,13 +50,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /users/username/projects Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/myproject/tsconfig.json 2000 undefined Project: /users/username/projects/myproject/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/users/username/projects/myproject/tsconfig.json", - "reason": "Creating possible configured project for /users/username/projects/myproject/src/a.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/users/username/projects/myproject/tsconfig.json", + "reason": "Creating possible configured project for /users/username/projects/myproject/src/a.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /users/username/projects/myproject/tsconfig.json : { "rootNames": [ @@ -99,64 +99,64 @@ Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/users/username/projects/myproject/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/users/username/projects/myproject/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "49814c247d0e4666719ac54e31c3f19091be4020c5ac046c86474826dc7e4ede", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 73, - "tsx": 0, - "tsxSize": 0, - "dts": 3, - "dtsSize": 486, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": {}, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": true, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "49814c247d0e4666719ac54e31c3f19091be4020c5ac046c86474826dc7e4ede", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 73, + "tsx": 0, + "tsxSize": 0, + "dts": 3, + "dtsSize": 486, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": {}, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": true, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/users/username/projects/myproject/src/a.ts", - "configFile": "/users/username/projects/myproject/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/users/username/projects/myproject/src/a.ts", + "configFile": "/users/username/projects/myproject/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Project '/users/username/projects/myproject/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (4) @@ -214,13 +214,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/users/username/projects/myproject/src/a.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/users/username/projects/myproject/src/a.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -229,13 +229,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/users/username/projects/myproject/src/a.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/users/username/projects/myproject/src/a.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 1 2: suggestionCheck @@ -245,51 +245,51 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/users/username/projects/myproject/src/a.ts", - "diagnostics": [ - { - "start": { - "line": 1, - "offset": 1 - }, - "end": { - "line": 1, - "offset": 44 - }, - "text": "'myModule' is declared but its value is never read.", - "code": 6133, - "category": "suggestion", - "reportsUnnecessary": true - }, - { - "start": { - "line": 2, - "offset": 10 - }, - "end": { - "line": 2, - "offset": 13 - }, - "text": "'foo' is declared but its value is never read.", - "code": 6133, - "category": "suggestion", - "reportsUnnecessary": true - } - ] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/users/username/projects/myproject/src/a.ts", + "diagnostics": [ + { + "start": { + "line": 1, + "offset": 1 + }, + "end": { + "line": 1, + "offset": 44 + }, + "text": "'myModule' is declared but its value is never read.", + "code": 6133, + "category": "suggestion", + "reportsUnnecessary": true + }, + { + "start": { + "line": 2, + "offset": 10 + }, + "end": { + "line": 2, + "offset": 13 + }, + "text": "'foo' is declared but its value is never read.", + "code": 6133, + "category": "suggestion", + "reportsUnnecessary": true + } + ] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 2 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 2 + } } After running Immedidate callback:: count: 0 @@ -350,13 +350,13 @@ Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/users/username/projects/myproject/src/a.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/users/username/projects/myproject/src/a.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -365,13 +365,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/users/username/projects/myproject/src/a.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/users/username/projects/myproject/src/a.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 1 4: suggestionCheck @@ -381,50 +381,50 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/users/username/projects/myproject/src/a.ts", - "diagnostics": [ - { - "start": { - "line": 1, - "offset": 1 - }, - "end": { - "line": 1, - "offset": 44 - }, - "text": "'myModule' is declared but its value is never read.", - "code": 6133, - "category": "suggestion", - "reportsUnnecessary": true - }, - { - "start": { - "line": 2, - "offset": 10 - }, - "end": { - "line": 2, - "offset": 13 - }, - "text": "'foo' is declared but its value is never read.", - "code": 6133, - "category": "suggestion", - "reportsUnnecessary": true - } - ] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/users/username/projects/myproject/src/a.ts", + "diagnostics": [ + { + "start": { + "line": 1, + "offset": 1 + }, + "end": { + "line": 1, + "offset": 44 + }, + "text": "'myModule' is declared but its value is never read.", + "code": 6133, + "category": "suggestion", + "reportsUnnecessary": true + }, + { + "start": { + "line": 2, + "offset": 10 + }, + "end": { + "line": 2, + "offset": 13 + }, + "text": "'foo' is declared but its value is never read.", + "code": 6133, + "category": "suggestion", + "reportsUnnecessary": true + } + ] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 4 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 4 + } } After running Immedidate callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/projectErrors/folder-rename-updates-project-structure-and-reports-no-errors.js b/tests/baselines/reference/tsserver/projectErrors/folder-rename-updates-project-structure-and-reports-no-errors.js index cfc72c3b5136b..ef1c8052e8476 100644 --- a/tests/baselines/reference/tsserver/projectErrors/folder-rename-updates-project-structure-and-reports-no-errors.js +++ b/tests/baselines/reference/tsserver/projectErrors/folder-rename-updates-project-structure-and-reports-no-errors.js @@ -26,13 +26,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /a/b/projects/myproject/ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/b/projects/myproject/tsconfig.json 2000 undefined Project: /a/b/projects/myproject/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/a/b/projects/myproject/tsconfig.json", - "reason": "Creating possible configured project for /a/b/projects/myproject/bar/app.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/a/b/projects/myproject/tsconfig.json", + "reason": "Creating possible configured project for /a/b/projects/myproject/bar/app.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /a/b/projects/myproject/tsconfig.json : { "rootNames": [ @@ -68,126 +68,126 @@ Info seq [hh:mm:ss:mss] Files (2) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/a/b/projects/myproject/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/a/b/projects/myproject/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "c56abb8c7c51bef5953613f05226da8e72cd9eafe09ab58ca2ccd81b65ba193a", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 2, - "tsSize": 154, - "tsx": 0, - "tsxSize": 0, - "dts": 0, - "dtsSize": 0, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": { - "module": "none" - }, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": true, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "c56abb8c7c51bef5953613f05226da8e72cd9eafe09ab58ca2ccd81b65ba193a", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 2, + "tsSize": 154, + "tsx": 0, + "tsxSize": 0, + "dts": 0, + "dtsSize": 0, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "module": "none" + }, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": true, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/a/b/projects/myproject/bar/app.ts", - "configFile": "/a/b/projects/myproject/tsconfig.json", - "diagnostics": [ - { - "text": "File '/a/lib/lib.d.ts' not found.\n The file is in the program because:\n Default library for target 'es5'", - "code": 6053, - "category": "error" - }, - { - "text": "Cannot find global type 'Array'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Boolean'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Function'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'IArguments'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Number'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Object'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'RegExp'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'String'.", - "code": 2318, - "category": "error" - }, - { - "start": { - "line": 1, - "offset": 37 - }, - "end": { - "line": 1, - "offset": 45 - }, - "text": "Unknown compiler option 'targer'. Did you mean 'target'?", - "code": 5025, - "category": "error", - "fileName": "/a/b/projects/myproject/tsconfig.json" - } - ] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/a/b/projects/myproject/bar/app.ts", + "configFile": "/a/b/projects/myproject/tsconfig.json", + "diagnostics": [ + { + "text": "File '/a/lib/lib.d.ts' not found.\n The file is in the program because:\n Default library for target 'es5'", + "code": 6053, + "category": "error" + }, + { + "text": "Cannot find global type 'Array'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Boolean'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Function'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'IArguments'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Number'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Object'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'RegExp'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'String'.", + "code": 2318, + "category": "error" + }, + { + "start": { + "line": 1, + "offset": 37 + }, + "end": { + "line": 1, + "offset": 45 + }, + "text": "Unknown compiler option 'targer'. Did you mean 'target'?", + "code": 5025, + "category": "error", + "fileName": "/a/b/projects/myproject/tsconfig.json" + } + ] + } } Info seq [hh:mm:ss:mss] Project '/a/b/projects/myproject/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (2) @@ -245,13 +245,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/a/b/projects/myproject/bar/app.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/a/b/projects/myproject/bar/app.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -260,13 +260,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/a/b/projects/myproject/bar/app.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/a/b/projects/myproject/bar/app.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 1 2: suggestionCheck @@ -276,22 +276,22 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/a/b/projects/myproject/bar/app.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/a/b/projects/myproject/bar/app.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 2 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 2 + } } After running Immedidate callback:: count: 0 @@ -380,14 +380,14 @@ Info seq [hh:mm:ss:mss] Projects: /a/b/projects/myproject/tsconfig.json Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for /a/b/projects/myproject/bar/app.ts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/a/b/projects/myproject/bar/app.ts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/a/b/projects/myproject/bar/app.ts" + ] + } } After running Timeout callback:: count: 1 12: checkOne @@ -415,13 +415,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/a/b/projects/myproject/bar/app.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/a/b/projects/myproject/bar/app.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -450,13 +450,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/a/b/projects/myproject/bar/app.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/a/b/projects/myproject/bar/app.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -465,13 +465,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/a/b/projects/myproject/bar/app.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/a/b/projects/myproject/bar/app.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 1 5: suggestionCheck @@ -481,21 +481,21 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/a/b/projects/myproject/bar/app.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/a/b/projects/myproject/bar/app.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 3 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 3 + } } After running Immedidate callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/projectErrors/for-external-project.js b/tests/baselines/reference/tsserver/projectErrors/for-external-project.js index 629fc405515aa..2d4e0ab4beeac 100644 --- a/tests/baselines/reference/tsserver/projectErrors/for-external-project.js +++ b/tests/baselines/reference/tsserver/projectErrors/for-external-project.js @@ -57,10 +57,10 @@ FsWatches:: /a/lib/lib.d.ts: *new* {} -TI:: [hh:mm:ss:mss] Global cache location '/a/data/', safe file path '/safeList.json', types map path /typesMap.json -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Global cache location '/a/data', safe file path '/safeList.json', types map path /typesMap.json +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Trying to find '/a/data/package.json'... -TI:: [hh:mm:ss:mss] Finished processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Finished processing cache location '/a/data' TI:: [hh:mm:ss:mss] Npm config file: /a/data/package.json TI:: [hh:mm:ss:mss] Npm config file: '/a/data/package.json' is missing, creating new one... TI:: [hh:mm:ss:mss] Updating types-registry npm package... @@ -76,23 +76,71 @@ TI:: typing installer creation complete } -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/a/b/project.csproj","fileNames":["/a/lib/lib.d.ts","/a/b/f1.js"],"compilerOptions":{"allowNonTsExtensions":true,"noEmitForJsFiles":true},"typeAcquisition":{"include":[],"exclude":[],"enable":true},"unresolvedImports":[],"projectRootPath":"/a/b","cachePath":"/a/data/","kind":"discover"} -TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data/', loading cached information... -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/a/b/project.csproj", + "fileNames": [ + "/a/lib/lib.d.ts", + "/a/b/f1.js" + ], + "compilerOptions": { + "allowNonTsExtensions": true, + "noEmitForJsFiles": true + }, + "typeAcquisition": { + "include": [], + "exclude": [], + "enable": true + }, + "unresolvedImports": [], + "projectRootPath": "/a/b", + "cachePath": "/a/data", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/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] Result: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/a/b/bower_components","/a/b/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/a/b/bower_components","/a/b/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/a/b/project.csproj","files":["/a/b/bower_components","/a/b/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "/a/b/project.csproj", + "files": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /a/b/bower_components 1 undefined Project: /a/b/project.csproj WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a/b/bower_components 1 undefined Project: /a/b/project.csproj WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /a/b/node_modules 1 undefined Project: /a/b/project.csproj WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a/b/node_modules 1 undefined Project: /a/b/project.csproj WatchType: Directory location for typing installer TI:: [hh:mm:ss:mss] Sending response: - {"projectName":"/a/b/project.csproj","typeAcquisition":{"include":[],"exclude":[],"enable":true},"compilerOptions":{"allowNonTsExtensions":true,"noEmitForJsFiles":true},"typings":[],"unresolvedImports":[],"kind":"action::set"} + { + "projectName": "/a/b/project.csproj", + "typeAcquisition": { + "include": [], + "exclude": [], + "enable": true + }, + "compilerOptions": { + "allowNonTsExtensions": true, + "noEmitForJsFiles": true + }, + "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] response: { diff --git a/tests/baselines/reference/tsserver/projectErrors/for-inferred-project.js b/tests/baselines/reference/tsserver/projectErrors/for-inferred-project.js index 35bb143272d51..df0ee77f47289 100644 --- a/tests/baselines/reference/tsserver/projectErrors/for-inferred-project.js +++ b/tests/baselines/reference/tsserver/projectErrors/for-inferred-project.js @@ -50,10 +50,10 @@ FsWatches:: /a/lib/lib.d.ts: *new* {} -TI:: [hh:mm:ss:mss] Global cache location '/a/data/', safe file path '/safeList.json', types map path /typesMap.json -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Global cache location '/a/data', safe file path '/safeList.json', types map path /typesMap.json +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Trying to find '/a/data/package.json'... -TI:: [hh:mm:ss:mss] Finished processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Finished processing cache location '/a/data' TI:: [hh:mm:ss:mss] Npm config file: /a/data/package.json TI:: [hh:mm:ss:mss] Npm config file: '/a/data/package.json' is missing, creating new one... TI:: [hh:mm:ss:mss] Updating types-registry npm package... @@ -69,23 +69,79 @@ TI:: typing installer creation complete } -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject1*","fileNames":["/a/lib/lib.d.ts","/a/b/f1.js"],"compilerOptions":{"target":1,"jsx":1,"allowNonTsExtensions":true,"allowJs":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/a/b","cachePath":"/a/data/","kind":"discover"} -TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data/', loading cached information... -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject1*", + "fileNames": [ + "/a/lib/lib.d.ts", + "/a/b/f1.js" + ], + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/a/b", + "cachePath": "/a/data", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/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] Result: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/a/b/bower_components","/a/b/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/a/b/bower_components","/a/b/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject1*","files":["/a/b/bower_components","/a/b/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject1*", + "files": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /a/b/bower_components 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a/b/bower_components 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /a/b/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a/b/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer 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"} + { + "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] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (2) diff --git a/tests/baselines/reference/tsserver/projectErrors/getting-errors-before-opening-file.js b/tests/baselines/reference/tsserver/projectErrors/getting-errors-before-opening-file.js index 3c6b17f42fc27..ddabe04445a5e 100644 --- a/tests/baselines/reference/tsserver/projectErrors/getting-errors-before-opening-file.js +++ b/tests/baselines/reference/tsserver/projectErrors/getting-errors-before-opening-file.js @@ -41,11 +41,11 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 1 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 1 + } } After running Timeout callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/projectErrors/npm-install-when-timeout-occurs-after-installation.js b/tests/baselines/reference/tsserver/projectErrors/npm-install-when-timeout-occurs-after-installation.js index c1f9c989ed567..33a870e52bfb6 100644 --- a/tests/baselines/reference/tsserver/projectErrors/npm-install-when-timeout-occurs-after-installation.js +++ b/tests/baselines/reference/tsserver/projectErrors/npm-install-when-timeout-occurs-after-installation.js @@ -37,13 +37,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json", - "reason": "Creating possible configured project for /user/username/projects/myproject/src/main.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json", + "reason": "Creating possible configured project for /user/username/projects/myproject/src/main.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/tsconfig.json : { "rootNames": [ @@ -82,64 +82,64 @@ Info seq [hh:mm:ss:mss] Files (2) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "4a33d78ee40d836c4f4e64c59aed976628aea0013be9585c5ff171dfc41baf98", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 36, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": {}, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "4a33d78ee40d836c4f4e64c59aed976628aea0013be9585c5ff171dfc41baf98", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 36, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": {}, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/myproject/src/main.ts", - "configFile": "/user/username/projects/myproject/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/myproject/src/main.ts", + "configFile": "/user/username/projects/myproject/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Project '/user/username/projects/myproject/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (2) @@ -201,13 +201,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/src/main.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/src/main.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -216,27 +216,27 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/src/main.ts", - "diagnostics": [ - { - "start": { - "line": 1, - "offset": 21 - }, - "end": { - "line": 1, - "offset": 36 - }, - "text": "Cannot find module '@angular/core' or its corresponding type declarations.", - "code": 2307, - "category": "error" - } - ] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/src/main.ts", + "diagnostics": [ + { + "start": { + "line": 1, + "offset": 21 + }, + "end": { + "line": 1, + "offset": 36 + }, + "text": "Cannot find module '@angular/core' or its corresponding type declarations.", + "code": 2307, + "category": "error" + } + ] + } } After running Immedidate callback:: count: 1 2: suggestionCheck @@ -246,22 +246,22 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/src/main.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/src/main.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 2 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 2 + } } After running Immedidate callback:: count: 0 @@ -367,13 +367,13 @@ Info seq [hh:mm:ss:mss] Files (2) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/src/main.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/src/main.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 2 7: /user/username/projects/myproject/tsconfig.json @@ -384,27 +384,27 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/src/main.ts", - "diagnostics": [ - { - "start": { - "line": 1, - "offset": 21 - }, - "end": { - "line": 1, - "offset": 36 - }, - "text": "Cannot find module '@angular/core' or its corresponding type declarations.", - "code": 2307, - "category": "error" - } - ] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/src/main.ts", + "diagnostics": [ + { + "start": { + "line": 1, + "offset": 21 + }, + "end": { + "line": 1, + "offset": 36 + }, + "text": "Cannot find module '@angular/core' or its corresponding type declarations.", + "code": 2307, + "category": "error" + } + ] + } } After running Immedidate callback:: count: 1 4: suggestionCheck @@ -414,22 +414,22 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/src/main.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/src/main.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 3 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 3 + } } After running Immedidate callback:: count: 0 @@ -507,13 +507,13 @@ Before running Timeout callback:: count: 3 Invoking Timeout callback:: timeoutId:: 11:: checkOne Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/src/main.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/src/main.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 2 7: /user/username/projects/myproject/tsconfig.json @@ -524,27 +524,27 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/src/main.ts", - "diagnostics": [ - { - "start": { - "line": 1, - "offset": 21 - }, - "end": { - "line": 1, - "offset": 36 - }, - "text": "Cannot find module '@angular/core' or its corresponding type declarations.", - "code": 2307, - "category": "error" - } - ] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/src/main.ts", + "diagnostics": [ + { + "start": { + "line": 1, + "offset": 21 + }, + "end": { + "line": 1, + "offset": 36 + }, + "text": "Cannot find module '@angular/core' or its corresponding type declarations.", + "code": 2307, + "category": "error" + } + ] + } } After running Immedidate callback:: count: 1 6: suggestionCheck @@ -554,22 +554,22 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/src/main.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/src/main.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 4 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 4 + } } After running Immedidate callback:: count: 0 @@ -609,13 +609,13 @@ Before running Timeout callback:: count: 3 Invoking Timeout callback:: timeoutId:: 12:: checkOne Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/src/main.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/src/main.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 2 7: /user/username/projects/myproject/tsconfig.json @@ -626,27 +626,27 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/src/main.ts", - "diagnostics": [ - { - "start": { - "line": 1, - "offset": 21 - }, - "end": { - "line": 1, - "offset": 36 - }, - "text": "Cannot find module '@angular/core' or its corresponding type declarations.", - "code": 2307, - "category": "error" - } - ] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/src/main.ts", + "diagnostics": [ + { + "start": { + "line": 1, + "offset": 21 + }, + "end": { + "line": 1, + "offset": 36 + }, + "text": "Cannot find module '@angular/core' or its corresponding type declarations.", + "code": 2307, + "category": "error" + } + ] + } } After running Immedidate callback:: count: 1 8: suggestionCheck @@ -656,22 +656,22 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/src/main.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/src/main.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 5 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 5 + } } After running Immedidate callback:: count: 0 @@ -792,14 +792,14 @@ Info seq [hh:mm:ss:mss] Projects: /user/username/projects/myproject/tsconfig. Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for /user/username/projects/myproject/src/main.ts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/user/username/projects/myproject/src/main.ts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/user/username/projects/myproject/src/main.ts" + ] + } } After running Timeout callback:: count: 1 18: checkOne @@ -853,13 +853,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/src/main.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/src/main.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -868,13 +868,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/src/main.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/src/main.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 1 10: suggestionCheck @@ -884,21 +884,21 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/src/main.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/src/main.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 6 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 6 + } } After running Immedidate callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/projectErrors/npm-install-when-timeout-occurs-inbetween-installation.js b/tests/baselines/reference/tsserver/projectErrors/npm-install-when-timeout-occurs-inbetween-installation.js index 98794d34a4a15..a124169edc0a1 100644 --- a/tests/baselines/reference/tsserver/projectErrors/npm-install-when-timeout-occurs-inbetween-installation.js +++ b/tests/baselines/reference/tsserver/projectErrors/npm-install-when-timeout-occurs-inbetween-installation.js @@ -37,13 +37,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json", - "reason": "Creating possible configured project for /user/username/projects/myproject/src/main.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json", + "reason": "Creating possible configured project for /user/username/projects/myproject/src/main.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/tsconfig.json : { "rootNames": [ @@ -82,64 +82,64 @@ Info seq [hh:mm:ss:mss] Files (2) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "4a33d78ee40d836c4f4e64c59aed976628aea0013be9585c5ff171dfc41baf98", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 36, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": {}, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "4a33d78ee40d836c4f4e64c59aed976628aea0013be9585c5ff171dfc41baf98", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 36, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": {}, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/myproject/src/main.ts", - "configFile": "/user/username/projects/myproject/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/myproject/src/main.ts", + "configFile": "/user/username/projects/myproject/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Project '/user/username/projects/myproject/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (2) @@ -201,13 +201,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/src/main.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/src/main.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -216,27 +216,27 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/src/main.ts", - "diagnostics": [ - { - "start": { - "line": 1, - "offset": 21 - }, - "end": { - "line": 1, - "offset": 36 - }, - "text": "Cannot find module '@angular/core' or its corresponding type declarations.", - "code": 2307, - "category": "error" - } - ] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/src/main.ts", + "diagnostics": [ + { + "start": { + "line": 1, + "offset": 21 + }, + "end": { + "line": 1, + "offset": 36 + }, + "text": "Cannot find module '@angular/core' or its corresponding type declarations.", + "code": 2307, + "category": "error" + } + ] + } } After running Immedidate callback:: count: 1 2: suggestionCheck @@ -246,22 +246,22 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/src/main.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/src/main.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 2 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 2 + } } After running Immedidate callback:: count: 0 @@ -368,14 +368,14 @@ Info seq [hh:mm:ss:mss] Projects: /user/username/projects/myproject/tsconfig. Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for /user/username/projects/myproject/src/main.ts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/user/username/projects/myproject/src/main.ts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/user/username/projects/myproject/src/main.ts" + ] + } } After running Timeout callback:: count: 1 11: checkOne @@ -405,13 +405,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/src/main.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/src/main.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -420,27 +420,27 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/src/main.ts", - "diagnostics": [ - { - "start": { - "line": 1, - "offset": 21 - }, - "end": { - "line": 1, - "offset": 36 - }, - "text": "Cannot find module '@angular/core' or its corresponding type declarations.", - "code": 2307, - "category": "error" - } - ] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/src/main.ts", + "diagnostics": [ + { + "start": { + "line": 1, + "offset": 21 + }, + "end": { + "line": 1, + "offset": 36 + }, + "text": "Cannot find module '@angular/core' or its corresponding type declarations.", + "code": 2307, + "category": "error" + } + ] + } } After running Immedidate callback:: count: 1 4: suggestionCheck @@ -450,22 +450,22 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/src/main.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/src/main.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 3 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 3 + } } After running Immedidate callback:: count: 0 @@ -543,13 +543,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/src/main.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/src/main.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -558,27 +558,27 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/src/main.ts", - "diagnostics": [ - { - "start": { - "line": 1, - "offset": 21 - }, - "end": { - "line": 1, - "offset": 36 - }, - "text": "Cannot find module '@angular/core' or its corresponding type declarations.", - "code": 2307, - "category": "error" - } - ] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/src/main.ts", + "diagnostics": [ + { + "start": { + "line": 1, + "offset": 21 + }, + "end": { + "line": 1, + "offset": 36 + }, + "text": "Cannot find module '@angular/core' or its corresponding type declarations.", + "code": 2307, + "category": "error" + } + ] + } } After running Immedidate callback:: count: 1 6: suggestionCheck @@ -588,22 +588,22 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/src/main.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/src/main.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 4 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 4 + } } After running Immedidate callback:: count: 0 @@ -643,13 +643,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/src/main.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/src/main.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -658,27 +658,27 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/src/main.ts", - "diagnostics": [ - { - "start": { - "line": 1, - "offset": 21 - }, - "end": { - "line": 1, - "offset": 36 - }, - "text": "Cannot find module '@angular/core' or its corresponding type declarations.", - "code": 2307, - "category": "error" - } - ] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/src/main.ts", + "diagnostics": [ + { + "start": { + "line": 1, + "offset": 21 + }, + "end": { + "line": 1, + "offset": 36 + }, + "text": "Cannot find module '@angular/core' or its corresponding type declarations.", + "code": 2307, + "category": "error" + } + ] + } } After running Immedidate callback:: count: 1 8: suggestionCheck @@ -688,22 +688,22 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/src/main.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/src/main.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 5 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 5 + } } After running Immedidate callback:: count: 0 @@ -824,14 +824,14 @@ Info seq [hh:mm:ss:mss] Projects: /user/username/projects/myproject/tsconfig. Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for /user/username/projects/myproject/src/main.ts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/user/username/projects/myproject/src/main.ts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/user/username/projects/myproject/src/main.ts" + ] + } } After running Timeout callback:: count: 1 20: checkOne @@ -885,13 +885,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/src/main.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/src/main.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -900,13 +900,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/src/main.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/src/main.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 1 10: suggestionCheck @@ -916,21 +916,21 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/src/main.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/src/main.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 6 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 6 + } } After running Immedidate callback:: count: 0 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 7a370ceafb172..84911b385d741 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 @@ -85,10 +85,10 @@ FsWatches:: /a/lib/lib.d.ts: *new* {} -TI:: [hh:mm:ss:mss] Global cache location '/a/data/', safe file path '/safeList.json', types map path /typesMap.json -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Global cache location '/a/data', safe file path '/safeList.json', types map path /typesMap.json +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Trying to find '/a/data/package.json'... -TI:: [hh:mm:ss:mss] Finished processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Finished processing cache location '/a/data' TI:: [hh:mm:ss:mss] Npm config file: /a/data/package.json TI:: [hh:mm:ss:mss] Npm config file: '/a/data/package.json' is missing, creating new one... TI:: [hh:mm:ss:mss] Updating types-registry npm package... @@ -104,17 +104,59 @@ TI:: typing installer creation complete } -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject1*","fileNames":["/a/lib/lib.d.ts","/user/username/projects/myproject/src/client/app.js"],"compilerOptions":{"target":1,"jsx":1,"allowNonTsExtensions":true,"allowJs":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/user/username/projects/myproject","cachePath":"/a/data/","kind":"discover"} -TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data/', loading cached information... -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject1*", + "fileNames": [ + "/a/lib/lib.d.ts", + "/user/username/projects/myproject/src/client/app.js" + ], + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/user/username/projects/myproject", + "cachePath": "/a/data", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/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] Result: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/user/username/projects/myproject/src/client/bower_components","/user/username/projects/myproject/src/client/node_modules","/user/username/projects/myproject/bower_components","/user/username/projects/myproject/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/user/username/projects/myproject/src/client/bower_components","/user/username/projects/myproject/src/client/node_modules","/user/username/projects/myproject/bower_components","/user/username/projects/myproject/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/user/username/projects/myproject/src/client/bower_components", + "/user/username/projects/myproject/src/client/node_modules", + "/user/username/projects/myproject/bower_components", + "/user/username/projects/myproject/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject1*","files":["/user/username/projects/myproject/src/client/bower_components","/user/username/projects/myproject/src/client/node_modules","/user/username/projects/myproject/bower_components","/user/username/projects/myproject/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject1*", + "files": [ + "/user/username/projects/myproject/src/client/bower_components", + "/user/username/projects/myproject/src/client/node_modules", + "/user/username/projects/myproject/bower_components", + "/user/username/projects/myproject/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/bower_components 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer @@ -122,7 +164,25 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /us Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer 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"} + { + "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] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (2) @@ -208,20 +268,90 @@ Info seq [hh:mm:ss:mss] Files (4) Root file specified for compilation Info seq [hh:mm:ss:mss] ----------------------------------------------- -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject1*","fileNames":["/a/lib/lib.d.ts","/user/username/projects/myproject/src/client/app.js","/user/username/projects/myproject/src/server/utilities.js","/user/username/projects/myproject/test/backend/index.js"],"compilerOptions":{"target":1,"jsx":1,"allowNonTsExtensions":true,"allowJs":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/user/username/projects/myproject","cachePath":"/a/data/","kind":"discover"} -TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data/', loading cached information... -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject1*", + "fileNames": [ + "/a/lib/lib.d.ts", + "/user/username/projects/myproject/src/client/app.js", + "/user/username/projects/myproject/src/server/utilities.js", + "/user/username/projects/myproject/test/backend/index.js" + ], + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/user/username/projects/myproject", + "cachePath": "/a/data", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/user/username/projects/myproject/src/client/bower_components","/user/username/projects/myproject/src/client/node_modules","/user/username/projects/myproject/src/server/bower_components","/user/username/projects/myproject/src/server/node_modules","/user/username/projects/myproject/test/backend/bower_components","/user/username/projects/myproject/test/backend/node_modules","/user/username/projects/myproject/bower_components","/user/username/projects/myproject/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/user/username/projects/myproject/src/client/bower_components","/user/username/projects/myproject/src/client/node_modules","/user/username/projects/myproject/src/server/bower_components","/user/username/projects/myproject/src/server/node_modules","/user/username/projects/myproject/test/backend/bower_components","/user/username/projects/myproject/test/backend/node_modules","/user/username/projects/myproject/bower_components","/user/username/projects/myproject/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/user/username/projects/myproject/src/client/bower_components", + "/user/username/projects/myproject/src/client/node_modules", + "/user/username/projects/myproject/src/server/bower_components", + "/user/username/projects/myproject/src/server/node_modules", + "/user/username/projects/myproject/test/backend/bower_components", + "/user/username/projects/myproject/test/backend/node_modules", + "/user/username/projects/myproject/bower_components", + "/user/username/projects/myproject/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject1*","files":["/user/username/projects/myproject/src/client/bower_components","/user/username/projects/myproject/src/client/node_modules","/user/username/projects/myproject/src/server/bower_components","/user/username/projects/myproject/src/server/node_modules","/user/username/projects/myproject/test/backend/bower_components","/user/username/projects/myproject/test/backend/node_modules","/user/username/projects/myproject/bower_components","/user/username/projects/myproject/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject1*", + "files": [ + "/user/username/projects/myproject/src/client/bower_components", + "/user/username/projects/myproject/src/client/node_modules", + "/user/username/projects/myproject/src/server/bower_components", + "/user/username/projects/myproject/src/server/node_modules", + "/user/username/projects/myproject/test/backend/bower_components", + "/user/username/projects/myproject/test/backend/node_modules", + "/user/username/projects/myproject/bower_components", + "/user/username/projects/myproject/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/test 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/test 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer 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"} + { + "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] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (4) @@ -306,13 +436,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/test/backend/index.js", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/test/backend/index.js", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -321,13 +451,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/test/backend/index.js", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/test/backend/index.js", + "diagnostics": [] + } } After running Immedidate callback:: count: 1 2: suggestionCheck @@ -337,13 +467,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/test/backend/index.js", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/test/backend/index.js", + "diagnostics": [] + } } After running Immedidate callback:: count: 0 @@ -352,13 +482,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/src/client/app.js", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/src/client/app.js", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -367,13 +497,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/src/client/app.js", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/src/client/app.js", + "diagnostics": [] + } } After running Immedidate callback:: count: 1 4: suggestionCheck @@ -383,22 +513,22 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/src/client/app.js", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/src/client/app.js", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 3 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 3 + } } After running Immedidate callback:: count: 0 @@ -508,20 +638,80 @@ Info seq [hh:mm:ss:mss] Files (2) Root file specified for compilation Info seq [hh:mm:ss:mss] ----------------------------------------------- -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject1*","fileNames":["/a/lib/lib.d.ts","/user/username/projects/myproject/src/client/app.js"],"compilerOptions":{"target":1,"jsx":1,"allowNonTsExtensions":true,"allowJs":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/user/username/projects/myproject","cachePath":"/a/data/","kind":"discover"} -TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data/', loading cached information... -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject1*", + "fileNames": [ + "/a/lib/lib.d.ts", + "/user/username/projects/myproject/src/client/app.js" + ], + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/user/username/projects/myproject", + "cachePath": "/a/data", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/user/username/projects/myproject/src/client/bower_components","/user/username/projects/myproject/src/client/node_modules","/user/username/projects/myproject/bower_components","/user/username/projects/myproject/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/user/username/projects/myproject/src/client/bower_components","/user/username/projects/myproject/src/client/node_modules","/user/username/projects/myproject/bower_components","/user/username/projects/myproject/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/user/username/projects/myproject/src/client/bower_components", + "/user/username/projects/myproject/src/client/node_modules", + "/user/username/projects/myproject/bower_components", + "/user/username/projects/myproject/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject1*","files":["/user/username/projects/myproject/src/client/bower_components","/user/username/projects/myproject/src/client/node_modules","/user/username/projects/myproject/bower_components","/user/username/projects/myproject/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject1*", + "files": [ + "/user/username/projects/myproject/src/client/bower_components", + "/user/username/projects/myproject/src/client/node_modules", + "/user/username/projects/myproject/bower_components", + "/user/username/projects/myproject/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/test 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/test 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer 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"} + { + "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] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/server/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/server/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root @@ -542,18 +732,83 @@ Info seq [hh:mm:ss:mss] Files (3) Root file specified for compilation Info seq [hh:mm:ss:mss] ----------------------------------------------- -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject1*","fileNames":["/a/lib/lib.d.ts","/user/username/projects/myproject/src/client/app.js","/user/username/projects/myproject/src/server/utilities.js"],"compilerOptions":{"target":1,"jsx":1,"allowNonTsExtensions":true,"allowJs":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/user/username/projects/myproject","cachePath":"/a/data/","kind":"discover"} -TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data/', loading cached information... -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject1*", + "fileNames": [ + "/a/lib/lib.d.ts", + "/user/username/projects/myproject/src/client/app.js", + "/user/username/projects/myproject/src/server/utilities.js" + ], + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/user/username/projects/myproject", + "cachePath": "/a/data", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/user/username/projects/myproject/src/client/bower_components","/user/username/projects/myproject/src/client/node_modules","/user/username/projects/myproject/src/server/bower_components","/user/username/projects/myproject/src/server/node_modules","/user/username/projects/myproject/bower_components","/user/username/projects/myproject/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/user/username/projects/myproject/src/client/bower_components","/user/username/projects/myproject/src/client/node_modules","/user/username/projects/myproject/src/server/bower_components","/user/username/projects/myproject/src/server/node_modules","/user/username/projects/myproject/bower_components","/user/username/projects/myproject/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/user/username/projects/myproject/src/client/bower_components", + "/user/username/projects/myproject/src/client/node_modules", + "/user/username/projects/myproject/src/server/bower_components", + "/user/username/projects/myproject/src/server/node_modules", + "/user/username/projects/myproject/bower_components", + "/user/username/projects/myproject/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject1*","files":["/user/username/projects/myproject/src/client/bower_components","/user/username/projects/myproject/src/client/node_modules","/user/username/projects/myproject/src/server/bower_components","/user/username/projects/myproject/src/server/node_modules","/user/username/projects/myproject/bower_components","/user/username/projects/myproject/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject1*", + "files": [ + "/user/username/projects/myproject/src/client/bower_components", + "/user/username/projects/myproject/src/client/node_modules", + "/user/username/projects/myproject/src/server/bower_components", + "/user/username/projects/myproject/src/server/node_modules", + "/user/username/projects/myproject/bower_components", + "/user/username/projects/myproject/node_modules" + ] + } 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"} + { + "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] FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/test/backend/index.js 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) @@ -641,13 +896,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/src/server/utilities.js", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/src/server/utilities.js", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -656,13 +911,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/src/server/utilities.js", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/src/server/utilities.js", + "diagnostics": [] + } } After running Immedidate callback:: count: 1 6: suggestionCheck @@ -672,13 +927,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/src/server/utilities.js", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/src/server/utilities.js", + "diagnostics": [] + } } After running Immedidate callback:: count: 0 @@ -687,13 +942,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/src/client/app.js", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/src/client/app.js", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -702,13 +957,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/src/client/app.js", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/src/client/app.js", + "diagnostics": [] + } } After running Immedidate callback:: count: 1 8: suggestionCheck @@ -718,21 +973,21 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/src/client/app.js", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/src/client/app.js", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 6 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 6 + } } After running Immedidate callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/projectErrors/should-not-report-incorrect-error-when-json-is-root-file-found-by-tsconfig.js b/tests/baselines/reference/tsserver/projectErrors/should-not-report-incorrect-error-when-json-is-root-file-found-by-tsconfig.js index a04dca8b3f1e9..f3b42e7e35136 100644 --- a/tests/baselines/reference/tsserver/projectErrors/should-not-report-incorrect-error-when-json-is-root-file-found-by-tsconfig.js +++ b/tests/baselines/reference/tsserver/projectErrors/should-not-report-incorrect-error-when-json-is-root-file-found-by-tsconfig.js @@ -41,13 +41,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json", - "reason": "Creating possible configured project for /user/username/projects/myproject/src/test.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json", + "reason": "Creating possible configured project for /user/username/projects/myproject/src/test.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/tsconfig.json : { "rootNames": [ @@ -91,68 +91,68 @@ Info seq [hh:mm:ss:mss] Files (3) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "4a33d78ee40d836c4f4e64c59aed976628aea0013be9585c5ff171dfc41baf98", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 87, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": { - "resolveJsonModule": true, - "composite": true, - "outDir": "" - }, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": true, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "4a33d78ee40d836c4f4e64c59aed976628aea0013be9585c5ff171dfc41baf98", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 87, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "resolveJsonModule": true, + "composite": true, + "outDir": "" + }, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": true, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/myproject/src/test.ts", - "configFile": "/user/username/projects/myproject/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/myproject/src/test.ts", + "configFile": "/user/username/projects/myproject/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Search path: /user/username/projects/myproject Info seq [hh:mm:ss:mss] For info: /user/username/projects/myproject/tsconfig.json :: No config files found. @@ -214,13 +214,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/src/test.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/src/test.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -229,13 +229,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/src/test.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/src/test.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 1 2: suggestionCheck @@ -245,21 +245,21 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/src/test.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/src/test.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 2 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 2 + } } After running Immedidate callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/projectErrors/should-report-error-when-json-is-not-root-file-found-by-tsconfig.js b/tests/baselines/reference/tsserver/projectErrors/should-report-error-when-json-is-not-root-file-found-by-tsconfig.js index 29b7bb50eea54..3d9b8e2a20cca 100644 --- a/tests/baselines/reference/tsserver/projectErrors/should-report-error-when-json-is-not-root-file-found-by-tsconfig.js +++ b/tests/baselines/reference/tsserver/projectErrors/should-report-error-when-json-is-not-root-file-found-by-tsconfig.js @@ -41,13 +41,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json", - "reason": "Creating possible configured project for /user/username/projects/myproject/src/test.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json", + "reason": "Creating possible configured project for /user/username/projects/myproject/src/test.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/tsconfig.json : { "rootNames": [ @@ -89,68 +89,68 @@ Info seq [hh:mm:ss:mss] Files (3) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "4a33d78ee40d836c4f4e64c59aed976628aea0013be9585c5ff171dfc41baf98", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 87, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": { - "resolveJsonModule": true, - "composite": true, - "outDir": "" - }, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": true, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "4a33d78ee40d836c4f4e64c59aed976628aea0013be9585c5ff171dfc41baf98", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 87, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "resolveJsonModule": true, + "composite": true, + "outDir": "" + }, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": true, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/myproject/src/test.ts", - "configFile": "/user/username/projects/myproject/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/myproject/src/test.ts", + "configFile": "/user/username/projects/myproject/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Search path: /user/username/projects/myproject Info seq [hh:mm:ss:mss] For info: /user/username/projects/myproject/tsconfig.json :: No config files found. @@ -212,13 +212,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/src/test.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/src/test.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -227,27 +227,27 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/src/test.ts", - "diagnostics": [ - { - "start": { - "line": 1, - "offset": 25 - }, - "end": { - "line": 1, - "offset": 40 - }, - "text": "File '/user/username/projects/myproject/src/blabla.json' is not listed within the file list of project '/user/username/projects/myproject/tsconfig.json'. Projects must list all files or use an 'include' pattern.", - "code": 6307, - "category": "error" - } - ] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/src/test.ts", + "diagnostics": [ + { + "start": { + "line": 1, + "offset": 25 + }, + "end": { + "line": 1, + "offset": 40 + }, + "text": "File '/user/username/projects/myproject/src/blabla.json' is not listed within the file list of project '/user/username/projects/myproject/tsconfig.json'. Projects must list all files or use an 'include' pattern.", + "code": 6307, + "category": "error" + } + ] + } } After running Immedidate callback:: count: 1 2: suggestionCheck @@ -257,21 +257,21 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/src/test.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/src/test.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 2 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 2 + } } After running Immedidate callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/projectErrors/when-opening-new-file-that-doesnt-exist-on-disk-yet-with-projectRoot.js b/tests/baselines/reference/tsserver/projectErrors/when-opening-new-file-that-doesnt-exist-on-disk-yet-with-projectRoot.js index 3d587f2d96d2c..7f707cd7faea4 100644 --- a/tests/baselines/reference/tsserver/projectErrors/when-opening-new-file-that-doesnt-exist-on-disk-yet-with-projectRoot.js +++ b/tests/baselines/reference/tsserver/projectErrors/when-opening-new-file-that-doesnt-exist-on-disk-yet-with-projectRoot.js @@ -113,13 +113,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "untitled:Untitled-1", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "untitled:Untitled-1", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -128,40 +128,40 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "untitled:Untitled-1", - "diagnostics": [ - { - "start": { - "line": 1, - "offset": 22 - }, - "end": { - "line": 1, - "offset": 63 - }, - "text": "File '../../../../../../typings/@epic/Core.d.ts' not found.", - "code": 6053, - "category": "error" - }, - { - "start": { - "line": 2, - "offset": 22 - }, - "end": { - "line": 2, - "offset": 41 - }, - "text": "File 'src/somefile.d.ts' not found.", - "code": 6053, - "category": "error" - } - ] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "untitled:Untitled-1", + "diagnostics": [ + { + "start": { + "line": 1, + "offset": 22 + }, + "end": { + "line": 1, + "offset": 63 + }, + "text": "File '../../../../../../typings/@epic/Core.d.ts' not found.", + "code": 6053, + "category": "error" + }, + { + "start": { + "line": 2, + "offset": 22 + }, + "end": { + "line": 2, + "offset": 41 + }, + "text": "File 'src/somefile.d.ts' not found.", + "code": 6053, + "category": "error" + } + ] + } } After running Immedidate callback:: count: 1 2: suggestionCheck @@ -171,21 +171,21 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "untitled:Untitled-1", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "untitled:Untitled-1", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 2 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 2 + } } After running Immedidate callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/projectErrors/when-opening-new-file-that-doesnt-exist-on-disk-yet-without-projectRoot.js b/tests/baselines/reference/tsserver/projectErrors/when-opening-new-file-that-doesnt-exist-on-disk-yet-without-projectRoot.js index 92db74307b34c..3ff9cab554040 100644 --- a/tests/baselines/reference/tsserver/projectErrors/when-opening-new-file-that-doesnt-exist-on-disk-yet-without-projectRoot.js +++ b/tests/baselines/reference/tsserver/projectErrors/when-opening-new-file-that-doesnt-exist-on-disk-yet-without-projectRoot.js @@ -104,13 +104,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "untitled:Untitled-1", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "untitled:Untitled-1", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -119,40 +119,40 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "untitled:Untitled-1", - "diagnostics": [ - { - "start": { - "line": 1, - "offset": 22 - }, - "end": { - "line": 1, - "offset": 63 - }, - "text": "File '../../../../../../typings/@epic/Core.d.ts' not found.", - "code": 6053, - "category": "error" - }, - { - "start": { - "line": 2, - "offset": 22 - }, - "end": { - "line": 2, - "offset": 41 - }, - "text": "File 'src/somefile.d.ts' not found.", - "code": 6053, - "category": "error" - } - ] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "untitled:Untitled-1", + "diagnostics": [ + { + "start": { + "line": 1, + "offset": 22 + }, + "end": { + "line": 1, + "offset": 63 + }, + "text": "File '../../../../../../typings/@epic/Core.d.ts' not found.", + "code": 6053, + "category": "error" + }, + { + "start": { + "line": 2, + "offset": 22 + }, + "end": { + "line": 2, + "offset": 41 + }, + "text": "File 'src/somefile.d.ts' not found.", + "code": 6053, + "category": "error" + } + ] + } } After running Immedidate callback:: count: 1 2: suggestionCheck @@ -162,21 +162,21 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "untitled:Untitled-1", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "untitled:Untitled-1", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 2 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 2 + } } After running Immedidate callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/projectErrors/when-semantic-error-returns-includes-global-error-getErr.js b/tests/baselines/reference/tsserver/projectErrors/when-semantic-error-returns-includes-global-error-getErr.js index 7d92245ba3195..3aecc8eb53b45 100644 --- a/tests/baselines/reference/tsserver/projectErrors/when-semantic-error-returns-includes-global-error-getErr.js +++ b/tests/baselines/reference/tsserver/projectErrors/when-semantic-error-returns-includes-global-error-getErr.js @@ -37,13 +37,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json", - "reason": "Creating possible configured project for /user/username/projects/myproject/ui.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json", + "reason": "Creating possible configured project for /user/username/projects/myproject/ui.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/tsconfig.json : { "rootNames": [ @@ -76,64 +76,64 @@ Info seq [hh:mm:ss:mss] Files (2) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "4a33d78ee40d836c4f4e64c59aed976628aea0013be9585c5ff171dfc41baf98", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 41, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": {}, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "4a33d78ee40d836c4f4e64c59aed976628aea0013be9585c5ff171dfc41baf98", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 41, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": {}, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/myproject/ui.ts", - "configFile": "/user/username/projects/myproject/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/myproject/ui.ts", + "configFile": "/user/username/projects/myproject/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Project '/user/username/projects/myproject/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (2) @@ -189,13 +189,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/ui.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/ui.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -204,27 +204,27 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/ui.ts", - "diagnostics": [ - { - "start": { - "line": 1, - "offset": 11 - }, - "end": { - "line": 1, - "offset": 39 - }, - "text": "An async function or method must return a 'Promise'. Make sure you have a declaration for 'Promise' or include 'ES2015' in your '--lib' option.", - "code": 2697, - "category": "error" - } - ] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/ui.ts", + "diagnostics": [ + { + "start": { + "line": 1, + "offset": 11 + }, + "end": { + "line": 1, + "offset": 39 + }, + "text": "An async function or method must return a 'Promise'. Make sure you have a declaration for 'Promise' or include 'ES2015' in your '--lib' option.", + "code": 2697, + "category": "error" + } + ] + } } After running Immedidate callback:: count: 1 2: suggestionCheck @@ -234,21 +234,21 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/ui.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/ui.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 2 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 2 + } } After running Immedidate callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/projectErrors/when-semantic-error-returns-includes-global-error-geterrForProject.js b/tests/baselines/reference/tsserver/projectErrors/when-semantic-error-returns-includes-global-error-geterrForProject.js index 6b1913dfdfa82..86cb19ff92379 100644 --- a/tests/baselines/reference/tsserver/projectErrors/when-semantic-error-returns-includes-global-error-geterrForProject.js +++ b/tests/baselines/reference/tsserver/projectErrors/when-semantic-error-returns-includes-global-error-geterrForProject.js @@ -37,13 +37,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json", - "reason": "Creating possible configured project for /user/username/projects/myproject/ui.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json", + "reason": "Creating possible configured project for /user/username/projects/myproject/ui.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/tsconfig.json : { "rootNames": [ @@ -76,64 +76,64 @@ Info seq [hh:mm:ss:mss] Files (2) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "4a33d78ee40d836c4f4e64c59aed976628aea0013be9585c5ff171dfc41baf98", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 41, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": {}, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "4a33d78ee40d836c4f4e64c59aed976628aea0013be9585c5ff171dfc41baf98", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 41, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": {}, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/myproject/ui.ts", - "configFile": "/user/username/projects/myproject/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/myproject/ui.ts", + "configFile": "/user/username/projects/myproject/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Project '/user/username/projects/myproject/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (2) @@ -187,13 +187,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/ui.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/ui.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -202,27 +202,27 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/ui.ts", - "diagnostics": [ - { - "start": { - "line": 1, - "offset": 11 - }, - "end": { - "line": 1, - "offset": 39 - }, - "text": "An async function or method must return a 'Promise'. Make sure you have a declaration for 'Promise' or include 'ES2015' in your '--lib' option.", - "code": 2697, - "category": "error" - } - ] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/ui.ts", + "diagnostics": [ + { + "start": { + "line": 1, + "offset": 11 + }, + "end": { + "line": 1, + "offset": 39 + }, + "text": "An async function or method must return a 'Promise'. Make sure you have a declaration for 'Promise' or include 'ES2015' in your '--lib' option.", + "code": 2697, + "category": "error" + } + ] + } } After running Immedidate callback:: count: 1 2: suggestionCheck @@ -232,21 +232,21 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/ui.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/ui.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 2 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 2 + } } After running Immedidate callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/projectReferenceErrors/with-module-scenario-when-dependency-project-is-not-open-getErr.js b/tests/baselines/reference/tsserver/projectReferenceErrors/with-module-scenario-when-dependency-project-is-not-open-getErr.js index 9bb0526bc13bc..c2694caa5c496 100644 --- a/tests/baselines/reference/tsserver/projectReferenceErrors/with-module-scenario-when-dependency-project-is-not-open-getErr.js +++ b/tests/baselines/reference/tsserver/projectReferenceErrors/with-module-scenario-when-dependency-project-is-not-open-getErr.js @@ -55,13 +55,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/usage/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/usage/tsconfig.json", - "reason": "Creating possible configured project for /user/username/projects/myproject/usage/usage.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/usage/tsconfig.json", + "reason": "Creating possible configured project for /user/username/projects/myproject/usage/usage.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/usage/tsconfig.json : { "rootNames": [ @@ -122,66 +122,66 @@ Info seq [hh:mm:ss:mss] Files (3) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/usage/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/usage/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "2b96539513e8810fb8ec0c078e4cb28919c0c28cdb8f7646118c5a6f4ff4cb10", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 2, - "tsSize": 266, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": { - "composite": true - }, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "2b96539513e8810fb8ec0c078e4cb28919c0c28cdb8f7646118c5a6f4ff4cb10", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 2, + "tsSize": 266, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "composite": true + }, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/myproject/usage/usage.ts", - "configFile": "/user/username/projects/myproject/usage/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/myproject/usage/usage.ts", + "configFile": "/user/username/projects/myproject/usage/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Search path: /user/username/projects/myproject/usage Info seq [hh:mm:ss:mss] For info: /user/username/projects/myproject/usage/tsconfig.json :: No config files found. @@ -249,13 +249,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/usage/usage.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/usage/usage.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -264,27 +264,27 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/usage/usage.ts", - "diagnostics": [ - { - "start": { - "line": 4, - "offset": 5 - }, - "end": { - "line": 4, - "offset": 10 - }, - "text": "Module '\"../decls/fns\"' has no exported member 'fnErr'.", - "code": 2305, - "category": "error" - } - ] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/usage/usage.ts", + "diagnostics": [ + { + "start": { + "line": 4, + "offset": 5 + }, + "end": { + "line": 4, + "offset": 10 + }, + "text": "Module '\"../decls/fns\"' has no exported member 'fnErr'.", + "code": 2305, + "category": "error" + } + ] + } } After running Immedidate callback:: count: 1 2: suggestionCheck @@ -294,21 +294,21 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/usage/usage.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/usage/usage.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 2 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 2 + } } After running Immedidate callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/projectReferenceErrors/with-module-scenario-when-dependency-project-is-not-open-geterrForProject.js b/tests/baselines/reference/tsserver/projectReferenceErrors/with-module-scenario-when-dependency-project-is-not-open-geterrForProject.js index 62c46acb7c585..ce4b79112e329 100644 --- a/tests/baselines/reference/tsserver/projectReferenceErrors/with-module-scenario-when-dependency-project-is-not-open-geterrForProject.js +++ b/tests/baselines/reference/tsserver/projectReferenceErrors/with-module-scenario-when-dependency-project-is-not-open-geterrForProject.js @@ -55,13 +55,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/usage/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/usage/tsconfig.json", - "reason": "Creating possible configured project for /user/username/projects/myproject/usage/usage.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/usage/tsconfig.json", + "reason": "Creating possible configured project for /user/username/projects/myproject/usage/usage.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/usage/tsconfig.json : { "rootNames": [ @@ -122,66 +122,66 @@ Info seq [hh:mm:ss:mss] Files (3) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/usage/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/usage/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "2b96539513e8810fb8ec0c078e4cb28919c0c28cdb8f7646118c5a6f4ff4cb10", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 2, - "tsSize": 266, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": { - "composite": true - }, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "2b96539513e8810fb8ec0c078e4cb28919c0c28cdb8f7646118c5a6f4ff4cb10", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 2, + "tsSize": 266, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "composite": true + }, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/myproject/usage/usage.ts", - "configFile": "/user/username/projects/myproject/usage/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/myproject/usage/usage.ts", + "configFile": "/user/username/projects/myproject/usage/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Search path: /user/username/projects/myproject/usage Info seq [hh:mm:ss:mss] For info: /user/username/projects/myproject/usage/tsconfig.json :: No config files found. @@ -247,13 +247,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/usage/usage.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/usage/usage.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -262,27 +262,27 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/usage/usage.ts", - "diagnostics": [ - { - "start": { - "line": 4, - "offset": 5 - }, - "end": { - "line": 4, - "offset": 10 - }, - "text": "Module '\"../decls/fns\"' has no exported member 'fnErr'.", - "code": 2305, - "category": "error" - } - ] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/usage/usage.ts", + "diagnostics": [ + { + "start": { + "line": 4, + "offset": 5 + }, + "end": { + "line": 4, + "offset": 10 + }, + "text": "Module '\"../decls/fns\"' has no exported member 'fnErr'.", + "code": 2305, + "category": "error" + } + ] + } } After running Immedidate callback:: count: 1 2: suggestionCheck @@ -292,13 +292,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/usage/usage.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/usage/usage.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 0 @@ -307,13 +307,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/dependency/fns.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/dependency/fns.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -322,13 +322,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/dependency/fns.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/dependency/fns.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 1 4: suggestionCheck @@ -338,22 +338,22 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/dependency/fns.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/dependency/fns.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 2 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 2 + } } After running Immedidate callback:: count: 0 @@ -380,13 +380,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/dependency/fns.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/dependency/fns.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -395,13 +395,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/dependency/fns.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/dependency/fns.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 1 6: suggestionCheck @@ -411,13 +411,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/dependency/fns.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/dependency/fns.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 0 @@ -426,13 +426,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/usage/usage.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/usage/usage.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -441,27 +441,27 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/usage/usage.ts", - "diagnostics": [ - { - "start": { - "line": 4, - "offset": 5 - }, - "end": { - "line": 4, - "offset": 10 - }, - "text": "Module '\"../decls/fns\"' has no exported member 'fnErr'.", - "code": 2305, - "category": "error" - } - ] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/usage/usage.ts", + "diagnostics": [ + { + "start": { + "line": 4, + "offset": 5 + }, + "end": { + "line": 4, + "offset": 10 + }, + "text": "Module '\"../decls/fns\"' has no exported member 'fnErr'.", + "code": 2305, + "category": "error" + } + ] + } } After running Immedidate callback:: count: 1 8: suggestionCheck @@ -471,21 +471,21 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/usage/usage.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/usage/usage.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 3 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 3 + } } After running Immedidate callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/projectReferenceErrors/with-module-scenario-when-the-depedency-file-is-open-getErr.js b/tests/baselines/reference/tsserver/projectReferenceErrors/with-module-scenario-when-the-depedency-file-is-open-getErr.js index d710a867c0ba5..be24b074bc920 100644 --- a/tests/baselines/reference/tsserver/projectReferenceErrors/with-module-scenario-when-the-depedency-file-is-open-getErr.js +++ b/tests/baselines/reference/tsserver/projectReferenceErrors/with-module-scenario-when-the-depedency-file-is-open-getErr.js @@ -55,13 +55,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/usage/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/usage/tsconfig.json", - "reason": "Creating possible configured project for /user/username/projects/myproject/usage/usage.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/usage/tsconfig.json", + "reason": "Creating possible configured project for /user/username/projects/myproject/usage/usage.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/usage/tsconfig.json : { "rootNames": [ @@ -122,66 +122,66 @@ Info seq [hh:mm:ss:mss] Files (3) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/usage/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/usage/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "2b96539513e8810fb8ec0c078e4cb28919c0c28cdb8f7646118c5a6f4ff4cb10", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 2, - "tsSize": 266, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": { - "composite": true - }, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "2b96539513e8810fb8ec0c078e4cb28919c0c28cdb8f7646118c5a6f4ff4cb10", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 2, + "tsSize": 266, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "composite": true + }, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/myproject/usage/usage.ts", - "configFile": "/user/username/projects/myproject/usage/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/myproject/usage/usage.ts", + "configFile": "/user/username/projects/myproject/usage/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Search path: /user/username/projects/myproject/usage Info seq [hh:mm:ss:mss] For info: /user/username/projects/myproject/usage/tsconfig.json :: No config files found. @@ -241,13 +241,13 @@ Info seq [hh:mm:ss:mss] For info: /user/username/projects/myproject/dependency/ Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/myproject/dependency/tsconfig.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/dependency/tsconfig.json", - "reason": "Creating possible configured project for /user/username/projects/myproject/dependency/fns.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/dependency/tsconfig.json", + "reason": "Creating possible configured project for /user/username/projects/myproject/dependency/fns.ts to open" + } } Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/dependency/tsconfig.json Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots @@ -271,67 +271,67 @@ Info seq [hh:mm:ss:mss] Files (2) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/dependency/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/dependency/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "80216eb4c9c6d41fcd26650a22a2df8f2cac81cda661de72dc723e6251203d22", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 184, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": { - "composite": true, - "declarationDir": "" - }, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "80216eb4c9c6d41fcd26650a22a2df8f2cac81cda661de72dc723e6251203d22", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 184, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "composite": true, + "declarationDir": "" + }, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/myproject/dependency/fns.ts", - "configFile": "/user/username/projects/myproject/dependency/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/myproject/dependency/fns.ts", + "configFile": "/user/username/projects/myproject/dependency/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Search path: /user/username/projects/myproject/dependency Info seq [hh:mm:ss:mss] For info: /user/username/projects/myproject/dependency/tsconfig.json :: No config files found. @@ -410,13 +410,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/usage/usage.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/usage/usage.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -425,27 +425,27 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/usage/usage.ts", - "diagnostics": [ - { - "start": { - "line": 4, - "offset": 5 - }, - "end": { - "line": 4, - "offset": 10 - }, - "text": "Module '\"../decls/fns\"' has no exported member 'fnErr'.", - "code": 2305, - "category": "error" - } - ] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/usage/usage.ts", + "diagnostics": [ + { + "start": { + "line": 4, + "offset": 5 + }, + "end": { + "line": 4, + "offset": 10 + }, + "text": "Module '\"../decls/fns\"' has no exported member 'fnErr'.", + "code": 2305, + "category": "error" + } + ] + } } After running Immedidate callback:: count: 1 2: suggestionCheck @@ -455,13 +455,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/usage/usage.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/usage/usage.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 0 @@ -470,13 +470,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/dependency/fns.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/dependency/fns.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -485,27 +485,27 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/dependency/fns.ts", - "diagnostics": [ - { - "start": { - "line": 6, - "offset": 12 - }, - "end": { - "line": 6, - "offset": 13 - }, - "text": "Type 'number' is not assignable to type 'string'.", - "code": 2322, - "category": "error" - } - ] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/dependency/fns.ts", + "diagnostics": [ + { + "start": { + "line": 6, + "offset": 12 + }, + "end": { + "line": 6, + "offset": 13 + }, + "text": "Type 'number' is not assignable to type 'string'.", + "code": 2322, + "category": "error" + } + ] + } } After running Immedidate callback:: count: 1 4: suggestionCheck @@ -515,21 +515,21 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/dependency/fns.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/dependency/fns.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 3 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 3 + } } After running Immedidate callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/projectReferenceErrors/with-module-scenario-when-the-depedency-file-is-open-geterrForProject.js b/tests/baselines/reference/tsserver/projectReferenceErrors/with-module-scenario-when-the-depedency-file-is-open-geterrForProject.js index 78b284733bd7d..d30dbae23d96c 100644 --- a/tests/baselines/reference/tsserver/projectReferenceErrors/with-module-scenario-when-the-depedency-file-is-open-geterrForProject.js +++ b/tests/baselines/reference/tsserver/projectReferenceErrors/with-module-scenario-when-the-depedency-file-is-open-geterrForProject.js @@ -55,13 +55,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/usage/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/usage/tsconfig.json", - "reason": "Creating possible configured project for /user/username/projects/myproject/usage/usage.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/usage/tsconfig.json", + "reason": "Creating possible configured project for /user/username/projects/myproject/usage/usage.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/usage/tsconfig.json : { "rootNames": [ @@ -122,66 +122,66 @@ Info seq [hh:mm:ss:mss] Files (3) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/usage/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/usage/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "2b96539513e8810fb8ec0c078e4cb28919c0c28cdb8f7646118c5a6f4ff4cb10", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 2, - "tsSize": 266, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": { - "composite": true - }, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "2b96539513e8810fb8ec0c078e4cb28919c0c28cdb8f7646118c5a6f4ff4cb10", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 2, + "tsSize": 266, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "composite": true + }, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/myproject/usage/usage.ts", - "configFile": "/user/username/projects/myproject/usage/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/myproject/usage/usage.ts", + "configFile": "/user/username/projects/myproject/usage/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Search path: /user/username/projects/myproject/usage Info seq [hh:mm:ss:mss] For info: /user/username/projects/myproject/usage/tsconfig.json :: No config files found. @@ -241,13 +241,13 @@ Info seq [hh:mm:ss:mss] For info: /user/username/projects/myproject/dependency/ Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/myproject/dependency/tsconfig.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/dependency/tsconfig.json", - "reason": "Creating possible configured project for /user/username/projects/myproject/dependency/fns.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/dependency/tsconfig.json", + "reason": "Creating possible configured project for /user/username/projects/myproject/dependency/fns.ts to open" + } } Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/dependency/tsconfig.json Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots @@ -271,67 +271,67 @@ Info seq [hh:mm:ss:mss] Files (2) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/dependency/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/dependency/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "80216eb4c9c6d41fcd26650a22a2df8f2cac81cda661de72dc723e6251203d22", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 184, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": { - "composite": true, - "declarationDir": "" - }, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "80216eb4c9c6d41fcd26650a22a2df8f2cac81cda661de72dc723e6251203d22", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 184, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "composite": true, + "declarationDir": "" + }, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/myproject/dependency/fns.ts", - "configFile": "/user/username/projects/myproject/dependency/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/myproject/dependency/fns.ts", + "configFile": "/user/username/projects/myproject/dependency/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Search path: /user/username/projects/myproject/dependency Info seq [hh:mm:ss:mss] For info: /user/username/projects/myproject/dependency/tsconfig.json :: No config files found. @@ -407,13 +407,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/usage/usage.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/usage/usage.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -422,27 +422,27 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/usage/usage.ts", - "diagnostics": [ - { - "start": { - "line": 4, - "offset": 5 - }, - "end": { - "line": 4, - "offset": 10 - }, - "text": "Module '\"../decls/fns\"' has no exported member 'fnErr'.", - "code": 2305, - "category": "error" - } - ] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/usage/usage.ts", + "diagnostics": [ + { + "start": { + "line": 4, + "offset": 5 + }, + "end": { + "line": 4, + "offset": 10 + }, + "text": "Module '\"../decls/fns\"' has no exported member 'fnErr'.", + "code": 2305, + "category": "error" + } + ] + } } After running Immedidate callback:: count: 1 2: suggestionCheck @@ -452,13 +452,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/usage/usage.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/usage/usage.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 0 @@ -467,13 +467,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/dependency/fns.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/dependency/fns.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -482,13 +482,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/dependency/fns.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/dependency/fns.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 1 4: suggestionCheck @@ -498,22 +498,22 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/dependency/fns.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/dependency/fns.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 3 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 3 + } } After running Immedidate callback:: count: 0 @@ -540,13 +540,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/dependency/fns.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/dependency/fns.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -555,27 +555,27 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/dependency/fns.ts", - "diagnostics": [ - { - "start": { - "line": 6, - "offset": 12 - }, - "end": { - "line": 6, - "offset": 13 - }, - "text": "Type 'number' is not assignable to type 'string'.", - "code": 2322, - "category": "error" - } - ] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/dependency/fns.ts", + "diagnostics": [ + { + "start": { + "line": 6, + "offset": 12 + }, + "end": { + "line": 6, + "offset": 13 + }, + "text": "Type 'number' is not assignable to type 'string'.", + "code": 2322, + "category": "error" + } + ] + } } After running Immedidate callback:: count: 1 6: suggestionCheck @@ -585,21 +585,21 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/dependency/fns.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/dependency/fns.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 4 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 4 + } } After running Immedidate callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/projectReferenceErrors/with-non-module-when-dependency-project-is-not-open-getErr.js b/tests/baselines/reference/tsserver/projectReferenceErrors/with-non-module-when-dependency-project-is-not-open-getErr.js index d1ef4e6ee39e1..d56ee0a0b0c6e 100644 --- a/tests/baselines/reference/tsserver/projectReferenceErrors/with-non-module-when-dependency-project-is-not-open-getErr.js +++ b/tests/baselines/reference/tsserver/projectReferenceErrors/with-non-module-when-dependency-project-is-not-open-getErr.js @@ -50,13 +50,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/usage/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/usage/tsconfig.json", - "reason": "Creating possible configured project for /user/username/projects/myproject/usage/usage.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/usage/tsconfig.json", + "reason": "Creating possible configured project for /user/username/projects/myproject/usage/usage.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/usage/tsconfig.json : { "rootNames": [ @@ -116,67 +116,67 @@ Info seq [hh:mm:ss:mss] Files (3) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/usage/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/usage/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "2b96539513e8810fb8ec0c078e4cb28919c0c28cdb8f7646118c5a6f4ff4cb10", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 2, - "tsSize": 179, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": { - "composite": true, - "outFile": "" - }, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "2b96539513e8810fb8ec0c078e4cb28919c0c28cdb8f7646118c5a6f4ff4cb10", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 2, + "tsSize": 179, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "composite": true, + "outFile": "" + }, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/myproject/usage/usage.ts", - "configFile": "/user/username/projects/myproject/usage/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/myproject/usage/usage.ts", + "configFile": "/user/username/projects/myproject/usage/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Search path: /user/username/projects/myproject/usage Info seq [hh:mm:ss:mss] For info: /user/username/projects/myproject/usage/tsconfig.json :: No config files found. @@ -242,13 +242,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/usage/usage.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/usage/usage.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -257,27 +257,27 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/usage/usage.ts", - "diagnostics": [ - { - "start": { - "line": 3, - "offset": 1 - }, - "end": { - "line": 3, - "offset": 6 - }, - "text": "Cannot find name 'fnErr'.", - "code": 2304, - "category": "error" - } - ] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/usage/usage.ts", + "diagnostics": [ + { + "start": { + "line": 3, + "offset": 1 + }, + "end": { + "line": 3, + "offset": 6 + }, + "text": "Cannot find name 'fnErr'.", + "code": 2304, + "category": "error" + } + ] + } } After running Immedidate callback:: count: 1 2: suggestionCheck @@ -287,21 +287,21 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/usage/usage.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/usage/usage.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 2 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 2 + } } After running Immedidate callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/projectReferenceErrors/with-non-module-when-dependency-project-is-not-open-geterrForProject.js b/tests/baselines/reference/tsserver/projectReferenceErrors/with-non-module-when-dependency-project-is-not-open-geterrForProject.js index a6c4487b9ed83..6de5d679e593d 100644 --- a/tests/baselines/reference/tsserver/projectReferenceErrors/with-non-module-when-dependency-project-is-not-open-geterrForProject.js +++ b/tests/baselines/reference/tsserver/projectReferenceErrors/with-non-module-when-dependency-project-is-not-open-geterrForProject.js @@ -50,13 +50,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/usage/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/usage/tsconfig.json", - "reason": "Creating possible configured project for /user/username/projects/myproject/usage/usage.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/usage/tsconfig.json", + "reason": "Creating possible configured project for /user/username/projects/myproject/usage/usage.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/usage/tsconfig.json : { "rootNames": [ @@ -116,67 +116,67 @@ Info seq [hh:mm:ss:mss] Files (3) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/usage/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/usage/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "2b96539513e8810fb8ec0c078e4cb28919c0c28cdb8f7646118c5a6f4ff4cb10", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 2, - "tsSize": 179, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": { - "composite": true, - "outFile": "" - }, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "2b96539513e8810fb8ec0c078e4cb28919c0c28cdb8f7646118c5a6f4ff4cb10", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 2, + "tsSize": 179, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "composite": true, + "outFile": "" + }, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/myproject/usage/usage.ts", - "configFile": "/user/username/projects/myproject/usage/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/myproject/usage/usage.ts", + "configFile": "/user/username/projects/myproject/usage/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Search path: /user/username/projects/myproject/usage Info seq [hh:mm:ss:mss] For info: /user/username/projects/myproject/usage/tsconfig.json :: No config files found. @@ -240,13 +240,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/usage/usage.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/usage/usage.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -255,27 +255,27 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/usage/usage.ts", - "diagnostics": [ - { - "start": { - "line": 3, - "offset": 1 - }, - "end": { - "line": 3, - "offset": 6 - }, - "text": "Cannot find name 'fnErr'.", - "code": 2304, - "category": "error" - } - ] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/usage/usage.ts", + "diagnostics": [ + { + "start": { + "line": 3, + "offset": 1 + }, + "end": { + "line": 3, + "offset": 6 + }, + "text": "Cannot find name 'fnErr'.", + "code": 2304, + "category": "error" + } + ] + } } After running Immedidate callback:: count: 1 2: suggestionCheck @@ -285,13 +285,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/usage/usage.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/usage/usage.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 0 @@ -300,13 +300,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/dependency/fns.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/dependency/fns.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -315,13 +315,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/dependency/fns.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/dependency/fns.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 1 4: suggestionCheck @@ -331,22 +331,22 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/dependency/fns.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/dependency/fns.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 2 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 2 + } } After running Immedidate callback:: count: 0 @@ -373,13 +373,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/dependency/fns.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/dependency/fns.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -388,13 +388,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/dependency/fns.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/dependency/fns.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 1 6: suggestionCheck @@ -404,13 +404,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/dependency/fns.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/dependency/fns.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 0 @@ -419,13 +419,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/usage/usage.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/usage/usage.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -434,27 +434,27 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/usage/usage.ts", - "diagnostics": [ - { - "start": { - "line": 3, - "offset": 1 - }, - "end": { - "line": 3, - "offset": 6 - }, - "text": "Cannot find name 'fnErr'.", - "code": 2304, - "category": "error" - } - ] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/usage/usage.ts", + "diagnostics": [ + { + "start": { + "line": 3, + "offset": 1 + }, + "end": { + "line": 3, + "offset": 6 + }, + "text": "Cannot find name 'fnErr'.", + "code": 2304, + "category": "error" + } + ] + } } After running Immedidate callback:: count: 1 8: suggestionCheck @@ -464,21 +464,21 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/usage/usage.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/usage/usage.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 3 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 3 + } } After running Immedidate callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/projectReferenceErrors/with-non-module-when-the-depedency-file-is-open-getErr.js b/tests/baselines/reference/tsserver/projectReferenceErrors/with-non-module-when-the-depedency-file-is-open-getErr.js index aa52b9bb0dc89..b59add0672200 100644 --- a/tests/baselines/reference/tsserver/projectReferenceErrors/with-non-module-when-the-depedency-file-is-open-getErr.js +++ b/tests/baselines/reference/tsserver/projectReferenceErrors/with-non-module-when-the-depedency-file-is-open-getErr.js @@ -50,13 +50,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/usage/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/usage/tsconfig.json", - "reason": "Creating possible configured project for /user/username/projects/myproject/usage/usage.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/usage/tsconfig.json", + "reason": "Creating possible configured project for /user/username/projects/myproject/usage/usage.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/usage/tsconfig.json : { "rootNames": [ @@ -116,67 +116,67 @@ Info seq [hh:mm:ss:mss] Files (3) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/usage/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/usage/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "2b96539513e8810fb8ec0c078e4cb28919c0c28cdb8f7646118c5a6f4ff4cb10", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 2, - "tsSize": 179, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": { - "composite": true, - "outFile": "" - }, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "2b96539513e8810fb8ec0c078e4cb28919c0c28cdb8f7646118c5a6f4ff4cb10", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 2, + "tsSize": 179, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "composite": true, + "outFile": "" + }, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/myproject/usage/usage.ts", - "configFile": "/user/username/projects/myproject/usage/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/myproject/usage/usage.ts", + "configFile": "/user/username/projects/myproject/usage/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Search path: /user/username/projects/myproject/usage Info seq [hh:mm:ss:mss] For info: /user/username/projects/myproject/usage/tsconfig.json :: No config files found. @@ -234,13 +234,13 @@ Info seq [hh:mm:ss:mss] For info: /user/username/projects/myproject/dependency/ Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/myproject/dependency/tsconfig.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/dependency/tsconfig.json", - "reason": "Creating possible configured project for /user/username/projects/myproject/dependency/fns.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/dependency/tsconfig.json", + "reason": "Creating possible configured project for /user/username/projects/myproject/dependency/fns.ts to open" + } } Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/dependency/tsconfig.json Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots @@ -264,67 +264,67 @@ Info seq [hh:mm:ss:mss] Files (2) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/dependency/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/dependency/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "80216eb4c9c6d41fcd26650a22a2df8f2cac81cda661de72dc723e6251203d22", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 156, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": { - "composite": true, - "outFile": "" - }, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "80216eb4c9c6d41fcd26650a22a2df8f2cac81cda661de72dc723e6251203d22", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 156, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "composite": true, + "outFile": "" + }, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/myproject/dependency/fns.ts", - "configFile": "/user/username/projects/myproject/dependency/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/myproject/dependency/fns.ts", + "configFile": "/user/username/projects/myproject/dependency/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Search path: /user/username/projects/myproject/dependency Info seq [hh:mm:ss:mss] For info: /user/username/projects/myproject/dependency/tsconfig.json :: No config files found. @@ -401,13 +401,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/usage/usage.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/usage/usage.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -416,27 +416,27 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/usage/usage.ts", - "diagnostics": [ - { - "start": { - "line": 3, - "offset": 1 - }, - "end": { - "line": 3, - "offset": 6 - }, - "text": "Cannot find name 'fnErr'.", - "code": 2304, - "category": "error" - } - ] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/usage/usage.ts", + "diagnostics": [ + { + "start": { + "line": 3, + "offset": 1 + }, + "end": { + "line": 3, + "offset": 6 + }, + "text": "Cannot find name 'fnErr'.", + "code": 2304, + "category": "error" + } + ] + } } After running Immedidate callback:: count: 1 2: suggestionCheck @@ -446,13 +446,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/usage/usage.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/usage/usage.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 0 @@ -461,13 +461,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/dependency/fns.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/dependency/fns.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -476,27 +476,27 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/dependency/fns.ts", - "diagnostics": [ - { - "start": { - "line": 6, - "offset": 5 - }, - "end": { - "line": 6, - "offset": 6 - }, - "text": "Type 'number' is not assignable to type 'string'.", - "code": 2322, - "category": "error" - } - ] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/dependency/fns.ts", + "diagnostics": [ + { + "start": { + "line": 6, + "offset": 5 + }, + "end": { + "line": 6, + "offset": 6 + }, + "text": "Type 'number' is not assignable to type 'string'.", + "code": 2322, + "category": "error" + } + ] + } } After running Immedidate callback:: count: 1 4: suggestionCheck @@ -506,21 +506,21 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/dependency/fns.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/dependency/fns.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 3 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 3 + } } After running Immedidate callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/projectReferenceErrors/with-non-module-when-the-depedency-file-is-open-geterrForProject.js b/tests/baselines/reference/tsserver/projectReferenceErrors/with-non-module-when-the-depedency-file-is-open-geterrForProject.js index 33379a427367e..a3fe46819fbae 100644 --- a/tests/baselines/reference/tsserver/projectReferenceErrors/with-non-module-when-the-depedency-file-is-open-geterrForProject.js +++ b/tests/baselines/reference/tsserver/projectReferenceErrors/with-non-module-when-the-depedency-file-is-open-geterrForProject.js @@ -50,13 +50,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/usage/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/usage/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/usage/tsconfig.json", - "reason": "Creating possible configured project for /user/username/projects/myproject/usage/usage.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/usage/tsconfig.json", + "reason": "Creating possible configured project for /user/username/projects/myproject/usage/usage.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/usage/tsconfig.json : { "rootNames": [ @@ -116,67 +116,67 @@ Info seq [hh:mm:ss:mss] Files (3) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/usage/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/usage/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "2b96539513e8810fb8ec0c078e4cb28919c0c28cdb8f7646118c5a6f4ff4cb10", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 2, - "tsSize": 179, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": { - "composite": true, - "outFile": "" - }, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "2b96539513e8810fb8ec0c078e4cb28919c0c28cdb8f7646118c5a6f4ff4cb10", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 2, + "tsSize": 179, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "composite": true, + "outFile": "" + }, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/myproject/usage/usage.ts", - "configFile": "/user/username/projects/myproject/usage/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/myproject/usage/usage.ts", + "configFile": "/user/username/projects/myproject/usage/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Search path: /user/username/projects/myproject/usage Info seq [hh:mm:ss:mss] For info: /user/username/projects/myproject/usage/tsconfig.json :: No config files found. @@ -234,13 +234,13 @@ Info seq [hh:mm:ss:mss] For info: /user/username/projects/myproject/dependency/ Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/myproject/dependency/tsconfig.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/dependency/tsconfig.json", - "reason": "Creating possible configured project for /user/username/projects/myproject/dependency/fns.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/dependency/tsconfig.json", + "reason": "Creating possible configured project for /user/username/projects/myproject/dependency/fns.ts to open" + } } Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/dependency/tsconfig.json Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/dependency/node_modules/@types 1 undefined Project: /user/username/projects/myproject/dependency/tsconfig.json WatchType: Type roots @@ -264,67 +264,67 @@ Info seq [hh:mm:ss:mss] Files (2) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/dependency/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/dependency/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "80216eb4c9c6d41fcd26650a22a2df8f2cac81cda661de72dc723e6251203d22", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 156, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": { - "composite": true, - "outFile": "" - }, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "80216eb4c9c6d41fcd26650a22a2df8f2cac81cda661de72dc723e6251203d22", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 156, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "composite": true, + "outFile": "" + }, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/myproject/dependency/fns.ts", - "configFile": "/user/username/projects/myproject/dependency/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/myproject/dependency/fns.ts", + "configFile": "/user/username/projects/myproject/dependency/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Search path: /user/username/projects/myproject/dependency Info seq [hh:mm:ss:mss] For info: /user/username/projects/myproject/dependency/tsconfig.json :: No config files found. @@ -398,13 +398,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/usage/usage.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/usage/usage.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -413,27 +413,27 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/usage/usage.ts", - "diagnostics": [ - { - "start": { - "line": 3, - "offset": 1 - }, - "end": { - "line": 3, - "offset": 6 - }, - "text": "Cannot find name 'fnErr'.", - "code": 2304, - "category": "error" - } - ] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/usage/usage.ts", + "diagnostics": [ + { + "start": { + "line": 3, + "offset": 1 + }, + "end": { + "line": 3, + "offset": 6 + }, + "text": "Cannot find name 'fnErr'.", + "code": 2304, + "category": "error" + } + ] + } } After running Immedidate callback:: count: 1 2: suggestionCheck @@ -443,13 +443,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/usage/usage.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/usage/usage.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 0 @@ -458,13 +458,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/dependency/fns.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/dependency/fns.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -473,13 +473,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/dependency/fns.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/dependency/fns.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 1 4: suggestionCheck @@ -489,22 +489,22 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/dependency/fns.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/dependency/fns.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 3 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 3 + } } After running Immedidate callback:: count: 0 @@ -531,13 +531,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/dependency/fns.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/dependency/fns.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -546,27 +546,27 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/dependency/fns.ts", - "diagnostics": [ - { - "start": { - "line": 6, - "offset": 5 - }, - "end": { - "line": 6, - "offset": 6 - }, - "text": "Type 'number' is not assignable to type 'string'.", - "code": 2322, - "category": "error" - } - ] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/dependency/fns.ts", + "diagnostics": [ + { + "start": { + "line": 6, + "offset": 5 + }, + "end": { + "line": 6, + "offset": 6 + }, + "text": "Type 'number' is not assignable to type 'string'.", + "code": 2322, + "category": "error" + } + ] + } } After running Immedidate callback:: count: 1 6: suggestionCheck @@ -576,21 +576,21 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/dependency/fns.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/dependency/fns.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 4 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 4 + } } After running Immedidate callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/projectReferences/disables-looking-into-the-child-project-if-disableReferencedProjectLoad-is-set-in-first-indirect-project-but-not-in-another-one.js b/tests/baselines/reference/tsserver/projectReferences/disables-looking-into-the-child-project-if-disableReferencedProjectLoad-is-set-in-first-indirect-project-but-not-in-another-one.js index 493f32113f278..0e7bfaf88786e 100644 --- a/tests/baselines/reference/tsserver/projectReferences/disables-looking-into-the-child-project-if-disableReferencedProjectLoad-is-set-in-first-indirect-project-but-not-in-another-one.js +++ b/tests/baselines/reference/tsserver/projectReferences/disables-looking-into-the-child-project-if-disableReferencedProjectLoad-is-set-in-first-indirect-project-but-not-in-another-one.js @@ -6,13 +6,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json", - "reason": "Creating possible configured project for /user/username/projects/myproject/src/main.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json", + "reason": "Creating possible configured project for /user/username/projects/myproject/src/main.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/tsconfig.json : { "rootNames": [], @@ -94,64 +94,64 @@ Info seq [hh:mm:ss:mss] Files (0) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "4a33d78ee40d836c4f4e64c59aed976628aea0013be9585c5ff171dfc41baf98", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 0, - "tsSize": 0, - "tsx": 0, - "tsxSize": 0, - "dts": 0, - "dtsSize": 0, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": {}, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": true, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "4a33d78ee40d836c4f4e64c59aed976628aea0013be9585c5ff171dfc41baf98", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 0, + "tsSize": 0, + "tsx": 0, + "tsxSize": 0, + "dts": 0, + "dtsSize": 0, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": {}, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": true, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } - } } Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/myproject/tsconfig-src.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig-src.json", - "reason": "Creating project referenced in solution /user/username/projects/myproject/tsconfig.json to find possible configured project for /user/username/projects/myproject/src/main.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig-src.json", + "reason": "Creating project referenced in solution /user/username/projects/myproject/tsconfig.json to find possible configured project for /user/username/projects/myproject/src/main.ts to open" + } } Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/helpers/functions.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig-src.json @@ -179,68 +179,68 @@ Info seq [hh:mm:ss:mss] Files (3) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig-src.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig-src.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "75d5ba36c0a162a329bf40235b10e96d2d129b95469e1f02c08da775fb38a2b4", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 2, - "tsSize": 77, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": { - "composite": true, - "outDir": "", - "baseUrl": "" - }, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": true, - "exclude": false, - "compileOnSave": false, - "configFileName": "other", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "75d5ba36c0a162a329bf40235b10e96d2d129b95469e1f02c08da775fb38a2b4", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 2, + "tsSize": 77, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "composite": true, + "outDir": "", + "baseUrl": "" + }, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": true, + "exclude": false, + "compileOnSave": false, + "configFileName": "other", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/myproject/src/main.ts", - "configFile": "/user/username/projects/myproject/tsconfig-src.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/myproject/src/main.ts", + "configFile": "/user/username/projects/myproject/tsconfig-src.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Project '/user/username/projects/myproject/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (0) @@ -377,13 +377,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json", - "reason": "Creating possible configured project for /user/username/projects/myproject/src/main.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json", + "reason": "Creating possible configured project for /user/username/projects/myproject/src/main.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/tsconfig.json : { "rootNames": [], @@ -465,23 +465,23 @@ Info seq [hh:mm:ss:mss] Files (0) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json" + } } Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/myproject/tsconfig-src.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig-src.json", - "reason": "Creating project referenced in solution /user/username/projects/myproject/tsconfig.json to find possible configured project for /user/username/projects/myproject/src/main.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig-src.json", + "reason": "Creating project referenced in solution /user/username/projects/myproject/tsconfig.json to find possible configured project for /user/username/projects/myproject/src/main.ts to open" + } } Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/helpers/functions.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig-src.json @@ -508,23 +508,23 @@ Info seq [hh:mm:ss:mss] Files (3) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig-src.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig-src.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/myproject/src/main.ts", - "configFile": "/user/username/projects/myproject/tsconfig-src.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/myproject/src/main.ts", + "configFile": "/user/username/projects/myproject/tsconfig-src.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Project '/user/username/projects/myproject/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (0) @@ -560,13 +560,13 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /us Info seq [hh:mm:ss:mss] Reloading configured project /user/username/projects/myproject/tsconfig.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json", - "reason": "User requested reload projects" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json", + "reason": "User requested reload projects" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/tsconfig.json : { "rootNames": [], @@ -643,23 +643,23 @@ Info seq [hh:mm:ss:mss] Files (0) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/myproject/tsconfig.json", - "configFile": "/user/username/projects/myproject/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/myproject/tsconfig.json", + "configFile": "/user/username/projects/myproject/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: Type roots @@ -668,13 +668,13 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /us Info seq [hh:mm:ss:mss] Reloading configured project /user/username/projects/myproject/tsconfig-src.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig-src.json", - "reason": "User requested reload projects" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig-src.json", + "reason": "User requested reload projects" + } } Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig-src.json Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: Type roots @@ -700,23 +700,23 @@ Info seq [hh:mm:ss:mss] Files (3) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig-src.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig-src.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/myproject/tsconfig-src.json", - "configFile": "/user/username/projects/myproject/tsconfig-src.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/myproject/tsconfig-src.json", + "configFile": "/user/username/projects/myproject/tsconfig-src.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Before ensureProjectForOpenFiles: Info seq [hh:mm:ss:mss] Project '/user/username/projects/myproject/tsconfig.json' (Configured) diff --git a/tests/baselines/reference/tsserver/projectReferences/disables-looking-into-the-child-project-if-disableReferencedProjectLoad-is-set-in-indirect-project.js b/tests/baselines/reference/tsserver/projectReferences/disables-looking-into-the-child-project-if-disableReferencedProjectLoad-is-set-in-indirect-project.js index 01665527da773..1c4c86e42bbad 100644 --- a/tests/baselines/reference/tsserver/projectReferences/disables-looking-into-the-child-project-if-disableReferencedProjectLoad-is-set-in-indirect-project.js +++ b/tests/baselines/reference/tsserver/projectReferences/disables-looking-into-the-child-project-if-disableReferencedProjectLoad-is-set-in-indirect-project.js @@ -6,13 +6,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json", - "reason": "Creating possible configured project for /user/username/projects/myproject/src/main.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json", + "reason": "Creating possible configured project for /user/username/projects/myproject/src/main.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/tsconfig.json : { "rootNames": [], @@ -72,64 +72,64 @@ Info seq [hh:mm:ss:mss] Files (0) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "4a33d78ee40d836c4f4e64c59aed976628aea0013be9585c5ff171dfc41baf98", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 0, - "tsSize": 0, - "tsx": 0, - "tsxSize": 0, - "dts": 0, - "dtsSize": 0, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": {}, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": true, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "4a33d78ee40d836c4f4e64c59aed976628aea0013be9585c5ff171dfc41baf98", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 0, + "tsSize": 0, + "tsx": 0, + "tsxSize": 0, + "dts": 0, + "dtsSize": 0, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": {}, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": true, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } - } } Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/myproject/tsconfig-indirect1.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig-indirect1.json", - "reason": "Creating project referenced in solution /user/username/projects/myproject/tsconfig.json to find possible configured project for /user/username/projects/myproject/src/main.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig-indirect1.json", + "reason": "Creating project referenced in solution /user/username/projects/myproject/tsconfig.json to find possible configured project for /user/username/projects/myproject/src/main.ts to open" + } } Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/indirect1/main.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig-indirect1.json @@ -160,69 +160,69 @@ Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig-indirect1.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig-indirect1.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "9ccc3aed1af08832ccb25ea453f7b771199f56af238b53cc428549dbd2d59246", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 3, - "tsSize": 134, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": { - "composite": true, - "outDir": "", - "baseUrl": "", - "disableReferencedProjectLoad": true - }, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": true, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "other", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "9ccc3aed1af08832ccb25ea453f7b771199f56af238b53cc428549dbd2d59246", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 3, + "tsSize": 134, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "composite": true, + "outDir": "", + "baseUrl": "", + "disableReferencedProjectLoad": true + }, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": true, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "other", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/myproject/src/main.ts", - "configFile": "/user/username/projects/myproject/tsconfig-indirect1.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/myproject/src/main.ts", + "configFile": "/user/username/projects/myproject/tsconfig-indirect1.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Project '/user/username/projects/myproject/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (0) @@ -361,13 +361,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json", - "reason": "Creating possible configured project for /user/username/projects/myproject/src/main.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json", + "reason": "Creating possible configured project for /user/username/projects/myproject/src/main.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/tsconfig.json : { "rootNames": [], @@ -427,23 +427,23 @@ Info seq [hh:mm:ss:mss] Files (0) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json" + } } Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/myproject/tsconfig-indirect1.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig-indirect1.json", - "reason": "Creating project referenced in solution /user/username/projects/myproject/tsconfig.json to find possible configured project for /user/username/projects/myproject/src/main.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig-indirect1.json", + "reason": "Creating project referenced in solution /user/username/projects/myproject/tsconfig.json to find possible configured project for /user/username/projects/myproject/src/main.ts to open" + } } Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/indirect1/main.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig-indirect1.json @@ -473,23 +473,23 @@ Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig-indirect1.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig-indirect1.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/myproject/src/main.ts", - "configFile": "/user/username/projects/myproject/tsconfig-indirect1.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/myproject/src/main.ts", + "configFile": "/user/username/projects/myproject/tsconfig-indirect1.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Project '/user/username/projects/myproject/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (0) @@ -527,13 +527,13 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /us Info seq [hh:mm:ss:mss] Reloading configured project /user/username/projects/myproject/tsconfig.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json", - "reason": "User requested reload projects" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json", + "reason": "User requested reload projects" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/tsconfig.json : { "rootNames": [], @@ -589,23 +589,23 @@ Info seq [hh:mm:ss:mss] Files (0) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/myproject/tsconfig.json", - "configFile": "/user/username/projects/myproject/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/myproject/tsconfig.json", + "configFile": "/user/username/projects/myproject/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-indirect1.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-indirect1.json WatchType: Type roots @@ -614,13 +614,13 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /us Info seq [hh:mm:ss:mss] Reloading configured project /user/username/projects/myproject/tsconfig-indirect1.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig-indirect1.json", - "reason": "User requested reload projects" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig-indirect1.json", + "reason": "User requested reload projects" + } } Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig-indirect1.json Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-indirect1.json WatchType: Type roots @@ -648,23 +648,23 @@ Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig-indirect1.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig-indirect1.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/myproject/tsconfig-indirect1.json", - "configFile": "/user/username/projects/myproject/tsconfig-indirect1.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/myproject/tsconfig-indirect1.json", + "configFile": "/user/username/projects/myproject/tsconfig-indirect1.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Before ensureProjectForOpenFiles: Info seq [hh:mm:ss:mss] Project '/user/username/projects/myproject/tsconfig.json' (Configured) diff --git a/tests/baselines/reference/tsserver/projectReferences/disables-looking-into-the-child-project-if-disableReferencedProjectLoad-is-set.js b/tests/baselines/reference/tsserver/projectReferences/disables-looking-into-the-child-project-if-disableReferencedProjectLoad-is-set.js index 006ec9ff044ba..6c29d2b3deeb0 100644 --- a/tests/baselines/reference/tsserver/projectReferences/disables-looking-into-the-child-project-if-disableReferencedProjectLoad-is-set.js +++ b/tests/baselines/reference/tsserver/projectReferences/disables-looking-into-the-child-project-if-disableReferencedProjectLoad-is-set.js @@ -6,13 +6,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json", - "reason": "Creating possible configured project for /user/username/projects/myproject/src/main.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json", + "reason": "Creating possible configured project for /user/username/projects/myproject/src/main.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/tsconfig.json : { "rootNames": [], @@ -54,66 +54,66 @@ Info seq [hh:mm:ss:mss] Files (0) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "4a33d78ee40d836c4f4e64c59aed976628aea0013be9585c5ff171dfc41baf98", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 0, - "tsSize": 0, - "tsx": 0, - "tsxSize": 0, - "dts": 0, - "dtsSize": 0, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": { - "disableReferencedProjectLoad": true - }, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": true, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "4a33d78ee40d836c4f4e64c59aed976628aea0013be9585c5ff171dfc41baf98", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 0, + "tsSize": 0, + "tsx": 0, + "tsxSize": 0, + "dts": 0, + "dtsSize": 0, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "disableReferencedProjectLoad": true + }, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": true, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/myproject/src/main.ts", - "configFile": "/user/username/projects/myproject/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/myproject/src/main.ts", + "configFile": "/user/username/projects/myproject/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root @@ -272,13 +272,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json", - "reason": "Creating possible configured project for /user/username/projects/myproject/src/main.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json", + "reason": "Creating possible configured project for /user/username/projects/myproject/src/main.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/tsconfig.json : { "rootNames": [], @@ -320,23 +320,23 @@ Info seq [hh:mm:ss:mss] Files (0) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/myproject/src/main.ts", - "configFile": "/user/username/projects/myproject/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/myproject/src/main.ts", + "configFile": "/user/username/projects/myproject/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root @@ -399,13 +399,13 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /us Info seq [hh:mm:ss:mss] Reloading configured project /user/username/projects/myproject/tsconfig.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json", - "reason": "User requested reload projects" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json", + "reason": "User requested reload projects" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/tsconfig.json : { "rootNames": [], @@ -444,23 +444,23 @@ Info seq [hh:mm:ss:mss] Files (0) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/myproject/tsconfig.json", - "configFile": "/user/username/projects/myproject/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/myproject/tsconfig.json", + "configFile": "/user/username/projects/myproject/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src/node_modules 1 undefined Project: /dev/null/inferredProject3* WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/src/node_modules 1 undefined Project: /dev/null/inferredProject3* WatchType: Failed Lookup Locations diff --git a/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-and-solution-is-built-with-preserveSymlinks.js b/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-and-solution-is-built-with-preserveSymlinks.js index 469198a62fb4c..f98eee42b2f33 100644 --- a/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-and-solution-is-built-with-preserveSymlinks.js +++ b/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-and-solution-is-built-with-preserveSymlinks.js @@ -231,13 +231,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/A/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/packages/A/tsconfig.json", - "reason": "Creating possible configured project for /user/username/projects/myproject/packages/A/src/index.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/packages/A/tsconfig.json", + "reason": "Creating possible configured project for /user/username/projects/myproject/packages/A/src/index.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/packages/A/tsconfig.json : { "rootNames": [ @@ -317,69 +317,69 @@ Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/packages/A/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/packages/A/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "8c5cfb88fb6a6125ddaca4c198af63d261c8feb2786e348cbf3223fcf8461e16", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 3, - "tsSize": 122, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": { - "outDir": "", - "rootDir": "", - "composite": true, - "preserveSymlinks": true - }, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": true, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "8c5cfb88fb6a6125ddaca4c198af63d261c8feb2786e348cbf3223fcf8461e16", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 3, + "tsSize": 122, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "outDir": "", + "rootDir": "", + "composite": true, + "preserveSymlinks": true + }, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": true, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/myproject/packages/A/src/index.ts", - "configFile": "/user/username/projects/myproject/packages/A/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/myproject/packages/A/src/index.ts", + "configFile": "/user/username/projects/myproject/packages/A/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Search path: /user/username/projects/myproject/packages/A Info seq [hh:mm:ss:mss] For info: /user/username/projects/myproject/packages/A/tsconfig.json :: No config files found. @@ -457,13 +457,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/packages/A/src/index.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/packages/A/src/index.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -472,13 +472,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/packages/A/src/index.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/packages/A/src/index.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 1 2: suggestionCheck @@ -488,22 +488,22 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/packages/A/src/index.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/packages/A/src/index.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 2 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 2 + } } After running Immedidate callback:: count: 0 @@ -577,13 +577,13 @@ Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/packages/A/src/index.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/packages/A/src/index.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -592,13 +592,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/packages/A/src/index.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/packages/A/src/index.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 1 4: suggestionCheck @@ -608,21 +608,21 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/packages/A/src/index.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/packages/A/src/index.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 4 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 4 + } } After running Immedidate callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-and-solution-is-built.js b/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-and-solution-is-built.js index 27fd9698d2f7d..158bbe9a9ff9f 100644 --- a/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-and-solution-is-built.js +++ b/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-and-solution-is-built.js @@ -231,13 +231,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/A/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/packages/A/tsconfig.json", - "reason": "Creating possible configured project for /user/username/projects/myproject/packages/A/src/index.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/packages/A/tsconfig.json", + "reason": "Creating possible configured project for /user/username/projects/myproject/packages/A/src/index.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/packages/A/tsconfig.json : { "rootNames": [ @@ -315,68 +315,68 @@ Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/packages/A/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/packages/A/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "8c5cfb88fb6a6125ddaca4c198af63d261c8feb2786e348cbf3223fcf8461e16", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 3, - "tsSize": 122, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": { - "outDir": "", - "rootDir": "", - "composite": true - }, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": true, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "8c5cfb88fb6a6125ddaca4c198af63d261c8feb2786e348cbf3223fcf8461e16", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 3, + "tsSize": 122, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "outDir": "", + "rootDir": "", + "composite": true + }, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": true, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/myproject/packages/A/src/index.ts", - "configFile": "/user/username/projects/myproject/packages/A/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/myproject/packages/A/src/index.ts", + "configFile": "/user/username/projects/myproject/packages/A/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Search path: /user/username/projects/myproject/packages/A Info seq [hh:mm:ss:mss] For info: /user/username/projects/myproject/packages/A/tsconfig.json :: No config files found. @@ -454,13 +454,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/packages/A/src/index.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/packages/A/src/index.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -469,13 +469,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/packages/A/src/index.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/packages/A/src/index.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 1 2: suggestionCheck @@ -485,22 +485,22 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/packages/A/src/index.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/packages/A/src/index.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 2 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 2 + } } After running Immedidate callback:: count: 0 @@ -574,13 +574,13 @@ Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/packages/A/src/index.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/packages/A/src/index.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -589,13 +589,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/packages/A/src/index.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/packages/A/src/index.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 1 4: suggestionCheck @@ -605,21 +605,21 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/packages/A/src/index.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/packages/A/src/index.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 4 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 4 + } } After running Immedidate callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-and-solution-is-not-built-with-preserveSymlinks.js b/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-and-solution-is-not-built-with-preserveSymlinks.js index 51a77fff53820..2fb72f746cfa6 100644 --- a/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-and-solution-is-not-built-with-preserveSymlinks.js +++ b/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-and-solution-is-not-built-with-preserveSymlinks.js @@ -53,13 +53,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/A/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/packages/A/tsconfig.json", - "reason": "Creating possible configured project for /user/username/projects/myproject/packages/A/src/index.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/packages/A/tsconfig.json", + "reason": "Creating possible configured project for /user/username/projects/myproject/packages/A/src/index.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/packages/A/tsconfig.json : { "rootNames": [ @@ -139,69 +139,69 @@ Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/packages/A/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/packages/A/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "8c5cfb88fb6a6125ddaca4c198af63d261c8feb2786e348cbf3223fcf8461e16", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 3, - "tsSize": 122, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": { - "outDir": "", - "rootDir": "", - "composite": true, - "preserveSymlinks": true - }, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": true, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "8c5cfb88fb6a6125ddaca4c198af63d261c8feb2786e348cbf3223fcf8461e16", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 3, + "tsSize": 122, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "outDir": "", + "rootDir": "", + "composite": true, + "preserveSymlinks": true + }, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": true, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/myproject/packages/A/src/index.ts", - "configFile": "/user/username/projects/myproject/packages/A/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/myproject/packages/A/src/index.ts", + "configFile": "/user/username/projects/myproject/packages/A/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Search path: /user/username/projects/myproject/packages/A Info seq [hh:mm:ss:mss] For info: /user/username/projects/myproject/packages/A/tsconfig.json :: No config files found. @@ -279,13 +279,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/packages/A/src/index.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/packages/A/src/index.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -294,13 +294,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/packages/A/src/index.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/packages/A/src/index.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 1 2: suggestionCheck @@ -310,22 +310,22 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/packages/A/src/index.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/packages/A/src/index.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 2 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 2 + } } After running Immedidate callback:: count: 0 @@ -399,13 +399,13 @@ Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/packages/A/src/index.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/packages/A/src/index.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -414,13 +414,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/packages/A/src/index.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/packages/A/src/index.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 1 4: suggestionCheck @@ -430,21 +430,21 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/packages/A/src/index.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/packages/A/src/index.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 4 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 4 + } } After running Immedidate callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-and-solution-is-not-built.js b/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-and-solution-is-not-built.js index 8e9c2fd28d735..798599fe8b03f 100644 --- a/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-and-solution-is-not-built.js +++ b/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-and-solution-is-not-built.js @@ -53,13 +53,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/A/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/packages/A/tsconfig.json", - "reason": "Creating possible configured project for /user/username/projects/myproject/packages/A/src/index.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/packages/A/tsconfig.json", + "reason": "Creating possible configured project for /user/username/projects/myproject/packages/A/src/index.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/packages/A/tsconfig.json : { "rootNames": [ @@ -137,68 +137,68 @@ Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/packages/A/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/packages/A/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "8c5cfb88fb6a6125ddaca4c198af63d261c8feb2786e348cbf3223fcf8461e16", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 3, - "tsSize": 122, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": { - "outDir": "", - "rootDir": "", - "composite": true - }, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": true, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "8c5cfb88fb6a6125ddaca4c198af63d261c8feb2786e348cbf3223fcf8461e16", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 3, + "tsSize": 122, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "outDir": "", + "rootDir": "", + "composite": true + }, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": true, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/myproject/packages/A/src/index.ts", - "configFile": "/user/username/projects/myproject/packages/A/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/myproject/packages/A/src/index.ts", + "configFile": "/user/username/projects/myproject/packages/A/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Search path: /user/username/projects/myproject/packages/A Info seq [hh:mm:ss:mss] For info: /user/username/projects/myproject/packages/A/tsconfig.json :: No config files found. @@ -276,13 +276,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/packages/A/src/index.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/packages/A/src/index.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -291,13 +291,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/packages/A/src/index.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/packages/A/src/index.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 1 2: suggestionCheck @@ -307,22 +307,22 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/packages/A/src/index.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/packages/A/src/index.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 2 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 2 + } } After running Immedidate callback:: count: 0 @@ -396,13 +396,13 @@ Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/packages/A/src/index.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/packages/A/src/index.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -411,13 +411,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/packages/A/src/index.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/packages/A/src/index.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 1 4: suggestionCheck @@ -427,21 +427,21 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/packages/A/src/index.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/packages/A/src/index.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 4 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 4 + } } After running Immedidate callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-with-scoped-package-and-solution-is-built-with-preserveSymlinks.js b/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-with-scoped-package-and-solution-is-built-with-preserveSymlinks.js index bb1c8e64c3ac8..22cd557970598 100644 --- a/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-with-scoped-package-and-solution-is-built-with-preserveSymlinks.js +++ b/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-with-scoped-package-and-solution-is-built-with-preserveSymlinks.js @@ -231,13 +231,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/A/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/packages/A/tsconfig.json", - "reason": "Creating possible configured project for /user/username/projects/myproject/packages/A/src/index.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/packages/A/tsconfig.json", + "reason": "Creating possible configured project for /user/username/projects/myproject/packages/A/src/index.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/packages/A/tsconfig.json : { "rootNames": [ @@ -317,69 +317,69 @@ Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/packages/A/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/packages/A/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "8c5cfb88fb6a6125ddaca4c198af63d261c8feb2786e348cbf3223fcf8461e16", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 3, - "tsSize": 136, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": { - "outDir": "", - "rootDir": "", - "composite": true, - "preserveSymlinks": true - }, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": true, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "8c5cfb88fb6a6125ddaca4c198af63d261c8feb2786e348cbf3223fcf8461e16", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 3, + "tsSize": 136, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "outDir": "", + "rootDir": "", + "composite": true, + "preserveSymlinks": true + }, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": true, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/myproject/packages/A/src/index.ts", - "configFile": "/user/username/projects/myproject/packages/A/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/myproject/packages/A/src/index.ts", + "configFile": "/user/username/projects/myproject/packages/A/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Search path: /user/username/projects/myproject/packages/A Info seq [hh:mm:ss:mss] For info: /user/username/projects/myproject/packages/A/tsconfig.json :: No config files found. @@ -457,13 +457,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/packages/A/src/index.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/packages/A/src/index.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -472,13 +472,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/packages/A/src/index.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/packages/A/src/index.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 1 2: suggestionCheck @@ -488,22 +488,22 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/packages/A/src/index.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/packages/A/src/index.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 2 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 2 + } } After running Immedidate callback:: count: 0 @@ -577,13 +577,13 @@ Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/packages/A/src/index.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/packages/A/src/index.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -592,13 +592,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/packages/A/src/index.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/packages/A/src/index.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 1 4: suggestionCheck @@ -608,21 +608,21 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/packages/A/src/index.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/packages/A/src/index.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 4 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 4 + } } After running Immedidate callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-with-scoped-package-and-solution-is-built.js b/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-with-scoped-package-and-solution-is-built.js index f2f190702c119..5944f0efb842d 100644 --- a/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-with-scoped-package-and-solution-is-built.js +++ b/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-with-scoped-package-and-solution-is-built.js @@ -231,13 +231,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/A/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/packages/A/tsconfig.json", - "reason": "Creating possible configured project for /user/username/projects/myproject/packages/A/src/index.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/packages/A/tsconfig.json", + "reason": "Creating possible configured project for /user/username/projects/myproject/packages/A/src/index.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/packages/A/tsconfig.json : { "rootNames": [ @@ -315,68 +315,68 @@ Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/packages/A/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/packages/A/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "8c5cfb88fb6a6125ddaca4c198af63d261c8feb2786e348cbf3223fcf8461e16", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 3, - "tsSize": 136, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": { - "outDir": "", - "rootDir": "", - "composite": true - }, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": true, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "8c5cfb88fb6a6125ddaca4c198af63d261c8feb2786e348cbf3223fcf8461e16", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 3, + "tsSize": 136, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "outDir": "", + "rootDir": "", + "composite": true + }, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": true, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/myproject/packages/A/src/index.ts", - "configFile": "/user/username/projects/myproject/packages/A/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/myproject/packages/A/src/index.ts", + "configFile": "/user/username/projects/myproject/packages/A/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Search path: /user/username/projects/myproject/packages/A Info seq [hh:mm:ss:mss] For info: /user/username/projects/myproject/packages/A/tsconfig.json :: No config files found. @@ -454,13 +454,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/packages/A/src/index.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/packages/A/src/index.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -469,13 +469,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/packages/A/src/index.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/packages/A/src/index.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 1 2: suggestionCheck @@ -485,22 +485,22 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/packages/A/src/index.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/packages/A/src/index.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 2 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 2 + } } After running Immedidate callback:: count: 0 @@ -574,13 +574,13 @@ Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/packages/A/src/index.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/packages/A/src/index.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -589,13 +589,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/packages/A/src/index.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/packages/A/src/index.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 1 4: suggestionCheck @@ -605,21 +605,21 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/packages/A/src/index.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/packages/A/src/index.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 4 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 4 + } } After running Immedidate callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-with-scoped-package-and-solution-is-not-built-with-preserveSymlinks.js b/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-with-scoped-package-and-solution-is-not-built-with-preserveSymlinks.js index b9a2415a99db7..178b397bd75aa 100644 --- a/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-with-scoped-package-and-solution-is-not-built-with-preserveSymlinks.js +++ b/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-with-scoped-package-and-solution-is-not-built-with-preserveSymlinks.js @@ -53,13 +53,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/A/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/packages/A/tsconfig.json", - "reason": "Creating possible configured project for /user/username/projects/myproject/packages/A/src/index.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/packages/A/tsconfig.json", + "reason": "Creating possible configured project for /user/username/projects/myproject/packages/A/src/index.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/packages/A/tsconfig.json : { "rootNames": [ @@ -139,69 +139,69 @@ Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/packages/A/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/packages/A/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "8c5cfb88fb6a6125ddaca4c198af63d261c8feb2786e348cbf3223fcf8461e16", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 3, - "tsSize": 136, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": { - "outDir": "", - "rootDir": "", - "composite": true, - "preserveSymlinks": true - }, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": true, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "8c5cfb88fb6a6125ddaca4c198af63d261c8feb2786e348cbf3223fcf8461e16", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 3, + "tsSize": 136, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "outDir": "", + "rootDir": "", + "composite": true, + "preserveSymlinks": true + }, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": true, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/myproject/packages/A/src/index.ts", - "configFile": "/user/username/projects/myproject/packages/A/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/myproject/packages/A/src/index.ts", + "configFile": "/user/username/projects/myproject/packages/A/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Search path: /user/username/projects/myproject/packages/A Info seq [hh:mm:ss:mss] For info: /user/username/projects/myproject/packages/A/tsconfig.json :: No config files found. @@ -279,13 +279,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/packages/A/src/index.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/packages/A/src/index.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -294,13 +294,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/packages/A/src/index.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/packages/A/src/index.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 1 2: suggestionCheck @@ -310,22 +310,22 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/packages/A/src/index.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/packages/A/src/index.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 2 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 2 + } } After running Immedidate callback:: count: 0 @@ -399,13 +399,13 @@ Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/packages/A/src/index.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/packages/A/src/index.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -414,13 +414,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/packages/A/src/index.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/packages/A/src/index.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 1 4: suggestionCheck @@ -430,21 +430,21 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/packages/A/src/index.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/packages/A/src/index.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 4 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 4 + } } After running Immedidate callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-with-scoped-package-and-solution-is-not-built.js b/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-with-scoped-package-and-solution-is-not-built.js index 9e1301edbe2be..b441eedf44d15 100644 --- a/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-with-scoped-package-and-solution-is-not-built.js +++ b/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-packageJson-has-types-field-and-has-index.ts-with-scoped-package-and-solution-is-not-built.js @@ -53,13 +53,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/A/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/packages/A/tsconfig.json", - "reason": "Creating possible configured project for /user/username/projects/myproject/packages/A/src/index.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/packages/A/tsconfig.json", + "reason": "Creating possible configured project for /user/username/projects/myproject/packages/A/src/index.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/packages/A/tsconfig.json : { "rootNames": [ @@ -137,68 +137,68 @@ Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/packages/A/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/packages/A/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "8c5cfb88fb6a6125ddaca4c198af63d261c8feb2786e348cbf3223fcf8461e16", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 3, - "tsSize": 136, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": { - "outDir": "", - "rootDir": "", - "composite": true - }, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": true, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "8c5cfb88fb6a6125ddaca4c198af63d261c8feb2786e348cbf3223fcf8461e16", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 3, + "tsSize": 136, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "outDir": "", + "rootDir": "", + "composite": true + }, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": true, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/myproject/packages/A/src/index.ts", - "configFile": "/user/username/projects/myproject/packages/A/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/myproject/packages/A/src/index.ts", + "configFile": "/user/username/projects/myproject/packages/A/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Search path: /user/username/projects/myproject/packages/A Info seq [hh:mm:ss:mss] For info: /user/username/projects/myproject/packages/A/tsconfig.json :: No config files found. @@ -276,13 +276,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/packages/A/src/index.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/packages/A/src/index.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -291,13 +291,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/packages/A/src/index.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/packages/A/src/index.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 1 2: suggestionCheck @@ -307,22 +307,22 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/packages/A/src/index.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/packages/A/src/index.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 2 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 2 + } } After running Immedidate callback:: count: 0 @@ -396,13 +396,13 @@ Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/packages/A/src/index.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/packages/A/src/index.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -411,13 +411,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/packages/A/src/index.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/packages/A/src/index.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 1 4: suggestionCheck @@ -427,21 +427,21 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/packages/A/src/index.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/packages/A/src/index.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 4 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 4 + } } After running Immedidate callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-referencing-file-from-subFolder-and-solution-is-built-with-preserveSymlinks.js b/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-referencing-file-from-subFolder-and-solution-is-built-with-preserveSymlinks.js index f5e779d45846b..9e3dc86825ecc 100644 --- a/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-referencing-file-from-subFolder-and-solution-is-built-with-preserveSymlinks.js +++ b/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-referencing-file-from-subFolder-and-solution-is-built-with-preserveSymlinks.js @@ -231,13 +231,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/A/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/packages/A/tsconfig.json", - "reason": "Creating possible configured project for /user/username/projects/myproject/packages/A/src/test.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/packages/A/tsconfig.json", + "reason": "Creating possible configured project for /user/username/projects/myproject/packages/A/src/test.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/packages/A/tsconfig.json : { "rootNames": [ @@ -317,69 +317,69 @@ Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/packages/A/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/packages/A/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "8c5cfb88fb6a6125ddaca4c198af63d261c8feb2786e348cbf3223fcf8461e16", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 3, - "tsSize": 134, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": { - "outDir": "", - "rootDir": "", - "composite": true, - "preserveSymlinks": true - }, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": true, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "8c5cfb88fb6a6125ddaca4c198af63d261c8feb2786e348cbf3223fcf8461e16", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 3, + "tsSize": 134, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "outDir": "", + "rootDir": "", + "composite": true, + "preserveSymlinks": true + }, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": true, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/myproject/packages/A/src/test.ts", - "configFile": "/user/username/projects/myproject/packages/A/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/myproject/packages/A/src/test.ts", + "configFile": "/user/username/projects/myproject/packages/A/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Search path: /user/username/projects/myproject/packages/A Info seq [hh:mm:ss:mss] For info: /user/username/projects/myproject/packages/A/tsconfig.json :: No config files found. @@ -457,13 +457,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/packages/A/src/test.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/packages/A/src/test.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -472,13 +472,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/packages/A/src/test.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/packages/A/src/test.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 1 2: suggestionCheck @@ -488,22 +488,22 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/packages/A/src/test.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/packages/A/src/test.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 2 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 2 + } } After running Immedidate callback:: count: 0 @@ -577,13 +577,13 @@ Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/packages/A/src/test.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/packages/A/src/test.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -592,13 +592,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/packages/A/src/test.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/packages/A/src/test.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 1 4: suggestionCheck @@ -608,21 +608,21 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/packages/A/src/test.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/packages/A/src/test.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 4 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 4 + } } After running Immedidate callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-referencing-file-from-subFolder-and-solution-is-built.js b/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-referencing-file-from-subFolder-and-solution-is-built.js index 61727588c65a9..add87636562cf 100644 --- a/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-referencing-file-from-subFolder-and-solution-is-built.js +++ b/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-referencing-file-from-subFolder-and-solution-is-built.js @@ -231,13 +231,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/A/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/packages/A/tsconfig.json", - "reason": "Creating possible configured project for /user/username/projects/myproject/packages/A/src/test.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/packages/A/tsconfig.json", + "reason": "Creating possible configured project for /user/username/projects/myproject/packages/A/src/test.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/packages/A/tsconfig.json : { "rootNames": [ @@ -315,68 +315,68 @@ Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/packages/A/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/packages/A/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "8c5cfb88fb6a6125ddaca4c198af63d261c8feb2786e348cbf3223fcf8461e16", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 3, - "tsSize": 134, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": { - "outDir": "", - "rootDir": "", - "composite": true - }, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": true, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "8c5cfb88fb6a6125ddaca4c198af63d261c8feb2786e348cbf3223fcf8461e16", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 3, + "tsSize": 134, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "outDir": "", + "rootDir": "", + "composite": true + }, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": true, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/myproject/packages/A/src/test.ts", - "configFile": "/user/username/projects/myproject/packages/A/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/myproject/packages/A/src/test.ts", + "configFile": "/user/username/projects/myproject/packages/A/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Search path: /user/username/projects/myproject/packages/A Info seq [hh:mm:ss:mss] For info: /user/username/projects/myproject/packages/A/tsconfig.json :: No config files found. @@ -454,13 +454,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/packages/A/src/test.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/packages/A/src/test.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -469,13 +469,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/packages/A/src/test.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/packages/A/src/test.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 1 2: suggestionCheck @@ -485,22 +485,22 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/packages/A/src/test.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/packages/A/src/test.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 2 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 2 + } } After running Immedidate callback:: count: 0 @@ -574,13 +574,13 @@ Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/packages/A/src/test.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/packages/A/src/test.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -589,13 +589,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/packages/A/src/test.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/packages/A/src/test.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 1 4: suggestionCheck @@ -605,21 +605,21 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/packages/A/src/test.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/packages/A/src/test.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 4 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 4 + } } After running Immedidate callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-referencing-file-from-subFolder-and-solution-is-not-built-with-preserveSymlinks.js b/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-referencing-file-from-subFolder-and-solution-is-not-built-with-preserveSymlinks.js index efe70ae85f37f..960fbc06e2476 100644 --- a/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-referencing-file-from-subFolder-and-solution-is-not-built-with-preserveSymlinks.js +++ b/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-referencing-file-from-subFolder-and-solution-is-not-built-with-preserveSymlinks.js @@ -53,13 +53,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/A/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/packages/A/tsconfig.json", - "reason": "Creating possible configured project for /user/username/projects/myproject/packages/A/src/test.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/packages/A/tsconfig.json", + "reason": "Creating possible configured project for /user/username/projects/myproject/packages/A/src/test.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/packages/A/tsconfig.json : { "rootNames": [ @@ -139,69 +139,69 @@ Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/packages/A/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/packages/A/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "8c5cfb88fb6a6125ddaca4c198af63d261c8feb2786e348cbf3223fcf8461e16", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 3, - "tsSize": 134, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": { - "outDir": "", - "rootDir": "", - "composite": true, - "preserveSymlinks": true - }, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": true, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "8c5cfb88fb6a6125ddaca4c198af63d261c8feb2786e348cbf3223fcf8461e16", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 3, + "tsSize": 134, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "outDir": "", + "rootDir": "", + "composite": true, + "preserveSymlinks": true + }, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": true, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/myproject/packages/A/src/test.ts", - "configFile": "/user/username/projects/myproject/packages/A/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/myproject/packages/A/src/test.ts", + "configFile": "/user/username/projects/myproject/packages/A/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Search path: /user/username/projects/myproject/packages/A Info seq [hh:mm:ss:mss] For info: /user/username/projects/myproject/packages/A/tsconfig.json :: No config files found. @@ -279,13 +279,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/packages/A/src/test.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/packages/A/src/test.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -294,13 +294,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/packages/A/src/test.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/packages/A/src/test.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 1 2: suggestionCheck @@ -310,22 +310,22 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/packages/A/src/test.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/packages/A/src/test.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 2 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 2 + } } After running Immedidate callback:: count: 0 @@ -399,13 +399,13 @@ Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/packages/A/src/test.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/packages/A/src/test.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -414,13 +414,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/packages/A/src/test.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/packages/A/src/test.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 1 4: suggestionCheck @@ -430,21 +430,21 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/packages/A/src/test.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/packages/A/src/test.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 4 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 4 + } } After running Immedidate callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-referencing-file-from-subFolder-and-solution-is-not-built.js b/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-referencing-file-from-subFolder-and-solution-is-not-built.js index c42639e43e77a..433dda878075c 100644 --- a/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-referencing-file-from-subFolder-and-solution-is-not-built.js +++ b/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-referencing-file-from-subFolder-and-solution-is-not-built.js @@ -53,13 +53,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/A/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/packages/A/tsconfig.json", - "reason": "Creating possible configured project for /user/username/projects/myproject/packages/A/src/test.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/packages/A/tsconfig.json", + "reason": "Creating possible configured project for /user/username/projects/myproject/packages/A/src/test.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/packages/A/tsconfig.json : { "rootNames": [ @@ -137,68 +137,68 @@ Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/packages/A/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/packages/A/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "8c5cfb88fb6a6125ddaca4c198af63d261c8feb2786e348cbf3223fcf8461e16", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 3, - "tsSize": 134, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": { - "outDir": "", - "rootDir": "", - "composite": true - }, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": true, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "8c5cfb88fb6a6125ddaca4c198af63d261c8feb2786e348cbf3223fcf8461e16", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 3, + "tsSize": 134, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "outDir": "", + "rootDir": "", + "composite": true + }, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": true, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/myproject/packages/A/src/test.ts", - "configFile": "/user/username/projects/myproject/packages/A/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/myproject/packages/A/src/test.ts", + "configFile": "/user/username/projects/myproject/packages/A/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Search path: /user/username/projects/myproject/packages/A Info seq [hh:mm:ss:mss] For info: /user/username/projects/myproject/packages/A/tsconfig.json :: No config files found. @@ -276,13 +276,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/packages/A/src/test.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/packages/A/src/test.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -291,13 +291,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/packages/A/src/test.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/packages/A/src/test.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 1 2: suggestionCheck @@ -307,22 +307,22 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/packages/A/src/test.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/packages/A/src/test.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 2 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 2 + } } After running Immedidate callback:: count: 0 @@ -396,13 +396,13 @@ Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/packages/A/src/test.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/packages/A/src/test.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -411,13 +411,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/packages/A/src/test.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/packages/A/src/test.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 1 4: suggestionCheck @@ -427,21 +427,21 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/packages/A/src/test.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/packages/A/src/test.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 4 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 4 + } } After running Immedidate callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-referencing-file-from-subFolder-with-scoped-package-and-solution-is-built-with-preserveSymlinks.js b/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-referencing-file-from-subFolder-with-scoped-package-and-solution-is-built-with-preserveSymlinks.js index 3a0972953b74a..daf0df0cbedfe 100644 --- a/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-referencing-file-from-subFolder-with-scoped-package-and-solution-is-built-with-preserveSymlinks.js +++ b/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-referencing-file-from-subFolder-with-scoped-package-and-solution-is-built-with-preserveSymlinks.js @@ -231,13 +231,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/A/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/packages/A/tsconfig.json", - "reason": "Creating possible configured project for /user/username/projects/myproject/packages/A/src/test.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/packages/A/tsconfig.json", + "reason": "Creating possible configured project for /user/username/projects/myproject/packages/A/src/test.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/packages/A/tsconfig.json : { "rootNames": [ @@ -317,69 +317,69 @@ Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/packages/A/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/packages/A/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "8c5cfb88fb6a6125ddaca4c198af63d261c8feb2786e348cbf3223fcf8461e16", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 3, - "tsSize": 148, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": { - "outDir": "", - "rootDir": "", - "composite": true, - "preserveSymlinks": true - }, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": true, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "8c5cfb88fb6a6125ddaca4c198af63d261c8feb2786e348cbf3223fcf8461e16", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 3, + "tsSize": 148, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "outDir": "", + "rootDir": "", + "composite": true, + "preserveSymlinks": true + }, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": true, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/myproject/packages/A/src/test.ts", - "configFile": "/user/username/projects/myproject/packages/A/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/myproject/packages/A/src/test.ts", + "configFile": "/user/username/projects/myproject/packages/A/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Search path: /user/username/projects/myproject/packages/A Info seq [hh:mm:ss:mss] For info: /user/username/projects/myproject/packages/A/tsconfig.json :: No config files found. @@ -457,13 +457,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/packages/A/src/test.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/packages/A/src/test.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -472,13 +472,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/packages/A/src/test.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/packages/A/src/test.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 1 2: suggestionCheck @@ -488,22 +488,22 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/packages/A/src/test.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/packages/A/src/test.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 2 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 2 + } } After running Immedidate callback:: count: 0 @@ -577,13 +577,13 @@ Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/packages/A/src/test.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/packages/A/src/test.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -592,13 +592,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/packages/A/src/test.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/packages/A/src/test.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 1 4: suggestionCheck @@ -608,21 +608,21 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/packages/A/src/test.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/packages/A/src/test.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 4 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 4 + } } After running Immedidate callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-referencing-file-from-subFolder-with-scoped-package-and-solution-is-built.js b/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-referencing-file-from-subFolder-with-scoped-package-and-solution-is-built.js index 9d69e916afbe1..6f15a33705985 100644 --- a/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-referencing-file-from-subFolder-with-scoped-package-and-solution-is-built.js +++ b/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-referencing-file-from-subFolder-with-scoped-package-and-solution-is-built.js @@ -231,13 +231,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/A/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/packages/A/tsconfig.json", - "reason": "Creating possible configured project for /user/username/projects/myproject/packages/A/src/test.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/packages/A/tsconfig.json", + "reason": "Creating possible configured project for /user/username/projects/myproject/packages/A/src/test.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/packages/A/tsconfig.json : { "rootNames": [ @@ -315,68 +315,68 @@ Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/packages/A/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/packages/A/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "8c5cfb88fb6a6125ddaca4c198af63d261c8feb2786e348cbf3223fcf8461e16", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 3, - "tsSize": 148, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": { - "outDir": "", - "rootDir": "", - "composite": true - }, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": true, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "8c5cfb88fb6a6125ddaca4c198af63d261c8feb2786e348cbf3223fcf8461e16", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 3, + "tsSize": 148, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "outDir": "", + "rootDir": "", + "composite": true + }, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": true, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/myproject/packages/A/src/test.ts", - "configFile": "/user/username/projects/myproject/packages/A/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/myproject/packages/A/src/test.ts", + "configFile": "/user/username/projects/myproject/packages/A/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Search path: /user/username/projects/myproject/packages/A Info seq [hh:mm:ss:mss] For info: /user/username/projects/myproject/packages/A/tsconfig.json :: No config files found. @@ -454,13 +454,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/packages/A/src/test.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/packages/A/src/test.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -469,13 +469,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/packages/A/src/test.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/packages/A/src/test.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 1 2: suggestionCheck @@ -485,22 +485,22 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/packages/A/src/test.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/packages/A/src/test.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 2 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 2 + } } After running Immedidate callback:: count: 0 @@ -574,13 +574,13 @@ Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/packages/A/src/test.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/packages/A/src/test.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -589,13 +589,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/packages/A/src/test.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/packages/A/src/test.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 1 4: suggestionCheck @@ -605,21 +605,21 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/packages/A/src/test.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/packages/A/src/test.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 4 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 4 + } } After running Immedidate callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-referencing-file-from-subFolder-with-scoped-package-and-solution-is-not-built-with-preserveSymlinks.js b/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-referencing-file-from-subFolder-with-scoped-package-and-solution-is-not-built-with-preserveSymlinks.js index 643b1b76d7547..9089e80064cb7 100644 --- a/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-referencing-file-from-subFolder-with-scoped-package-and-solution-is-not-built-with-preserveSymlinks.js +++ b/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-referencing-file-from-subFolder-with-scoped-package-and-solution-is-not-built-with-preserveSymlinks.js @@ -53,13 +53,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/A/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/packages/A/tsconfig.json", - "reason": "Creating possible configured project for /user/username/projects/myproject/packages/A/src/test.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/packages/A/tsconfig.json", + "reason": "Creating possible configured project for /user/username/projects/myproject/packages/A/src/test.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/packages/A/tsconfig.json : { "rootNames": [ @@ -139,69 +139,69 @@ Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/packages/A/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/packages/A/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "8c5cfb88fb6a6125ddaca4c198af63d261c8feb2786e348cbf3223fcf8461e16", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 3, - "tsSize": 148, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": { - "outDir": "", - "rootDir": "", - "composite": true, - "preserveSymlinks": true - }, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": true, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "8c5cfb88fb6a6125ddaca4c198af63d261c8feb2786e348cbf3223fcf8461e16", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 3, + "tsSize": 148, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "outDir": "", + "rootDir": "", + "composite": true, + "preserveSymlinks": true + }, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": true, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/myproject/packages/A/src/test.ts", - "configFile": "/user/username/projects/myproject/packages/A/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/myproject/packages/A/src/test.ts", + "configFile": "/user/username/projects/myproject/packages/A/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Search path: /user/username/projects/myproject/packages/A Info seq [hh:mm:ss:mss] For info: /user/username/projects/myproject/packages/A/tsconfig.json :: No config files found. @@ -279,13 +279,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/packages/A/src/test.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/packages/A/src/test.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -294,13 +294,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/packages/A/src/test.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/packages/A/src/test.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 1 2: suggestionCheck @@ -310,22 +310,22 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/packages/A/src/test.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/packages/A/src/test.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 2 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 2 + } } After running Immedidate callback:: count: 0 @@ -399,13 +399,13 @@ Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/packages/A/src/test.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/packages/A/src/test.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -414,13 +414,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/packages/A/src/test.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/packages/A/src/test.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 1 4: suggestionCheck @@ -430,21 +430,21 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/packages/A/src/test.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/packages/A/src/test.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 4 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 4 + } } After running Immedidate callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-referencing-file-from-subFolder-with-scoped-package-and-solution-is-not-built.js b/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-referencing-file-from-subFolder-with-scoped-package-and-solution-is-not-built.js index a0c01753688eb..25b1691acb281 100644 --- a/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-referencing-file-from-subFolder-with-scoped-package-and-solution-is-not-built.js +++ b/tests/baselines/reference/tsserver/projectReferences/monorepo-like-with-symlinks-when-referencing-file-from-subFolder-with-scoped-package-and-solution-is-not-built.js @@ -53,13 +53,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/A/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/packages/A/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/packages/A/tsconfig.json", - "reason": "Creating possible configured project for /user/username/projects/myproject/packages/A/src/test.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/packages/A/tsconfig.json", + "reason": "Creating possible configured project for /user/username/projects/myproject/packages/A/src/test.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/packages/A/tsconfig.json : { "rootNames": [ @@ -137,68 +137,68 @@ Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/packages/A/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/packages/A/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "8c5cfb88fb6a6125ddaca4c198af63d261c8feb2786e348cbf3223fcf8461e16", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 3, - "tsSize": 148, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": { - "outDir": "", - "rootDir": "", - "composite": true - }, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": true, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "8c5cfb88fb6a6125ddaca4c198af63d261c8feb2786e348cbf3223fcf8461e16", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 3, + "tsSize": 148, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "outDir": "", + "rootDir": "", + "composite": true + }, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": true, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/myproject/packages/A/src/test.ts", - "configFile": "/user/username/projects/myproject/packages/A/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/myproject/packages/A/src/test.ts", + "configFile": "/user/username/projects/myproject/packages/A/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Search path: /user/username/projects/myproject/packages/A Info seq [hh:mm:ss:mss] For info: /user/username/projects/myproject/packages/A/tsconfig.json :: No config files found. @@ -276,13 +276,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/packages/A/src/test.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/packages/A/src/test.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -291,13 +291,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/packages/A/src/test.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/packages/A/src/test.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 1 2: suggestionCheck @@ -307,22 +307,22 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/packages/A/src/test.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/packages/A/src/test.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 2 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 2 + } } After running Immedidate callback:: count: 0 @@ -396,13 +396,13 @@ Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/packages/A/src/test.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/packages/A/src/test.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -411,13 +411,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/packages/A/src/test.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/packages/A/src/test.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 1 4: suggestionCheck @@ -427,21 +427,21 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/packages/A/src/test.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/packages/A/src/test.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 4 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 4 + } } After running Immedidate callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/projectReferences/project-is-directly-referenced-by-solution.js b/tests/baselines/reference/tsserver/projectReferences/project-is-directly-referenced-by-solution.js index ff084bf395a6d..e1047f97e2af0 100644 --- a/tests/baselines/reference/tsserver/projectReferences/project-is-directly-referenced-by-solution.js +++ b/tests/baselines/reference/tsserver/projectReferences/project-is-directly-referenced-by-solution.js @@ -6,13 +6,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json", - "reason": "Creating possible configured project for /user/username/projects/myproject/src/main.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json", + "reason": "Creating possible configured project for /user/username/projects/myproject/src/main.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/tsconfig.json : { "rootNames": [], @@ -53,64 +53,64 @@ Info seq [hh:mm:ss:mss] Files (0) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "4a33d78ee40d836c4f4e64c59aed976628aea0013be9585c5ff171dfc41baf98", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 0, - "tsSize": 0, - "tsx": 0, - "tsxSize": 0, - "dts": 0, - "dtsSize": 0, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": {}, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": true, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "4a33d78ee40d836c4f4e64c59aed976628aea0013be9585c5ff171dfc41baf98", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 0, + "tsSize": 0, + "tsx": 0, + "tsxSize": 0, + "dts": 0, + "dtsSize": 0, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": {}, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": true, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } - } } Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/myproject/tsconfig-src.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig-src.json", - "reason": "Creating project referenced in solution /user/username/projects/myproject/tsconfig.json to find possible configured project for /user/username/projects/myproject/src/main.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig-src.json", + "reason": "Creating project referenced in solution /user/username/projects/myproject/tsconfig.json to find possible configured project for /user/username/projects/myproject/src/main.ts to open" + } } Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/helpers/functions.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig-src.json @@ -138,68 +138,68 @@ Info seq [hh:mm:ss:mss] Files (3) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig-src.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig-src.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "75d5ba36c0a162a329bf40235b10e96d2d129b95469e1f02c08da775fb38a2b4", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 2, - "tsSize": 77, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": { - "composite": true, - "outDir": "", - "baseUrl": "" - }, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": true, - "exclude": false, - "compileOnSave": false, - "configFileName": "other", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "75d5ba36c0a162a329bf40235b10e96d2d129b95469e1f02c08da775fb38a2b4", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 2, + "tsSize": 77, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "composite": true, + "outDir": "", + "baseUrl": "" + }, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": true, + "exclude": false, + "compileOnSave": false, + "configFileName": "other", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/myproject/src/main.ts", - "configFile": "/user/username/projects/myproject/tsconfig-src.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/myproject/src/main.ts", + "configFile": "/user/username/projects/myproject/tsconfig-src.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Project '/user/username/projects/myproject/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (0) @@ -311,13 +311,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/src/main.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/src/main.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -326,13 +326,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/src/main.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/src/main.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 1 2: suggestionCheck @@ -342,22 +342,22 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/src/main.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/src/main.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 1 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 1 + } } After running Immedidate callback:: count: 0 @@ -481,13 +481,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json", - "reason": "Creating possible configured project for /user/username/projects/myproject/src/main.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json", + "reason": "Creating possible configured project for /user/username/projects/myproject/src/main.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/tsconfig.json : { "rootNames": [], @@ -528,23 +528,23 @@ Info seq [hh:mm:ss:mss] Files (0) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json" + } } Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/myproject/tsconfig-src.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig-src.json", - "reason": "Creating project referenced in solution /user/username/projects/myproject/tsconfig.json to find possible configured project for /user/username/projects/myproject/src/main.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig-src.json", + "reason": "Creating project referenced in solution /user/username/projects/myproject/tsconfig.json to find possible configured project for /user/username/projects/myproject/src/main.ts to open" + } } Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/helpers/functions.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig-src.json @@ -571,23 +571,23 @@ Info seq [hh:mm:ss:mss] Files (3) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig-src.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig-src.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/myproject/src/main.ts", - "configFile": "/user/username/projects/myproject/tsconfig-src.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/myproject/src/main.ts", + "configFile": "/user/username/projects/myproject/tsconfig-src.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Project '/user/username/projects/myproject/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (0) @@ -660,13 +660,13 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /us Info seq [hh:mm:ss:mss] Reloading configured project /user/username/projects/myproject/tsconfig.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json", - "reason": "User requested reload projects" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json", + "reason": "User requested reload projects" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/tsconfig.json : { "rootNames": [], @@ -704,23 +704,23 @@ Info seq [hh:mm:ss:mss] Files (0) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/myproject/tsconfig.json", - "configFile": "/user/username/projects/myproject/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/myproject/tsconfig.json", + "configFile": "/user/username/projects/myproject/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: Type roots @@ -729,13 +729,13 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /us Info seq [hh:mm:ss:mss] Reloading configured project /user/username/projects/myproject/tsconfig-src.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig-src.json", - "reason": "User requested reload projects" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig-src.json", + "reason": "User requested reload projects" + } } Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig-src.json Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: Type roots @@ -761,23 +761,23 @@ Info seq [hh:mm:ss:mss] Files (3) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig-src.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig-src.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/myproject/tsconfig-src.json", - "configFile": "/user/username/projects/myproject/tsconfig-src.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/myproject/tsconfig-src.json", + "configFile": "/user/username/projects/myproject/tsconfig-src.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Search path: /dummy Info seq [hh:mm:ss:mss] For info: /dummy/dummy.ts :: No config files found. @@ -1024,13 +1024,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/indirect3/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/indirect3/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/indirect3/tsconfig.json", - "reason": "Creating possible configured project for /user/username/projects/myproject/indirect3/main.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/indirect3/tsconfig.json", + "reason": "Creating possible configured project for /user/username/projects/myproject/indirect3/main.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/indirect3/tsconfig.json : { "rootNames": [ @@ -1074,66 +1074,66 @@ Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/indirect3/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/indirect3/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "5b0817f69b6871821661b976aa73f4f2533b37c5f4b920541094c2d727d0dc39", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 57, - "tsx": 0, - "tsxSize": 0, - "dts": 3, - "dtsSize": 494, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": { - "baseUrl": "" - }, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "5b0817f69b6871821661b976aa73f4f2533b37c5f4b920541094c2d727d0dc39", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 57, + "tsx": 0, + "tsxSize": 0, + "dts": 3, + "dtsSize": 494, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "baseUrl": "" + }, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/myproject/indirect3/main.ts", - "configFile": "/user/username/projects/myproject/indirect3/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/myproject/indirect3/main.ts", + "configFile": "/user/username/projects/myproject/indirect3/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] `remove Project:: Info seq [hh:mm:ss:mss] Project '/user/username/projects/myproject/tsconfig.json' (Configured) @@ -1253,13 +1253,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json", - "reason": "Creating project for original file: /user/username/projects/myproject/src/main.ts for location: /user/username/projects/myproject/target/src/main.d.ts" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json", + "reason": "Creating project for original file: /user/username/projects/myproject/src/main.ts for location: /user/username/projects/myproject/target/src/main.d.ts" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/tsconfig.json : { "rootNames": [], @@ -1300,23 +1300,23 @@ Info seq [hh:mm:ss:mss] Files (0) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json" + } } Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/myproject/tsconfig-src.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig-src.json", - "reason": "Creating project referenced in solution /user/username/projects/myproject/tsconfig.json to find possible configured project for original file: /user/username/projects/myproject/src/main.ts for location: /user/username/projects/myproject/target/src/main.d.ts" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig-src.json", + "reason": "Creating project referenced in solution /user/username/projects/myproject/tsconfig.json to find possible configured project for original file: /user/username/projects/myproject/src/main.ts for location: /user/username/projects/myproject/target/src/main.d.ts" + } } Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig-src.json Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: Type roots @@ -1342,12 +1342,12 @@ Info seq [hh:mm:ss:mss] Files (3) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig-src.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig-src.json" + } } Info seq [hh:mm:ss:mss] Search path: /user/username/projects/myproject/src Info seq [hh:mm:ss:mss] For info: /user/username/projects/myproject/src/main.ts :: Config file name: /user/username/projects/myproject/tsconfig.json diff --git a/tests/baselines/reference/tsserver/projectReferences/project-is-indirectly-referenced-by-solution.js b/tests/baselines/reference/tsserver/projectReferences/project-is-indirectly-referenced-by-solution.js index e73da1642f55d..48078c0a052e1 100644 --- a/tests/baselines/reference/tsserver/projectReferences/project-is-indirectly-referenced-by-solution.js +++ b/tests/baselines/reference/tsserver/projectReferences/project-is-indirectly-referenced-by-solution.js @@ -6,13 +6,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json", - "reason": "Creating possible configured project for /user/username/projects/myproject/src/main.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json", + "reason": "Creating possible configured project for /user/username/projects/myproject/src/main.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/tsconfig.json : { "rootNames": [], @@ -93,64 +93,64 @@ Info seq [hh:mm:ss:mss] Files (0) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "4a33d78ee40d836c4f4e64c59aed976628aea0013be9585c5ff171dfc41baf98", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 0, - "tsSize": 0, - "tsx": 0, - "tsxSize": 0, - "dts": 0, - "dtsSize": 0, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": {}, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": true, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "4a33d78ee40d836c4f4e64c59aed976628aea0013be9585c5ff171dfc41baf98", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 0, + "tsSize": 0, + "tsx": 0, + "tsxSize": 0, + "dts": 0, + "dtsSize": 0, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": {}, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": true, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } - } } Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/myproject/tsconfig-src.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig-src.json", - "reason": "Creating project referenced in solution /user/username/projects/myproject/tsconfig.json to find possible configured project for /user/username/projects/myproject/src/main.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig-src.json", + "reason": "Creating project referenced in solution /user/username/projects/myproject/tsconfig.json to find possible configured project for /user/username/projects/myproject/src/main.ts to open" + } } Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/helpers/functions.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig-src.json @@ -178,68 +178,68 @@ Info seq [hh:mm:ss:mss] Files (3) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig-src.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig-src.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "75d5ba36c0a162a329bf40235b10e96d2d129b95469e1f02c08da775fb38a2b4", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 2, - "tsSize": 77, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": { - "composite": true, - "outDir": "", - "baseUrl": "" - }, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": true, - "exclude": false, - "compileOnSave": false, - "configFileName": "other", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "75d5ba36c0a162a329bf40235b10e96d2d129b95469e1f02c08da775fb38a2b4", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 2, + "tsSize": 77, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "composite": true, + "outDir": "", + "baseUrl": "" + }, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": true, + "exclude": false, + "compileOnSave": false, + "configFileName": "other", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/myproject/src/main.ts", - "configFile": "/user/username/projects/myproject/tsconfig-src.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/myproject/src/main.ts", + "configFile": "/user/username/projects/myproject/tsconfig-src.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Project '/user/username/projects/myproject/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (0) @@ -371,13 +371,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/src/main.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/src/main.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -386,13 +386,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/src/main.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/src/main.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 1 2: suggestionCheck @@ -402,22 +402,22 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/src/main.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/src/main.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 1 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 1 + } } After running Immedidate callback:: count: 0 @@ -543,13 +543,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json", - "reason": "Creating possible configured project for /user/username/projects/myproject/src/main.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json", + "reason": "Creating possible configured project for /user/username/projects/myproject/src/main.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/tsconfig.json : { "rootNames": [], @@ -630,23 +630,23 @@ Info seq [hh:mm:ss:mss] Files (0) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json" + } } Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/myproject/tsconfig-src.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig-src.json", - "reason": "Creating project referenced in solution /user/username/projects/myproject/tsconfig.json to find possible configured project for /user/username/projects/myproject/src/main.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig-src.json", + "reason": "Creating project referenced in solution /user/username/projects/myproject/tsconfig.json to find possible configured project for /user/username/projects/myproject/src/main.ts to open" + } } Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/src/helpers/functions.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig-src.json @@ -673,23 +673,23 @@ Info seq [hh:mm:ss:mss] Files (3) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig-src.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig-src.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/myproject/src/main.ts", - "configFile": "/user/username/projects/myproject/tsconfig-src.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/myproject/src/main.ts", + "configFile": "/user/username/projects/myproject/tsconfig-src.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Project '/user/username/projects/myproject/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (0) @@ -762,13 +762,13 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /us Info seq [hh:mm:ss:mss] Reloading configured project /user/username/projects/myproject/tsconfig.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json", - "reason": "User requested reload projects" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json", + "reason": "User requested reload projects" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/tsconfig.json : { "rootNames": [], @@ -844,23 +844,23 @@ Info seq [hh:mm:ss:mss] Files (0) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/myproject/tsconfig.json", - "configFile": "/user/username/projects/myproject/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/myproject/tsconfig.json", + "configFile": "/user/username/projects/myproject/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: Type roots @@ -869,13 +869,13 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /us Info seq [hh:mm:ss:mss] Reloading configured project /user/username/projects/myproject/tsconfig-src.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig-src.json", - "reason": "User requested reload projects" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig-src.json", + "reason": "User requested reload projects" + } } Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig-src.json Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: Type roots @@ -901,23 +901,23 @@ Info seq [hh:mm:ss:mss] Files (3) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig-src.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig-src.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/myproject/tsconfig-src.json", - "configFile": "/user/username/projects/myproject/tsconfig-src.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/myproject/tsconfig-src.json", + "configFile": "/user/username/projects/myproject/tsconfig-src.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Search path: /dummy Info seq [hh:mm:ss:mss] For info: /dummy/dummy.ts :: No config files found. @@ -1034,13 +1034,13 @@ Info seq [hh:mm:ss:mss] Finding references to /user/username/projects/myproject Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/myproject/tsconfig-indirect1.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig-indirect1.json", - "reason": "Creating project referenced by : /user/username/projects/myproject/tsconfig.json as it references project /user/username/projects/myproject/tsconfig-src.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig-indirect1.json", + "reason": "Creating project referenced by : /user/username/projects/myproject/tsconfig.json as it references project /user/username/projects/myproject/tsconfig-src.json" + } } Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/indirect1/main.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig-indirect1.json @@ -1069,68 +1069,68 @@ Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig-indirect1.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig-indirect1.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "9ccc3aed1af08832ccb25ea453f7b771199f56af238b53cc428549dbd2d59246", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 3, - "tsSize": 134, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": { - "composite": true, - "outDir": "", - "baseUrl": "" - }, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": true, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "other", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "9ccc3aed1af08832ccb25ea453f7b771199f56af238b53cc428549dbd2d59246", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 3, + "tsSize": 134, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "composite": true, + "outDir": "", + "baseUrl": "" + }, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": true, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "other", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } - } } Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/myproject/tsconfig-indirect2.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig-indirect2.json", - "reason": "Creating project referenced by : /user/username/projects/myproject/tsconfig.json as it references project /user/username/projects/myproject/tsconfig-src.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig-indirect2.json", + "reason": "Creating project referenced by : /user/username/projects/myproject/tsconfig.json as it references project /user/username/projects/myproject/tsconfig-src.json" + } } Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/indirect2/main.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig-indirect2.json @@ -1159,57 +1159,57 @@ Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig-indirect2.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig-indirect2.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "d9a040bddd6b85b85abd507a988a4b809b1515b5e61257ea3f8263da59589565", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 3, - "tsSize": 134, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": { - "composite": true, - "outDir": "", - "baseUrl": "" - }, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": true, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "other", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "d9a040bddd6b85b85abd507a988a4b809b1515b5e61257ea3f8263da59589565", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 3, + "tsSize": 134, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "composite": true, + "outDir": "", + "baseUrl": "" + }, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": true, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "other", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } - } } Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/target/src/helpers/functions.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/target/src/helpers/functions.d.ts.map 500 undefined WatchType: Closed Script info @@ -1470,13 +1470,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/indirect3/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/indirect3/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/indirect3/tsconfig.json", - "reason": "Creating possible configured project for /user/username/projects/myproject/indirect3/main.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/indirect3/tsconfig.json", + "reason": "Creating possible configured project for /user/username/projects/myproject/indirect3/main.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/indirect3/tsconfig.json : { "rootNames": [ @@ -1520,66 +1520,66 @@ Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/indirect3/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/indirect3/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "5b0817f69b6871821661b976aa73f4f2533b37c5f4b920541094c2d727d0dc39", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 57, - "tsx": 0, - "tsxSize": 0, - "dts": 3, - "dtsSize": 494, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": { - "baseUrl": "" - }, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "5b0817f69b6871821661b976aa73f4f2533b37c5f4b920541094c2d727d0dc39", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 57, + "tsx": 0, + "tsxSize": 0, + "dts": 3, + "dtsSize": 494, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "baseUrl": "" + }, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/myproject/indirect3/main.ts", - "configFile": "/user/username/projects/myproject/indirect3/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/myproject/indirect3/main.ts", + "configFile": "/user/username/projects/myproject/indirect3/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] `remove Project:: Info seq [hh:mm:ss:mss] Project '/user/username/projects/myproject/tsconfig.json' (Configured) @@ -1757,13 +1757,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json", - "reason": "Creating project for original file: /user/username/projects/myproject/src/main.ts for location: /user/username/projects/myproject/target/src/main.d.ts" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json", + "reason": "Creating project for original file: /user/username/projects/myproject/src/main.ts for location: /user/username/projects/myproject/target/src/main.d.ts" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/tsconfig.json : { "rootNames": [], @@ -1844,23 +1844,23 @@ Info seq [hh:mm:ss:mss] Files (0) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json" + } } Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/myproject/tsconfig-src.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig-src.json", - "reason": "Creating project referenced in solution /user/username/projects/myproject/tsconfig.json to find possible configured project for original file: /user/username/projects/myproject/src/main.ts for location: /user/username/projects/myproject/target/src/main.d.ts" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig-src.json", + "reason": "Creating project referenced in solution /user/username/projects/myproject/tsconfig.json to find possible configured project for original file: /user/username/projects/myproject/src/main.ts for location: /user/username/projects/myproject/target/src/main.d.ts" + } } Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig-src.json Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: Type roots @@ -1886,12 +1886,12 @@ Info seq [hh:mm:ss:mss] Files (3) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig-src.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig-src.json" + } } Info seq [hh:mm:ss:mss] Search path: /user/username/projects/myproject/src Info seq [hh:mm:ss:mss] For info: /user/username/projects/myproject/src/main.ts :: Config file name: /user/username/projects/myproject/tsconfig.json @@ -1905,13 +1905,13 @@ Info seq [hh:mm:ss:mss] Finding references to /user/username/projects/myproject Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/myproject/tsconfig-indirect1.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig-indirect1.json", - "reason": "Creating project referenced by : /user/username/projects/myproject/tsconfig.json as it references project /user/username/projects/myproject/tsconfig-src.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig-indirect1.json", + "reason": "Creating project referenced by : /user/username/projects/myproject/tsconfig.json as it references project /user/username/projects/myproject/tsconfig-src.json" + } } Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/indirect1/main.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig-indirect1.json @@ -1940,23 +1940,23 @@ Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig-indirect1.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig-indirect1.json" + } } Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/myproject/tsconfig-indirect2.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig-indirect2.json", - "reason": "Creating project referenced by : /user/username/projects/myproject/tsconfig.json as it references project /user/username/projects/myproject/tsconfig-src.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig-indirect2.json", + "reason": "Creating project referenced by : /user/username/projects/myproject/tsconfig.json as it references project /user/username/projects/myproject/tsconfig-src.json" + } } Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/indirect2/main.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig-indirect2.json @@ -1985,12 +1985,12 @@ Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig-indirect2.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig-indirect2.json" + } } Info seq [hh:mm:ss:mss] Finding references to /user/username/projects/myproject/src/helpers/functions.ts position 13 in project /user/username/projects/myproject/tsconfig-indirect1.json Info seq [hh:mm:ss:mss] Search path: /user/username/projects/myproject/src/helpers diff --git a/tests/baselines/reference/tsserver/projectReferences/solution-with-its-own-files-and-disables-looking-into-the-child-project-if-disableReferencedProjectLoad-is-set-in-first-indirect-project-but-not-in-another-one.js b/tests/baselines/reference/tsserver/projectReferences/solution-with-its-own-files-and-disables-looking-into-the-child-project-if-disableReferencedProjectLoad-is-set-in-first-indirect-project-but-not-in-another-one.js index 5669183a4e1c3..0e3edcaf07aaf 100644 --- a/tests/baselines/reference/tsserver/projectReferences/solution-with-its-own-files-and-disables-looking-into-the-child-project-if-disableReferencedProjectLoad-is-set-in-first-indirect-project-but-not-in-another-one.js +++ b/tests/baselines/reference/tsserver/projectReferences/solution-with-its-own-files-and-disables-looking-into-the-child-project-if-disableReferencedProjectLoad-is-set-in-first-indirect-project-but-not-in-another-one.js @@ -6,13 +6,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json", - "reason": "Creating possible configured project for /user/username/projects/myproject/src/main.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json", + "reason": "Creating possible configured project for /user/username/projects/myproject/src/main.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/tsconfig.json : { "rootNames": [ @@ -119,67 +119,67 @@ Info seq [hh:mm:ss:mss] Files (5) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "4a33d78ee40d836c4f4e64c59aed976628aea0013be9585c5ff171dfc41baf98", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 4, - "tsSize": 166, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": { - "outDir": "", - "baseUrl": "" - }, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": true, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "4a33d78ee40d836c4f4e64c59aed976628aea0013be9585c5ff171dfc41baf98", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 4, + "tsSize": 166, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "outDir": "", + "baseUrl": "" + }, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": true, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } - } } Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/myproject/tsconfig-src.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig-src.json", - "reason": "Creating project referenced in solution /user/username/projects/myproject/tsconfig.json to find possible configured project for /user/username/projects/myproject/src/main.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig-src.json", + "reason": "Creating project referenced in solution /user/username/projects/myproject/tsconfig.json to find possible configured project for /user/username/projects/myproject/src/main.ts to open" + } } Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig-src.json Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: Type roots @@ -205,68 +205,68 @@ Info seq [hh:mm:ss:mss] Files (3) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig-src.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig-src.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "75d5ba36c0a162a329bf40235b10e96d2d129b95469e1f02c08da775fb38a2b4", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 2, - "tsSize": 77, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": { - "composite": true, - "outDir": "", - "baseUrl": "" - }, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": true, - "exclude": false, - "compileOnSave": false, - "configFileName": "other", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "75d5ba36c0a162a329bf40235b10e96d2d129b95469e1f02c08da775fb38a2b4", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 2, + "tsSize": 77, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "composite": true, + "outDir": "", + "baseUrl": "" + }, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": true, + "exclude": false, + "compileOnSave": false, + "configFileName": "other", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/myproject/src/main.ts", - "configFile": "/user/username/projects/myproject/tsconfig-src.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/myproject/src/main.ts", + "configFile": "/user/username/projects/myproject/tsconfig-src.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Project '/user/username/projects/myproject/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (5) @@ -420,13 +420,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json", - "reason": "Creating possible configured project for /user/username/projects/myproject/src/main.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json", + "reason": "Creating possible configured project for /user/username/projects/myproject/src/main.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/tsconfig.json : { "rootNames": [ @@ -532,23 +532,23 @@ Info seq [hh:mm:ss:mss] Files (5) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json" + } } Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/myproject/tsconfig-src.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig-src.json", - "reason": "Creating project referenced in solution /user/username/projects/myproject/tsconfig.json to find possible configured project for /user/username/projects/myproject/src/main.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig-src.json", + "reason": "Creating project referenced in solution /user/username/projects/myproject/tsconfig.json to find possible configured project for /user/username/projects/myproject/src/main.ts to open" + } } Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig-src.json Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: Type roots @@ -574,23 +574,23 @@ Info seq [hh:mm:ss:mss] Files (3) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig-src.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig-src.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/myproject/src/main.ts", - "configFile": "/user/username/projects/myproject/tsconfig-src.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/myproject/src/main.ts", + "configFile": "/user/username/projects/myproject/tsconfig-src.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Project '/user/username/projects/myproject/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (5) @@ -632,13 +632,13 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /us Info seq [hh:mm:ss:mss] Reloading configured project /user/username/projects/myproject/tsconfig.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json", - "reason": "User requested reload projects" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json", + "reason": "User requested reload projects" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/tsconfig.json : { "rootNames": [ @@ -736,23 +736,23 @@ Info seq [hh:mm:ss:mss] Files (5) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/myproject/tsconfig.json", - "configFile": "/user/username/projects/myproject/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/myproject/tsconfig.json", + "configFile": "/user/username/projects/myproject/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: Type roots @@ -761,13 +761,13 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /us Info seq [hh:mm:ss:mss] Reloading configured project /user/username/projects/myproject/tsconfig-src.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig-src.json", - "reason": "User requested reload projects" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig-src.json", + "reason": "User requested reload projects" + } } Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig-src.json Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: Type roots @@ -793,23 +793,23 @@ Info seq [hh:mm:ss:mss] Files (3) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig-src.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig-src.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/myproject/tsconfig-src.json", - "configFile": "/user/username/projects/myproject/tsconfig-src.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/myproject/tsconfig-src.json", + "configFile": "/user/username/projects/myproject/tsconfig-src.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Before ensureProjectForOpenFiles: Info seq [hh:mm:ss:mss] Project '/user/username/projects/myproject/tsconfig.json' (Configured) diff --git a/tests/baselines/reference/tsserver/projectReferences/solution-with-its-own-files-and-disables-looking-into-the-child-project-if-disableReferencedProjectLoad-is-set-in-indirect-project.js b/tests/baselines/reference/tsserver/projectReferences/solution-with-its-own-files-and-disables-looking-into-the-child-project-if-disableReferencedProjectLoad-is-set-in-indirect-project.js index 36ed3640cc5b5..795ee020471a6 100644 --- a/tests/baselines/reference/tsserver/projectReferences/solution-with-its-own-files-and-disables-looking-into-the-child-project-if-disableReferencedProjectLoad-is-set-in-indirect-project.js +++ b/tests/baselines/reference/tsserver/projectReferences/solution-with-its-own-files-and-disables-looking-into-the-child-project-if-disableReferencedProjectLoad-is-set-in-indirect-project.js @@ -6,13 +6,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json", - "reason": "Creating possible configured project for /user/username/projects/myproject/src/main.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json", + "reason": "Creating possible configured project for /user/username/projects/myproject/src/main.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/tsconfig.json : { "rootNames": [ @@ -97,67 +97,67 @@ Info seq [hh:mm:ss:mss] Files (5) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "4a33d78ee40d836c4f4e64c59aed976628aea0013be9585c5ff171dfc41baf98", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 4, - "tsSize": 166, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": { - "outDir": "", - "baseUrl": "" - }, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": true, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "4a33d78ee40d836c4f4e64c59aed976628aea0013be9585c5ff171dfc41baf98", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 4, + "tsSize": 166, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "outDir": "", + "baseUrl": "" + }, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": true, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } - } } Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/myproject/tsconfig-indirect1.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig-indirect1.json", - "reason": "Creating project referenced in solution /user/username/projects/myproject/tsconfig.json to find possible configured project for /user/username/projects/myproject/src/main.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig-indirect1.json", + "reason": "Creating project referenced in solution /user/username/projects/myproject/tsconfig.json to find possible configured project for /user/username/projects/myproject/src/main.ts to open" + } } Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig-indirect1.json Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-indirect1.json WatchType: Type roots @@ -185,69 +185,69 @@ Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig-indirect1.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig-indirect1.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "9ccc3aed1af08832ccb25ea453f7b771199f56af238b53cc428549dbd2d59246", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 3, - "tsSize": 134, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": { - "composite": true, - "outDir": "", - "baseUrl": "", - "disableReferencedProjectLoad": true - }, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": true, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "other", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "9ccc3aed1af08832ccb25ea453f7b771199f56af238b53cc428549dbd2d59246", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 3, + "tsSize": 134, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "composite": true, + "outDir": "", + "baseUrl": "", + "disableReferencedProjectLoad": true + }, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": true, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "other", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/myproject/src/main.ts", - "configFile": "/user/username/projects/myproject/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/myproject/src/main.ts", + "configFile": "/user/username/projects/myproject/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Project '/user/username/projects/myproject/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (5) @@ -402,13 +402,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json", - "reason": "Creating possible configured project for /user/username/projects/myproject/src/main.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json", + "reason": "Creating possible configured project for /user/username/projects/myproject/src/main.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/tsconfig.json : { "rootNames": [ @@ -492,23 +492,23 @@ Info seq [hh:mm:ss:mss] Files (5) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json" + } } Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/myproject/tsconfig-indirect1.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig-indirect1.json", - "reason": "Creating project referenced in solution /user/username/projects/myproject/tsconfig.json to find possible configured project for /user/username/projects/myproject/src/main.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig-indirect1.json", + "reason": "Creating project referenced in solution /user/username/projects/myproject/tsconfig.json to find possible configured project for /user/username/projects/myproject/src/main.ts to open" + } } Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig-indirect1.json Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-indirect1.json WatchType: Type roots @@ -536,23 +536,23 @@ Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig-indirect1.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig-indirect1.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/myproject/src/main.ts", - "configFile": "/user/username/projects/myproject/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/myproject/src/main.ts", + "configFile": "/user/username/projects/myproject/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Project '/user/username/projects/myproject/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (5) @@ -595,13 +595,13 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /us Info seq [hh:mm:ss:mss] Reloading configured project /user/username/projects/myproject/tsconfig.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json", - "reason": "User requested reload projects" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json", + "reason": "User requested reload projects" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/tsconfig.json : { "rootNames": [ @@ -678,23 +678,23 @@ Info seq [hh:mm:ss:mss] Files (5) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/myproject/tsconfig.json", - "configFile": "/user/username/projects/myproject/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/myproject/tsconfig.json", + "configFile": "/user/username/projects/myproject/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-indirect1.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-indirect1.json WatchType: Type roots @@ -703,13 +703,13 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /us Info seq [hh:mm:ss:mss] Reloading configured project /user/username/projects/myproject/tsconfig-indirect1.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig-indirect1.json", - "reason": "User requested reload projects" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig-indirect1.json", + "reason": "User requested reload projects" + } } Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig-indirect1.json Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-indirect1.json WatchType: Type roots @@ -737,23 +737,23 @@ Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig-indirect1.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig-indirect1.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/myproject/tsconfig-indirect1.json", - "configFile": "/user/username/projects/myproject/tsconfig-indirect1.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/myproject/tsconfig-indirect1.json", + "configFile": "/user/username/projects/myproject/tsconfig-indirect1.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Before ensureProjectForOpenFiles: Info seq [hh:mm:ss:mss] Project '/user/username/projects/myproject/tsconfig.json' (Configured) diff --git a/tests/baselines/reference/tsserver/projectReferences/solution-with-its-own-files-and-disables-looking-into-the-child-project-if-disableReferencedProjectLoad-is-set.js b/tests/baselines/reference/tsserver/projectReferences/solution-with-its-own-files-and-disables-looking-into-the-child-project-if-disableReferencedProjectLoad-is-set.js index e197695966efb..6208a3a688d7d 100644 --- a/tests/baselines/reference/tsserver/projectReferences/solution-with-its-own-files-and-disables-looking-into-the-child-project-if-disableReferencedProjectLoad-is-set.js +++ b/tests/baselines/reference/tsserver/projectReferences/solution-with-its-own-files-and-disables-looking-into-the-child-project-if-disableReferencedProjectLoad-is-set.js @@ -6,13 +6,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json", - "reason": "Creating possible configured project for /user/username/projects/myproject/src/main.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json", + "reason": "Creating possible configured project for /user/username/projects/myproject/src/main.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/tsconfig.json : { "rootNames": [ @@ -75,68 +75,68 @@ Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "4a33d78ee40d836c4f4e64c59aed976628aea0013be9585c5ff171dfc41baf98", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 3, - "tsSize": 134, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": { - "outDir": "", - "baseUrl": "", - "disableReferencedProjectLoad": true - }, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": true, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "4a33d78ee40d836c4f4e64c59aed976628aea0013be9585c5ff171dfc41baf98", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 3, + "tsSize": 134, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "outDir": "", + "baseUrl": "", + "disableReferencedProjectLoad": true + }, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": true, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/myproject/src/main.ts", - "configFile": "/user/username/projects/myproject/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/myproject/src/main.ts", + "configFile": "/user/username/projects/myproject/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Project '/user/username/projects/myproject/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (4) @@ -247,13 +247,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json", - "reason": "Creating possible configured project for /user/username/projects/myproject/src/main.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json", + "reason": "Creating possible configured project for /user/username/projects/myproject/src/main.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/tsconfig.json : { "rootNames": [ @@ -315,23 +315,23 @@ Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/myproject/src/main.ts", - "configFile": "/user/username/projects/myproject/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/myproject/src/main.ts", + "configFile": "/user/username/projects/myproject/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Project '/user/username/projects/myproject/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (4) @@ -365,13 +365,13 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /us Info seq [hh:mm:ss:mss] Reloading configured project /user/username/projects/myproject/tsconfig.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json", - "reason": "User requested reload projects" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json", + "reason": "User requested reload projects" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/tsconfig.json : { "rootNames": [ @@ -428,23 +428,23 @@ Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/myproject/tsconfig.json", - "configFile": "/user/username/projects/myproject/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/myproject/tsconfig.json", + "configFile": "/user/username/projects/myproject/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Before ensureProjectForOpenFiles: Info seq [hh:mm:ss:mss] Project '/user/username/projects/myproject/tsconfig.json' (Configured) diff --git a/tests/baselines/reference/tsserver/projectReferences/solution-with-its-own-files-and-project-found-is-not-solution-but-references-open-file-through-project-reference.js b/tests/baselines/reference/tsserver/projectReferences/solution-with-its-own-files-and-project-found-is-not-solution-but-references-open-file-through-project-reference.js index 5e123b84f2918..4739d31777b3c 100644 --- a/tests/baselines/reference/tsserver/projectReferences/solution-with-its-own-files-and-project-found-is-not-solution-but-references-open-file-through-project-reference.js +++ b/tests/baselines/reference/tsserver/projectReferences/solution-with-its-own-files-and-project-found-is-not-solution-but-references-open-file-through-project-reference.js @@ -6,13 +6,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json", - "reason": "Creating possible configured project for /user/username/projects/myproject/src/main.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json", + "reason": "Creating possible configured project for /user/username/projects/myproject/src/main.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/tsconfig.json : { "rootNames": [ @@ -74,67 +74,67 @@ Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "4a33d78ee40d836c4f4e64c59aed976628aea0013be9585c5ff171dfc41baf98", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 3, - "tsSize": 134, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": { - "outDir": "", - "baseUrl": "" - }, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": true, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "4a33d78ee40d836c4f4e64c59aed976628aea0013be9585c5ff171dfc41baf98", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 3, + "tsSize": 134, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "outDir": "", + "baseUrl": "" + }, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": true, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } - } } Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/myproject/tsconfig-src.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig-src.json", - "reason": "Creating project referenced in solution /user/username/projects/myproject/tsconfig.json to find possible configured project for /user/username/projects/myproject/src/main.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig-src.json", + "reason": "Creating project referenced in solution /user/username/projects/myproject/tsconfig.json to find possible configured project for /user/username/projects/myproject/src/main.ts to open" + } } Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig-src.json Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: Type roots @@ -160,68 +160,68 @@ Info seq [hh:mm:ss:mss] Files (3) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig-src.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig-src.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "75d5ba36c0a162a329bf40235b10e96d2d129b95469e1f02c08da775fb38a2b4", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 2, - "tsSize": 77, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": { - "composite": true, - "outDir": "", - "baseUrl": "" - }, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": true, - "exclude": false, - "compileOnSave": false, - "configFileName": "other", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "75d5ba36c0a162a329bf40235b10e96d2d129b95469e1f02c08da775fb38a2b4", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 2, + "tsSize": 77, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "composite": true, + "outDir": "", + "baseUrl": "" + }, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": true, + "exclude": false, + "compileOnSave": false, + "configFileName": "other", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/myproject/src/main.ts", - "configFile": "/user/username/projects/myproject/tsconfig-src.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/myproject/src/main.ts", + "configFile": "/user/username/projects/myproject/tsconfig-src.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Project '/user/username/projects/myproject/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (4) @@ -340,13 +340,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/src/main.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/src/main.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -355,13 +355,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/src/main.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/src/main.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 1 2: suggestionCheck @@ -371,22 +371,22 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/src/main.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/src/main.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 1 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 1 + } } After running Immedidate callback:: count: 0 @@ -523,13 +523,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json", - "reason": "Creating possible configured project for /user/username/projects/myproject/src/main.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json", + "reason": "Creating possible configured project for /user/username/projects/myproject/src/main.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/tsconfig.json : { "rootNames": [ @@ -590,23 +590,23 @@ Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json" + } } Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/myproject/tsconfig-src.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig-src.json", - "reason": "Creating project referenced in solution /user/username/projects/myproject/tsconfig.json to find possible configured project for /user/username/projects/myproject/src/main.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig-src.json", + "reason": "Creating project referenced in solution /user/username/projects/myproject/tsconfig.json to find possible configured project for /user/username/projects/myproject/src/main.ts to open" + } } Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig-src.json Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: Type roots @@ -632,23 +632,23 @@ Info seq [hh:mm:ss:mss] Files (3) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig-src.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig-src.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/myproject/src/main.ts", - "configFile": "/user/username/projects/myproject/tsconfig-src.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/myproject/src/main.ts", + "configFile": "/user/username/projects/myproject/tsconfig-src.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Project '/user/username/projects/myproject/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (4) @@ -725,13 +725,13 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /us Info seq [hh:mm:ss:mss] Reloading configured project /user/username/projects/myproject/tsconfig.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json", - "reason": "User requested reload projects" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json", + "reason": "User requested reload projects" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/tsconfig.json : { "rootNames": [ @@ -787,23 +787,23 @@ Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/myproject/tsconfig.json", - "configFile": "/user/username/projects/myproject/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/myproject/tsconfig.json", + "configFile": "/user/username/projects/myproject/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: Type roots @@ -812,13 +812,13 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /us Info seq [hh:mm:ss:mss] Reloading configured project /user/username/projects/myproject/tsconfig-src.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig-src.json", - "reason": "User requested reload projects" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig-src.json", + "reason": "User requested reload projects" + } } Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig-src.json Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: Type roots @@ -844,23 +844,23 @@ Info seq [hh:mm:ss:mss] Files (3) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig-src.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig-src.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/myproject/tsconfig-src.json", - "configFile": "/user/username/projects/myproject/tsconfig-src.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/myproject/tsconfig-src.json", + "configFile": "/user/username/projects/myproject/tsconfig-src.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Search path: /dummy Info seq [hh:mm:ss:mss] For info: /dummy/dummy.ts :: No config files found. @@ -1160,13 +1160,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/indirect3/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/indirect3/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/indirect3/tsconfig.json", - "reason": "Creating possible configured project for /user/username/projects/myproject/indirect3/main.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/indirect3/tsconfig.json", + "reason": "Creating possible configured project for /user/username/projects/myproject/indirect3/main.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/indirect3/tsconfig.json : { "rootNames": [ @@ -1210,66 +1210,66 @@ Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/indirect3/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/indirect3/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "5b0817f69b6871821661b976aa73f4f2533b37c5f4b920541094c2d727d0dc39", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 57, - "tsx": 0, - "tsxSize": 0, - "dts": 3, - "dtsSize": 494, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": { - "baseUrl": "" - }, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "5b0817f69b6871821661b976aa73f4f2533b37c5f4b920541094c2d727d0dc39", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 57, + "tsx": 0, + "tsxSize": 0, + "dts": 3, + "dtsSize": 494, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "baseUrl": "" + }, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/myproject/indirect3/main.ts", - "configFile": "/user/username/projects/myproject/indirect3/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/myproject/indirect3/main.ts", + "configFile": "/user/username/projects/myproject/indirect3/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] `remove Project:: Info seq [hh:mm:ss:mss] Project '/user/username/projects/myproject/tsconfig.json' (Configured) @@ -1404,13 +1404,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json", - "reason": "Creating project for original file: /user/username/projects/myproject/src/main.ts for location: /user/username/projects/myproject/target/src/main.d.ts" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json", + "reason": "Creating project for original file: /user/username/projects/myproject/src/main.ts for location: /user/username/projects/myproject/target/src/main.d.ts" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/tsconfig.json : { "rootNames": [ @@ -1470,23 +1470,23 @@ Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json" + } } Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/myproject/tsconfig-src.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig-src.json", - "reason": "Creating project referenced in solution /user/username/projects/myproject/tsconfig.json to find possible configured project for original file: /user/username/projects/myproject/src/main.ts for location: /user/username/projects/myproject/target/src/main.d.ts" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig-src.json", + "reason": "Creating project referenced in solution /user/username/projects/myproject/tsconfig.json to find possible configured project for original file: /user/username/projects/myproject/src/main.ts for location: /user/username/projects/myproject/target/src/main.d.ts" + } } Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig-src.json Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: Type roots @@ -1512,12 +1512,12 @@ Info seq [hh:mm:ss:mss] Files (3) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig-src.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig-src.json" + } } Info seq [hh:mm:ss:mss] Search path: /user/username/projects/myproject/src Info seq [hh:mm:ss:mss] For info: /user/username/projects/myproject/src/main.ts :: Config file name: /user/username/projects/myproject/tsconfig.json diff --git a/tests/baselines/reference/tsserver/projectReferences/solution-with-its-own-files-and-project-is-indirectly-referenced-by-solution.js b/tests/baselines/reference/tsserver/projectReferences/solution-with-its-own-files-and-project-is-indirectly-referenced-by-solution.js index a50344bcdf001..5060e7287ff3d 100644 --- a/tests/baselines/reference/tsserver/projectReferences/solution-with-its-own-files-and-project-is-indirectly-referenced-by-solution.js +++ b/tests/baselines/reference/tsserver/projectReferences/solution-with-its-own-files-and-project-is-indirectly-referenced-by-solution.js @@ -6,13 +6,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json", - "reason": "Creating possible configured project for /user/username/projects/myproject/src/main.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json", + "reason": "Creating possible configured project for /user/username/projects/myproject/src/main.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/tsconfig.json : { "rootNames": [ @@ -118,67 +118,67 @@ Info seq [hh:mm:ss:mss] Files (5) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "4a33d78ee40d836c4f4e64c59aed976628aea0013be9585c5ff171dfc41baf98", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 4, - "tsSize": 166, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": { - "outDir": "", - "baseUrl": "" - }, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": true, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "4a33d78ee40d836c4f4e64c59aed976628aea0013be9585c5ff171dfc41baf98", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 4, + "tsSize": 166, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "outDir": "", + "baseUrl": "" + }, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": true, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } - } } Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/myproject/tsconfig-src.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig-src.json", - "reason": "Creating project referenced in solution /user/username/projects/myproject/tsconfig.json to find possible configured project for /user/username/projects/myproject/src/main.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig-src.json", + "reason": "Creating project referenced in solution /user/username/projects/myproject/tsconfig.json to find possible configured project for /user/username/projects/myproject/src/main.ts to open" + } } Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig-src.json Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: Type roots @@ -204,68 +204,68 @@ Info seq [hh:mm:ss:mss] Files (3) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig-src.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig-src.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "75d5ba36c0a162a329bf40235b10e96d2d129b95469e1f02c08da775fb38a2b4", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 2, - "tsSize": 77, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": { - "composite": true, - "outDir": "", - "baseUrl": "" - }, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": true, - "exclude": false, - "compileOnSave": false, - "configFileName": "other", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "75d5ba36c0a162a329bf40235b10e96d2d129b95469e1f02c08da775fb38a2b4", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 2, + "tsSize": 77, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "composite": true, + "outDir": "", + "baseUrl": "" + }, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": true, + "exclude": false, + "compileOnSave": false, + "configFileName": "other", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/myproject/src/main.ts", - "configFile": "/user/username/projects/myproject/tsconfig-src.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/myproject/src/main.ts", + "configFile": "/user/username/projects/myproject/tsconfig-src.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Project '/user/username/projects/myproject/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (5) @@ -405,13 +405,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/src/main.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/src/main.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -420,13 +420,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/src/main.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/src/main.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 1 2: suggestionCheck @@ -436,22 +436,22 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/src/main.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/src/main.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 1 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 1 + } } After running Immedidate callback:: count: 0 @@ -594,13 +594,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json", - "reason": "Creating possible configured project for /user/username/projects/myproject/src/main.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json", + "reason": "Creating possible configured project for /user/username/projects/myproject/src/main.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/tsconfig.json : { "rootNames": [ @@ -705,23 +705,23 @@ Info seq [hh:mm:ss:mss] Files (5) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json" + } } Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/myproject/tsconfig-src.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig-src.json", - "reason": "Creating project referenced in solution /user/username/projects/myproject/tsconfig.json to find possible configured project for /user/username/projects/myproject/src/main.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig-src.json", + "reason": "Creating project referenced in solution /user/username/projects/myproject/tsconfig.json to find possible configured project for /user/username/projects/myproject/src/main.ts to open" + } } Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig-src.json Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: Type roots @@ -747,23 +747,23 @@ Info seq [hh:mm:ss:mss] Files (3) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig-src.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig-src.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/myproject/src/main.ts", - "configFile": "/user/username/projects/myproject/tsconfig-src.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/myproject/src/main.ts", + "configFile": "/user/username/projects/myproject/tsconfig-src.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Project '/user/username/projects/myproject/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (5) @@ -842,13 +842,13 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /us Info seq [hh:mm:ss:mss] Reloading configured project /user/username/projects/myproject/tsconfig.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json", - "reason": "User requested reload projects" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json", + "reason": "User requested reload projects" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/tsconfig.json : { "rootNames": [ @@ -945,23 +945,23 @@ Info seq [hh:mm:ss:mss] Files (5) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/myproject/tsconfig.json", - "configFile": "/user/username/projects/myproject/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/myproject/tsconfig.json", + "configFile": "/user/username/projects/myproject/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: Type roots @@ -970,13 +970,13 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /us Info seq [hh:mm:ss:mss] Reloading configured project /user/username/projects/myproject/tsconfig-src.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig-src.json", - "reason": "User requested reload projects" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig-src.json", + "reason": "User requested reload projects" + } } Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig-src.json Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: Type roots @@ -1002,23 +1002,23 @@ Info seq [hh:mm:ss:mss] Files (3) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig-src.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig-src.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/myproject/tsconfig-src.json", - "configFile": "/user/username/projects/myproject/tsconfig-src.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/myproject/tsconfig-src.json", + "configFile": "/user/username/projects/myproject/tsconfig-src.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Search path: /dummy Info seq [hh:mm:ss:mss] For info: /dummy/dummy.ts :: No config files found. @@ -1156,13 +1156,13 @@ Info seq [hh:mm:ss:mss] For info: /user/username/projects/myproject/indirect1/m Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/myproject/tsconfig-indirect1.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig-indirect1.json", - "reason": "Creating project referenced in solution /user/username/projects/myproject/tsconfig.json to find possible configured project for original file: /user/username/projects/myproject/indirect1/main.ts" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig-indirect1.json", + "reason": "Creating project referenced in solution /user/username/projects/myproject/tsconfig.json to find possible configured project for original file: /user/username/projects/myproject/indirect1/main.ts" + } } Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig-indirect1.json Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-indirect1.json WatchType: Type roots @@ -1190,57 +1190,57 @@ Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig-indirect1.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig-indirect1.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "9ccc3aed1af08832ccb25ea453f7b771199f56af238b53cc428549dbd2d59246", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 3, - "tsSize": 134, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": { - "composite": true, - "outDir": "", - "baseUrl": "" - }, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": true, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "other", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "9ccc3aed1af08832ccb25ea453f7b771199f56af238b53cc428549dbd2d59246", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 3, + "tsSize": 134, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "composite": true, + "outDir": "", + "baseUrl": "" + }, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": true, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "other", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } - } } Info seq [hh:mm:ss:mss] Search path: /user/username/projects/myproject/indirect1 Info seq [hh:mm:ss:mss] For info: /user/username/projects/myproject/indirect1/main.ts :: Config file name: /user/username/projects/myproject/tsconfig.json @@ -1260,13 +1260,13 @@ Info seq [hh:mm:ss:mss] For info: /user/username/projects/myproject/src/helpers Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/myproject/tsconfig-indirect2.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig-indirect2.json", - "reason": "Creating project referenced by : /user/username/projects/myproject/tsconfig.json as it references project /user/username/projects/myproject/tsconfig-src.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig-indirect2.json", + "reason": "Creating project referenced by : /user/username/projects/myproject/tsconfig.json as it references project /user/username/projects/myproject/tsconfig-src.json" + } } Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/indirect2/main.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig-indirect2.json @@ -1295,57 +1295,57 @@ Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig-indirect2.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig-indirect2.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "d9a040bddd6b85b85abd507a988a4b809b1515b5e61257ea3f8263da59589565", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 3, - "tsSize": 134, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": { - "composite": true, - "outDir": "", - "baseUrl": "" - }, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": true, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "other", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "d9a040bddd6b85b85abd507a988a4b809b1515b5e61257ea3f8263da59589565", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 3, + "tsSize": 134, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "composite": true, + "outDir": "", + "baseUrl": "" + }, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": true, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "other", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } - } } Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/target/src/helpers/functions.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/target/src/helpers/functions.d.ts.map 500 undefined WatchType: Closed Script info @@ -1597,13 +1597,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/indirect3/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/indirect3/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/indirect3/tsconfig.json", - "reason": "Creating possible configured project for /user/username/projects/myproject/indirect3/main.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/indirect3/tsconfig.json", + "reason": "Creating possible configured project for /user/username/projects/myproject/indirect3/main.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/indirect3/tsconfig.json : { "rootNames": [ @@ -1647,66 +1647,66 @@ Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/indirect3/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/indirect3/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "5b0817f69b6871821661b976aa73f4f2533b37c5f4b920541094c2d727d0dc39", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 57, - "tsx": 0, - "tsxSize": 0, - "dts": 3, - "dtsSize": 494, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": { - "baseUrl": "" - }, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "5b0817f69b6871821661b976aa73f4f2533b37c5f4b920541094c2d727d0dc39", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 57, + "tsx": 0, + "tsxSize": 0, + "dts": 3, + "dtsSize": 494, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "baseUrl": "" + }, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/myproject/indirect3/main.ts", - "configFile": "/user/username/projects/myproject/indirect3/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/myproject/indirect3/main.ts", + "configFile": "/user/username/projects/myproject/indirect3/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] `remove Project:: Info seq [hh:mm:ss:mss] Project '/user/username/projects/myproject/tsconfig.json' (Configured) @@ -1902,13 +1902,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json", - "reason": "Creating project for original file: /user/username/projects/myproject/src/main.ts for location: /user/username/projects/myproject/target/src/main.d.ts" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json", + "reason": "Creating project for original file: /user/username/projects/myproject/src/main.ts for location: /user/username/projects/myproject/target/src/main.d.ts" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/tsconfig.json : { "rootNames": [ @@ -2012,23 +2012,23 @@ Info seq [hh:mm:ss:mss] Files (5) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json" + } } Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/myproject/tsconfig-src.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig-src.json", - "reason": "Creating project referenced in solution /user/username/projects/myproject/tsconfig.json to find possible configured project for original file: /user/username/projects/myproject/src/main.ts for location: /user/username/projects/myproject/target/src/main.d.ts" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig-src.json", + "reason": "Creating project referenced in solution /user/username/projects/myproject/tsconfig.json to find possible configured project for original file: /user/username/projects/myproject/src/main.ts for location: /user/username/projects/myproject/target/src/main.d.ts" + } } Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig-src.json Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-src.json WatchType: Type roots @@ -2054,12 +2054,12 @@ Info seq [hh:mm:ss:mss] Files (3) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig-src.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig-src.json" + } } Info seq [hh:mm:ss:mss] Search path: /user/username/projects/myproject/src Info seq [hh:mm:ss:mss] For info: /user/username/projects/myproject/src/main.ts :: Config file name: /user/username/projects/myproject/tsconfig.json @@ -2085,13 +2085,13 @@ Info seq [hh:mm:ss:mss] For info: /user/username/projects/myproject/indirect1/m Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/myproject/tsconfig-indirect1.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig-indirect1.json", - "reason": "Creating project referenced in solution /user/username/projects/myproject/tsconfig.json to find possible configured project for original file: /user/username/projects/myproject/indirect1/main.ts" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig-indirect1.json", + "reason": "Creating project referenced in solution /user/username/projects/myproject/tsconfig.json to find possible configured project for original file: /user/username/projects/myproject/indirect1/main.ts" + } } Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig-indirect1.json Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 undefined Project: /user/username/projects/myproject/tsconfig-indirect1.json WatchType: Type roots @@ -2119,12 +2119,12 @@ Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig-indirect1.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig-indirect1.json" + } } Info seq [hh:mm:ss:mss] Search path: /user/username/projects/myproject/indirect1 Info seq [hh:mm:ss:mss] For info: /user/username/projects/myproject/indirect1/main.ts :: Config file name: /user/username/projects/myproject/tsconfig.json @@ -2145,13 +2145,13 @@ Info seq [hh:mm:ss:mss] For info: /user/username/projects/myproject/src/helpers Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/myproject/tsconfig-indirect2.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig-indirect2.json", - "reason": "Creating project referenced by : /user/username/projects/myproject/tsconfig.json as it references project /user/username/projects/myproject/tsconfig-src.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig-indirect2.json", + "reason": "Creating project referenced by : /user/username/projects/myproject/tsconfig.json as it references project /user/username/projects/myproject/tsconfig-src.json" + } } Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/indirect2/main.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /user/username/projects/myproject/tsconfig-indirect2.json @@ -2180,12 +2180,12 @@ Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig-indirect2.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig-indirect2.json" + } } Info seq [hh:mm:ss:mss] Finding references to /user/username/projects/myproject/src/helpers/functions.ts position 13 in project /user/username/projects/myproject/tsconfig-indirect2.json Info seq [hh:mm:ss:mss] Search path: /user/username/projects/myproject/src/helpers diff --git a/tests/baselines/reference/tsserver/projectReferences/when-the-referenced-projects-have-allowJs-and-emitDeclarationOnly.js b/tests/baselines/reference/tsserver/projectReferences/when-the-referenced-projects-have-allowJs-and-emitDeclarationOnly.js index 7c55da7450f1d..24b802717a1d8 100644 --- a/tests/baselines/reference/tsserver/projectReferences/when-the-referenced-projects-have-allowJs-and-emitDeclarationOnly.js +++ b/tests/baselines/reference/tsserver/projectReferences/when-the-referenced-projects-have-allowJs-and-emitDeclarationOnly.js @@ -61,13 +61,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/packages/consumer/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/packages/consumer/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/packages/consumer/tsconfig.json", - "reason": "Creating possible configured project for /user/username/projects/myproject/packages/consumer/src/index.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/packages/consumer/tsconfig.json", + "reason": "Creating possible configured project for /user/username/projects/myproject/packages/consumer/src/index.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/packages/consumer/tsconfig.json : { "rootNames": [ @@ -146,64 +146,64 @@ Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/packages/consumer/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/packages/consumer/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "f6f890b868ee990140855d3b392e7be25cc511c224e307bfaf73c9f27a024a79", - "fileStats": { - "js": 2, - "jsSize": 203, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 143, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": {}, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": true, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "f6f890b868ee990140855d3b392e7be25cc511c224e307bfaf73c9f27a024a79", + "fileStats": { + "js": 2, + "jsSize": 203, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 143, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": {}, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": true, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/myproject/packages/consumer/src/index.ts", - "configFile": "/user/username/projects/myproject/packages/consumer/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/myproject/packages/consumer/src/index.ts", + "configFile": "/user/username/projects/myproject/packages/consumer/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Project '/user/username/projects/myproject/packages/consumer/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (4) @@ -281,13 +281,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/user/username/projects/myproject/packages/consumer/src/index.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/user/username/projects/myproject/packages/consumer/src/index.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -296,27 +296,27 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/user/username/projects/myproject/packages/consumer/src/index.ts", - "diagnostics": [ - { - "start": { - "line": 3, - "offset": 42 - }, - "end": { - "line": 3, - "offset": 44 - }, - "text": "Expected 1 arguments, but got 2.", - "code": 2554, - "category": "error" - } - ] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/user/username/projects/myproject/packages/consumer/src/index.ts", + "diagnostics": [ + { + "start": { + "line": 3, + "offset": 42 + }, + "end": { + "line": 3, + "offset": 44 + }, + "text": "Expected 1 arguments, but got 2.", + "code": 2554, + "category": "error" + } + ] + } } After running Immedidate callback:: count: 1 2: suggestionCheck @@ -326,21 +326,21 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/user/username/projects/myproject/packages/consumer/src/index.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/user/username/projects/myproject/packages/consumer/src/index.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 2 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 2 + } } After running Immedidate callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/projects/deferred-files-in-the-project-context-with-lazyConfiguredProjectsFromExternalProject.js b/tests/baselines/reference/tsserver/projects/deferred-files-in-the-project-context-with-lazyConfiguredProjectsFromExternalProject.js index f6abccca6dfab..2773b78fac7a1 100644 --- a/tests/baselines/reference/tsserver/projects/deferred-files-in-the-project-context-with-lazyConfiguredProjectsFromExternalProject.js +++ b/tests/baselines/reference/tsserver/projects/deferred-files-in-the-project-context-with-lazyConfiguredProjectsFromExternalProject.js @@ -24,11 +24,11 @@ Info seq [hh:mm:ss:mss] request: } Info seq [hh:mm:ss:mss] response: { - "seq": 0, - "type": "response", - "command": "configure", - "request_seq": 1, - "success": true + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 1, + "success": true } Info seq [hh:mm:ss:mss] response: { @@ -61,11 +61,11 @@ Info seq [hh:mm:ss:mss] Open files: Info seq [hh:mm:ss:mss] Host file extension mappings updated Info seq [hh:mm:ss:mss] response: { - "seq": 0, - "type": "response", - "command": "configure", - "request_seq": 2, - "success": true + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 2, + "success": true } Info seq [hh:mm:ss:mss] response: { diff --git a/tests/baselines/reference/tsserver/projects/deferred-files-in-the-project-context.js b/tests/baselines/reference/tsserver/projects/deferred-files-in-the-project-context.js index 056466d96ef70..c4090e275a1b9 100644 --- a/tests/baselines/reference/tsserver/projects/deferred-files-in-the-project-context.js +++ b/tests/baselines/reference/tsserver/projects/deferred-files-in-the-project-context.js @@ -24,11 +24,11 @@ Info seq [hh:mm:ss:mss] request: } Info seq [hh:mm:ss:mss] response: { - "seq": 0, - "type": "response", - "command": "configure", - "request_seq": 1, - "success": true + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 1, + "success": true } Info seq [hh:mm:ss:mss] response: { @@ -61,11 +61,11 @@ Info seq [hh:mm:ss:mss] Open files: Info seq [hh:mm:ss:mss] Host file extension mappings updated Info seq [hh:mm:ss:mss] response: { - "seq": 0, - "type": "response", - "command": "configure", - "request_seq": 2, - "success": true + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 2, + "success": true } Info seq [hh:mm:ss:mss] response: { diff --git a/tests/baselines/reference/tsserver/projects/handles-delayed-directory-watch-invoke-on-file-creation.js b/tests/baselines/reference/tsserver/projects/handles-delayed-directory-watch-invoke-on-file-creation.js index b9421d4033fd6..e3226fbe7e5bf 100644 --- a/tests/baselines/reference/tsserver/projects/handles-delayed-directory-watch-invoke-on-file-creation.js +++ b/tests/baselines/reference/tsserver/projects/handles-delayed-directory-watch-invoke-on-file-creation.js @@ -40,13 +40,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /users/username/projects Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/project/tsconfig.json 2000 undefined Project: /users/username/projects/project/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/users/username/projects/project/tsconfig.json", - "reason": "Creating possible configured project for /users/username/projects/project/b.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/users/username/projects/project/tsconfig.json", + "reason": "Creating possible configured project for /users/username/projects/project/b.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /users/username/projects/project/tsconfig.json : { "rootNames": [ @@ -84,64 +84,64 @@ Info seq [hh:mm:ss:mss] Files (3) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/users/username/projects/project/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/users/username/projects/project/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "5b0be5fc7f7235edf5a31bffe614b4e0819e55ec5f118558864b1f882e283c0d", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 2, - "tsSize": 40, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": {}, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "5b0be5fc7f7235edf5a31bffe614b4e0819e55ec5f118558864b1f882e283c0d", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 2, + "tsSize": 40, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": {}, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/users/username/projects/project/b.ts", - "configFile": "/users/username/projects/project/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/users/username/projects/project/b.ts", + "configFile": "/users/username/projects/project/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Project '/users/username/projects/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (3) @@ -353,15 +353,15 @@ Info seq [hh:mm:ss:mss] Projects: /users/username/projects/project/tsconfig.j Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for /users/username/projects/project/b.ts,/users/username/projects/project/a.ts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/users/username/projects/project/b.ts", - "/users/username/projects/project/a.ts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/username/projects/project/b.ts", + "/users/username/projects/project/a.ts" + ] + } } After running Timeout callback:: count: 0 @@ -427,20 +427,20 @@ Info seq [hh:mm:ss:mss] Files (2) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/users/username/projects/project/sub/a.ts", - "configFile": "/users/username/projects/project/tsconfig.json", - "diagnostics": [ - { - "text": "File '/users/username/projects/project/a.ts' not found.\n The file is in the program because:\n Matched by default include pattern '**/*'", - "code": 6053, - "category": "error" - } - ] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/users/username/projects/project/sub/a.ts", + "configFile": "/users/username/projects/project/tsconfig.json", + "diagnostics": [ + { + "text": "File '/users/username/projects/project/a.ts' not found.\n The file is in the program because:\n Matched by default include pattern '**/*'", + "code": 6053, + "category": "error" + } + ] + } } Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/project/sub/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/project/sub/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root @@ -547,15 +547,15 @@ Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for /users/username/projects/project/b.ts,/users/username/projects/project/sub/a.ts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/users/username/projects/project/b.ts", - "/users/username/projects/project/sub/a.ts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/username/projects/project/b.ts", + "/users/username/projects/project/sub/a.ts" + ] + } } After running Timeout callback:: count: 0 @@ -630,13 +630,13 @@ Info seq [hh:mm:ss:mss] Files (3) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/users/username/projects/project/b.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/users/username/projects/project/b.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 2 13: /users/username/projects/project/tsconfig.json @@ -675,13 +675,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/users/username/projects/project/b.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/users/username/projects/project/b.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 1 2: suggestionCheck @@ -691,13 +691,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/users/username/projects/project/b.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/users/username/projects/project/b.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 0 @@ -709,13 +709,13 @@ Before running Timeout callback:: count: 3 Invoking Timeout callback:: timeoutId:: 16:: checkOne Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/users/username/projects/project/sub/a.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/users/username/projects/project/sub/a.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 2 13: /users/username/projects/project/tsconfig.json @@ -726,13 +726,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/users/username/projects/project/sub/a.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/users/username/projects/project/sub/a.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 1 4: suggestionCheck @@ -742,21 +742,21 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/users/username/projects/project/sub/a.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/users/username/projects/project/sub/a.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 7 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 7 + } } After running Immedidate callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/projects/js-file-opened-is-in-configured-project-that-will-be-removed.js b/tests/baselines/reference/tsserver/projects/js-file-opened-is-in-configured-project-that-will-be-removed.js index c35a6ff44f4a0..f1612ccd79b1a 100644 --- a/tests/baselines/reference/tsserver/projects/js-file-opened-is-in-configured-project-that-will-be-removed.js +++ b/tests/baselines/reference/tsserver/projects/js-file-opened-is-in-configured-project-that-will-be-removed.js @@ -45,13 +45,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json", - "reason": "Creating possible configured project for /user/username/projects/myproject/mocks/cssMock.js to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json", + "reason": "Creating possible configured project for /user/username/projects/myproject/mocks/cssMock.js to open" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/tsconfig.json : { "rootNames": [ @@ -95,82 +95,82 @@ Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "4a33d78ee40d836c4f4e64c59aed976628aea0013be9585c5ff171dfc41baf98", - "fileStats": { - "js": 3, - "jsSize": 57, - "jsx": 0, - "jsxSize": 0, - "ts": 0, - "tsSize": 0, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": { - "allowJs": true - }, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "4a33d78ee40d836c4f4e64c59aed976628aea0013be9585c5ff171dfc41baf98", + "fileStats": { + "js": 3, + "jsSize": 57, + "jsx": 0, + "jsxSize": 0, + "ts": 0, + "tsSize": 0, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "allowJs": true + }, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/user/username/projects/myproject/mocks/cssMock.js", - "configFile": "/user/username/projects/myproject/tsconfig.json", - "diagnostics": [ - { - "text": "Cannot write file '/user/username/projects/myproject/apps/editor/scripts/createConfigVariable.js' because it would overwrite input file.", - "code": 5055, - "category": "error" - }, - { - "text": "Cannot write file '/user/username/projects/myproject/apps/editor/src/src.js' because it would overwrite input file.", - "code": 5055, - "category": "error" - }, - { - "text": "Cannot write file '/user/username/projects/myproject/mocks/cssMock.js' because it would overwrite input file.", - "code": 5055, - "category": "error" - } - ] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/user/username/projects/myproject/mocks/cssMock.js", + "configFile": "/user/username/projects/myproject/tsconfig.json", + "diagnostics": [ + { + "text": "Cannot write file '/user/username/projects/myproject/apps/editor/scripts/createConfigVariable.js' because it would overwrite input file.", + "code": 5055, + "category": "error" + }, + { + "text": "Cannot write file '/user/username/projects/myproject/apps/editor/src/src.js' because it would overwrite input file.", + "code": 5055, + "category": "error" + }, + { + "text": "Cannot write file '/user/username/projects/myproject/mocks/cssMock.js' because it would overwrite input file.", + "code": 5055, + "category": "error" + } + ] + } } Info seq [hh:mm:ss:mss] Project '/user/username/projects/myproject/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (4) @@ -268,13 +268,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /user/username/projects/ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/apps/editor/tsconfig.json 2000 undefined Project: /user/username/projects/myproject/apps/editor/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/user/username/projects/myproject/apps/editor/tsconfig.json", - "reason": "Creating possible configured project for /user/username/projects/myproject/apps/editor/scripts/createConfigVariable.js to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/user/username/projects/myproject/apps/editor/tsconfig.json", + "reason": "Creating possible configured project for /user/username/projects/myproject/apps/editor/scripts/createConfigVariable.js to open" + } } Info seq [hh:mm:ss:mss] Config: /user/username/projects/myproject/apps/editor/tsconfig.json : { "rootNames": [ @@ -312,55 +312,55 @@ Info seq [hh:mm:ss:mss] Files (2) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/user/username/projects/myproject/apps/editor/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/user/username/projects/myproject/apps/editor/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "3a35a87188335633b0bee242201aa5e01b96dbee6cfae401ebff6e26120b2aa7", - "fileStats": { - "js": 1, - "jsSize": 21, - "jsx": 0, - "jsxSize": 0, - "ts": 0, - "tsSize": 0, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": { - "allowJs": true - }, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": true, - "files": false, - "include": true, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "3a35a87188335633b0bee242201aa5e01b96dbee6cfae401ebff6e26120b2aa7", + "fileStats": { + "js": 1, + "jsSize": 21, + "jsx": 0, + "jsxSize": 0, + "ts": 0, + "tsSize": 0, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "allowJs": true + }, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": true, + "files": false, + "include": true, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } - } } Info seq [hh:mm:ss:mss] `remove Project:: Info seq [hh:mm:ss:mss] Project '/user/username/projects/myproject/tsconfig.json' (Configured) @@ -478,10 +478,10 @@ FsWatchesRecursive *deleted*:: /user/username/projects/myproject: {} -TI:: [hh:mm:ss:mss] Global cache location '/a/data/', safe file path '/safeList.json', types map path /typesMap.json -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Global cache location '/a/data', safe file path '/safeList.json', types map path /typesMap.json +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Trying to find '/a/data/package.json'... -TI:: [hh:mm:ss:mss] Finished processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Finished processing cache location '/a/data' TI:: [hh:mm:ss:mss] Npm config file: /a/data/package.json TI:: [hh:mm:ss:mss] Npm config file: '/a/data/package.json' is missing, creating new one... TI:: [hh:mm:ss:mss] Updating types-registry npm package... @@ -497,23 +497,79 @@ TI:: typing installer creation complete } -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject1*","fileNames":["/a/lib/lib.d.ts","/user/username/projects/myproject/apps/editor/scripts/createConfigVariable.js"],"compilerOptions":{"target":1,"jsx":1,"allowNonTsExtensions":true,"allowJs":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/user/username/projects/myproject/apps/editor/scripts","cachePath":"/a/data/","kind":"discover"} -TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data/', loading cached information... -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject1*", + "fileNames": [ + "/a/lib/lib.d.ts", + "/user/username/projects/myproject/apps/editor/scripts/createConfigVariable.js" + ], + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/user/username/projects/myproject/apps/editor/scripts", + "cachePath": "/a/data", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/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] Result: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/user/username/projects/myproject/apps/editor/scripts/bower_components","/user/username/projects/myproject/apps/editor/scripts/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/user/username/projects/myproject/apps/editor/scripts/bower_components","/user/username/projects/myproject/apps/editor/scripts/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/user/username/projects/myproject/apps/editor/scripts/bower_components", + "/user/username/projects/myproject/apps/editor/scripts/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject1*","files":["/user/username/projects/myproject/apps/editor/scripts/bower_components","/user/username/projects/myproject/apps/editor/scripts/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject1*", + "files": [ + "/user/username/projects/myproject/apps/editor/scripts/bower_components", + "/user/username/projects/myproject/apps/editor/scripts/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/apps/editor/scripts/bower_components 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/apps/editor/scripts/bower_components 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/apps/editor/scripts/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/apps/editor/scripts/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer 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"} + { + "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] After ensureProjectForOpenFiles: Info seq [hh:mm:ss:mss] Project '/user/username/projects/myproject/apps/editor/tsconfig.json' (Configured) diff --git a/tests/baselines/reference/tsserver/projects/no-tsconfig-script-block-diagnostic-errors.js b/tests/baselines/reference/tsserver/projects/no-tsconfig-script-block-diagnostic-errors.js index 93e5a3b76218f..a5778d71d716f 100644 --- a/tests/baselines/reference/tsserver/projects/no-tsconfig-script-block-diagnostic-errors.js +++ b/tests/baselines/reference/tsserver/projects/no-tsconfig-script-block-diagnostic-errors.js @@ -47,11 +47,11 @@ Info seq [hh:mm:ss:mss] Open files: Info seq [hh:mm:ss:mss] Host file extension mappings updated Info seq [hh:mm:ss:mss] response: { - "seq": 0, - "type": "response", - "command": "configure", - "request_seq": 1, - "success": true + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 1, + "success": true } Info seq [hh:mm:ss:mss] response: { @@ -195,11 +195,11 @@ Info seq [hh:mm:ss:mss] Open files: Info seq [hh:mm:ss:mss] Host file extension mappings updated Info seq [hh:mm:ss:mss] response: { - "seq": 0, - "type": "response", - "command": "configure", - "request_seq": 1, - "success": true + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 1, + "success": true } Info seq [hh:mm:ss:mss] response: { @@ -339,11 +339,11 @@ Info seq [hh:mm:ss:mss] Open files: Info seq [hh:mm:ss:mss] Host file extension mappings updated Info seq [hh:mm:ss:mss] response: { - "seq": 0, - "type": "response", - "command": "configure", - "request_seq": 1, - "success": true + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 1, + "success": true } Info seq [hh:mm:ss:mss] response: { @@ -482,11 +482,11 @@ Info seq [hh:mm:ss:mss] Open files: Info seq [hh:mm:ss:mss] Host file extension mappings updated Info seq [hh:mm:ss:mss] response: { - "seq": 0, - "type": "response", - "command": "configure", - "request_seq": 1, - "success": true + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 1, + "success": true } Info seq [hh:mm:ss:mss] response: { @@ -624,11 +624,11 @@ Info seq [hh:mm:ss:mss] Open files: Info seq [hh:mm:ss:mss] Host file extension mappings updated Info seq [hh:mm:ss:mss] response: { - "seq": 0, - "type": "response", - "command": "configure", - "request_seq": 1, - "success": true + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 1, + "success": true } Info seq [hh:mm:ss:mss] response: { 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 6df29831d4564..4e073607f787f 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 @@ -50,10 +50,10 @@ FsWatches:: /a/b/f1.js: *new* {} -TI:: [hh:mm:ss:mss] Global cache location '/a/data/', safe file path '/safeList.json', types map path /typesMap.json -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Global cache location '/a/data', safe file path '/safeList.json', types map path /typesMap.json +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Trying to find '/a/data/package.json'... -TI:: [hh:mm:ss:mss] Finished processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Finished processing cache location '/a/data' TI:: [hh:mm:ss:mss] Npm config file: /a/data/package.json TI:: [hh:mm:ss:mss] Npm config file: '/a/data/package.json' is missing, creating new one... TI:: [hh:mm:ss:mss] Updating types-registry npm package... @@ -69,17 +69,54 @@ TI:: typing installer creation complete } -TI:: [hh:mm:ss:mss] Got install request {"projectName":"proj1","fileNames":["/a/b/f1.js"],"compilerOptions":{"allowNonTsExtensions":true,"noEmitForJsFiles":true},"typeAcquisition":{"include":[],"exclude":[],"enable":true},"unresolvedImports":[],"projectRootPath":"/","cachePath":"/a/data/","kind":"discover"} -TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data/', loading cached information... -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "proj1", + "fileNames": [ + "/a/b/f1.js" + ], + "compilerOptions": { + "allowNonTsExtensions": true, + "noEmitForJsFiles": true + }, + "typeAcquisition": { + "include": [], + "exclude": [], + "enable": true + }, + "unresolvedImports": [], + "projectRootPath": "/", + "cachePath": "/a/data", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/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] Result: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/a/b/bower_components","/a/b/node_modules","/bower_components","/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/a/b/bower_components","/a/b/node_modules","/bower_components","/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules", + "/bower_components", + "/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"proj1","files":["/a/b/bower_components","/a/b/node_modules","/bower_components","/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "proj1", + "files": [ + "/a/b/bower_components", + "/a/b/node_modules", + "/bower_components", + "/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /a 1 undefined Project: proj1 WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a 1 undefined Project: proj1 WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /bower_components 1 undefined Project: proj1 WatchType: Directory location for typing installer @@ -87,7 +124,21 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /bo Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /node_modules 1 undefined Project: proj1 WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /node_modules 1 undefined Project: proj1 WatchType: Directory location for typing installer TI:: [hh:mm:ss:mss] Sending response: - {"projectName":"proj1","typeAcquisition":{"include":[],"exclude":[],"enable":true},"compilerOptions":{"allowNonTsExtensions":true,"noEmitForJsFiles":true},"typings":[],"unresolvedImports":[],"kind":"action::set"} + { + "projectName": "proj1", + "typeAcquisition": { + "include": [], + "exclude": [], + "enable": true + }, + "compilerOptions": { + "allowNonTsExtensions": true, + "noEmitForJsFiles": true + }, + "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] response: { @@ -143,16 +194,53 @@ Info seq [hh:mm:ss:mss] Files (1) Root file specified for compilation Info seq [hh:mm:ss:mss] ----------------------------------------------- -TI:: [hh:mm:ss:mss] Got install request {"projectName":"proj2","fileNames":["/a/b/f2.js"],"compilerOptions":{"allowNonTsExtensions":true,"noEmitForJsFiles":true},"typeAcquisition":{"include":[],"exclude":[],"enable":true},"unresolvedImports":[],"projectRootPath":"/","cachePath":"/a/data/","kind":"discover"} -TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data/', loading cached information... -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "proj2", + "fileNames": [ + "/a/b/f2.js" + ], + "compilerOptions": { + "allowNonTsExtensions": true, + "noEmitForJsFiles": true + }, + "typeAcquisition": { + "include": [], + "exclude": [], + "enable": true + }, + "unresolvedImports": [], + "projectRootPath": "/", + "cachePath": "/a/data", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/a/b/bower_components","/a/b/node_modules","/bower_components","/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/a/b/bower_components","/a/b/node_modules","/bower_components","/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules", + "/bower_components", + "/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"proj2","files":["/a/b/bower_components","/a/b/node_modules","/bower_components","/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "proj2", + "files": [ + "/a/b/bower_components", + "/a/b/node_modules", + "/bower_components", + "/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /a 1 undefined Project: proj2 WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a 1 undefined Project: proj2 WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /bower_components 1 undefined Project: proj2 WatchType: Directory location for typing installer @@ -160,7 +248,21 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /bo Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /node_modules 1 undefined Project: proj2 WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /node_modules 1 undefined Project: proj2 WatchType: Directory location for typing installer TI:: [hh:mm:ss:mss] Sending response: - {"projectName":"proj2","typeAcquisition":{"include":[],"exclude":[],"enable":true},"compilerOptions":{"allowNonTsExtensions":true,"noEmitForJsFiles":true},"typings":[],"unresolvedImports":[],"kind":"action::set"} + { + "projectName": "proj2", + "typeAcquisition": { + "include": [], + "exclude": [], + "enable": true + }, + "compilerOptions": { + "allowNonTsExtensions": true, + "noEmitForJsFiles": true + }, + "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] response: { diff --git a/tests/baselines/reference/tsserver/projects/tsconfig-script-block-support.js b/tests/baselines/reference/tsserver/projects/tsconfig-script-block-support.js index ad9143f0f9b15..18bcd0c7c8f30 100644 --- a/tests/baselines/reference/tsserver/projects/tsconfig-script-block-support.js +++ b/tests/baselines/reference/tsserver/projects/tsconfig-script-block-support.js @@ -136,14 +136,14 @@ Info seq [hh:mm:ss:mss] Projects: /a/b/tsconfig.json Info seq [hh:mm:ss:mss] Host file extension mappings updated Info seq [hh:mm:ss:mss] response: { - "seq": 0, - "type": "response", - "command": "configure", - "request_seq": 2, - "success": true, - "performanceData": { - "updateGraphDurationMs": * - } + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 2, + "success": true, + "performanceData": { + "updateGraphDurationMs": * + } } Info seq [hh:mm:ss:mss] response: { diff --git a/tests/baselines/reference/tsserver/refactors/use-formatting-options.js b/tests/baselines/reference/tsserver/refactors/use-formatting-options.js index 3c39466026c44..c60ee81daea5a 100644 --- a/tests/baselines/reference/tsserver/refactors/use-formatting-options.js +++ b/tests/baselines/reference/tsserver/refactors/use-formatting-options.js @@ -63,14 +63,14 @@ Info seq [hh:mm:ss:mss] request: Info seq [hh:mm:ss:mss] Format host information updated Info seq [hh:mm:ss:mss] response: { - "seq": 0, - "type": "response", - "command": "configure", - "request_seq": 2, - "success": true, - "performanceData": { - "updateGraphDurationMs": * - } + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 2, + "success": true, + "performanceData": { + "updateGraphDurationMs": * + } } Info seq [hh:mm:ss:mss] response: { diff --git a/tests/baselines/reference/tsserver/reload/should-work-when-script-info-doesnt-have-any-project-open.js b/tests/baselines/reference/tsserver/reload/should-work-when-script-info-doesnt-have-any-project-open.js index e69e4a631995e..bc25eea806e4b 100644 --- a/tests/baselines/reference/tsserver/reload/should-work-when-script-info-doesnt-have-any-project-open.js +++ b/tests/baselines/reference/tsserver/reload/should-work-when-script-info-doesnt-have-any-project-open.js @@ -112,14 +112,14 @@ Info seq [hh:mm:ss:mss] request: } Info seq [hh:mm:ss:mss] response: { - "seq": 0, - "type": "response", - "command": "reload", - "request_seq": 3, - "success": true, - "performanceData": { - "updateGraphDurationMs": * - } + "seq": 0, + "type": "response", + "command": "reload", + "request_seq": 3, + "success": true, + "performanceData": { + "updateGraphDurationMs": * + } } Info seq [hh:mm:ss:mss] response: { @@ -146,14 +146,14 @@ Info seq [hh:mm:ss:mss] request: } Info seq [hh:mm:ss:mss] response: { - "seq": 0, - "type": "response", - "command": "reload", - "request_seq": 4, - "success": true, - "performanceData": { - "updateGraphDurationMs": * - } + "seq": 0, + "type": "response", + "command": "reload", + "request_seq": 4, + "success": true, + "performanceData": { + "updateGraphDurationMs": * + } } Info seq [hh:mm:ss:mss] response: { @@ -263,14 +263,14 @@ Info seq [hh:mm:ss:mss] request: } Info seq [hh:mm:ss:mss] response: { - "seq": 0, - "type": "response", - "command": "reload", - "request_seq": 7, - "success": true, - "performanceData": { - "updateGraphDurationMs": * - } + "seq": 0, + "type": "response", + "command": "reload", + "request_seq": 7, + "success": true, + "performanceData": { + "updateGraphDurationMs": * + } } Info seq [hh:mm:ss:mss] response: { @@ -297,14 +297,14 @@ Info seq [hh:mm:ss:mss] request: } Info seq [hh:mm:ss:mss] response: { - "seq": 0, - "type": "response", - "command": "reload", - "request_seq": 8, - "success": true, - "performanceData": { - "updateGraphDurationMs": * - } + "seq": 0, + "type": "response", + "command": "reload", + "request_seq": 8, + "success": true, + "performanceData": { + "updateGraphDurationMs": * + } } Info seq [hh:mm:ss:mss] response: { diff --git a/tests/baselines/reference/tsserver/reload/should-work-with-temp-file.js b/tests/baselines/reference/tsserver/reload/should-work-with-temp-file.js index f9c78004786d1..c8b4877afe72d 100644 --- a/tests/baselines/reference/tsserver/reload/should-work-with-temp-file.js +++ b/tests/baselines/reference/tsserver/reload/should-work-with-temp-file.js @@ -62,14 +62,14 @@ Info seq [hh:mm:ss:mss] request: } Info seq [hh:mm:ss:mss] response: { - "seq": 0, - "type": "response", - "command": "reload", - "request_seq": 2, - "success": true, - "performanceData": { - "updateGraphDurationMs": * - } + "seq": 0, + "type": "response", + "command": "reload", + "request_seq": 2, + "success": true, + "performanceData": { + "updateGraphDurationMs": * + } } Info seq [hh:mm:ss:mss] response: { @@ -94,14 +94,14 @@ Info seq [hh:mm:ss:mss] request: } Info seq [hh:mm:ss:mss] response: { - "seq": 0, - "type": "response", - "command": "reload", - "request_seq": 3, - "success": true, - "performanceData": { - "updateGraphDurationMs": * - } + "seq": 0, + "type": "response", + "command": "reload", + "request_seq": 3, + "success": true, + "performanceData": { + "updateGraphDurationMs": * + } } Info seq [hh:mm:ss:mss] response: { diff --git a/tests/baselines/reference/tsserver/reloadProjects/configured-project.js b/tests/baselines/reference/tsserver/reloadProjects/configured-project.js index b043c351e8c7b..4f4b947f04c7d 100644 --- a/tests/baselines/reference/tsserver/reloadProjects/configured-project.js +++ b/tests/baselines/reference/tsserver/reloadProjects/configured-project.js @@ -43,11 +43,11 @@ Info seq [hh:mm:ss:mss] request: Info seq [hh:mm:ss:mss] Host watch options changed to {"excludeFiles":["/user/username/projects/myproject/file2.ts"]}, it will be take effect for next watches. Info seq [hh:mm:ss:mss] response: { - "seq": 0, - "type": "response", - "command": "configure", - "request_seq": 1, - "success": true + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 1, + "success": true } Info seq [hh:mm:ss:mss] response: { diff --git a/tests/baselines/reference/tsserver/reloadProjects/external-project-with-config-file.js b/tests/baselines/reference/tsserver/reloadProjects/external-project-with-config-file.js index b21acff2fb60a..92054706ff654 100644 --- a/tests/baselines/reference/tsserver/reloadProjects/external-project-with-config-file.js +++ b/tests/baselines/reference/tsserver/reloadProjects/external-project-with-config-file.js @@ -43,11 +43,11 @@ Info seq [hh:mm:ss:mss] request: Info seq [hh:mm:ss:mss] Host watch options changed to {"excludeFiles":["/user/username/projects/myproject/file2.ts"]}, it will be take effect for next watches. Info seq [hh:mm:ss:mss] response: { - "seq": 0, - "type": "response", - "command": "configure", - "request_seq": 1, - "success": true + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 1, + "success": true } Info seq [hh:mm:ss:mss] response: { diff --git a/tests/baselines/reference/tsserver/reloadProjects/external-project.js b/tests/baselines/reference/tsserver/reloadProjects/external-project.js index 576f227124115..a936a08d1ae78 100644 --- a/tests/baselines/reference/tsserver/reloadProjects/external-project.js +++ b/tests/baselines/reference/tsserver/reloadProjects/external-project.js @@ -40,11 +40,11 @@ Info seq [hh:mm:ss:mss] request: Info seq [hh:mm:ss:mss] Host watch options changed to {"excludeFiles":["/user/username/projects/myproject/file2.ts"]}, it will be take effect for next watches. Info seq [hh:mm:ss:mss] response: { - "seq": 0, - "type": "response", - "command": "configure", - "request_seq": 1, - "success": true + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 1, + "success": true } Info seq [hh:mm:ss:mss] response: { diff --git a/tests/baselines/reference/tsserver/reloadProjects/inferred-project.js b/tests/baselines/reference/tsserver/reloadProjects/inferred-project.js index 0b7ee7998992d..2e20b6dad1bef 100644 --- a/tests/baselines/reference/tsserver/reloadProjects/inferred-project.js +++ b/tests/baselines/reference/tsserver/reloadProjects/inferred-project.js @@ -40,11 +40,11 @@ Info seq [hh:mm:ss:mss] request: Info seq [hh:mm:ss:mss] Host watch options changed to {"excludeFiles":["/user/username/projects/myproject/file2.ts"]}, it will be take effect for next watches. Info seq [hh:mm:ss:mss] response: { - "seq": 0, - "type": "response", - "command": "configure", - "request_seq": 1, - "success": true + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 1, + "success": true } Info seq [hh:mm:ss:mss] response: { diff --git a/tests/baselines/reference/tsserver/rename/export-default-anonymous-function-works-with-prefixText-and-suffixText-when-disabled.js b/tests/baselines/reference/tsserver/rename/export-default-anonymous-function-works-with-prefixText-and-suffixText-when-disabled.js index da2044753065d..b105debe841ba 100644 --- a/tests/baselines/reference/tsserver/rename/export-default-anonymous-function-works-with-prefixText-and-suffixText-when-disabled.js +++ b/tests/baselines/reference/tsserver/rename/export-default-anonymous-function-works-with-prefixText-and-suffixText-when-disabled.js @@ -71,14 +71,14 @@ Info seq [hh:mm:ss:mss] request: } Info seq [hh:mm:ss:mss] response: { - "seq": 0, - "type": "response", - "command": "configure", - "request_seq": 2, - "success": true, - "performanceData": { - "updateGraphDurationMs": * - } + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 2, + "success": true, + "performanceData": { + "updateGraphDurationMs": * + } } Info seq [hh:mm:ss:mss] response: { diff --git a/tests/baselines/reference/tsserver/rename/rename-behavior-is-based-on-file-of-rename-initiation.js b/tests/baselines/reference/tsserver/rename/rename-behavior-is-based-on-file-of-rename-initiation.js index 91f1a0a4e4ef0..3d621a9cef2c2 100644 --- a/tests/baselines/reference/tsserver/rename/rename-behavior-is-based-on-file-of-rename-initiation.js +++ b/tests/baselines/reference/tsserver/rename/rename-behavior-is-based-on-file-of-rename-initiation.js @@ -120,14 +120,14 @@ Info seq [hh:mm:ss:mss] request: Info seq [hh:mm:ss:mss] Host configuration update for file /a.ts Info seq [hh:mm:ss:mss] response: { - "seq": 0, - "type": "response", - "command": "configure", - "request_seq": 3, - "success": true, - "performanceData": { - "updateGraphDurationMs": * - } + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 3, + "success": true, + "performanceData": { + "updateGraphDurationMs": * + } } Info seq [hh:mm:ss:mss] response: { diff --git a/tests/baselines/reference/tsserver/rename/works-with-fileToRename.js b/tests/baselines/reference/tsserver/rename/works-with-fileToRename.js index 2b4ae75fe4155..adcb1d9273074 100644 --- a/tests/baselines/reference/tsserver/rename/works-with-fileToRename.js +++ b/tests/baselines/reference/tsserver/rename/works-with-fileToRename.js @@ -97,14 +97,14 @@ Info seq [hh:mm:ss:mss] request: } Info seq [hh:mm:ss:mss] response: { - "seq": 0, - "type": "response", - "command": "configure", - "request_seq": 3, - "success": true, - "performanceData": { - "updateGraphDurationMs": * - } + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 3, + "success": true, + "performanceData": { + "updateGraphDurationMs": * + } } Info seq [hh:mm:ss:mss] response: { @@ -191,14 +191,14 @@ Info seq [hh:mm:ss:mss] request: } Info seq [hh:mm:ss:mss] response: { - "seq": 0, - "type": "response", - "command": "configure", - "request_seq": 5, - "success": true, - "performanceData": { - "updateGraphDurationMs": * - } + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 5, + "success": true, + "performanceData": { + "updateGraphDurationMs": * + } } Info seq [hh:mm:ss:mss] response: { @@ -224,14 +224,14 @@ Info seq [hh:mm:ss:mss] request: Info seq [hh:mm:ss:mss] Host configuration update for file /b.ts Info seq [hh:mm:ss:mss] response: { - "seq": 0, - "type": "response", - "command": "configure", - "request_seq": 6, - "success": true, - "performanceData": { - "updateGraphDurationMs": * - } + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 6, + "success": true, + "performanceData": { + "updateGraphDurationMs": * + } } Info seq [hh:mm:ss:mss] response: { diff --git a/tests/baselines/reference/tsserver/rename/works-with-prefixText-and-suffixText-when-enabled.js b/tests/baselines/reference/tsserver/rename/works-with-prefixText-and-suffixText-when-enabled.js index b0f9dfaffe632..5c3b0fe25c1cb 100644 --- a/tests/baselines/reference/tsserver/rename/works-with-prefixText-and-suffixText-when-enabled.js +++ b/tests/baselines/reference/tsserver/rename/works-with-prefixText-and-suffixText-when-enabled.js @@ -133,14 +133,14 @@ Info seq [hh:mm:ss:mss] request: } Info seq [hh:mm:ss:mss] response: { - "seq": 0, - "type": "response", - "command": "configure", - "request_seq": 3, - "success": true, - "performanceData": { - "updateGraphDurationMs": * - } + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 3, + "success": true, + "performanceData": { + "updateGraphDurationMs": * + } } Info seq [hh:mm:ss:mss] response: { @@ -237,14 +237,14 @@ Info seq [hh:mm:ss:mss] request: } Info seq [hh:mm:ss:mss] response: { - "seq": 0, - "type": "response", - "command": "configure", - "request_seq": 5, - "success": true, - "performanceData": { - "updateGraphDurationMs": * - } + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 5, + "success": true, + "performanceData": { + "updateGraphDurationMs": * + } } Info seq [hh:mm:ss:mss] response: { @@ -270,14 +270,14 @@ Info seq [hh:mm:ss:mss] request: Info seq [hh:mm:ss:mss] Host configuration update for file /a.ts Info seq [hh:mm:ss:mss] response: { - "seq": 0, - "type": "response", - "command": "configure", - "request_seq": 6, - "success": true, - "performanceData": { - "updateGraphDurationMs": * - } + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 6, + "success": true, + "performanceData": { + "updateGraphDurationMs": * + } } Info seq [hh:mm:ss:mss] response: { 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 d2f420f6efc66..1d6d406cd56d9 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 @@ -68,23 +68,76 @@ TI:: typing installer creation complete } -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject1*","fileNames":["/a/b/app.js"],"compilerOptions":{"traceResolution":true,"allowJs":true,"allowNonTsExtensions":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/a/b","cachePath":"/a/cache","kind":"discover"} +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject1*", + "fileNames": [ + "/a/b/app.js" + ], + "compilerOptions": { + "traceResolution": true, + "allowJs": true, + "allowNonTsExtensions": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/a/b", + "cachePath": "/a/cache", + "kind": "discover" + } TI:: [hh:mm:ss:mss] Request specifies cache path '/a/cache', loading cached information... TI:: [hh:mm:ss:mss] Processing cache location '/a/cache' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/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] Result: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/a/b/bower_components","/a/b/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/a/b/bower_components","/a/b/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject1*","files":["/a/b/bower_components","/a/b/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject1*", + "files": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /a/b/bower_components 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a/b/bower_components 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /a/b/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a/b/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer TI:: [hh:mm:ss:mss] Sending response: - {"projectName":"/dev/null/inferredProject1*","typeAcquisition":{"enable":true,"include":[],"exclude":[]},"compilerOptions":{"traceResolution":true,"allowJs":true,"allowNonTsExtensions":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typings":[],"unresolvedImports":[],"kind":"action::set"} + { + "projectName": "/dev/null/inferredProject1*", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "traceResolution": true, + "allowJs": true, + "allowNonTsExtensions": 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] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (2) diff --git a/tests/baselines/reference/tsserver/resolutionCache/disable-suggestion-diagnostics.js b/tests/baselines/reference/tsserver/resolutionCache/disable-suggestion-diagnostics.js index 7a1480f289344..26675aa0ba707 100644 --- a/tests/baselines/reference/tsserver/resolutionCache/disable-suggestion-diagnostics.js +++ b/tests/baselines/reference/tsserver/resolutionCache/disable-suggestion-diagnostics.js @@ -35,10 +35,10 @@ PolledWatches:: /a/lib/lib.d.ts: *new* {"pollingInterval":500} -TI:: [hh:mm:ss:mss] Global cache location '/a/data/', safe file path '/safeList.json', types map path /typesMap.json -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Global cache location '/a/data', safe file path '/safeList.json', types map path /typesMap.json +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Trying to find '/a/data/package.json'... -TI:: [hh:mm:ss:mss] Finished processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Finished processing cache location '/a/data' TI:: [hh:mm:ss:mss] Npm config file: /a/data/package.json TI:: [hh:mm:ss:mss] Npm config file: '/a/data/package.json' is missing, creating new one... TI:: [hh:mm:ss:mss] Updating types-registry npm package... @@ -54,17 +54,58 @@ TI:: typing installer creation complete } -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject1*","fileNames":["/a.js"],"compilerOptions":{"target":1,"jsx":1,"allowNonTsExtensions":true,"allowJs":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":["b"],"projectRootPath":"/","cachePath":"/a/data/","kind":"discover"} -TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data/', loading cached information... -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject1*", + "fileNames": [ + "/a.js" + ], + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [ + "b" + ], + "projectRootPath": "/", + "cachePath": "/a/data", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/typesMap.json' TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["b"] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":["b"],"filesToWatch":["/bower_components","/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":["b"],"filesToWatch":["/bower_components","/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "b" + ], + "filesToWatch": [ + "/bower_components", + "/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject1*","files":["/bower_components","/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject1*", + "files": [ + "/bower_components", + "/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /bower_components 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /bower_components 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer @@ -73,7 +114,27 @@ TI:: [hh:mm:ss:mss] Installing typings ["b"] TI:: [hh:mm:ss:mss] 'b':: Entry for package 'b' does not exist in local types registry - 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":["b"],"kind":"action::set"} + { + "projectName": "/dev/null/inferredProject1*", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typings": [], + "unresolvedImports": [ + "b" + ], + "kind": "action::set" + } Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (1) @@ -110,14 +171,14 @@ Info seq [hh:mm:ss:mss] request: } Info seq [hh:mm:ss:mss] response: { - "seq": 0, - "type": "response", - "command": "configure", - "request_seq": 2, - "success": true, - "performanceData": { - "updateGraphDurationMs": * - } + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 2, + "success": true, + "performanceData": { + "updateGraphDurationMs": * + } } Info seq [hh:mm:ss:mss] response: { @@ -150,13 +211,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/a.js", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/a.js", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -165,21 +226,21 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/a.js", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/a.js", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 3 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 3 + } } After running Immedidate callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/resolutionCache/npm-install-@types-works.js b/tests/baselines/reference/tsserver/resolutionCache/npm-install-@types-works.js index bce62766f02c0..8774075809f71 100644 --- a/tests/baselines/reference/tsserver/resolutionCache/npm-install-@types-works.js +++ b/tests/baselines/reference/tsserver/resolutionCache/npm-install-@types-works.js @@ -113,13 +113,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/a/b/projects/temp/a.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/a/b/projects/temp/a.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -128,27 +128,27 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/a/b/projects/temp/a.ts", - "diagnostics": [ - { - "start": { - "line": 1, - "offset": 20 - }, - "end": { - "line": 1, - "offset": 25 - }, - "text": "Cannot find module 'pad' or its corresponding type declarations.", - "code": 2307, - "category": "error" - } - ] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/a/b/projects/temp/a.ts", + "diagnostics": [ + { + "start": { + "line": 1, + "offset": 20 + }, + "end": { + "line": 1, + "offset": 25 + }, + "text": "Cannot find module 'pad' or its corresponding type declarations.", + "code": 2307, + "category": "error" + } + ] + } } After running Immedidate callback:: count: 1 2: suggestionCheck @@ -158,22 +158,22 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/a/b/projects/temp/a.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/a/b/projects/temp/a.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 2 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 2 + } } After running Immedidate callback:: count: 0 @@ -310,14 +310,14 @@ Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for /a/b/projects/temp/a.ts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/a/b/projects/temp/a.ts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/a/b/projects/temp/a.ts" + ] + } } After running Timeout callback:: count: 1 16: checkOne @@ -327,13 +327,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/a/b/projects/temp/a.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/a/b/projects/temp/a.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -342,13 +342,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/a/b/projects/temp/a.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/a/b/projects/temp/a.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 1 4: suggestionCheck diff --git a/tests/baselines/reference/tsserver/resolutionCache/suggestion-diagnostics.js b/tests/baselines/reference/tsserver/resolutionCache/suggestion-diagnostics.js index 608f3af43d4a8..15b65124659cb 100644 --- a/tests/baselines/reference/tsserver/resolutionCache/suggestion-diagnostics.js +++ b/tests/baselines/reference/tsserver/resolutionCache/suggestion-diagnostics.js @@ -35,10 +35,10 @@ PolledWatches:: /a/lib/lib.d.ts: *new* {"pollingInterval":500} -TI:: [hh:mm:ss:mss] Global cache location '/a/data/', safe file path '/safeList.json', types map path /typesMap.json -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Global cache location '/a/data', safe file path '/safeList.json', types map path /typesMap.json +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Trying to find '/a/data/package.json'... -TI:: [hh:mm:ss:mss] Finished processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Finished processing cache location '/a/data' TI:: [hh:mm:ss:mss] Npm config file: /a/data/package.json TI:: [hh:mm:ss:mss] Npm config file: '/a/data/package.json' is missing, creating new one... TI:: [hh:mm:ss:mss] Updating types-registry npm package... @@ -54,23 +54,78 @@ TI:: typing installer creation complete } -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject1*","fileNames":["/a.js"],"compilerOptions":{"target":1,"jsx":1,"allowNonTsExtensions":true,"allowJs":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/","cachePath":"/a/data/","kind":"discover"} -TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data/', loading cached information... -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject1*", + "fileNames": [ + "/a.js" + ], + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/", + "cachePath": "/a/data", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/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] Result: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/bower_components","/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/bower_components","/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/bower_components", + "/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject1*","files":["/bower_components","/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject1*", + "files": [ + "/bower_components", + "/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /bower_components 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /bower_components 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer 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"} + { + "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] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (1) @@ -118,13 +173,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/a.js", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/a.js", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -133,13 +188,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/a.js", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/a.js", + "diagnostics": [] + } } After running Immedidate callback:: count: 1 2: suggestionCheck @@ -149,36 +204,36 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/a.js", - "diagnostics": [ - { - "start": { - "line": 1, - "offset": 12 - }, - "end": { - "line": 1, - "offset": 13 - }, - "text": "'p' is declared but its value is never read.", - "code": 6133, - "category": "suggestion", - "reportsUnnecessary": true - } - ] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/a.js", + "diagnostics": [ + { + "start": { + "line": 1, + "offset": 12 + }, + "end": { + "line": 1, + "offset": 13 + }, + "text": "'p' is declared but its value is never read.", + "code": 6133, + "category": "suggestion", + "reportsUnnecessary": true + } + ] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 2 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 2 + } } After running Immedidate callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/resolutionCache/suppressed-diagnostic-events.js b/tests/baselines/reference/tsserver/resolutionCache/suppressed-diagnostic-events.js index ee37abe902c50..f719ad7c50f4b 100644 --- a/tests/baselines/reference/tsserver/resolutionCache/suppressed-diagnostic-events.js +++ b/tests/baselines/reference/tsserver/resolutionCache/suppressed-diagnostic-events.js @@ -65,12 +65,12 @@ Info seq [hh:mm:ss:mss] request: } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 2 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 2 + } } Info seq [hh:mm:ss:mss] response: { @@ -95,12 +95,12 @@ Info seq [hh:mm:ss:mss] request: } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 3 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 3 + } } Info seq [hh:mm:ss:mss] response: { 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 42699ca3d2eba..5bae11f1d88f7 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 @@ -63,10 +63,10 @@ FsWatches:: /a/b/file2.d.ts: *new* {} -TI:: [hh:mm:ss:mss] Global cache location '/a/data/', safe file path '/safeList.json', types map path /typesMap.json -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Global cache location '/a/data', safe file path '/safeList.json', types map path /typesMap.json +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Trying to find '/a/data/package.json'... -TI:: [hh:mm:ss:mss] Finished processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Finished processing cache location '/a/data' TI:: [hh:mm:ss:mss] Npm config file: /a/data/package.json TI:: [hh:mm:ss:mss] Npm config file: '/a/data/package.json' is missing, creating new one... TI:: [hh:mm:ss:mss] Updating types-registry npm package... @@ -82,17 +82,56 @@ TI:: typing installer creation complete } -TI:: [hh:mm:ss:mss] Got install request {"projectName":"project1","fileNames":["/a/b/file1.js","/a/b/file2.d.ts"],"compilerOptions":{"skipLibCheck":false,"allowNonTsExtensions":true,"noEmitForJsFiles":true},"typeAcquisition":{"include":[],"exclude":[],"enable":true},"unresolvedImports":[],"projectRootPath":"/","cachePath":"/a/data/","kind":"discover"} -TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data/', loading cached information... -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "project1", + "fileNames": [ + "/a/b/file1.js", + "/a/b/file2.d.ts" + ], + "compilerOptions": { + "skipLibCheck": false, + "allowNonTsExtensions": true, + "noEmitForJsFiles": true + }, + "typeAcquisition": { + "include": [], + "exclude": [], + "enable": true + }, + "unresolvedImports": [], + "projectRootPath": "/", + "cachePath": "/a/data", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/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] Result: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/a/b/bower_components","/a/b/node_modules","/bower_components","/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/a/b/bower_components","/a/b/node_modules","/bower_components","/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules", + "/bower_components", + "/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"project1","files":["/a/b/bower_components","/a/b/node_modules","/bower_components","/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "project1", + "files": [ + "/a/b/bower_components", + "/a/b/node_modules", + "/bower_components", + "/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /a 1 undefined Project: project1 WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a 1 undefined Project: project1 WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /bower_components 1 undefined Project: project1 WatchType: Directory location for typing installer @@ -100,7 +139,22 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /bo Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /node_modules 1 undefined Project: project1 WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /node_modules 1 undefined Project: project1 WatchType: Directory location for typing installer TI:: [hh:mm:ss:mss] Sending response: - {"projectName":"project1","typeAcquisition":{"include":[],"exclude":[],"enable":true},"compilerOptions":{"skipLibCheck":false,"allowNonTsExtensions":true,"noEmitForJsFiles":true},"typings":[],"unresolvedImports":[],"kind":"action::set"} + { + "projectName": "project1", + "typeAcquisition": { + "include": [], + "exclude": [], + "enable": true + }, + "compilerOptions": { + "skipLibCheck": false, + "allowNonTsExtensions": true, + "noEmitForJsFiles": true + }, + "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] response: { diff --git a/tests/baselines/reference/tsserver/skipLibCheck/jsonly-external-project.js b/tests/baselines/reference/tsserver/skipLibCheck/jsonly-external-project.js index 7b0f6155b43ed..43faf4402f121 100644 --- a/tests/baselines/reference/tsserver/skipLibCheck/jsonly-external-project.js +++ b/tests/baselines/reference/tsserver/skipLibCheck/jsonly-external-project.js @@ -61,10 +61,10 @@ FsWatches:: /a/b/file2.d.ts: *new* {} -TI:: [hh:mm:ss:mss] Global cache location '/a/data/', safe file path '/safeList.json', types map path /typesMap.json -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Global cache location '/a/data', safe file path '/safeList.json', types map path /typesMap.json +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Trying to find '/a/data/package.json'... -TI:: [hh:mm:ss:mss] Finished processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Finished processing cache location '/a/data' TI:: [hh:mm:ss:mss] Npm config file: /a/data/package.json TI:: [hh:mm:ss:mss] Npm config file: '/a/data/package.json' is missing, creating new one... TI:: [hh:mm:ss:mss] Updating types-registry npm package... @@ -80,17 +80,55 @@ TI:: typing installer creation complete } -TI:: [hh:mm:ss:mss] Got install request {"projectName":"project1","fileNames":["/a/b/file1.js","/a/b/file2.d.ts"],"compilerOptions":{"allowNonTsExtensions":true,"noEmitForJsFiles":true},"typeAcquisition":{"include":[],"exclude":[],"enable":true},"unresolvedImports":[],"projectRootPath":"/","cachePath":"/a/data/","kind":"discover"} -TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data/', loading cached information... -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "project1", + "fileNames": [ + "/a/b/file1.js", + "/a/b/file2.d.ts" + ], + "compilerOptions": { + "allowNonTsExtensions": true, + "noEmitForJsFiles": true + }, + "typeAcquisition": { + "include": [], + "exclude": [], + "enable": true + }, + "unresolvedImports": [], + "projectRootPath": "/", + "cachePath": "/a/data", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/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] Result: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/a/b/bower_components","/a/b/node_modules","/bower_components","/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/a/b/bower_components","/a/b/node_modules","/bower_components","/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules", + "/bower_components", + "/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"project1","files":["/a/b/bower_components","/a/b/node_modules","/bower_components","/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "project1", + "files": [ + "/a/b/bower_components", + "/a/b/node_modules", + "/bower_components", + "/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /a 1 undefined Project: project1 WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a 1 undefined Project: project1 WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /bower_components 1 undefined Project: project1 WatchType: Directory location for typing installer @@ -98,7 +136,21 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /bo Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /node_modules 1 undefined Project: project1 WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /node_modules 1 undefined Project: project1 WatchType: Directory location for typing installer TI:: [hh:mm:ss:mss] Sending response: - {"projectName":"project1","typeAcquisition":{"include":[],"exclude":[],"enable":true},"compilerOptions":{"allowNonTsExtensions":true,"noEmitForJsFiles":true},"typings":[],"unresolvedImports":[],"kind":"action::set"} + { + "projectName": "project1", + "typeAcquisition": { + "include": [], + "exclude": [], + "enable": true + }, + "compilerOptions": { + "allowNonTsExtensions": true, + "noEmitForJsFiles": true + }, + "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] response: { diff --git a/tests/baselines/reference/tsserver/skipLibCheck/jsonly-inferred-project.js b/tests/baselines/reference/tsserver/skipLibCheck/jsonly-inferred-project.js index 7ad6426112663..f8ed68f31b9ed 100644 --- a/tests/baselines/reference/tsserver/skipLibCheck/jsonly-inferred-project.js +++ b/tests/baselines/reference/tsserver/skipLibCheck/jsonly-inferred-project.js @@ -53,10 +53,10 @@ FsWatches:: /a/b/file2.d.ts: *new* {} -TI:: [hh:mm:ss:mss] Global cache location '/a/data/', safe file path '/safeList.json', types map path /typesMap.json -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Global cache location '/a/data', safe file path '/safeList.json', types map path /typesMap.json +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Trying to find '/a/data/package.json'... -TI:: [hh:mm:ss:mss] Finished processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Finished processing cache location '/a/data' TI:: [hh:mm:ss:mss] Npm config file: /a/data/package.json TI:: [hh:mm:ss:mss] Npm config file: '/a/data/package.json' is missing, creating new one... TI:: [hh:mm:ss:mss] Updating types-registry npm package... @@ -72,23 +72,79 @@ TI:: typing installer creation complete } -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject1*","fileNames":["/a/b/file2.d.ts","/a/b/file1.js"],"compilerOptions":{"target":1,"jsx":1,"allowNonTsExtensions":true,"allowJs":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/a/b","cachePath":"/a/data/","kind":"discover"} -TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data/', loading cached information... -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject1*", + "fileNames": [ + "/a/b/file2.d.ts", + "/a/b/file1.js" + ], + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/a/b", + "cachePath": "/a/data", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/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] Result: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/a/b/bower_components","/a/b/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/a/b/bower_components","/a/b/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject1*","files":["/a/b/bower_components","/a/b/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject1*", + "files": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /a/b/bower_components 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a/b/bower_components 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /a/b/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a/b/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer 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"} + { + "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] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (2) @@ -196,18 +252,67 @@ Info seq [hh:mm:ss:mss] Files (1) Root file specified for compilation Info seq [hh:mm:ss:mss] ----------------------------------------------- -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject1*","fileNames":["/a/b/file2.d.ts"],"compilerOptions":{"target":1,"jsx":1,"allowNonTsExtensions":true,"allowJs":true,"noEmitForJsFiles":true},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/a/b","cachePath":"/a/data/","kind":"discover"} -TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data/', loading cached information... -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject1*", + "fileNames": [ + "/a/b/file2.d.ts" + ], + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/a/b", + "cachePath": "/a/data", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/a/b/bower_components","/a/b/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/a/b/bower_components","/a/b/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject1*"} + { + "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},"typings":[],"unresolvedImports":[],"kind":"action::set"} + { + "projectName": "/dev/null/inferredProject1*", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true + }, + "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] FileWatcher:: Added:: WatchInfo: /a/b/file1.js 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) @@ -327,22 +432,78 @@ Info seq [hh:mm:ss:mss] Files (2) Root file specified for compilation Info seq [hh:mm:ss:mss] ----------------------------------------------- -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject2*","fileNames":["/a/b/file2.d.ts","/a/b/file1.js"],"compilerOptions":{"target":1,"jsx":1,"allowNonTsExtensions":true,"allowJs":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/a/b","cachePath":"/a/data/","kind":"discover"} -TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data/', loading cached information... -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject2*", + "fileNames": [ + "/a/b/file2.d.ts", + "/a/b/file1.js" + ], + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/a/b", + "cachePath": "/a/data", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/a/b/bower_components","/a/b/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/a/b/bower_components","/a/b/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject2*","files":["/a/b/bower_components","/a/b/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject2*", + "files": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /a/b/bower_components 1 undefined Project: /dev/null/inferredProject2* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a/b/bower_components 1 undefined Project: /dev/null/inferredProject2* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /a/b/node_modules 1 undefined Project: /dev/null/inferredProject2* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a/b/node_modules 1 undefined Project: /dev/null/inferredProject2* WatchType: Directory location for typing installer TI:: [hh:mm:ss:mss] Sending response: - {"projectName":"/dev/null/inferredProject2*","typeAcquisition":{"enable":true,"include":[],"exclude":[]},"compilerOptions":{"target":1,"jsx":1,"allowNonTsExtensions":true,"allowJs":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typings":[],"unresolvedImports":[],"kind":"action::set"} + { + "projectName": "/dev/null/inferredProject2*", + "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] `remove Project:: Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) @@ -356,7 +517,11 @@ Info seq [hh:mm:ss:mss] Files (1) Info seq [hh:mm:ss:mss] ----------------------------------------------- TI:: [hh:mm:ss:mss] Closing file watchers for project '/dev/null/inferredProject1*' TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject1*","files":[]} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject1*", + "files": [] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /a/b/bower_components 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /a/b/bower_components 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /a/b/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer 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 e4614af2caa2e..6ec5c9468dcf7 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 @@ -64,10 +64,10 @@ FsWatchesRecursive:: /a: *new* {} -TI:: [hh:mm:ss:mss] Global cache location '/a/data/', safe file path '/safeList.json', types map path /typesMap.json -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Global cache location '/a/data', safe file path '/safeList.json', types map path /typesMap.json +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Trying to find '/a/data/package.json'... -TI:: [hh:mm:ss:mss] Finished processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Finished processing cache location '/a/data' TI:: [hh:mm:ss:mss] Npm config file: /a/data/package.json TI:: [hh:mm:ss:mss] Npm config file: '/a/data/package.json' is missing, creating new one... Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /a/data :: WatchInfo: /a 1 undefined Config: /a/jsconfig.json WatchType: Wild card directory @@ -117,23 +117,82 @@ FsWatchesRecursive:: /a: {} -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/a/jsconfig.json","fileNames":["/a/jsFile.js"],"compilerOptions":{"allowJs":true,"maxNodeModuleJsDepth":2,"allowSyntheticDefaultImports":true,"skipLibCheck":true,"noEmit":true,"checkJs":true,"configFilePath":"/a/jsconfig.json","allowNonTsExtensions":true},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/a","cachePath":"/a/data/","kind":"discover"} -TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data/', loading cached information... -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/a/jsconfig.json", + "fileNames": [ + "/a/jsFile.js" + ], + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "checkJs": true, + "configFilePath": "/a/jsconfig.json", + "allowNonTsExtensions": true + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/a", + "cachePath": "/a/data", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/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] Result: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/a/bower_components","/a/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/a/bower_components","/a/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/a/bower_components", + "/a/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/a/jsconfig.json","files":["/a/bower_components","/a/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "/a/jsconfig.json", + "files": [ + "/a/bower_components", + "/a/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /a/bower_components 1 undefined Project: /a/jsconfig.json WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a/bower_components 1 undefined Project: /a/jsconfig.json WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /a/node_modules 1 undefined Project: /a/jsconfig.json WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a/node_modules 1 undefined Project: /a/jsconfig.json WatchType: Directory location for typing installer TI:: [hh:mm:ss:mss] Sending response: - {"projectName":"/a/jsconfig.json","typeAcquisition":{"enable":true,"include":[],"exclude":[]},"compilerOptions":{"allowJs":true,"maxNodeModuleJsDepth":2,"allowSyntheticDefaultImports":true,"skipLibCheck":true,"noEmit":true,"checkJs":true,"configFilePath":"/a/jsconfig.json","allowNonTsExtensions":true},"typings":[],"unresolvedImports":[],"kind":"action::set"} + { + "projectName": "/a/jsconfig.json", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "checkJs": true, + "configFilePath": "/a/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 Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /a/jsconfig.json Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /a/jsconfig.json Version: 2 structureChanged: false structureIsReused:: Not Elapsed:: *ms 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 eeb432622544b..9ba214453c8c1 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 @@ -65,10 +65,10 @@ FsWatchesRecursive:: /a: *new* {} -TI:: [hh:mm:ss:mss] Global cache location '/a/data/', safe file path '/safeList.json', types map path /typesMap.json -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Global cache location '/a/data', safe file path '/safeList.json', types map path /typesMap.json +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Trying to find '/a/data/package.json'... -TI:: [hh:mm:ss:mss] Finished processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Finished processing cache location '/a/data' TI:: [hh:mm:ss:mss] Npm config file: /a/data/package.json TI:: [hh:mm:ss:mss] Npm config file: '/a/data/package.json' is missing, creating new one... Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /a/data :: WatchInfo: /a 1 undefined Config: /a/jsconfig.json WatchType: Wild card directory @@ -118,23 +118,80 @@ FsWatchesRecursive:: /a: {} -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/a/jsconfig.json","fileNames":["/a/jsFile.js"],"compilerOptions":{"allowJs":true,"maxNodeModuleJsDepth":2,"allowSyntheticDefaultImports":true,"skipLibCheck":true,"noEmit":true,"configFilePath":"/a/jsconfig.json","allowNonTsExtensions":true},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/a","cachePath":"/a/data/","kind":"discover"} -TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data/', loading cached information... -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/a/jsconfig.json", + "fileNames": [ + "/a/jsFile.js" + ], + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "configFilePath": "/a/jsconfig.json", + "allowNonTsExtensions": true + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/a", + "cachePath": "/a/data", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/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] Result: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/a/bower_components","/a/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/a/bower_components","/a/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/a/bower_components", + "/a/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/a/jsconfig.json","files":["/a/bower_components","/a/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "/a/jsconfig.json", + "files": [ + "/a/bower_components", + "/a/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /a/bower_components 1 undefined Project: /a/jsconfig.json WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a/bower_components 1 undefined Project: /a/jsconfig.json WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /a/node_modules 1 undefined Project: /a/jsconfig.json WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a/node_modules 1 undefined Project: /a/jsconfig.json WatchType: Directory location for typing installer TI:: [hh:mm:ss:mss] Sending response: - {"projectName":"/a/jsconfig.json","typeAcquisition":{"enable":true,"include":[],"exclude":[]},"compilerOptions":{"allowJs":true,"maxNodeModuleJsDepth":2,"allowSyntheticDefaultImports":true,"skipLibCheck":true,"noEmit":true,"configFilePath":"/a/jsconfig.json","allowNonTsExtensions":true},"typings":[],"unresolvedImports":[],"kind":"action::set"} + { + "projectName": "/a/jsconfig.json", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "configFilePath": "/a/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 Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /a/jsconfig.json Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /a/jsconfig.json Version: 2 structureChanged: false structureIsReused:: Not Elapsed:: *ms 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 3179e7bb579c8..e28d745379cdc 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 @@ -37,10 +37,10 @@ PolledWatches:: /a/lib/lib.d.ts: *new* {"pollingInterval":500} -TI:: [hh:mm:ss:mss] Global cache location '/a/data/', safe file path '/safeList.json', types map path /typesMap.json -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Global cache location '/a/data', safe file path '/safeList.json', types map path /typesMap.json +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Trying to find '/a/data/package.json'... -TI:: [hh:mm:ss:mss] Finished processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Finished processing cache location '/a/data' TI:: [hh:mm:ss:mss] Npm config file: /a/data/package.json TI:: [hh:mm:ss:mss] Npm config file: '/a/data/package.json' is missing, creating new one... TI:: [hh:mm:ss:mss] Updating types-registry npm package... @@ -56,23 +56,78 @@ TI:: typing installer creation complete } -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject1*","fileNames":["/a/jsFile.js"],"compilerOptions":{"target":1,"jsx":1,"allowNonTsExtensions":true,"allowJs":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/a","cachePath":"/a/data/","kind":"discover"} -TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data/', loading cached information... -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject1*", + "fileNames": [ + "/a/jsFile.js" + ], + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/a", + "cachePath": "/a/data", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/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] Result: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/a/bower_components","/a/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/a/bower_components","/a/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/a/bower_components", + "/a/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject1*","files":["/a/bower_components","/a/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject1*", + "files": [ + "/a/bower_components", + "/a/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /a/bower_components 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a/bower_components 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /a/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer 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"} + { + "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] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (1) 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 29a08197fee99..2500547ea51c0 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 @@ -84,10 +84,10 @@ FsWatchesRecursive:: /a: *new* {} -TI:: [hh:mm:ss:mss] Global cache location '/a/data/', safe file path '/safeList.json', types map path /typesMap.json -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Global cache location '/a/data', safe file path '/safeList.json', types map path /typesMap.json +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Trying to find '/a/data/package.json'... -TI:: [hh:mm:ss:mss] Finished processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Finished processing cache location '/a/data' TI:: [hh:mm:ss:mss] Npm config file: /a/data/package.json TI:: [hh:mm:ss:mss] Npm config file: '/a/data/package.json' is missing, creating new one... Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with /a/data :: WatchInfo: /a 1 undefined Config: /a/jsconfig.json WatchType: Wild card directory @@ -141,23 +141,82 @@ FsWatchesRecursive:: /a: {} -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/a/jsconfig.json","fileNames":["/a/dTsFile1.d.ts","/a/dTsFile2.d.ts","/a/jsFile.js"],"compilerOptions":{"allowJs":true,"maxNodeModuleJsDepth":2,"allowSyntheticDefaultImports":true,"skipLibCheck":true,"noEmit":true,"configFilePath":"/a/jsconfig.json","allowNonTsExtensions":true},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/a","cachePath":"/a/data/","kind":"discover"} -TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data/', loading cached information... -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/a/jsconfig.json", + "fileNames": [ + "/a/dTsFile1.d.ts", + "/a/dTsFile2.d.ts", + "/a/jsFile.js" + ], + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "configFilePath": "/a/jsconfig.json", + "allowNonTsExtensions": true + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/a", + "cachePath": "/a/data", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/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] Result: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/a/bower_components","/a/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/a/bower_components","/a/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/a/bower_components", + "/a/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/a/jsconfig.json","files":["/a/bower_components","/a/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "/a/jsconfig.json", + "files": [ + "/a/bower_components", + "/a/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /a/bower_components 1 undefined Project: /a/jsconfig.json WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a/bower_components 1 undefined Project: /a/jsconfig.json WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /a/node_modules 1 undefined Project: /a/jsconfig.json WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a/node_modules 1 undefined Project: /a/jsconfig.json WatchType: Directory location for typing installer TI:: [hh:mm:ss:mss] Sending response: - {"projectName":"/a/jsconfig.json","typeAcquisition":{"enable":true,"include":[],"exclude":[]},"compilerOptions":{"allowJs":true,"maxNodeModuleJsDepth":2,"allowSyntheticDefaultImports":true,"skipLibCheck":true,"noEmit":true,"configFilePath":"/a/jsconfig.json","allowNonTsExtensions":true},"typings":[],"unresolvedImports":[],"kind":"action::set"} + { + "projectName": "/a/jsconfig.json", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "configFilePath": "/a/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 Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /a/jsconfig.json Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /a/jsconfig.json Version: 2 structureChanged: false structureIsReused:: Not Elapsed:: *ms 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 e96d0ea56d01c..dad819893e307 100644 --- a/tests/baselines/reference/tsserver/smartSelection/works-for-simple-JavaScript.js +++ b/tests/baselines/reference/tsserver/smartSelection/works-for-simple-JavaScript.js @@ -58,10 +58,10 @@ FsWatches:: /a/lib/lib.d.ts: *new* {} -TI:: [hh:mm:ss:mss] Global cache location '/a/data/', safe file path '/safeList.json', types map path /typesMap.json -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Global cache location '/a/data', safe file path '/safeList.json', types map path /typesMap.json +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Trying to find '/a/data/package.json'... -TI:: [hh:mm:ss:mss] Finished processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Finished processing cache location '/a/data' TI:: [hh:mm:ss:mss] Npm config file: /a/data/package.json TI:: [hh:mm:ss:mss] Npm config file: '/a/data/package.json' is missing, creating new one... TI:: [hh:mm:ss:mss] Updating types-registry npm package... @@ -77,23 +77,79 @@ TI:: typing installer creation complete } -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject1*","fileNames":["/a/lib/lib.d.ts","/file.js"],"compilerOptions":{"target":1,"jsx":1,"allowNonTsExtensions":true,"allowJs":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/","cachePath":"/a/data/","kind":"discover"} -TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data/', loading cached information... -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject1*", + "fileNames": [ + "/a/lib/lib.d.ts", + "/file.js" + ], + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/", + "cachePath": "/a/data", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/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] Result: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/bower_components","/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/bower_components","/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/bower_components", + "/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject1*","files":["/bower_components","/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject1*", + "files": [ + "/bower_components", + "/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /bower_components 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /bower_components 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer 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"} + { + "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] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (2) diff --git a/tests/baselines/reference/tsserver/symLinks/module-resolution-when-project-compiles-from-sources.js b/tests/baselines/reference/tsserver/symLinks/module-resolution-when-project-compiles-from-sources.js index 22c0949d2f587..286995697847a 100644 --- a/tests/baselines/reference/tsserver/symLinks/module-resolution-when-project-compiles-from-sources.js +++ b/tests/baselines/reference/tsserver/symLinks/module-resolution-when-project-compiles-from-sources.js @@ -44,13 +44,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /users/username/projects Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json 2000 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json", - "reason": "Creating possible configured project for /users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json", + "reason": "Creating possible configured project for /users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json : { "rootNames": [ @@ -101,64 +101,64 @@ Info seq [hh:mm:ss:mss] Files (2) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "a6bd830f3b019a6f703b938422f5798726d0914f0d6f67c2539798ea5e66fed2", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 55, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": {}, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": true, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "a6bd830f3b019a6f703b938422f5798726d0914f0d6f67c2539798ea5e66fed2", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 55, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": {}, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": true, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts", - "configFile": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts", + "configFile": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Project '/users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (2) @@ -230,13 +230,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -245,27 +245,27 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts", - "diagnostics": [ - { - "start": { - "line": 1, - "offset": 17 - }, - "end": { - "line": 1, - "offset": 46 - }, - "text": "Cannot find module '@microsoft/recognizers-text' or its corresponding type declarations.", - "code": 2307, - "category": "error" - } - ] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts", + "diagnostics": [ + { + "start": { + "line": 1, + "offset": 17 + }, + "end": { + "line": 1, + "offset": 46 + }, + "text": "Cannot find module '@microsoft/recognizers-text' or its corresponding type declarations.", + "code": 2307, + "category": "error" + } + ] + } } After running Immedidate callback:: count: 1 2: suggestionCheck @@ -275,22 +275,22 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 2 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 2 + } } After running Immedidate callback:: count: 0 @@ -408,14 +408,14 @@ Info seq [hh:mm:ss:mss] Projects: /users/username/projects/myproject/javascri Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for /users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts" + ] + } } After running Timeout callback:: count: 1 8: checkOne @@ -483,13 +483,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -498,13 +498,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 1 4: suggestionCheck @@ -514,22 +514,22 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 3 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 3 + } } After running Immedidate callback:: count: 0 @@ -548,13 +548,13 @@ Info seq [hh:mm:ss:mss] Running: /users/username/projects/myproject/javascript/ Info seq [hh:mm:ss:mss] Reloading configured project /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json", - "reason": "Change in config file detected" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json", + "reason": "Change in config file detected" + } } Info seq [hh:mm:ss:mss] Config: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json : { "rootNames": [ @@ -576,23 +576,23 @@ Info seq [hh:mm:ss:mss] Files (3) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json", - "configFile": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json", + "configFile": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Running: *ensureProjectForOpenFiles* Info seq [hh:mm:ss:mss] Before ensureProjectForOpenFiles: @@ -614,14 +614,14 @@ Info seq [hh:mm:ss:mss] Projects: /users/username/projects/myproject/javascri Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for /users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts" + ] + } } After running Timeout callback:: count: 1 12: checkOne @@ -631,12 +631,12 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/symLinks/module-resolution-when-project-has-node_modules-setup-but-doesnt-have-modules-in-typings-folder-and-then-recompiles.js b/tests/baselines/reference/tsserver/symLinks/module-resolution-when-project-has-node_modules-setup-but-doesnt-have-modules-in-typings-folder-and-then-recompiles.js index a14ef233e6898..4b050dde7b823 100644 --- a/tests/baselines/reference/tsserver/symLinks/module-resolution-when-project-has-node_modules-setup-but-doesnt-have-modules-in-typings-folder-and-then-recompiles.js +++ b/tests/baselines/reference/tsserver/symLinks/module-resolution-when-project-has-node_modules-setup-but-doesnt-have-modules-in-typings-folder-and-then-recompiles.js @@ -45,13 +45,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /users/username/projects Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json 2000 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json", - "reason": "Creating possible configured project for /users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json", + "reason": "Creating possible configured project for /users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json : { "rootNames": [ @@ -103,64 +103,64 @@ Info seq [hh:mm:ss:mss] Files (2) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "a6bd830f3b019a6f703b938422f5798726d0914f0d6f67c2539798ea5e66fed2", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 55, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": {}, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": true, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "a6bd830f3b019a6f703b938422f5798726d0914f0d6f67c2539798ea5e66fed2", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 55, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": {}, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": true, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts", - "configFile": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts", + "configFile": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Project '/users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (2) @@ -234,13 +234,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -249,27 +249,27 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts", - "diagnostics": [ - { - "start": { - "line": 1, - "offset": 17 - }, - "end": { - "line": 1, - "offset": 46 - }, - "text": "Cannot find module '@microsoft/recognizers-text' or its corresponding type declarations.", - "code": 2307, - "category": "error" - } - ] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts", + "diagnostics": [ + { + "start": { + "line": 1, + "offset": 17 + }, + "end": { + "line": 1, + "offset": 46 + }, + "text": "Cannot find module '@microsoft/recognizers-text' or its corresponding type declarations.", + "code": 2307, + "category": "error" + } + ] + } } After running Immedidate callback:: count: 1 2: suggestionCheck @@ -279,22 +279,22 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 2 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 2 + } } After running Immedidate callback:: count: 0 @@ -334,13 +334,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -349,27 +349,27 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts", - "diagnostics": [ - { - "start": { - "line": 1, - "offset": 17 - }, - "end": { - "line": 1, - "offset": 46 - }, - "text": "Cannot find module '@microsoft/recognizers-text' or its corresponding type declarations.", - "code": 2307, - "category": "error" - } - ] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts", + "diagnostics": [ + { + "start": { + "line": 1, + "offset": 17 + }, + "end": { + "line": 1, + "offset": 46 + }, + "text": "Cannot find module '@microsoft/recognizers-text' or its corresponding type declarations.", + "code": 2307, + "category": "error" + } + ] + } } After running Immedidate callback:: count: 1 4: suggestionCheck @@ -379,21 +379,21 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 3 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 3 + } } After running Immedidate callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/symLinks/module-resolution-when-project-recompiles-after-deleting-generated-folders.js b/tests/baselines/reference/tsserver/symLinks/module-resolution-when-project-recompiles-after-deleting-generated-folders.js index c34dd61e7f1ac..4e4dc14c058c4 100644 --- a/tests/baselines/reference/tsserver/symLinks/module-resolution-when-project-recompiles-after-deleting-generated-folders.js +++ b/tests/baselines/reference/tsserver/symLinks/module-resolution-when-project-recompiles-after-deleting-generated-folders.js @@ -48,13 +48,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /users/username/projects Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json 2000 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json", - "reason": "Creating possible configured project for /users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json", + "reason": "Creating possible configured project for /users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json : { "rootNames": [ @@ -102,64 +102,64 @@ Info seq [hh:mm:ss:mss] Files (3) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "a6bd830f3b019a6f703b938422f5798726d0914f0d6f67c2539798ea5e66fed2", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 55, - "tsx": 0, - "tsxSize": 0, - "dts": 2, - "dtsSize": 370, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": {}, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": true, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "a6bd830f3b019a6f703b938422f5798726d0914f0d6f67c2539798ea5e66fed2", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 55, + "tsx": 0, + "tsxSize": 0, + "dts": 2, + "dtsSize": 370, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": {}, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": true, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts", - "configFile": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts", + "configFile": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Project '/users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (3) @@ -227,13 +227,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -242,13 +242,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 1 2: suggestionCheck @@ -258,22 +258,22 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 2 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 2 + } } After running Immedidate callback:: count: 0 @@ -360,14 +360,14 @@ Info seq [hh:mm:ss:mss] Projects: /users/username/projects/myproject/javascri Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for /users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts" + ] + } } After running Timeout callback:: count: 1 4: checkOne @@ -411,13 +411,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -446,13 +446,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -461,27 +461,27 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts", - "diagnostics": [ - { - "start": { - "line": 1, - "offset": 17 - }, - "end": { - "line": 1, - "offset": 46 - }, - "text": "Cannot find module '@microsoft/recognizers-text' or its corresponding type declarations.", - "code": 2307, - "category": "error" - } - ] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts", + "diagnostics": [ + { + "start": { + "line": 1, + "offset": 17 + }, + "end": { + "line": 1, + "offset": 46 + }, + "text": "Cannot find module '@microsoft/recognizers-text' or its corresponding type declarations.", + "code": 2307, + "category": "error" + } + ] + } } After running Immedidate callback:: count: 1 5: suggestionCheck @@ -491,22 +491,22 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 3 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 3 + } } After running Immedidate callback:: count: 0 @@ -546,13 +546,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -561,27 +561,27 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts", - "diagnostics": [ - { - "start": { - "line": 1, - "offset": 17 - }, - "end": { - "line": 1, - "offset": 46 - }, - "text": "Cannot find module '@microsoft/recognizers-text' or its corresponding type declarations.", - "code": 2307, - "category": "error" - } - ] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts", + "diagnostics": [ + { + "start": { + "line": 1, + "offset": 17 + }, + "end": { + "line": 1, + "offset": 46 + }, + "text": "Cannot find module '@microsoft/recognizers-text' or its corresponding type declarations.", + "code": 2307, + "category": "error" + } + ] + } } After running Immedidate callback:: count: 1 7: suggestionCheck @@ -591,21 +591,21 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 4 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 4 + } } After running Immedidate callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/symLinks/module-resolution-with-path-mapping-when-project-compiles-from-sources.js b/tests/baselines/reference/tsserver/symLinks/module-resolution-with-path-mapping-when-project-compiles-from-sources.js index dda12cfa89d45..a92d2deb68ce3 100644 --- a/tests/baselines/reference/tsserver/symLinks/module-resolution-with-path-mapping-when-project-compiles-from-sources.js +++ b/tests/baselines/reference/tsserver/symLinks/module-resolution-with-path-mapping-when-project-compiles-from-sources.js @@ -44,13 +44,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /users/username/projects Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json 2000 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json", - "reason": "Creating possible configured project for /users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json", + "reason": "Creating possible configured project for /users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json : { "rootNames": [ @@ -114,68 +114,68 @@ Info seq [hh:mm:ss:mss] Files (2) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "a6bd830f3b019a6f703b938422f5798726d0914f0d6f67c2539798ea5e66fed2", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 55, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": { - "rootDir": "", - "baseUrl": "", - "paths": "" - }, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": true, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "a6bd830f3b019a6f703b938422f5798726d0914f0d6f67c2539798ea5e66fed2", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 55, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "rootDir": "", + "baseUrl": "", + "paths": "" + }, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": true, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts", - "configFile": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts", + "configFile": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Project '/users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (2) @@ -253,13 +253,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -268,27 +268,27 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts", - "diagnostics": [ - { - "start": { - "line": 1, - "offset": 17 - }, - "end": { - "line": 1, - "offset": 46 - }, - "text": "Cannot find module '@microsoft/recognizers-text' or its corresponding type declarations.", - "code": 2307, - "category": "error" - } - ] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts", + "diagnostics": [ + { + "start": { + "line": 1, + "offset": 17 + }, + "end": { + "line": 1, + "offset": 46 + }, + "text": "Cannot find module '@microsoft/recognizers-text' or its corresponding type declarations.", + "code": 2307, + "category": "error" + } + ] + } } After running Immedidate callback:: count: 1 2: suggestionCheck @@ -298,22 +298,22 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 2 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 2 + } } After running Immedidate callback:: count: 0 @@ -451,14 +451,14 @@ Info seq [hh:mm:ss:mss] Projects: /users/username/projects/myproject/javascri Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for /users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts" + ] + } } After running Timeout callback:: count: 1 11: checkOne @@ -532,13 +532,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -547,13 +547,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 1 4: suggestionCheck @@ -563,22 +563,22 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 3 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 3 + } } After running Immedidate callback:: count: 0 @@ -597,13 +597,13 @@ Info seq [hh:mm:ss:mss] Running: /users/username/projects/myproject/javascript/ Info seq [hh:mm:ss:mss] Reloading configured project /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json", - "reason": "Change in config file detected" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json", + "reason": "Change in config file detected" + } } Info seq [hh:mm:ss:mss] Config: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json : { "rootNames": [ @@ -633,23 +633,23 @@ Info seq [hh:mm:ss:mss] Files (3) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json", - "configFile": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json", + "configFile": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Running: *ensureProjectForOpenFiles* Info seq [hh:mm:ss:mss] Before ensureProjectForOpenFiles: @@ -671,14 +671,14 @@ Info seq [hh:mm:ss:mss] Projects: /users/username/projects/myproject/javascri Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for /users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts" + ] + } } After running Timeout callback:: count: 1 15: checkOne @@ -688,12 +688,12 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/symLinks/module-resolution-with-path-mapping-when-project-has-node_modules-setup-but-doesnt-have-modules-in-typings-folder-and-then-recompiles.js b/tests/baselines/reference/tsserver/symLinks/module-resolution-with-path-mapping-when-project-has-node_modules-setup-but-doesnt-have-modules-in-typings-folder-and-then-recompiles.js index d083911de0403..4e3cb196162f0 100644 --- a/tests/baselines/reference/tsserver/symLinks/module-resolution-with-path-mapping-when-project-has-node_modules-setup-but-doesnt-have-modules-in-typings-folder-and-then-recompiles.js +++ b/tests/baselines/reference/tsserver/symLinks/module-resolution-with-path-mapping-when-project-has-node_modules-setup-but-doesnt-have-modules-in-typings-folder-and-then-recompiles.js @@ -45,13 +45,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /users/username/projects Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json 2000 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json", - "reason": "Creating possible configured project for /users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json", + "reason": "Creating possible configured project for /users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json : { "rootNames": [ @@ -115,68 +115,68 @@ Info seq [hh:mm:ss:mss] Files (2) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "a6bd830f3b019a6f703b938422f5798726d0914f0d6f67c2539798ea5e66fed2", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 55, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": { - "rootDir": "", - "baseUrl": "", - "paths": "" - }, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": true, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "a6bd830f3b019a6f703b938422f5798726d0914f0d6f67c2539798ea5e66fed2", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 55, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "rootDir": "", + "baseUrl": "", + "paths": "" + }, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": true, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts", - "configFile": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts", + "configFile": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Project '/users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (2) @@ -254,13 +254,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -269,27 +269,27 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts", - "diagnostics": [ - { - "start": { - "line": 1, - "offset": 17 - }, - "end": { - "line": 1, - "offset": 46 - }, - "text": "Cannot find module '@microsoft/recognizers-text' or its corresponding type declarations.", - "code": 2307, - "category": "error" - } - ] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts", + "diagnostics": [ + { + "start": { + "line": 1, + "offset": 17 + }, + "end": { + "line": 1, + "offset": 46 + }, + "text": "Cannot find module '@microsoft/recognizers-text' or its corresponding type declarations.", + "code": 2307, + "category": "error" + } + ] + } } After running Immedidate callback:: count: 1 2: suggestionCheck @@ -299,22 +299,22 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 2 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 2 + } } After running Immedidate callback:: count: 0 @@ -397,14 +397,14 @@ Info seq [hh:mm:ss:mss] Projects: /users/username/projects/myproject/javascri Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for /users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts" + ] + } } After running Timeout callback:: count: 1 7: checkOne @@ -478,13 +478,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -493,13 +493,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 1 4: suggestionCheck @@ -509,21 +509,21 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 3 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 3 + } } After running Immedidate callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/symLinks/module-resolution-with-path-mapping-when-project-recompiles-after-deleting-generated-folders.js b/tests/baselines/reference/tsserver/symLinks/module-resolution-with-path-mapping-when-project-recompiles-after-deleting-generated-folders.js index 9bc5a00a225a4..f78d8957bc9cd 100644 --- a/tests/baselines/reference/tsserver/symLinks/module-resolution-with-path-mapping-when-project-recompiles-after-deleting-generated-folders.js +++ b/tests/baselines/reference/tsserver/symLinks/module-resolution-with-path-mapping-when-project-recompiles-after-deleting-generated-folders.js @@ -48,13 +48,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /users/username/projects Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json 2000 undefined Project: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json", - "reason": "Creating possible configured project for /users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json", + "reason": "Creating possible configured project for /users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json : { "rootNames": [ @@ -108,68 +108,68 @@ Info seq [hh:mm:ss:mss] Files (3) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "a6bd830f3b019a6f703b938422f5798726d0914f0d6f67c2539798ea5e66fed2", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 55, - "tsx": 0, - "tsxSize": 0, - "dts": 2, - "dtsSize": 370, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": { - "rootDir": "", - "baseUrl": "", - "paths": "" - }, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": true, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "a6bd830f3b019a6f703b938422f5798726d0914f0d6f67c2539798ea5e66fed2", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 55, + "tsx": 0, + "tsxSize": 0, + "dts": 2, + "dtsSize": 370, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "rootDir": "", + "baseUrl": "", + "paths": "" + }, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": true, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts", - "configFile": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts", + "configFile": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Project '/users/username/projects/myproject/javascript/packages/recognizers-date-time/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (3) @@ -237,13 +237,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -252,13 +252,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 1 2: suggestionCheck @@ -268,22 +268,22 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 2 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 2 + } } After running Immedidate callback:: count: 0 @@ -376,14 +376,14 @@ Info seq [hh:mm:ss:mss] Projects: /users/username/projects/myproject/javascri Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for /users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts" + ] + } } After running Timeout callback:: count: 1 4: checkOne @@ -431,13 +431,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -466,13 +466,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -481,27 +481,27 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts", - "diagnostics": [ - { - "start": { - "line": 1, - "offset": 17 - }, - "end": { - "line": 1, - "offset": 46 - }, - "text": "Cannot find module '@microsoft/recognizers-text' or its corresponding type declarations.", - "code": 2307, - "category": "error" - } - ] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts", + "diagnostics": [ + { + "start": { + "line": 1, + "offset": 17 + }, + "end": { + "line": 1, + "offset": 46 + }, + "text": "Cannot find module '@microsoft/recognizers-text' or its corresponding type declarations.", + "code": 2307, + "category": "error" + } + ] + } } After running Immedidate callback:: count: 1 5: suggestionCheck @@ -511,22 +511,22 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 3 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 3 + } } After running Immedidate callback:: count: 0 @@ -609,14 +609,14 @@ Info seq [hh:mm:ss:mss] Projects: /users/username/projects/myproject/javascri Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for /users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts" + ] + } } After running Timeout callback:: count: 1 11: checkOne @@ -690,13 +690,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -705,13 +705,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 1 7: suggestionCheck @@ -721,21 +721,21 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/users/username/projects/myproject/javascript/packages/recognizers-date-time/src/datetime/baseDate.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 4 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 4 + } } After running Immedidate callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/telemetry/counts-files-by-extension.js b/tests/baselines/reference/tsserver/telemetry/counts-files-by-extension.js index e2ef4b95df9b4..f9194733e2321 100644 --- a/tests/baselines/reference/tsserver/telemetry/counts-files-by-extension.js +++ b/tests/baselines/reference/tsserver/telemetry/counts-files-by-extension.js @@ -44,13 +44,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /tsconfig.json Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tsconfig.json 2000 undefined Project: /tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/tsconfig.json", - "reason": "Creating possible configured project for /src/ts.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/tsconfig.json", + "reason": "Creating possible configured project for /src/ts.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /tsconfig.json : { "rootNames": [ @@ -102,117 +102,117 @@ Info seq [hh:mm:ss:mss] Files (6) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "aace87d7c1572ff43c6978074161b586788b4518c7a9d06c79c03e613b6ce5a3", - "fileStats": { - "js": 1, - "jsSize": 0, - "jsx": 1, - "jsxSize": 0, - "ts": 2, - "tsSize": 0, - "tsx": 1, - "tsxSize": 0, - "dts": 1, - "dtsSize": 0, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": { - "allowJs": true - }, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": true, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "aace87d7c1572ff43c6978074161b586788b4518c7a9d06c79c03e613b6ce5a3", + "fileStats": { + "js": 1, + "jsSize": 0, + "jsx": 1, + "jsxSize": 0, + "ts": 2, + "tsSize": 0, + "tsx": 1, + "tsxSize": 0, + "dts": 1, + "dtsSize": 0, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "allowJs": true + }, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": true, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/src/ts.ts", - "configFile": "/tsconfig.json", - "diagnostics": [ - { - "text": "Cannot write file '/src/js.js' because it would overwrite input file.", - "code": 5055, - "category": "error" - }, - { - "text": "File '/a/lib/lib.d.ts' not found.\n The file is in the program because:\n Default library for target 'es5'", - "code": 6053, - "category": "error" - }, - { - "text": "Cannot find global type 'Array'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Boolean'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Function'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'IArguments'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Number'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Object'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'RegExp'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'String'.", - "code": 2318, - "category": "error" - } - ] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/src/ts.ts", + "configFile": "/tsconfig.json", + "diagnostics": [ + { + "text": "Cannot write file '/src/js.js' because it would overwrite input file.", + "code": 5055, + "category": "error" + }, + { + "text": "File '/a/lib/lib.d.ts' not found.\n The file is in the program because:\n Default library for target 'es5'", + "code": 6053, + "category": "error" + }, + { + "text": "Cannot find global type 'Array'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Boolean'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Function'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'IArguments'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Number'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Object'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'RegExp'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'String'.", + "code": 2318, + "category": "error" + } + ] + } } Info seq [hh:mm:ss:mss] Project '/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (6) diff --git a/tests/baselines/reference/tsserver/telemetry/detects-whether-language-service-was-disabled.js b/tests/baselines/reference/tsserver/telemetry/detects-whether-language-service-was-disabled.js index f0a15ed9085b8..ecb8cdbd36e4a 100644 --- a/tests/baselines/reference/tsserver/telemetry/detects-whether-language-service-was-disabled.js +++ b/tests/baselines/reference/tsserver/telemetry/detects-whether-language-service-was-disabled.js @@ -23,13 +23,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /jsconfig.json Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /jsconfig.json 2000 undefined Project: /jsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/jsconfig.json", - "reason": "Creating possible configured project for /a.js to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/jsconfig.json", + "reason": "Creating possible configured project for /a.js to open" + } } Info seq [hh:mm:ss:mss] Config: /jsconfig.json : { "rootNames": [ @@ -47,26 +47,26 @@ Info seq [hh:mm:ss:mss] Config: /jsconfig.json : { Info seq [hh:mm:ss:mss] Non TS file size exceeded limit (20971521). Largest files: /a.js:20971521 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLanguageServiceState", - "body": { - "projectName": "/jsconfig.json", - "languageServiceEnabled": false - } + "seq": 0, + "type": "event", + "event": "projectLanguageServiceState", + "body": { + "projectName": "/jsconfig.json", + "languageServiceEnabled": false + } } Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /jsconfig.json Info seq [hh:mm:ss:mss] Skipped loading contents of large file /a.js for info /a.js: fileSize: 20971521 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "largeFileReferenced", - "body": { - "file": "/a.js", - "fileSize": 20971521, - "maxFileSize": 4194304 - } + "seq": 0, + "type": "event", + "event": "largeFileReferenced", + "body": { + "file": "/a.js", + "fileSize": 20971521, + "maxFileSize": 4194304 + } } Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 500 undefined Project: /jsconfig.json WatchType: Missing file Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /jsconfig.json Version: 1 structureChanged: true structureIsReused:: Not Elapsed:: *ms @@ -81,116 +81,116 @@ Info seq [hh:mm:ss:mss] Files (1) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/jsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/jsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "d3f7418c3d4888d0a51e42716b5a330dab4da64c452eebe918c1e0e634d8ede1", - "fileStats": { - "js": 1, - "jsSize": 20971521, - "jsx": 0, - "jsxSize": 0, - "ts": 0, - "tsSize": 0, - "tsx": 0, - "tsxSize": 0, - "dts": 0, - "dtsSize": 0, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": { - "allowJs": true, - "maxNodeModuleJsDepth": 2, - "allowSyntheticDefaultImports": true, - "skipLibCheck": true, - "noEmit": true - }, - "typeAcquisition": { - "enable": true, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "jsconfig.json", - "projectType": "configured", - "languageServiceEnabled": false, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "d3f7418c3d4888d0a51e42716b5a330dab4da64c452eebe918c1e0e634d8ede1", + "fileStats": { + "js": 1, + "jsSize": 20971521, + "jsx": 0, + "jsxSize": 0, + "ts": 0, + "tsSize": 0, + "tsx": 0, + "tsxSize": 0, + "dts": 0, + "dtsSize": 0, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true + }, + "typeAcquisition": { + "enable": true, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "jsconfig.json", + "projectType": "configured", + "languageServiceEnabled": false, + "version": "FakeVersion" + } } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/a.js", - "configFile": "/jsconfig.json", - "diagnostics": [ - { - "text": "File '/a/lib/lib.d.ts' not found.\n The file is in the program because:\n Default library for target 'es5'", - "code": 6053, - "category": "error" - }, - { - "text": "Cannot find global type 'Array'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Boolean'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Function'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'IArguments'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Number'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Object'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'RegExp'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'String'.", - "code": 2318, - "category": "error" - } - ] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/a.js", + "configFile": "/jsconfig.json", + "diagnostics": [ + { + "text": "File '/a/lib/lib.d.ts' not found.\n The file is in the program because:\n Default library for target 'es5'", + "code": 6053, + "category": "error" + }, + { + "text": "Cannot find global type 'Array'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Boolean'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Function'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'IArguments'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Number'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Object'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'RegExp'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'String'.", + "code": 2318, + "category": "error" + } + ] + } } Info seq [hh:mm:ss:mss] Project '/jsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (1) diff --git a/tests/baselines/reference/tsserver/telemetry/does-not-expose-paths.js b/tests/baselines/reference/tsserver/telemetry/does-not-expose-paths.js index cf6801ac6ab24..4a37ea495d706 100644 --- a/tests/baselines/reference/tsserver/telemetry/does-not-expose-paths.js +++ b/tests/baselines/reference/tsserver/telemetry/does-not-expose-paths.js @@ -23,13 +23,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /tsconfig.json Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tsconfig.json 2000 undefined Project: /tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/tsconfig.json", - "reason": "Creating possible configured project for /a.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/tsconfig.json", + "reason": "Creating possible configured project for /a.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /tsconfig.json : { "rootNames": [ @@ -86,385 +86,385 @@ Info seq [hh:mm:ss:mss] Files (1) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "aace87d7c1572ff43c6978074161b586788b4518c7a9d06c79c03e613b6ce5a3", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 0, - "tsx": 0, - "tsxSize": 0, - "dts": 0, - "dtsSize": 0, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": { - "project": "", - "outFile": "", - "outDir": "", - "rootDir": "", - "baseUrl": "", - "rootDirs": [ - "" - ], - "typeRoots": [ - "" - ], - "types": [ - "" - ], - "sourceRoot": "", - "mapRoot": "", - "jsxFactory": "", - "out": "", - "reactNamespace": "", - "charset": "", - "declarationDir": "", - "paths": "", - "declaration": true, - "lib": [ - "es6", - "dom" - ] - }, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": true, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "aace87d7c1572ff43c6978074161b586788b4518c7a9d06c79c03e613b6ce5a3", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 0, + "tsx": 0, + "tsxSize": 0, + "dts": 0, + "dtsSize": 0, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "project": "", + "outFile": "", + "outDir": "", + "rootDir": "", + "baseUrl": "", + "rootDirs": [ + "" + ], + "typeRoots": [ + "" + ], + "types": [ + "" + ], + "sourceRoot": "", + "mapRoot": "", + "jsxFactory": "", + "out": "", + "reactNamespace": "", + "charset": "", + "declarationDir": "", + "paths": "", + "declaration": true, + "lib": [ + "es6", + "dom" + ] + }, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": true, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/a.ts", - "configFile": "/tsconfig.json", - "diagnostics": [ - { - "text": "Cannot find type definition file for 'hunter2'.\n The file is in the program because:\n Entry point of type library 'hunter2' specified in compilerOptions", - "code": 2688, - "category": "error", - "relatedInformation": [ - { - "span": { - "start": { - "line": 1, - "offset": 172 - }, - "end": { - "line": 1, - "offset": 181 - }, - "file": "/tsconfig.json" + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/a.ts", + "configFile": "/tsconfig.json", + "diagnostics": [ + { + "text": "Cannot find type definition file for 'hunter2'.\n The file is in the program because:\n Entry point of type library 'hunter2' specified in compilerOptions", + "code": 2688, + "category": "error", + "relatedInformation": [ + { + "span": { + "start": { + "line": 1, + "offset": 172 + }, + "end": { + "line": 1, + "offset": 181 + }, + "file": "/tsconfig.json" + }, + "message": "File is entry point of type library specified here.", + "category": "message", + "code": 1419 + } + ] }, - "message": "File is entry point of type library specified here.", - "category": "message", - "code": 1419 - } - ] - }, - { - "text": "File '/a/lib/lib.dom.d.ts' not found.\n The file is in the program because:\n Library 'lib.dom.d.ts' specified in compilerOptions", - "code": 6053, - "category": "error" - }, - { - "text": "File '/a/lib/lib.es2015.d.ts' not found.\n The file is in the program because:\n Library 'lib.es2015.d.ts' specified in compilerOptions", - "code": 6053, - "category": "error" - }, - { - "text": "File '/a.ts' is not under 'rootDir' '/hunter2'. 'rootDir' is expected to contain all source files.\n The file is in the program because:\n Part of 'files' list in tsconfig.json", - "code": 6059, - "category": "error", - "relatedInformation": [ - { - "span": { - "start": { - "line": 1, - "offset": 497 - }, - "end": { - "line": 1, - "offset": 504 - }, - "file": "/tsconfig.json" + { + "text": "File '/a/lib/lib.dom.d.ts' not found.\n The file is in the program because:\n Library 'lib.dom.d.ts' specified in compilerOptions", + "code": 6053, + "category": "error" + }, + { + "text": "File '/a/lib/lib.es2015.d.ts' not found.\n The file is in the program because:\n Library 'lib.es2015.d.ts' specified in compilerOptions", + "code": 6053, + "category": "error" + }, + { + "text": "File '/a.ts' is not under 'rootDir' '/hunter2'. 'rootDir' is expected to contain all source files.\n The file is in the program because:\n Part of 'files' list in tsconfig.json", + "code": 6059, + "category": "error", + "relatedInformation": [ + { + "span": { + "start": { + "line": 1, + "offset": 497 + }, + "end": { + "line": 1, + "offset": 504 + }, + "file": "/tsconfig.json" + }, + "message": "File is matched by 'files' list specified here.", + "category": "message", + "code": 1410 + } + ] + }, + { + "start": { + "line": 1, + "offset": 34 + }, + "end": { + "line": 1, + "offset": 43 + }, + "text": "Option 'out' cannot be specified with option 'outFile'.", + "code": 5053, + "category": "error", + "fileName": "/tsconfig.json" + }, + { + "start": { + "line": 1, + "offset": 183 + }, + "end": { + "line": 1, + "offset": 195 + }, + "text": "Option 'sourceRoot can only be used when either option '--inlineSourceMap' or option '--sourceMap' is provided.", + "code": 5051, + "category": "error", + "fileName": "/tsconfig.json" + }, + { + "start": { + "line": 1, + "offset": 206 + }, + "end": { + "line": 1, + "offset": 215 + }, + "text": "Option 'mapRoot' cannot be specified without specifying option 'sourceMap' or option 'declarationMap'.", + "code": 5069, + "category": "error", + "fileName": "/tsconfig.json" + }, + { + "start": { + "line": 1, + "offset": 226 + }, + "end": { + "line": 1, + "offset": 238 + }, + "text": "Option 'reactNamespace' cannot be specified with option 'jsxFactory'.", + "code": 5053, + "category": "error", + "fileName": "/tsconfig.json" + }, + { + "start": { + "line": 1, + "offset": 249 + }, + "end": { + "line": 1, + "offset": 254 + }, + "text": "Option 'declarationDir' cannot be specified with option 'out'.", + "code": 5053, + "category": "error", + "fileName": "/tsconfig.json" + }, + { + "start": { + "line": 1, + "offset": 249 + }, + "end": { + "line": 1, + "offset": 254 + }, + "text": "Option 'out' cannot be specified with option 'outFile'.", + "code": 5053, + "category": "error", + "fileName": "/tsconfig.json" + }, + { + "start": { + "line": 1, + "offset": 249 + }, + "end": { + "line": 1, + "offset": 254 + }, + "text": "Option 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify compilerOption '\"ignoreDeprecations\": \"5.0\"' to silence this error.\n Use 'outFile' instead.", + "code": 5101, + "category": "error", + "fileName": "/tsconfig.json" }, - "message": "File is matched by 'files' list specified here.", - "category": "message", - "code": 1410 - } + { + "start": { + "line": 1, + "offset": 265 + }, + "end": { + "line": 1, + "offset": 281 + }, + "text": "Option 'reactNamespace' cannot be specified with option 'jsxFactory'.", + "code": 5053, + "category": "error", + "fileName": "/tsconfig.json" + }, + { + "start": { + "line": 1, + "offset": 292 + }, + "end": { + "line": 1, + "offset": 301 + }, + "text": "Option 'charset' is deprecated and will stop functioning in TypeScript 5.5. Specify compilerOption '\"ignoreDeprecations\": \"5.0\"' to silence this error.", + "code": 5101, + "category": "error", + "fileName": "/tsconfig.json" + }, + { + "start": { + "line": 1, + "offset": 331 + }, + "end": { + "line": 1, + "offset": 347 + }, + "text": "Option 'declarationDir' cannot be specified with option 'out'.", + "code": 5053, + "category": "error", + "fileName": "/tsconfig.json" + }, + { + "text": "Cannot find global type 'Array'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Boolean'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Function'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'IArguments'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Number'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Object'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'RegExp'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'String'.", + "code": 2318, + "category": "error" + }, + { + "start": { + "line": 1, + "offset": 312 + }, + "end": { + "line": 1, + "offset": 320 + }, + "text": "Option 'locale' can only be specified on command line.", + "code": 6266, + "category": "error", + "fileName": "/tsconfig.json" + }, + { + "start": { + "line": 1, + "offset": 422 + }, + "end": { + "line": 1, + "offset": 431 + }, + "text": "Argument for '--lib' option must be: 'es5', 'es6', 'es2015', 'es7', 'es2016', 'es2017', 'es2018', 'es2019', 'es2020', 'es2021', 'es2022', 'es2023', 'esnext', 'dom', 'dom.iterable', 'webworker', 'webworker.importscripts', 'webworker.iterable', 'scripthost', 'es2015.core', 'es2015.collection', 'es2015.generator', 'es2015.iterable', 'es2015.promise', 'es2015.proxy', 'es2015.reflect', 'es2015.symbol', 'es2015.symbol.wellknown', 'es2016.array.include', 'es2017.date', 'es2017.object', 'es2017.sharedmemory', 'es2017.string', 'es2017.intl', 'es2017.typedarrays', 'es2018.asyncgenerator', 'es2018.asynciterable', 'es2018.intl', 'es2018.promise', 'es2018.regexp', 'es2019.array', 'es2019.object', 'es2019.string', 'es2019.symbol', 'es2019.intl', 'es2020.bigint', 'es2020.date', 'es2020.promise', 'es2020.sharedmemory', 'es2020.string', 'es2020.symbol.wellknown', 'es2020.intl', 'es2020.number', 'es2021.promise', 'es2021.string', 'es2021.weakref', 'es2021.intl', 'es2022.array', 'es2022.error', 'es2022.intl', 'es2022.object', 'es2022.sharedmemory', 'es2022.string', 'es2022.regexp', 'es2023.array', 'es2023.collection', 'esnext.array', 'esnext.collection', 'esnext.symbol', 'esnext.asynciterable', 'esnext.intl', 'esnext.disposable', 'esnext.bigint', 'esnext.string', 'esnext.promise', 'esnext.weakref', 'esnext.decorators', 'decorators', 'decorators.legacy'.", + "code": 6046, + "category": "error", + "fileName": "/tsconfig.json" + }, + { + "start": { + "line": 1, + "offset": 443 + }, + "end": { + "line": 1, + "offset": 452 + }, + "text": "Compiler option 'checkJs' requires a value of type boolean.", + "code": 5024, + "category": "error", + "fileName": "/tsconfig.json" + }, + { + "start": { + "line": 1, + "offset": 453 + }, + "end": { + "line": 1, + "offset": 476 + }, + "text": "Unknown compiler option 'unknownCompilerOption'.", + "code": 5023, + "category": "error", + "fileName": "/tsconfig.json" + } ] - }, - { - "start": { - "line": 1, - "offset": 34 - }, - "end": { - "line": 1, - "offset": 43 - }, - "text": "Option 'out' cannot be specified with option 'outFile'.", - "code": 5053, - "category": "error", - "fileName": "/tsconfig.json" - }, - { - "start": { - "line": 1, - "offset": 183 - }, - "end": { - "line": 1, - "offset": 195 - }, - "text": "Option 'sourceRoot can only be used when either option '--inlineSourceMap' or option '--sourceMap' is provided.", - "code": 5051, - "category": "error", - "fileName": "/tsconfig.json" - }, - { - "start": { - "line": 1, - "offset": 206 - }, - "end": { - "line": 1, - "offset": 215 - }, - "text": "Option 'mapRoot' cannot be specified without specifying option 'sourceMap' or option 'declarationMap'.", - "code": 5069, - "category": "error", - "fileName": "/tsconfig.json" - }, - { - "start": { - "line": 1, - "offset": 226 - }, - "end": { - "line": 1, - "offset": 238 - }, - "text": "Option 'reactNamespace' cannot be specified with option 'jsxFactory'.", - "code": 5053, - "category": "error", - "fileName": "/tsconfig.json" - }, - { - "start": { - "line": 1, - "offset": 249 - }, - "end": { - "line": 1, - "offset": 254 - }, - "text": "Option 'declarationDir' cannot be specified with option 'out'.", - "code": 5053, - "category": "error", - "fileName": "/tsconfig.json" - }, - { - "start": { - "line": 1, - "offset": 249 - }, - "end": { - "line": 1, - "offset": 254 - }, - "text": "Option 'out' cannot be specified with option 'outFile'.", - "code": 5053, - "category": "error", - "fileName": "/tsconfig.json" - }, - { - "start": { - "line": 1, - "offset": 249 - }, - "end": { - "line": 1, - "offset": 254 - }, - "text": "Option 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify compilerOption '\"ignoreDeprecations\": \"5.0\"' to silence this error.\n Use 'outFile' instead.", - "code": 5101, - "category": "error", - "fileName": "/tsconfig.json" - }, - { - "start": { - "line": 1, - "offset": 265 - }, - "end": { - "line": 1, - "offset": 281 - }, - "text": "Option 'reactNamespace' cannot be specified with option 'jsxFactory'.", - "code": 5053, - "category": "error", - "fileName": "/tsconfig.json" - }, - { - "start": { - "line": 1, - "offset": 292 - }, - "end": { - "line": 1, - "offset": 301 - }, - "text": "Option 'charset' is deprecated and will stop functioning in TypeScript 5.5. Specify compilerOption '\"ignoreDeprecations\": \"5.0\"' to silence this error.", - "code": 5101, - "category": "error", - "fileName": "/tsconfig.json" - }, - { - "start": { - "line": 1, - "offset": 331 - }, - "end": { - "line": 1, - "offset": 347 - }, - "text": "Option 'declarationDir' cannot be specified with option 'out'.", - "code": 5053, - "category": "error", - "fileName": "/tsconfig.json" - }, - { - "text": "Cannot find global type 'Array'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Boolean'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Function'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'IArguments'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Number'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Object'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'RegExp'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'String'.", - "code": 2318, - "category": "error" - }, - { - "start": { - "line": 1, - "offset": 312 - }, - "end": { - "line": 1, - "offset": 320 - }, - "text": "Option 'locale' can only be specified on command line.", - "code": 6266, - "category": "error", - "fileName": "/tsconfig.json" - }, - { - "start": { - "line": 1, - "offset": 422 - }, - "end": { - "line": 1, - "offset": 431 - }, - "text": "Argument for '--lib' option must be: 'es5', 'es6', 'es2015', 'es7', 'es2016', 'es2017', 'es2018', 'es2019', 'es2020', 'es2021', 'es2022', 'es2023', 'esnext', 'dom', 'dom.iterable', 'webworker', 'webworker.importscripts', 'webworker.iterable', 'scripthost', 'es2015.core', 'es2015.collection', 'es2015.generator', 'es2015.iterable', 'es2015.promise', 'es2015.proxy', 'es2015.reflect', 'es2015.symbol', 'es2015.symbol.wellknown', 'es2016.array.include', 'es2017.date', 'es2017.object', 'es2017.sharedmemory', 'es2017.string', 'es2017.intl', 'es2017.typedarrays', 'es2018.asyncgenerator', 'es2018.asynciterable', 'es2018.intl', 'es2018.promise', 'es2018.regexp', 'es2019.array', 'es2019.object', 'es2019.string', 'es2019.symbol', 'es2019.intl', 'es2020.bigint', 'es2020.date', 'es2020.promise', 'es2020.sharedmemory', 'es2020.string', 'es2020.symbol.wellknown', 'es2020.intl', 'es2020.number', 'es2021.promise', 'es2021.string', 'es2021.weakref', 'es2021.intl', 'es2022.array', 'es2022.error', 'es2022.intl', 'es2022.object', 'es2022.sharedmemory', 'es2022.string', 'es2022.regexp', 'es2023.array', 'es2023.collection', 'esnext.array', 'esnext.collection', 'esnext.symbol', 'esnext.asynciterable', 'esnext.intl', 'esnext.disposable', 'esnext.bigint', 'esnext.string', 'esnext.promise', 'esnext.weakref', 'esnext.decorators', 'decorators', 'decorators.legacy'.", - "code": 6046, - "category": "error", - "fileName": "/tsconfig.json" - }, - { - "start": { - "line": 1, - "offset": 443 - }, - "end": { - "line": 1, - "offset": 452 - }, - "text": "Compiler option 'checkJs' requires a value of type boolean.", - "code": 5024, - "category": "error", - "fileName": "/tsconfig.json" - }, - { - "start": { - "line": 1, - "offset": 453 - }, - "end": { - "line": 1, - "offset": 476 - }, - "text": "Unknown compiler option 'unknownCompilerOption'.", - "code": 5023, - "category": "error", - "fileName": "/tsconfig.json" - } - ] - } + } } Info seq [hh:mm:ss:mss] Project '/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (1) 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 055fbc08aa0f7..691aaf69ae980 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 @@ -34,10 +34,10 @@ PolledWatches:: /a/lib/lib.d.ts: *new* {"pollingInterval":500} -TI:: [hh:mm:ss:mss] Global cache location '/a/data/', safe file path '/safeList.json', types map path /typesMap.json -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Global cache location '/a/data', safe file path '/safeList.json', types map path /typesMap.json +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Trying to find '/a/data/package.json'... -TI:: [hh:mm:ss:mss] Finished processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Finished processing cache location '/a/data' TI:: [hh:mm:ss:mss] Npm config file: /a/data/package.json TI:: [hh:mm:ss:mss] Npm config file: '/a/data/package.json' is missing, creating new one... TI:: [hh:mm:ss:mss] Updating types-registry npm package... @@ -53,23 +53,78 @@ TI:: typing installer creation complete } -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject1*","fileNames":["/a.js"],"compilerOptions":{"target":1,"jsx":1,"allowNonTsExtensions":true,"allowJs":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/","cachePath":"/a/data/","kind":"discover"} -TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data/', loading cached information... -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject1*", + "fileNames": [ + "/a.js" + ], + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/", + "cachePath": "/a/data", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/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] Result: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/bower_components","/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/bower_components","/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/bower_components", + "/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject1*","files":["/bower_components","/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject1*", + "files": [ + "/bower_components", + "/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /bower_components 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /bower_components 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer 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"} + { + "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] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (1) 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 dd3f451fe9bd1..47a5dff1383fd 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 @@ -23,13 +23,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /jsconfig.json Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /jsconfig.json 2000 undefined Project: /jsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/jsconfig.json", - "reason": "Creating possible configured project for /a.js to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/jsconfig.json", + "reason": "Creating possible configured project for /a.js to open" + } } Info seq [hh:mm:ss:mss] Config: /jsconfig.json : { "rootNames": [ @@ -73,10 +73,10 @@ FsWatchesRecursive:: /: *new* {} -TI:: [hh:mm:ss:mss] Global cache location '/a/data/', safe file path '/safeList.json', types map path /typesMap.json -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Global cache location '/a/data', safe file path '/safeList.json', types map path /typesMap.json +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Trying to find '/a/data/package.json'... -TI:: [hh:mm:ss:mss] Finished processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Finished processing cache location '/a/data' TI:: [hh:mm:ss:mss] Npm config file: /a/data/package.json TI:: [hh:mm:ss:mss] Npm config file: '/a/data/package.json' is missing, creating new one... Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with a :: WatchInfo: 1 undefined Config: /jsconfig.json WatchType: Wild card directory @@ -130,140 +130,199 @@ FsWatchesRecursive:: /: {} -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/jsconfig.json","fileNames":["/a.js"],"compilerOptions":{"allowJs":true,"maxNodeModuleJsDepth":2,"allowSyntheticDefaultImports":true,"skipLibCheck":true,"noEmit":true,"checkJs":true,"configFilePath":"/jsconfig.json","allowNonTsExtensions":true},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/","cachePath":"/a/data/","kind":"discover"} -TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data/', loading cached information... -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/jsconfig.json", + "fileNames": [ + "/a.js" + ], + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "checkJs": true, + "configFilePath": "/jsconfig.json", + "allowNonTsExtensions": true + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/", + "cachePath": "/a/data", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/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] Result: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/bower_components","/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/bower_components","/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/bower_components", + "/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/jsconfig.json","files":["/bower_components","/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "/jsconfig.json", + "files": [ + "/bower_components", + "/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /bower_components 1 undefined Project: /jsconfig.json WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /bower_components 1 undefined Project: /jsconfig.json WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /node_modules 1 undefined Project: /jsconfig.json WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /node_modules 1 undefined Project: /jsconfig.json WatchType: Directory location for typing installer TI:: [hh:mm:ss:mss] Sending response: - {"projectName":"/jsconfig.json","typeAcquisition":{"enable":true,"include":[],"exclude":[]},"compilerOptions":{"allowJs":true,"maxNodeModuleJsDepth":2,"allowSyntheticDefaultImports":true,"skipLibCheck":true,"noEmit":true,"checkJs":true,"configFilePath":"/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 -Info seq [hh:mm:ss:mss] event: - { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/jsconfig.json" - } - } -Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "d3f7418c3d4888d0a51e42716b5a330dab4da64c452eebe918c1e0e634d8ede1", - "fileStats": { - "js": 1, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 0, - "tsSize": 0, - "tsx": 0, - "tsxSize": 0, - "dts": 0, - "dtsSize": 0, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": { + "projectName": "/jsconfig.json", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { "allowJs": true, "maxNodeModuleJsDepth": 2, "allowSyntheticDefaultImports": true, "skipLibCheck": true, "noEmit": true, - "checkJs": 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" + "checkJs": true, + "configFilePath": "/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 +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/jsconfig.json" + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "d3f7418c3d4888d0a51e42716b5a330dab4da64c452eebe918c1e0e634d8ede1", + "fileStats": { + "js": 1, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 0, + "tsSize": 0, + "tsx": 0, + "tsxSize": 0, + "dts": 0, + "dtsSize": 0, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "checkJs": 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] Starting updateGraphWorker: Project: /jsconfig.json Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /jsconfig.json Version: 2 structureChanged: false structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Same program as before Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/a.js", - "configFile": "/jsconfig.json", - "diagnostics": [ - { - "text": "File '/a/lib/lib.d.ts' not found.\n The file is in the program because:\n Default library for target 'es5'", - "code": 6053, - "category": "error" - }, - { - "text": "Cannot find global type 'Array'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Boolean'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Function'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'IArguments'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Number'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Object'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'RegExp'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'String'.", - "code": 2318, - "category": "error" - } - ] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/a.js", + "configFile": "/jsconfig.json", + "diagnostics": [ + { + "text": "File '/a/lib/lib.d.ts' not found.\n The file is in the program because:\n Default library for target 'es5'", + "code": 6053, + "category": "error" + }, + { + "text": "Cannot find global type 'Array'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Boolean'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Function'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'IArguments'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Number'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Object'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'RegExp'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'String'.", + "code": 2318, + "category": "error" + } + ] + } } Info seq [hh:mm:ss:mss] Project '/jsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (1) diff --git a/tests/baselines/reference/tsserver/telemetry/only-sends-an-event-once.js b/tests/baselines/reference/tsserver/telemetry/only-sends-an-event-once.js index ab5b8323a6ca2..ac70263016db0 100644 --- a/tests/baselines/reference/tsserver/telemetry/only-sends-an-event-once.js +++ b/tests/baselines/reference/tsserver/telemetry/only-sends-an-event-once.js @@ -26,13 +26,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /a/tsconfig.json Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/tsconfig.json 2000 undefined Project: /a/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/a/tsconfig.json", - "reason": "Creating possible configured project for /a/a.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/a/tsconfig.json", + "reason": "Creating possible configured project for /a/a.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /a/tsconfig.json : { "rootNames": [ @@ -58,110 +58,110 @@ Info seq [hh:mm:ss:mss] Files (1) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/a/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/a/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "bcbb3eb9a7f46ab3b8f574ad3733f3e5a7ce50557c14c0c6192f1203aedcacca", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 0, - "tsx": 0, - "tsxSize": 0, - "dts": 0, - "dtsSize": 0, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": {}, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "bcbb3eb9a7f46ab3b8f574ad3733f3e5a7ce50557c14c0c6192f1203aedcacca", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 0, + "tsx": 0, + "tsxSize": 0, + "dts": 0, + "dtsSize": 0, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": {}, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/a/a.ts", - "configFile": "/a/tsconfig.json", - "diagnostics": [ - { - "text": "File '/a/lib/lib.d.ts' not found.\n The file is in the program because:\n Default library for target 'es5'", - "code": 6053, - "category": "error" - }, - { - "text": "Cannot find global type 'Array'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Boolean'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Function'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'IArguments'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Number'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Object'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'RegExp'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'String'.", - "code": 2318, - "category": "error" - } - ] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/a/a.ts", + "configFile": "/a/tsconfig.json", + "diagnostics": [ + { + "text": "File '/a/lib/lib.d.ts' not found.\n The file is in the program because:\n Default library for target 'es5'", + "code": 6053, + "category": "error" + }, + { + "text": "Cannot find global type 'Array'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Boolean'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Function'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'IArguments'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Number'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Object'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'RegExp'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'String'.", + "code": 2318, + "category": "error" + } + ] + } } Info seq [hh:mm:ss:mss] Project '/a/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (1) @@ -309,13 +309,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /a/tsconfig.json Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/tsconfig.json 2000 undefined Project: /a/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/a/tsconfig.json", - "reason": "Creating possible configured project for /a/a.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/a/tsconfig.json", + "reason": "Creating possible configured project for /a/a.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /a/tsconfig.json : { "rootNames": [ @@ -341,69 +341,69 @@ Info seq [hh:mm:ss:mss] Files (1) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/a/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/a/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/a/a.ts", - "configFile": "/a/tsconfig.json", - "diagnostics": [ - { - "text": "File '/a/lib/lib.d.ts' not found.\n The file is in the program because:\n Default library for target 'es5'", - "code": 6053, - "category": "error" - }, - { - "text": "Cannot find global type 'Array'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Boolean'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Function'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'IArguments'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Number'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Object'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'RegExp'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'String'.", - "code": 2318, - "category": "error" - } - ] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/a/a.ts", + "configFile": "/a/tsconfig.json", + "diagnostics": [ + { + "text": "File '/a/lib/lib.d.ts' not found.\n The file is in the program because:\n Default library for target 'es5'", + "code": 6053, + "category": "error" + }, + { + "text": "Cannot find global type 'Array'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Boolean'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Function'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'IArguments'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Number'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Object'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'RegExp'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'String'.", + "code": 2318, + "category": "error" + } + ] + } } Info seq [hh:mm:ss:mss] Project '/a/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (1) 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 0bab0770ebfc6..2d0e4b5db4595 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 @@ -38,10 +38,10 @@ PolledWatches:: /a/lib/lib.d.ts: *new* {"pollingInterval":500} -TI:: [hh:mm:ss:mss] Global cache location '/a/data/', safe file path '/safeList.json', types map path /typesMap.json -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Global cache location '/a/data', safe file path '/safeList.json', types map path /typesMap.json +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Trying to find '/a/data/package.json'... -TI:: [hh:mm:ss:mss] Finished processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Finished processing cache location '/a/data' TI:: [hh:mm:ss:mss] Npm config file: /a/data/package.json TI:: [hh:mm:ss:mss] Npm config file: '/a/data/package.json' is missing, creating new one... TI:: [hh:mm:ss:mss] Updating types-registry npm package... @@ -57,23 +57,78 @@ TI:: typing installer creation complete } -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject1*","fileNames":["/a.js"],"compilerOptions":{"target":1,"jsx":1,"allowNonTsExtensions":true,"allowJs":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/","cachePath":"/a/data/","kind":"discover"} -TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data/', loading cached information... -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject1*", + "fileNames": [ + "/a.js" + ], + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/", + "cachePath": "/a/data", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/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] Result: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/bower_components","/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/bower_components","/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/bower_components", + "/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject1*","files":["/bower_components","/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject1*", + "files": [ + "/bower_components", + "/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /bower_components 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /bower_components 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer 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"} + { + "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] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (1) @@ -121,22 +176,77 @@ Info seq [hh:mm:ss:mss] Files (1) Root file specified for compilation Info seq [hh:mm:ss:mss] ----------------------------------------------- -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject2*","fileNames":["/b.js"],"compilerOptions":{"target":1,"jsx":1,"allowNonTsExtensions":true,"allowJs":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/","cachePath":"/a/data/","kind":"discover"} -TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data/', loading cached information... -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject2*", + "fileNames": [ + "/b.js" + ], + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/", + "cachePath": "/a/data", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/bower_components","/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/bower_components","/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/bower_components", + "/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject2*","files":["/bower_components","/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject2*", + "files": [ + "/bower_components", + "/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /bower_components 1 undefined Project: /dev/null/inferredProject2* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /bower_components 1 undefined Project: /dev/null/inferredProject2* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /node_modules 1 undefined Project: /dev/null/inferredProject2* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /node_modules 1 undefined Project: /dev/null/inferredProject2* WatchType: Directory location for typing installer TI:: [hh:mm:ss:mss] Sending response: - {"projectName":"/dev/null/inferredProject2*","typeAcquisition":{"enable":true,"include":[],"exclude":[]},"compilerOptions":{"target":1,"jsx":1,"allowNonTsExtensions":true,"allowJs":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typings":[],"unresolvedImports":[],"kind":"action::set"} + { + "projectName": "/dev/null/inferredProject2*", + "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] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (1) diff --git a/tests/baselines/reference/tsserver/telemetry/sends-telemetry-for-extends,-files,-include,-exclude,-and-compileOnSave.js b/tests/baselines/reference/tsserver/telemetry/sends-telemetry-for-extends,-files,-include,-exclude,-and-compileOnSave.js index 7e4d67d7b1b97..3410cb1c7762a 100644 --- a/tests/baselines/reference/tsserver/telemetry/sends-telemetry-for-extends,-files,-include,-exclude,-and-compileOnSave.js +++ b/tests/baselines/reference/tsserver/telemetry/sends-telemetry-for-extends,-files,-include,-exclude,-and-compileOnSave.js @@ -23,13 +23,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /tsconfig.json Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tsconfig.json 2000 undefined Project: /tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/tsconfig.json", - "reason": "Creating possible configured project for /hunter2/a.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/tsconfig.json", + "reason": "Creating possible configured project for /hunter2/a.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /tsconfig.json : { "rootNames": [ @@ -55,124 +55,124 @@ Info seq [hh:mm:ss:mss] Files (1) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "aace87d7c1572ff43c6978074161b586788b4518c7a9d06c79c03e613b6ce5a3", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 0, - "tsx": 0, - "tsxSize": 0, - "dts": 0, - "dtsSize": 0, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": {}, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": true, - "files": true, - "include": true, - "exclude": true, - "compileOnSave": true, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "aace87d7c1572ff43c6978074161b586788b4518c7a9d06c79c03e613b6ce5a3", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 0, + "tsx": 0, + "tsxSize": 0, + "dts": 0, + "dtsSize": 0, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": {}, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": true, + "files": true, + "include": true, + "exclude": true, + "compileOnSave": true, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/hunter2/a.ts", - "configFile": "/tsconfig.json", - "diagnostics": [ - { - "text": "File '/a/lib/lib.d.ts' not found.\n The file is in the program because:\n Default library for target 'es5'", - "code": 6053, - "category": "error" - }, - { - "text": "Cannot find global type 'Array'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Boolean'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Function'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'IArguments'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Number'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Object'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'RegExp'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'String'.", - "code": 2318, - "category": "error" - }, - { - "start": { - "line": 1, - "offset": 33 - }, - "end": { - "line": 1, - "offset": 47 - }, - "text": "File 'hunter2.json' not found.", - "code": 6053, - "category": "error", - "fileName": "/tsconfig.json" - } - ] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/hunter2/a.ts", + "configFile": "/tsconfig.json", + "diagnostics": [ + { + "text": "File '/a/lib/lib.d.ts' not found.\n The file is in the program because:\n Default library for target 'es5'", + "code": 6053, + "category": "error" + }, + { + "text": "Cannot find global type 'Array'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Boolean'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Function'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'IArguments'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Number'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Object'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'RegExp'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'String'.", + "code": 2318, + "category": "error" + }, + { + "start": { + "line": 1, + "offset": 33 + }, + "end": { + "line": 1, + "offset": 47 + }, + "text": "File 'hunter2.json' not found.", + "code": 6053, + "category": "error", + "fileName": "/tsconfig.json" + } + ] + } } Info seq [hh:mm:ss:mss] Project '/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (1) 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 089249ef53272..9fdc1ea0a031b 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 @@ -26,13 +26,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /jsconfig.json Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /jsconfig.json 2000 undefined Project: /jsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/jsconfig.json", - "reason": "Creating possible configured project for /a.js to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/jsconfig.json", + "reason": "Creating possible configured project for /a.js to open" + } } Info seq [hh:mm:ss:mss] Config: /jsconfig.json : { "rootNames": [ @@ -82,10 +82,10 @@ FsWatchesRecursive:: /: *new* {} -TI:: [hh:mm:ss:mss] Global cache location '/a/data/', safe file path '/safeList.json', types map path /typesMap.json -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Global cache location '/a/data', safe file path '/safeList.json', types map path /typesMap.json +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Trying to find '/a/data/package.json'... -TI:: [hh:mm:ss:mss] Finished processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Finished processing cache location '/a/data' TI:: [hh:mm:ss:mss] Npm config file: /a/data/package.json TI:: [hh:mm:ss:mss] Npm config file: '/a/data/package.json' is missing, creating new one... Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with a :: WatchInfo: 1 undefined Config: /jsconfig.json WatchType: Wild card directory @@ -141,139 +141,197 @@ FsWatchesRecursive:: /: {} -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/jsconfig.json","fileNames":["/a.js","/b.ts"],"compilerOptions":{"allowJs":true,"maxNodeModuleJsDepth":2,"allowSyntheticDefaultImports":true,"skipLibCheck":true,"noEmit":true,"configFilePath":"/jsconfig.json","allowNonTsExtensions":true},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/","cachePath":"/a/data/","kind":"discover"} -TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data/', loading cached information... -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/jsconfig.json", + "fileNames": [ + "/a.js", + "/b.ts" + ], + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "configFilePath": "/jsconfig.json", + "allowNonTsExtensions": true + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/", + "cachePath": "/a/data", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/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] Result: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/bower_components","/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/bower_components","/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/bower_components", + "/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/jsconfig.json","files":["/bower_components","/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "/jsconfig.json", + "files": [ + "/bower_components", + "/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /bower_components 1 undefined Project: /jsconfig.json WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /bower_components 1 undefined Project: /jsconfig.json WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /node_modules 1 undefined Project: /jsconfig.json WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /node_modules 1 undefined Project: /jsconfig.json WatchType: Directory location for typing installer TI:: [hh:mm:ss:mss] Sending response: - {"projectName":"/jsconfig.json","typeAcquisition":{"enable":true,"include":[],"exclude":[]},"compilerOptions":{"allowJs":true,"maxNodeModuleJsDepth":2,"allowSyntheticDefaultImports":true,"skipLibCheck":true,"noEmit":true,"configFilePath":"/jsconfig.json","allowNonTsExtensions":true},"typings":[],"unresolvedImports":[],"kind":"action::set"} + { + "projectName": "/jsconfig.json", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "configFilePath": "/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 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/jsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/jsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "d3f7418c3d4888d0a51e42716b5a330dab4da64c452eebe918c1e0e634d8ede1", - "fileStats": { - "js": 1, - "jsSize": 1, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 2, - "tsx": 0, - "tsxSize": 0, - "dts": 0, - "dtsSize": 0, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": { - "allowJs": true, - "maxNodeModuleJsDepth": 2, - "allowSyntheticDefaultImports": true, - "skipLibCheck": true, - "noEmit": 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" + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "d3f7418c3d4888d0a51e42716b5a330dab4da64c452eebe918c1e0e634d8ede1", + "fileStats": { + "js": 1, + "jsSize": 1, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 2, + "tsx": 0, + "tsxSize": 0, + "dts": 0, + "dtsSize": 0, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": 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] Starting updateGraphWorker: Project: /jsconfig.json Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /jsconfig.json Version: 2 structureChanged: false structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Same program as before Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/a.js", - "configFile": "/jsconfig.json", - "diagnostics": [ - { - "text": "File '/a/lib/lib.d.ts' not found.\n The file is in the program because:\n Default library for target 'es5'", - "code": 6053, - "category": "error" - }, - { - "text": "Cannot find global type 'Array'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Boolean'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Function'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'IArguments'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Number'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Object'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'RegExp'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'String'.", - "code": 2318, - "category": "error" - } - ] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/a.js", + "configFile": "/jsconfig.json", + "diagnostics": [ + { + "text": "File '/a/lib/lib.d.ts' not found.\n The file is in the program because:\n Default library for target 'es5'", + "code": 6053, + "category": "error" + }, + { + "text": "Cannot find global type 'Array'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Boolean'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Function'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'IArguments'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Number'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Object'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'RegExp'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'String'.", + "code": 2318, + "category": "error" + } + ] + } } Info seq [hh:mm:ss:mss] Project '/jsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (2) 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 e20e108928c8e..82c524e3e5b71 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 @@ -23,13 +23,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /jsconfig.json Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /jsconfig.json 2000 undefined Project: /jsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/jsconfig.json", - "reason": "Creating possible configured project for /a.js to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/jsconfig.json", + "reason": "Creating possible configured project for /a.js to open" + } } Info seq [hh:mm:ss:mss] Config: /jsconfig.json : { "rootNames": [ @@ -72,10 +72,10 @@ FsWatchesRecursive:: /: *new* {} -TI:: [hh:mm:ss:mss] Global cache location '/a/data/', safe file path '/safeList.json', types map path /typesMap.json -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Global cache location '/a/data', safe file path '/safeList.json', types map path /typesMap.json +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Trying to find '/a/data/package.json'... -TI:: [hh:mm:ss:mss] Finished processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Finished processing cache location '/a/data' TI:: [hh:mm:ss:mss] Npm config file: /a/data/package.json TI:: [hh:mm:ss:mss] Npm config file: '/a/data/package.json' is missing, creating new one... Info seq [hh:mm:ss:mss] DirectoryWatcher:: Triggered with a :: WatchInfo: 1 undefined Config: /jsconfig.json WatchType: Wild card directory @@ -129,17 +129,61 @@ FsWatchesRecursive:: /: {} -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/jsconfig.json","fileNames":["/a.js"],"compilerOptions":{"allowJs":true,"maxNodeModuleJsDepth":2,"allowSyntheticDefaultImports":true,"skipLibCheck":true,"noEmit":true,"configFilePath":"/jsconfig.json","allowNonTsExtensions":true},"typeAcquisition":{"enable":true,"include":["hunter2","hunter3"],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/","cachePath":"/a/data/","kind":"discover"} -TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data/', loading cached information... -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/jsconfig.json", + "fileNames": [ + "/a.js" + ], + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "configFilePath": "/jsconfig.json", + "allowNonTsExtensions": true + }, + "typeAcquisition": { + "enable": true, + "include": [ + "hunter2", + "hunter3" + ], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/", + "cachePath": "/a/data", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/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] Result: {"cachedTypingPaths":[],"newTypingNames":["hunter2","hunter3"],"filesToWatch":["/bower_components","/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":["hunter2","hunter3"],"filesToWatch":["/bower_components","/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "hunter2", + "hunter3" + ], + "filesToWatch": [ + "/bower_components", + "/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/jsconfig.json","files":["/bower_components","/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "/jsconfig.json", + "files": [ + "/bower_components", + "/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /bower_components 1 undefined Project: /jsconfig.json WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /bower_components 1 undefined Project: /jsconfig.json WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /node_modules 1 undefined Project: /jsconfig.json WatchType: Directory location for typing installer @@ -149,122 +193,144 @@ TI:: [hh:mm:ss:mss] 'hunter2':: Entry for package 'hunter2' does not exist in lo TI:: [hh:mm:ss:mss] 'hunter3':: Entry for package 'hunter3' does not exist in local types registry - 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":"/jsconfig.json","typeAcquisition":{"enable":true,"include":["hunter2","hunter3"],"exclude":[]},"compilerOptions":{"allowJs":true,"maxNodeModuleJsDepth":2,"allowSyntheticDefaultImports":true,"skipLibCheck":true,"noEmit":true,"configFilePath":"/jsconfig.json","allowNonTsExtensions":true},"typings":[],"unresolvedImports":[],"kind":"action::set"} -Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/jsconfig.json" - } - } -Info seq [hh:mm:ss:mss] event: - { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "d3f7418c3d4888d0a51e42716b5a330dab4da64c452eebe918c1e0e634d8ede1", - "fileStats": { - "js": 1, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 0, - "tsSize": 0, - "tsx": 0, - "tsxSize": 0, - "dts": 0, - "dtsSize": 0, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": { + "projectName": "/jsconfig.json", + "typeAcquisition": { + "enable": true, + "include": [ + "hunter2", + "hunter3" + ], + "exclude": [] + }, + "compilerOptions": { "allowJs": true, "maxNodeModuleJsDepth": 2, "allowSyntheticDefaultImports": true, "skipLibCheck": true, - "noEmit": true - }, - "typeAcquisition": { - "enable": true, - "include": true, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "jsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "noEmit": true, + "configFilePath": "/jsconfig.json", + "allowNonTsExtensions": true + }, + "typings": [], + "unresolvedImports": [], + "kind": "action::set" + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/jsconfig.json" + } + } +Info seq [hh:mm:ss:mss] event: + { + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "d3f7418c3d4888d0a51e42716b5a330dab4da64c452eebe918c1e0e634d8ede1", + "fileStats": { + "js": 1, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 0, + "tsSize": 0, + "tsx": 0, + "tsxSize": 0, + "dts": 0, + "dtsSize": 0, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true + }, + "typeAcquisition": { + "enable": true, + "include": true, + "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] Starting updateGraphWorker: Project: /jsconfig.json Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /jsconfig.json Version: 2 structureChanged: false structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Same program as before Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/a.js", - "configFile": "/jsconfig.json", - "diagnostics": [ - { - "text": "File '/a/lib/lib.d.ts' not found.\n The file is in the program because:\n Default library for target 'es5'", - "code": 6053, - "category": "error" - }, - { - "text": "Cannot find global type 'Array'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Boolean'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Function'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'IArguments'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Number'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'Object'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'RegExp'.", - "code": 2318, - "category": "error" - }, - { - "text": "Cannot find global type 'String'.", - "code": 2318, - "category": "error" - } - ] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/a.js", + "configFile": "/jsconfig.json", + "diagnostics": [ + { + "text": "File '/a/lib/lib.d.ts' not found.\n The file is in the program because:\n Default library for target 'es5'", + "code": 6053, + "category": "error" + }, + { + "text": "Cannot find global type 'Array'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Boolean'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Function'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'IArguments'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Number'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'Object'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'RegExp'.", + "code": 2318, + "category": "error" + }, + { + "text": "Cannot find global type 'String'.", + "code": 2318, + "category": "error" + } + ] + } } Info seq [hh:mm:ss:mss] Project '/jsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (1) diff --git a/tests/baselines/reference/tsserver/telemetry/works-with-external-project.js b/tests/baselines/reference/tsserver/telemetry/works-with-external-project.js index 366eae38e337a..5782f882049d9 100644 --- a/tests/baselines/reference/tsserver/telemetry/works-with-external-project.js +++ b/tests/baselines/reference/tsserver/telemetry/works-with-external-project.js @@ -37,42 +37,42 @@ Info seq [hh:mm:ss:mss] Files (1) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "ef055f5036459f2705212d5657970dd7bc0280bdb6fa2cddd17d0cd73eb2a989", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 0, - "tsx": 0, - "tsxSize": 0, - "dts": 0, - "dtsSize": 0, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": { - "strict": true - }, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "compileOnSave": true, - "configFileName": "other", - "projectType": "external", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "ef055f5036459f2705212d5657970dd7bc0280bdb6fa2cddd17d0cd73eb2a989", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 0, + "tsx": 0, + "tsxSize": 0, + "dts": 0, + "dtsSize": 0, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "strict": true + }, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "compileOnSave": true, + "configFileName": "other", + "projectType": "external", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } - } } Info seq [hh:mm:ss:mss] response: { diff --git a/tests/baselines/reference/tsserver/tsserver/resolves-the-symlink-path.js b/tests/baselines/reference/tsserver/tsserver/resolves-the-symlink-path.js index a33bbe2ca9bcb..38097ef2a8383 100644 --- a/tests/baselines/reference/tsserver/tsserver/resolves-the-symlink-path.js +++ b/tests/baselines/reference/tsserver/tsserver/resolves-the-symlink-path.js @@ -45,13 +45,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /users/user/projects/myp Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /users/user/projects/myproject/src/tsconfig.json 2000 undefined Project: /users/user/projects/myproject/src/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/users/user/projects/myproject/src/tsconfig.json", - "reason": "Creating possible configured project for /users/user/projects/myproject/src/index.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/users/user/projects/myproject/src/tsconfig.json", + "reason": "Creating possible configured project for /users/user/projects/myproject/src/index.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /users/user/projects/myproject/src/tsconfig.json : { "rootNames": [ @@ -90,67 +90,67 @@ Info seq [hh:mm:ss:mss] Files (2) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/users/user/projects/myproject/src/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/users/user/projects/myproject/src/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "76e1e6d2d13c83a9d2d8c2e5a527acf3bddb950312dc88f9e3cb7bb546d3f955", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 37, - "tsx": 0, - "tsxSize": 0, - "dts": 1, - "dtsSize": 334, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": { - "composite": true, - "removeComments": true - }, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": true, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "76e1e6d2d13c83a9d2d8c2e5a527acf3bddb950312dc88f9e3cb7bb546d3f955", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 37, + "tsx": 0, + "tsxSize": 0, + "dts": 1, + "dtsSize": 334, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": { + "composite": true, + "removeComments": true + }, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": true, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.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/myproject/src/index.ts", - "configFile": "/users/user/projects/myproject/src/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/users/user/projects/myproject/src/index.ts", + "configFile": "/users/user/projects/myproject/src/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Search path: /users/user/projects/myproject/src Info seq [hh:mm:ss:mss] For info: /users/user/projects/myproject/src/tsconfig.json :: No config files found. 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 3c96865ca3154..dd7ac3a593b66 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 @@ -81,7 +81,31 @@ TI:: typing installer creation complete } -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/a/b/jsconfig.json","fileNames":["/a/b/app.js"],"compilerOptions":{"allowJs":true,"maxNodeModuleJsDepth":2,"allowSyntheticDefaultImports":true,"skipLibCheck":true,"noEmit":true,"configFilePath":"/a/b/jsconfig.json","allowNonTsExtensions":true},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/a/b","cachePath":"/a/typings","kind":"discover"} +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/a/b/jsconfig.json", + "fileNames": [ + "/a/b/app.js" + ], + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "configFilePath": "/a/b/jsconfig.json", + "allowNonTsExtensions": true + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/a/b", + "cachePath": "/a/typings", + "kind": "discover" + } TI:: [hh:mm:ss:mss] Request specifies cache path '/a/typings', loading cached information... TI:: [hh:mm:ss:mss] Processing cache location '/a/typings' TI:: [hh:mm:ss:mss] Cache location was already processed... @@ -90,16 +114,49 @@ TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Searching for typing names in /a/b/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] Result: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/a/b/bower_components","/a/b/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/a/b/bower_components","/a/b/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/a/b/jsconfig.json","files":["/a/b/bower_components","/a/b/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "/a/b/jsconfig.json", + "files": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /a/b/bower_components 1 undefined Project: /a/b/jsconfig.json WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a/b/bower_components 1 undefined Project: /a/b/jsconfig.json WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /a/b/node_modules 1 undefined Project: /a/b/jsconfig.json WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a/b/node_modules 1 undefined Project: /a/b/jsconfig.json WatchType: Directory location for typing installer TI:: [hh:mm:ss:mss] Sending response: - {"projectName":"/a/b/jsconfig.json","typeAcquisition":{"enable":true,"include":[],"exclude":[]},"compilerOptions":{"allowJs":true,"maxNodeModuleJsDepth":2,"allowSyntheticDefaultImports":true,"skipLibCheck":true,"noEmit":true,"configFilePath":"/a/b/jsconfig.json","allowNonTsExtensions":true},"typings":[],"unresolvedImports":[],"kind":"action::set"} + { + "projectName": "/a/b/jsconfig.json", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "configFilePath": "/a/b/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 Info seq [hh:mm:ss:mss] Project '/a/b/jsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (2) diff --git a/tests/baselines/reference/tsserver/typingsInstaller/cached-unresolved-typings-are-not-recomputed-if-program-structure-did-not-change.js b/tests/baselines/reference/tsserver/typingsInstaller/cached-unresolved-typings-are-not-recomputed-if-program-structure-did-not-change.js index ec144fd0ac14c..3cb44f45e6743 100644 --- a/tests/baselines/reference/tsserver/typingsInstaller/cached-unresolved-typings-are-not-recomputed-if-program-structure-did-not-change.js +++ b/tests/baselines/reference/tsserver/typingsInstaller/cached-unresolved-typings-are-not-recomputed-if-program-structure-did-not-change.js @@ -32,10 +32,10 @@ PolledWatches:: /a/lib/lib.d.ts: *new* {"pollingInterval":500} -TI:: [hh:mm:ss:mss] Global cache location '/a/data/', safe file path '/safeList.json', types map path /typesMap.json -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Global cache location '/a/data', safe file path '/safeList.json', types map path /typesMap.json +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Trying to find '/a/data/package.json'... -TI:: [hh:mm:ss:mss] Finished processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Finished processing cache location '/a/data' TI:: [hh:mm:ss:mss] Npm config file: /a/data/package.json TI:: [hh:mm:ss:mss] Npm config file: '/a/data/package.json' is missing, creating new one... TI:: [hh:mm:ss:mss] Updating types-registry npm package... @@ -51,17 +51,60 @@ TI:: typing installer creation complete } -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject1*","fileNames":["/a/app.js"],"compilerOptions":{"target":1,"jsx":1,"allowNonTsExtensions":true,"allowJs":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":["commander","fs"],"projectRootPath":"/a","cachePath":"/a/data/","kind":"discover"} -TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data/', loading cached information... -TI:: [hh:mm:ss:mss] Processing cache location '/a/data/' +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject1*", + "fileNames": [ + "/a/app.js" + ], + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [ + "commander", + "fs" + ], + "projectRootPath": "/a", + "cachePath": "/a/data", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... +TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/typesMap.json' TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["commander","node"] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":["commander","node"],"filesToWatch":["/a/bower_components","/a/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":["commander","node"],"filesToWatch":["/a/bower_components","/a/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "commander", + "node" + ], + "filesToWatch": [ + "/a/bower_components", + "/a/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject1*","files":["/a/bower_components","/a/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject1*", + "files": [ + "/a/bower_components", + "/a/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /a/bower_components 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a/bower_components 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /a/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer @@ -71,7 +114,28 @@ TI:: [hh:mm:ss:mss] 'commander':: Entry for package 'commander' does not exist i TI:: [hh:mm:ss:mss] 'node':: Entry for package 'node' does not exist in local types registry - 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":["commander","fs"],"kind":"action::set"} + { + "projectName": "/dev/null/inferredProject1*", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typings": [], + "unresolvedImports": [ + "commander", + "fs" + ], + "kind": "action::set" + } Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (1) 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 dbd14a5ff83b9..dd8718de6da74 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 @@ -124,7 +124,31 @@ FsWatchesRecursive:: /: {} -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/jsconfig.json","fileNames":["/app.js"],"compilerOptions":{"allowJs":true,"maxNodeModuleJsDepth":2,"allowSyntheticDefaultImports":true,"skipLibCheck":true,"noEmit":true,"configFilePath":"/jsconfig.json","allowNonTsExtensions":true},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/","cachePath":"/tmp","kind":"discover"} +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/jsconfig.json", + "fileNames": [ + "/app.js" + ], + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "configFilePath": "/jsconfig.json", + "allowNonTsExtensions": true + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/", + "cachePath": "/tmp", + "kind": "discover" + } TI:: [hh:mm:ss:mss] Request specifies cache path '/tmp', loading cached information... TI:: [hh:mm:ss:mss] Processing cache location '/tmp' TI:: [hh:mm:ss:mss] Cache location was already processed... @@ -133,10 +157,26 @@ TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Searching for typing names in /bower_components; all files: ["/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] Result: {"cachedTypingPaths":[],"newTypingNames":["jquery"],"filesToWatch":["/bower_components","/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":["jquery"],"filesToWatch":["/bower_components","/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "jquery" + ], + "filesToWatch": [ + "/bower_components", + "/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/jsconfig.json","files":["/bower_components","/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "/jsconfig.json", + "files": [ + "/bower_components", + "/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /bower_components 1 undefined Project: /jsconfig.json WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /bower_components 1 undefined Project: /jsconfig.json WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /node_modules 1 undefined Project: /jsconfig.json WatchType: Directory location for typing installer @@ -144,7 +184,12 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /no TI:: [hh:mm:ss:mss] Installing typings ["jquery"] TI:: [hh:mm:ss:mss] Npm config file: /tmp/package.json TI:: [hh:mm:ss:mss] Sending response: - {"kind":"event::beginInstallTypes","eventId":1,"typingsInstallerVersion":"FakeVersion","projectName":"/jsconfig.json"} + { + "kind": "event::beginInstallTypes", + "eventId": 1, + "typingsInstallerVersion": "FakeVersion", + "projectName": "/jsconfig.json" + } TI:: [hh:mm:ss:mss] #1 with arguments'["@types/jquery@tsFakeMajor.Minor"]'. Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /jsconfig.json Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /jsconfig.json Version: 2 structureChanged: false structureIsReused:: Not Elapsed:: *ms @@ -197,11 +242,41 @@ TI:: After installWorker TI:: [hh:mm:ss:mss] Installed typings ["@types/jquery@tsFakeMajor.Minor"] TI:: [hh:mm:ss:mss] Installed typing files ["/tmp/node_modules/@types/jquery/index.d.ts"] TI:: [hh:mm:ss:mss] Sending response: - {"projectName":"/jsconfig.json","typeAcquisition":{"enable":true,"include":[],"exclude":[]},"compilerOptions":{"allowJs":true,"maxNodeModuleJsDepth":2,"allowSyntheticDefaultImports":true,"skipLibCheck":true,"noEmit":true,"configFilePath":"/jsconfig.json","allowNonTsExtensions":true},"typings":["/tmp/node_modules/@types/jquery/index.d.ts"],"unresolvedImports":[],"kind":"action::set"} + { + "projectName": "/jsconfig.json", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "configFilePath": "/jsconfig.json", + "allowNonTsExtensions": true + }, + "typings": [ + "/tmp/node_modules/@types/jquery/index.d.ts" + ], + "unresolvedImports": [], + "kind": "action::set" + } Info seq [hh:mm:ss:mss] Scheduled: /jsconfig.json, Cancelled earlier one Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles*, Cancelled earlier one TI:: [hh:mm:ss:mss] Sending response: - {"kind":"event::endInstallTypes","eventId":1,"projectName":"/jsconfig.json","packagesToInstall":["@types/jquery@tsFakeMajor.Minor"],"installSuccess":true,"typingsInstallerVersion":"FakeVersion"} + { + "kind": "event::endInstallTypes", + "eventId": 1, + "projectName": "/jsconfig.json", + "packagesToInstall": [ + "@types/jquery@tsFakeMajor.Minor" + ], + "installSuccess": true, + "typingsInstallerVersion": "FakeVersion" + } Before running Timeout callback:: count: 2 13: /jsconfig.json 14: *ensureProjectForOpenFiles* @@ -221,7 +296,32 @@ Info seq [hh:mm:ss:mss] Files (2) Matched by default include pattern '**/*' Info seq [hh:mm:ss:mss] ----------------------------------------------- -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/jsconfig.json","fileNames":["/app.js","/tmp/node_modules/@types/jquery/index.d.ts"],"compilerOptions":{"allowJs":true,"maxNodeModuleJsDepth":2,"allowSyntheticDefaultImports":true,"skipLibCheck":true,"noEmit":true,"configFilePath":"/jsconfig.json","allowNonTsExtensions":true},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/","cachePath":"/tmp","kind":"discover"} +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/jsconfig.json", + "fileNames": [ + "/app.js", + "/tmp/node_modules/@types/jquery/index.d.ts" + ], + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "configFilePath": "/jsconfig.json", + "allowNonTsExtensions": true + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/", + "cachePath": "/tmp", + "kind": "discover" + } TI:: [hh:mm:ss:mss] Request specifies cache path '/tmp', loading cached information... TI:: [hh:mm:ss:mss] Processing cache location '/tmp' TI:: [hh:mm:ss:mss] Cache location was already processed... @@ -229,12 +329,45 @@ TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Searching for typing names in /bower_components; all files: ["/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] Result: {"cachedTypingPaths":["/tmp/node_modules/@types/jquery/index.d.ts"],"newTypingNames":[],"filesToWatch":["/bower_components","/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":["/tmp/node_modules/@types/jquery/index.d.ts"],"newTypingNames":[],"filesToWatch":["/bower_components","/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [ + "/tmp/node_modules/@types/jquery/index.d.ts" + ], + "newTypingNames": [], + "filesToWatch": [ + "/bower_components", + "/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/jsconfig.json"} + { + "kind": "action::watchTypingLocations", + "projectName": "/jsconfig.json" + } TI:: [hh:mm:ss:mss] Sending response: - {"projectName":"/jsconfig.json","typeAcquisition":{"enable":true,"include":[],"exclude":[]},"compilerOptions":{"allowJs":true,"maxNodeModuleJsDepth":2,"allowSyntheticDefaultImports":true,"skipLibCheck":true,"noEmit":true,"configFilePath":"/jsconfig.json","allowNonTsExtensions":true},"typings":["/tmp/node_modules/@types/jquery/index.d.ts"],"unresolvedImports":[],"kind":"action::set"} + { + "projectName": "/jsconfig.json", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "configFilePath": "/jsconfig.json", + "allowNonTsExtensions": true + }, + "typings": [ + "/tmp/node_modules/@types/jquery/index.d.ts" + ], + "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] Running: *ensureProjectForOpenFiles* Info seq [hh:mm:ss:mss] Before ensureProjectForOpenFiles: diff --git a/tests/baselines/reference/tsserver/typingsInstaller/configured-projects.js b/tests/baselines/reference/tsserver/typingsInstaller/configured-projects.js index 61044d7c076a0..0ba070fdbf86d 100644 --- a/tests/baselines/reference/tsserver/typingsInstaller/configured-projects.js +++ b/tests/baselines/reference/tsserver/typingsInstaller/configured-projects.js @@ -83,7 +83,27 @@ TI:: typing installer creation complete } -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/a/b/tsconfig.json","fileNames":["/a/b/app.js"],"compilerOptions":{"allowJs":true,"configFilePath":"/a/b/tsconfig.json","allowNonTsExtensions":true},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/a/b","cachePath":"/a/data","kind":"discover"} +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/a/b/tsconfig.json", + "fileNames": [ + "/a/b/app.js" + ], + "compilerOptions": { + "allowJs": true, + "configFilePath": "/a/b/tsconfig.json", + "allowNonTsExtensions": true + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/a/b", + "cachePath": "/a/data", + "kind": "discover" + } TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... @@ -91,10 +111,28 @@ TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/typesMap.json' TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Typing names in '/a/b/package.json' dependencies: ["jquery"] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":["jquery"],"filesToWatch":["/a/b/bower_components","/a/b/package.json","/a/b/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":["jquery"],"filesToWatch":["/a/b/bower_components","/a/b/package.json","/a/b/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "jquery" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/package.json", + "/a/b/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/a/b/tsconfig.json","files":["/a/b/bower_components","/a/b/package.json","/a/b/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "/a/b/tsconfig.json", + "files": [ + "/a/b/bower_components", + "/a/b/package.json", + "/a/b/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /a/b/bower_components 1 undefined Project: /a/b/tsconfig.json WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a/b/bower_components 1 undefined Project: /a/b/tsconfig.json WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/b/package.json 2000 undefined Project: /a/b/tsconfig.json WatchType: File location for typing installer @@ -103,7 +141,12 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a/ TI:: [hh:mm:ss:mss] Installing typings ["jquery"] TI:: [hh:mm:ss:mss] Npm config file: /a/data/package.json TI:: [hh:mm:ss:mss] Sending response: - {"kind":"event::beginInstallTypes","eventId":1,"typingsInstallerVersion":"FakeVersion","projectName":"/a/b/tsconfig.json"} + { + "kind": "event::beginInstallTypes", + "eventId": 1, + "typingsInstallerVersion": "FakeVersion", + "projectName": "/a/b/tsconfig.json" + } TI:: [hh:mm:ss:mss] #1 with arguments'["@types/jquery@tsFakeMajor.Minor"]'. Info seq [hh:mm:ss:mss] Project '/a/b/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (1) @@ -141,11 +184,37 @@ declare const $: { x: number } TI:: [hh:mm:ss:mss] Installed typings ["@types/jquery@tsFakeMajor.Minor"] TI:: [hh:mm:ss:mss] Installed typing files ["/a/data/node_modules/@types/jquery/index.d.ts"] TI:: [hh:mm:ss:mss] Sending response: - {"projectName":"/a/b/tsconfig.json","typeAcquisition":{"enable":true,"include":[],"exclude":[]},"compilerOptions":{"allowJs":true,"configFilePath":"/a/b/tsconfig.json","allowNonTsExtensions":true},"typings":["/a/data/node_modules/@types/jquery/index.d.ts"],"unresolvedImports":[],"kind":"action::set"} + { + "projectName": "/a/b/tsconfig.json", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "configFilePath": "/a/b/tsconfig.json", + "allowNonTsExtensions": true + }, + "typings": [ + "/a/data/node_modules/@types/jquery/index.d.ts" + ], + "unresolvedImports": [], + "kind": "action::set" + } Info seq [hh:mm:ss:mss] Scheduled: /a/b/tsconfig.json Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles* TI:: [hh:mm:ss:mss] Sending response: - {"kind":"event::endInstallTypes","eventId":1,"projectName":"/a/b/tsconfig.json","packagesToInstall":["@types/jquery@tsFakeMajor.Minor"],"installSuccess":true,"typingsInstallerVersion":"FakeVersion"} + { + "kind": "event::endInstallTypes", + "eventId": 1, + "projectName": "/a/b/tsconfig.json", + "packagesToInstall": [ + "@types/jquery@tsFakeMajor.Minor" + ], + "installSuccess": true, + "typingsInstallerVersion": "FakeVersion" + } Before running Timeout callback:: count: 2 1: /a/b/tsconfig.json 2: *ensureProjectForOpenFiles* @@ -165,19 +234,70 @@ Info seq [hh:mm:ss:mss] Files (2) Matched by default include pattern '**/*' Info seq [hh:mm:ss:mss] ----------------------------------------------- -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/a/b/tsconfig.json","fileNames":["/a/b/app.js","/a/data/node_modules/@types/jquery/index.d.ts"],"compilerOptions":{"allowJs":true,"configFilePath":"/a/b/tsconfig.json","allowNonTsExtensions":true},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/a/b","cachePath":"/a/data","kind":"discover"} +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/a/b/tsconfig.json", + "fileNames": [ + "/a/b/app.js", + "/a/data/node_modules/@types/jquery/index.d.ts" + ], + "compilerOptions": { + "allowJs": true, + "configFilePath": "/a/b/tsconfig.json", + "allowNonTsExtensions": true + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/a/b", + "cachePath": "/a/data", + "kind": "discover" + } TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Typing names in '/a/b/package.json' dependencies: ["jquery"] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":["/a/data/node_modules/@types/jquery/index.d.ts"],"newTypingNames":[],"filesToWatch":["/a/b/bower_components","/a/b/package.json","/a/b/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":["/a/data/node_modules/@types/jquery/index.d.ts"],"newTypingNames":[],"filesToWatch":["/a/b/bower_components","/a/b/package.json","/a/b/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [ + "/a/data/node_modules/@types/jquery/index.d.ts" + ], + "newTypingNames": [], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/package.json", + "/a/b/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/a/b/tsconfig.json"} + { + "kind": "action::watchTypingLocations", + "projectName": "/a/b/tsconfig.json" + } TI:: [hh:mm:ss:mss] Sending response: - {"projectName":"/a/b/tsconfig.json","typeAcquisition":{"enable":true,"include":[],"exclude":[]},"compilerOptions":{"allowJs":true,"configFilePath":"/a/b/tsconfig.json","allowNonTsExtensions":true},"typings":["/a/data/node_modules/@types/jquery/index.d.ts"],"unresolvedImports":[],"kind":"action::set"} + { + "projectName": "/a/b/tsconfig.json", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "configFilePath": "/a/b/tsconfig.json", + "allowNonTsExtensions": true + }, + "typings": [ + "/a/data/node_modules/@types/jquery/index.d.ts" + ], + "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] Running: *ensureProjectForOpenFiles* Info seq [hh:mm:ss:mss] Before ensureProjectForOpenFiles: diff --git a/tests/baselines/reference/tsserver/typingsInstaller/discover-from-bower.js b/tests/baselines/reference/tsserver/typingsInstaller/discover-from-bower.js index 05abf430c6853..60f5dc07b4680 100644 --- a/tests/baselines/reference/tsserver/typingsInstaller/discover-from-bower.js +++ b/tests/baselines/reference/tsserver/typingsInstaller/discover-from-bower.js @@ -121,7 +121,31 @@ FsWatchesRecursive:: /: {} -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/jsconfig.json","fileNames":["/app.js"],"compilerOptions":{"allowJs":true,"maxNodeModuleJsDepth":2,"allowSyntheticDefaultImports":true,"skipLibCheck":true,"noEmit":true,"configFilePath":"/jsconfig.json","allowNonTsExtensions":true},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/","cachePath":"/tmp","kind":"discover"} +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/jsconfig.json", + "fileNames": [ + "/app.js" + ], + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "configFilePath": "/jsconfig.json", + "allowNonTsExtensions": true + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/", + "cachePath": "/tmp", + "kind": "discover" + } TI:: [hh:mm:ss:mss] Request specifies cache path '/tmp', loading cached information... TI:: [hh:mm:ss:mss] Processing cache location '/tmp' TI:: [hh:mm:ss:mss] Cache location was already processed... @@ -129,10 +153,28 @@ TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/typesMap.json' TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Typing names in '/bower.json' dependencies: ["jquery"] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":["jquery"],"filesToWatch":["/bower.json","/bower_components","/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":["jquery"],"filesToWatch":["/bower.json","/bower_components","/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "jquery" + ], + "filesToWatch": [ + "/bower.json", + "/bower_components", + "/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/jsconfig.json","files":["/bower.json","/bower_components","/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "/jsconfig.json", + "files": [ + "/bower.json", + "/bower_components", + "/node_modules" + ] + } Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /bower.json 2000 undefined Project: /jsconfig.json WatchType: File location for typing installer Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /bower_components 1 undefined Project: /jsconfig.json WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /bower_components 1 undefined Project: /jsconfig.json WatchType: Directory location for typing installer @@ -141,7 +183,12 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /no TI:: [hh:mm:ss:mss] Installing typings ["jquery"] TI:: [hh:mm:ss:mss] Npm config file: /tmp/package.json TI:: [hh:mm:ss:mss] Sending response: - {"kind":"event::beginInstallTypes","eventId":1,"typingsInstallerVersion":"FakeVersion","projectName":"/jsconfig.json"} + { + "kind": "event::beginInstallTypes", + "eventId": 1, + "typingsInstallerVersion": "FakeVersion", + "projectName": "/jsconfig.json" + } TI:: [hh:mm:ss:mss] #1 with arguments'["@types/jquery@tsFakeMajor.Minor"]'. Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /jsconfig.json Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /jsconfig.json Version: 2 structureChanged: false structureIsReused:: Not Elapsed:: *ms @@ -196,11 +243,41 @@ TI:: After installWorker TI:: [hh:mm:ss:mss] Installed typings ["@types/jquery@tsFakeMajor.Minor"] TI:: [hh:mm:ss:mss] Installed typing files ["/tmp/node_modules/@types/jquery/index.d.ts"] TI:: [hh:mm:ss:mss] Sending response: - {"projectName":"/jsconfig.json","typeAcquisition":{"enable":true,"include":[],"exclude":[]},"compilerOptions":{"allowJs":true,"maxNodeModuleJsDepth":2,"allowSyntheticDefaultImports":true,"skipLibCheck":true,"noEmit":true,"configFilePath":"/jsconfig.json","allowNonTsExtensions":true},"typings":["/tmp/node_modules/@types/jquery/index.d.ts"],"unresolvedImports":[],"kind":"action::set"} + { + "projectName": "/jsconfig.json", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "configFilePath": "/jsconfig.json", + "allowNonTsExtensions": true + }, + "typings": [ + "/tmp/node_modules/@types/jquery/index.d.ts" + ], + "unresolvedImports": [], + "kind": "action::set" + } Info seq [hh:mm:ss:mss] Scheduled: /jsconfig.json, Cancelled earlier one Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles*, Cancelled earlier one TI:: [hh:mm:ss:mss] Sending response: - {"kind":"event::endInstallTypes","eventId":1,"projectName":"/jsconfig.json","packagesToInstall":["@types/jquery@tsFakeMajor.Minor"],"installSuccess":true,"typingsInstallerVersion":"FakeVersion"} + { + "kind": "event::endInstallTypes", + "eventId": 1, + "projectName": "/jsconfig.json", + "packagesToInstall": [ + "@types/jquery@tsFakeMajor.Minor" + ], + "installSuccess": true, + "typingsInstallerVersion": "FakeVersion" + } Before running Timeout callback:: count: 2 13: /jsconfig.json 14: *ensureProjectForOpenFiles* @@ -220,19 +297,78 @@ Info seq [hh:mm:ss:mss] Files (2) Matched by default include pattern '**/*' Info seq [hh:mm:ss:mss] ----------------------------------------------- -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/jsconfig.json","fileNames":["/app.js","/tmp/node_modules/@types/jquery/index.d.ts"],"compilerOptions":{"allowJs":true,"maxNodeModuleJsDepth":2,"allowSyntheticDefaultImports":true,"skipLibCheck":true,"noEmit":true,"configFilePath":"/jsconfig.json","allowNonTsExtensions":true},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/","cachePath":"/tmp","kind":"discover"} +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/jsconfig.json", + "fileNames": [ + "/app.js", + "/tmp/node_modules/@types/jquery/index.d.ts" + ], + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "configFilePath": "/jsconfig.json", + "allowNonTsExtensions": true + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/", + "cachePath": "/tmp", + "kind": "discover" + } TI:: [hh:mm:ss:mss] Request specifies cache path '/tmp', loading cached information... TI:: [hh:mm:ss:mss] Processing cache location '/tmp' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Typing names in '/bower.json' dependencies: ["jquery"] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":["/tmp/node_modules/@types/jquery/index.d.ts"],"newTypingNames":[],"filesToWatch":["/bower.json","/bower_components","/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":["/tmp/node_modules/@types/jquery/index.d.ts"],"newTypingNames":[],"filesToWatch":["/bower.json","/bower_components","/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [ + "/tmp/node_modules/@types/jquery/index.d.ts" + ], + "newTypingNames": [], + "filesToWatch": [ + "/bower.json", + "/bower_components", + "/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/jsconfig.json"} + { + "kind": "action::watchTypingLocations", + "projectName": "/jsconfig.json" + } TI:: [hh:mm:ss:mss] Sending response: - {"projectName":"/jsconfig.json","typeAcquisition":{"enable":true,"include":[],"exclude":[]},"compilerOptions":{"allowJs":true,"maxNodeModuleJsDepth":2,"allowSyntheticDefaultImports":true,"skipLibCheck":true,"noEmit":true,"configFilePath":"/jsconfig.json","allowNonTsExtensions":true},"typings":["/tmp/node_modules/@types/jquery/index.d.ts"],"unresolvedImports":[],"kind":"action::set"} + { + "projectName": "/jsconfig.json", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "configFilePath": "/jsconfig.json", + "allowNonTsExtensions": true + }, + "typings": [ + "/tmp/node_modules/@types/jquery/index.d.ts" + ], + "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] Running: *ensureProjectForOpenFiles* Info seq [hh:mm:ss:mss] Before ensureProjectForOpenFiles: 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 9d12b2dc34a13..d55ecddf9bec1 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 @@ -168,21 +168,59 @@ FsWatchesRecursive:: /node_modules: {} -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/jsconfig.json","fileNames":["/app.js"],"compilerOptions":{"allowJs":true,"maxNodeModuleJsDepth":2,"allowSyntheticDefaultImports":true,"skipLibCheck":true,"noEmit":true,"types":[],"configFilePath":"/jsconfig.json","allowNonTsExtensions":true},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":["jquery"],"projectRootPath":"/","cachePath":"/tmp","kind":"discover"} +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/jsconfig.json", + "fileNames": [ + "/app.js" + ], + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "types": [], + "configFilePath": "/jsconfig.json", + "allowNonTsExtensions": true + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [ + "jquery" + ], + "projectRootPath": "/", + "cachePath": "/tmp", + "kind": "discover" + } TI:: [hh:mm:ss:mss] Request specifies cache path '/tmp', loading cached information... TI:: [hh:mm:ss:mss] Processing cache location '/tmp' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/typesMap.json' TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["jquery"] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":["jquery"],"filesToWatch":[]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":["jquery"],"filesToWatch":[]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "jquery" + ], + "filesToWatch": [] + } TI:: [hh:mm:ss:mss] Closing file watchers for project '/jsconfig.json' TI:: [hh:mm:ss:mss] No watchers are registered for project '/jsconfig.json' TI:: [hh:mm:ss:mss] Installing typings ["jquery"] TI:: [hh:mm:ss:mss] Npm config file: /tmp/package.json TI:: [hh:mm:ss:mss] Sending response: - {"kind":"event::beginInstallTypes","eventId":1,"typingsInstallerVersion":"FakeVersion","projectName":"/jsconfig.json"} + { + "kind": "event::beginInstallTypes", + "eventId": 1, + "typingsInstallerVersion": "FakeVersion", + "projectName": "/jsconfig.json" + } TI:: [hh:mm:ss:mss] #1 with arguments'["@types/jquery@tsFakeMajor.Minor"]'. Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /package.json 250 undefined WatchType: package.json file Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /jsconfig.json @@ -236,11 +274,44 @@ TI:: After installWorker TI:: [hh:mm:ss:mss] Installed typings ["@types/jquery@tsFakeMajor.Minor"] TI:: [hh:mm:ss:mss] Installed typing files ["/tmp/node_modules/@types/jquery/index.d.ts"] TI:: [hh:mm:ss:mss] Sending response: - {"projectName":"/jsconfig.json","typeAcquisition":{"enable":true,"include":[],"exclude":[]},"compilerOptions":{"allowJs":true,"maxNodeModuleJsDepth":2,"allowSyntheticDefaultImports":true,"skipLibCheck":true,"noEmit":true,"types":[],"configFilePath":"/jsconfig.json","allowNonTsExtensions":true},"typings":["/tmp/node_modules/@types/jquery/index.d.ts"],"unresolvedImports":["jquery"],"kind":"action::set"} + { + "projectName": "/jsconfig.json", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "types": [], + "configFilePath": "/jsconfig.json", + "allowNonTsExtensions": true + }, + "typings": [ + "/tmp/node_modules/@types/jquery/index.d.ts" + ], + "unresolvedImports": [ + "jquery" + ], + "kind": "action::set" + } Info seq [hh:mm:ss:mss] Scheduled: /jsconfig.json, Cancelled earlier one Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles*, Cancelled earlier one TI:: [hh:mm:ss:mss] Sending response: - {"kind":"event::endInstallTypes","eventId":1,"projectName":"/jsconfig.json","packagesToInstall":["@types/jquery@tsFakeMajor.Minor"],"installSuccess":true,"typingsInstallerVersion":"FakeVersion"} + { + "kind": "event::endInstallTypes", + "eventId": 1, + "projectName": "/jsconfig.json", + "packagesToInstall": [ + "@types/jquery@tsFakeMajor.Minor" + ], + "installSuccess": true, + "typingsInstallerVersion": "FakeVersion" + } Before running Timeout callback:: count: 2 13: /jsconfig.json 14: *ensureProjectForOpenFiles* @@ -261,18 +332,68 @@ Info seq [hh:mm:ss:mss] Files (2) Matched by default include pattern '**/*' Info seq [hh:mm:ss:mss] ----------------------------------------------- -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/jsconfig.json","fileNames":["/tmp/node_modules/@types/jquery/index.d.ts","/app.js"],"compilerOptions":{"allowJs":true,"maxNodeModuleJsDepth":2,"allowSyntheticDefaultImports":true,"skipLibCheck":true,"noEmit":true,"types":[],"configFilePath":"/jsconfig.json","allowNonTsExtensions":true},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/","cachePath":"/tmp","kind":"discover"} +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/jsconfig.json", + "fileNames": [ + "/tmp/node_modules/@types/jquery/index.d.ts", + "/app.js" + ], + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "types": [], + "configFilePath": "/jsconfig.json", + "allowNonTsExtensions": true + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/", + "cachePath": "/tmp", + "kind": "discover" + } TI:: [hh:mm:ss:mss] Request specifies cache path '/tmp', loading cached information... TI:: [hh:mm:ss:mss] Processing cache location '/tmp' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":[]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":[]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [] + } TI:: [hh:mm:ss:mss] Closing file watchers for project '/jsconfig.json' TI:: [hh:mm:ss:mss] No watchers are registered for project '/jsconfig.json' TI:: [hh:mm:ss:mss] Sending response: - {"projectName":"/jsconfig.json","typeAcquisition":{"enable":true,"include":[],"exclude":[]},"compilerOptions":{"allowJs":true,"maxNodeModuleJsDepth":2,"allowSyntheticDefaultImports":true,"skipLibCheck":true,"noEmit":true,"types":[],"configFilePath":"/jsconfig.json","allowNonTsExtensions":true},"typings":[],"unresolvedImports":[],"kind":"action::set"} + { + "projectName": "/jsconfig.json", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "types": [], + "configFilePath": "/jsconfig.json", + "allowNonTsExtensions": true + }, + "typings": [], + "unresolvedImports": [], + "kind": "action::set" + } Info seq [hh:mm:ss:mss] Scheduled: /jsconfig.json Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles*, Cancelled earlier one TI:: [hh:mm:ss:mss] No new typings were requested as a result of typings discovery 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 d977f0ec5a368..d2303cf7fd748 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 @@ -159,19 +159,68 @@ FsWatchesRecursive:: /: {} -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/jsconfig.json","fileNames":["/app.js"],"compilerOptions":{"allowJs":true,"maxNodeModuleJsDepth":2,"allowSyntheticDefaultImports":true,"skipLibCheck":true,"noEmit":true,"types":[],"configFilePath":"/jsconfig.json","allowNonTsExtensions":true},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/","cachePath":"/tmp","kind":"discover"} +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/jsconfig.json", + "fileNames": [ + "/app.js" + ], + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "types": [], + "configFilePath": "/jsconfig.json", + "allowNonTsExtensions": true + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/", + "cachePath": "/tmp", + "kind": "discover" + } TI:: [hh:mm:ss:mss] Request specifies cache path '/tmp', loading cached information... TI:: [hh:mm:ss:mss] Processing cache location '/tmp' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/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] Result: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":[]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":[]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [] + } TI:: [hh:mm:ss:mss] Closing file watchers for project '/jsconfig.json' TI:: [hh:mm:ss:mss] No watchers are registered for project '/jsconfig.json' TI:: [hh:mm:ss:mss] Sending response: - {"projectName":"/jsconfig.json","typeAcquisition":{"enable":true,"include":[],"exclude":[]},"compilerOptions":{"allowJs":true,"maxNodeModuleJsDepth":2,"allowSyntheticDefaultImports":true,"skipLibCheck":true,"noEmit":true,"types":[],"configFilePath":"/jsconfig.json","allowNonTsExtensions":true},"typings":[],"unresolvedImports":[],"kind":"action::set"} + { + "projectName": "/jsconfig.json", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "types": [], + "configFilePath": "/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 Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /package.json 250 undefined WatchType: package.json file Info seq [hh:mm:ss:mss] AutoImportProviderProject: found 1 root files in 1 dependencies in * ms 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 795f3ed909998..5233d3ae7bf4b 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 @@ -161,19 +161,72 @@ FsWatchesRecursive:: /: {} -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/jsconfig.json","fileNames":["/app.js"],"compilerOptions":{"allowJs":true,"maxNodeModuleJsDepth":2,"allowSyntheticDefaultImports":true,"skipLibCheck":true,"noEmit":true,"types":["jquery"],"configFilePath":"/jsconfig.json","allowNonTsExtensions":true},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/","cachePath":"/tmp","kind":"discover"} +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/jsconfig.json", + "fileNames": [ + "/app.js" + ], + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "types": [ + "jquery" + ], + "configFilePath": "/jsconfig.json", + "allowNonTsExtensions": true + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/", + "cachePath": "/tmp", + "kind": "discover" + } TI:: [hh:mm:ss:mss] Request specifies cache path '/tmp', loading cached information... TI:: [hh:mm:ss:mss] Processing cache location '/tmp' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/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] Result: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":[]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":[]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [] + } TI:: [hh:mm:ss:mss] Closing file watchers for project '/jsconfig.json' TI:: [hh:mm:ss:mss] No watchers are registered for project '/jsconfig.json' TI:: [hh:mm:ss:mss] Sending response: - {"projectName":"/jsconfig.json","typeAcquisition":{"enable":true,"include":[],"exclude":[]},"compilerOptions":{"allowJs":true,"maxNodeModuleJsDepth":2,"allowSyntheticDefaultImports":true,"skipLibCheck":true,"noEmit":true,"types":["jquery"],"configFilePath":"/jsconfig.json","allowNonTsExtensions":true},"typings":[],"unresolvedImports":[],"kind":"action::set"} + { + "projectName": "/jsconfig.json", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "types": [ + "jquery" + ], + "configFilePath": "/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 Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /package.json 250 undefined WatchType: package.json file Info seq [hh:mm:ss:mss] AutoImportProviderProject: found 1 root files in 1 dependencies in * ms 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 4ae7db4eac00e..142113a7ecc45 100644 --- a/tests/baselines/reference/tsserver/typingsInstaller/discover-from-node_modules.js +++ b/tests/baselines/reference/tsserver/typingsInstaller/discover-from-node_modules.js @@ -158,7 +158,31 @@ FsWatchesRecursive:: /: {} -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/jsconfig.json","fileNames":["/app.js"],"compilerOptions":{"allowJs":true,"maxNodeModuleJsDepth":2,"allowSyntheticDefaultImports":true,"skipLibCheck":true,"noEmit":true,"configFilePath":"/jsconfig.json","allowNonTsExtensions":true},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/","cachePath":"/tmp","kind":"discover"} +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/jsconfig.json", + "fileNames": [ + "/app.js" + ], + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "configFilePath": "/jsconfig.json", + "allowNonTsExtensions": true + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/", + "cachePath": "/tmp", + "kind": "discover" + } TI:: [hh:mm:ss:mss] Request specifies cache path '/tmp', loading cached information... TI:: [hh:mm:ss:mss] Processing cache location '/tmp' TI:: [hh:mm:ss:mss] Cache location was already processed... @@ -168,10 +192,28 @@ TI:: [hh:mm:ss:mss] Typing names in '/package.json' dependencies: ["jquery"] TI:: [hh:mm:ss:mss] Searching for typing names in /node_modules; all files: ["/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] Result: {"cachedTypingPaths":[],"newTypingNames":["jquery"],"filesToWatch":["/bower_components","/package.json","/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":["jquery"],"filesToWatch":["/bower_components","/package.json","/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "jquery" + ], + "filesToWatch": [ + "/bower_components", + "/package.json", + "/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/jsconfig.json","files":["/bower_components","/package.json","/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "/jsconfig.json", + "files": [ + "/bower_components", + "/package.json", + "/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /bower_components 1 undefined Project: /jsconfig.json WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /bower_components 1 undefined Project: /jsconfig.json WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /package.json 2000 undefined Project: /jsconfig.json WatchType: File location for typing installer @@ -180,7 +222,12 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /no TI:: [hh:mm:ss:mss] Installing typings ["jquery"] TI:: [hh:mm:ss:mss] Npm config file: /tmp/package.json TI:: [hh:mm:ss:mss] Sending response: - {"kind":"event::beginInstallTypes","eventId":1,"typingsInstallerVersion":"FakeVersion","projectName":"/jsconfig.json"} + { + "kind": "event::beginInstallTypes", + "eventId": 1, + "typingsInstallerVersion": "FakeVersion", + "projectName": "/jsconfig.json" + } TI:: [hh:mm:ss:mss] #1 with arguments'["@types/jquery@tsFakeMajor.Minor"]'. Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /package.json 250 undefined WatchType: package.json file Info seq [hh:mm:ss:mss] AutoImportProviderProject: found 1 root files in 1 dependencies in * ms @@ -254,11 +301,41 @@ TI:: After installWorker TI:: [hh:mm:ss:mss] Installed typings ["@types/jquery@tsFakeMajor.Minor"] TI:: [hh:mm:ss:mss] Installed typing files ["/tmp/node_modules/@types/jquery/index.d.ts"] TI:: [hh:mm:ss:mss] Sending response: - {"projectName":"/jsconfig.json","typeAcquisition":{"enable":true,"include":[],"exclude":[]},"compilerOptions":{"allowJs":true,"maxNodeModuleJsDepth":2,"allowSyntheticDefaultImports":true,"skipLibCheck":true,"noEmit":true,"configFilePath":"/jsconfig.json","allowNonTsExtensions":true},"typings":["/tmp/node_modules/@types/jquery/index.d.ts"],"unresolvedImports":[],"kind":"action::set"} + { + "projectName": "/jsconfig.json", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "configFilePath": "/jsconfig.json", + "allowNonTsExtensions": true + }, + "typings": [ + "/tmp/node_modules/@types/jquery/index.d.ts" + ], + "unresolvedImports": [], + "kind": "action::set" + } Info seq [hh:mm:ss:mss] Scheduled: /jsconfig.json, Cancelled earlier one Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles*, Cancelled earlier one TI:: [hh:mm:ss:mss] Sending response: - {"kind":"event::endInstallTypes","eventId":1,"projectName":"/jsconfig.json","packagesToInstall":["@types/jquery@tsFakeMajor.Minor"],"installSuccess":true,"typingsInstallerVersion":"FakeVersion"} + { + "kind": "event::endInstallTypes", + "eventId": 1, + "projectName": "/jsconfig.json", + "packagesToInstall": [ + "@types/jquery@tsFakeMajor.Minor" + ], + "installSuccess": true, + "typingsInstallerVersion": "FakeVersion" + } Before running Timeout callback:: count: 2 13: /jsconfig.json 14: *ensureProjectForOpenFiles* @@ -282,7 +359,32 @@ Info seq [hh:mm:ss:mss] Project '/dev/null/autoImportProviderProject1*' (AutoIm Info seq [hh:mm:ss:mss] Files (1) Info seq [hh:mm:ss:mss] ----------------------------------------------- -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/jsconfig.json","fileNames":["/app.js","/tmp/node_modules/@types/jquery/index.d.ts"],"compilerOptions":{"allowJs":true,"maxNodeModuleJsDepth":2,"allowSyntheticDefaultImports":true,"skipLibCheck":true,"noEmit":true,"configFilePath":"/jsconfig.json","allowNonTsExtensions":true},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/","cachePath":"/tmp","kind":"discover"} +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/jsconfig.json", + "fileNames": [ + "/app.js", + "/tmp/node_modules/@types/jquery/index.d.ts" + ], + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "configFilePath": "/jsconfig.json", + "allowNonTsExtensions": true + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/", + "cachePath": "/tmp", + "kind": "discover" + } TI:: [hh:mm:ss:mss] Request specifies cache path '/tmp', loading cached information... TI:: [hh:mm:ss:mss] Processing cache location '/tmp' TI:: [hh:mm:ss:mss] Cache location was already processed... @@ -291,12 +393,46 @@ TI:: [hh:mm:ss:mss] Typing names in '/package.json' dependencies: ["jquery"] TI:: [hh:mm:ss:mss] Searching for typing names in /node_modules; all files: ["/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] Result: {"cachedTypingPaths":["/tmp/node_modules/@types/jquery/index.d.ts"],"newTypingNames":[],"filesToWatch":["/bower_components","/package.json","/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":["/tmp/node_modules/@types/jquery/index.d.ts"],"newTypingNames":[],"filesToWatch":["/bower_components","/package.json","/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [ + "/tmp/node_modules/@types/jquery/index.d.ts" + ], + "newTypingNames": [], + "filesToWatch": [ + "/bower_components", + "/package.json", + "/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/jsconfig.json"} + { + "kind": "action::watchTypingLocations", + "projectName": "/jsconfig.json" + } TI:: [hh:mm:ss:mss] Sending response: - {"projectName":"/jsconfig.json","typeAcquisition":{"enable":true,"include":[],"exclude":[]},"compilerOptions":{"allowJs":true,"maxNodeModuleJsDepth":2,"allowSyntheticDefaultImports":true,"skipLibCheck":true,"noEmit":true,"configFilePath":"/jsconfig.json","allowNonTsExtensions":true},"typings":["/tmp/node_modules/@types/jquery/index.d.ts"],"unresolvedImports":[],"kind":"action::set"} + { + "projectName": "/jsconfig.json", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "configFilePath": "/jsconfig.json", + "allowNonTsExtensions": true + }, + "typings": [ + "/tmp/node_modules/@types/jquery/index.d.ts" + ], + "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] Running: *ensureProjectForOpenFiles* Info seq [hh:mm:ss:mss] Before ensureProjectForOpenFiles: diff --git a/tests/baselines/reference/tsserver/typingsInstaller/discover-typings-prerelease-typings-are-properly-handled.js b/tests/baselines/reference/tsserver/typingsInstaller/discover-typings-prerelease-typings-are-properly-handled.js new file mode 100644 index 0000000000000..a8ef0ec2bd833 --- /dev/null +++ b/tests/baselines/reference/tsserver/typingsInstaller/discover-typings-prerelease-typings-are-properly-handled.js @@ -0,0 +1,89 @@ +currentDirectory:: / useCaseSensitiveFileNames: false + +//// [/a/app.js] + + + +ts.JsTyping.discoverTypings:: + { + "fileNames": [ + "/a/app.js" + ], + "projectRootPath": "/a", + "safeList": {}, + "packageNameToTypingLocation": { + "node": { + "typingLocation": "/a/cache/node_modules/@types/node/index.d.ts", + "version": { + "major": 1, + "minor": 3, + "patch": 0, + "prerelease": [ + "next", + "0" + ], + "build": [] + } + }, + "commander": { + "typingLocation": "/a/cache/node_modules/@types/commander/index.d.ts", + "version": { + "major": 1, + "minor": 3, + "patch": 0, + "prerelease": [ + "next", + "0" + ], + "build": [] + } + } + }, + "typeAcquisition": { + "enable": true + }, + "unresolvedImports": [ + "http", + "commander" + ], + "typesRegistry": { + "node": { + "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", + "tsFakeMajor.Minor": "1.3.0-next.1" + }, + "commander": { + "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", + "tsFakeMajor.Minor": "1.3.0-next.1" + } + }, + "compilerOptions": {} + } +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["node","commander"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "node", + "commander" + ], + "filesToWatch": [ + "/a/bower_components", + "/a/node_modules" + ] + } diff --git a/tests/baselines/reference/tsserver/typingsInstaller/discover-typings-should-gracefully-handle-packages-that-have-been-removed-from-the-types-registry.js b/tests/baselines/reference/tsserver/typingsInstaller/discover-typings-should-gracefully-handle-packages-that-have-been-removed-from-the-types-registry.js new file mode 100644 index 0000000000000..ce0d334d6e863 --- /dev/null +++ b/tests/baselines/reference/tsserver/typingsInstaller/discover-typings-should-gracefully-handle-packages-that-have-been-removed-from-the-types-registry.js @@ -0,0 +1,51 @@ +currentDirectory:: / useCaseSensitiveFileNames: false + +//// [/a/b/app.js] + + +//// [/a/b/node.d.ts] + + + +ts.JsTyping.discoverTypings:: + { + "fileNames": [ + "/a/b/app.js" + ], + "projectRootPath": "/a/b", + "safeList": {}, + "packageNameToTypingLocation": { + "node": { + "typingLocation": "/a/b/node.d.ts", + "version": { + "major": 1, + "minor": 3, + "patch": 0, + "prerelease": [], + "build": [] + } + } + }, + "typeAcquisition": { + "enable": true + }, + "unresolvedImports": [ + "fs", + "bar" + ], + "typesRegistry": {}, + "compilerOptions": {} + } +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["node","bar"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "node", + "bar" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } diff --git a/tests/baselines/reference/tsserver/typingsInstaller/discover-typings-should-install-expired-typings-with-prerelease-version-of-tsserver.js b/tests/baselines/reference/tsserver/typingsInstaller/discover-typings-should-install-expired-typings-with-prerelease-version-of-tsserver.js new file mode 100644 index 0000000000000..bc1de0f046f28 --- /dev/null +++ b/tests/baselines/reference/tsserver/typingsInstaller/discover-typings-should-install-expired-typings-with-prerelease-version-of-tsserver.js @@ -0,0 +1,58 @@ +currentDirectory:: / useCaseSensitiveFileNames: false + +//// [/a/app.js] + + + +ts.JsTyping.discoverTypings:: + { + "fileNames": [ + "/a/app.js" + ], + "projectRootPath": "/a", + "safeList": {}, + "packageNameToTypingLocation": { + "node": { + "typingLocation": "/a/cache/node_modules/@types/node/index.d.ts", + "version": { + "major": 1, + "minor": 0, + "patch": 0, + "prerelease": [], + "build": [] + } + } + }, + "typeAcquisition": { + "enable": true + }, + "unresolvedImports": [ + "http" + ], + "typesRegistry": { + "node": { + "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" + } + }, + "compilerOptions": {} + } +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["node"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "node" + ], + "filesToWatch": [ + "/a/bower_components", + "/a/node_modules" + ] + } diff --git a/tests/baselines/reference/tsserver/typingsInstaller/discover-typings-should-install-expired-typings.js b/tests/baselines/reference/tsserver/typingsInstaller/discover-typings-should-install-expired-typings.js new file mode 100644 index 0000000000000..40c6581aff44f --- /dev/null +++ b/tests/baselines/reference/tsserver/typingsInstaller/discover-typings-should-install-expired-typings.js @@ -0,0 +1,82 @@ +currentDirectory:: / useCaseSensitiveFileNames: false + +//// [/a/app.js] + + + +ts.JsTyping.discoverTypings:: + { + "fileNames": [ + "/a/app.js" + ], + "projectRootPath": "/a", + "safeList": {}, + "packageNameToTypingLocation": { + "node": { + "typingLocation": "/a/cache/node_modules/@types/node/index.d.ts", + "version": { + "major": 1, + "minor": 3, + "patch": 0, + "prerelease": [], + "build": [] + } + }, + "commander": { + "typingLocation": "/a/cache/node_modules/@types/commander/index.d.ts", + "version": { + "major": 1, + "minor": 0, + "patch": 0, + "prerelease": [], + "build": [] + } + } + }, + "typeAcquisition": { + "enable": true + }, + "unresolvedImports": [ + "http", + "commander" + ], + "typesRegistry": { + "node": { + "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" + }, + "commander": { + "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" + } + }, + "compilerOptions": {} + } +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["node","commander"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [ + "/a/cache/node_modules/@types/node/index.d.ts" + ], + "newTypingNames": [ + "commander" + ], + "filesToWatch": [ + "/a/bower_components", + "/a/node_modules" + ] + } diff --git a/tests/baselines/reference/tsserver/typingsInstaller/discover-typings-should-return-node-for-core-modules.js b/tests/baselines/reference/tsserver/typingsInstaller/discover-typings-should-return-node-for-core-modules.js new file mode 100644 index 0000000000000..b1bc76d5a7f95 --- /dev/null +++ b/tests/baselines/reference/tsserver/typingsInstaller/discover-typings-should-return-node-for-core-modules.js @@ -0,0 +1,3013 @@ +currentDirectory:: / useCaseSensitiveFileNames: false + +//// [/a/b/app.js] + + + +ts.JsTyping.discoverTypings:: + { + "fileNames": [ + "/a/b/app.js" + ], + "projectRootPath": "/a/b", + "safeList": {}, + "packageNameToTypingLocation": {}, + "typeAcquisition": { + "enable": true + }, + "unresolvedImports": [ + "assert", + "somename" + ], + "typesRegistry": {}, + "compilerOptions": {} + } +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["node","somename"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "node", + "somename" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } + +ts.JsTyping.discoverTypings:: + { + "fileNames": [ + "/a/b/app.js" + ], + "projectRootPath": "/a/b", + "safeList": {}, + "packageNameToTypingLocation": {}, + "typeAcquisition": { + "enable": true + }, + "unresolvedImports": [ + "assert/strict", + "somename" + ], + "typesRegistry": {}, + "compilerOptions": {} + } +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["node","somename"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "node", + "somename" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } + +ts.JsTyping.discoverTypings:: + { + "fileNames": [ + "/a/b/app.js" + ], + "projectRootPath": "/a/b", + "safeList": {}, + "packageNameToTypingLocation": {}, + "typeAcquisition": { + "enable": true + }, + "unresolvedImports": [ + "async_hooks", + "somename" + ], + "typesRegistry": {}, + "compilerOptions": {} + } +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["node","somename"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "node", + "somename" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } + +ts.JsTyping.discoverTypings:: + { + "fileNames": [ + "/a/b/app.js" + ], + "projectRootPath": "/a/b", + "safeList": {}, + "packageNameToTypingLocation": {}, + "typeAcquisition": { + "enable": true + }, + "unresolvedImports": [ + "buffer", + "somename" + ], + "typesRegistry": {}, + "compilerOptions": {} + } +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["node","somename"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "node", + "somename" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } + +ts.JsTyping.discoverTypings:: + { + "fileNames": [ + "/a/b/app.js" + ], + "projectRootPath": "/a/b", + "safeList": {}, + "packageNameToTypingLocation": {}, + "typeAcquisition": { + "enable": true + }, + "unresolvedImports": [ + "child_process", + "somename" + ], + "typesRegistry": {}, + "compilerOptions": {} + } +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["node","somename"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "node", + "somename" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } + +ts.JsTyping.discoverTypings:: + { + "fileNames": [ + "/a/b/app.js" + ], + "projectRootPath": "/a/b", + "safeList": {}, + "packageNameToTypingLocation": {}, + "typeAcquisition": { + "enable": true + }, + "unresolvedImports": [ + "cluster", + "somename" + ], + "typesRegistry": {}, + "compilerOptions": {} + } +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["node","somename"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "node", + "somename" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } + +ts.JsTyping.discoverTypings:: + { + "fileNames": [ + "/a/b/app.js" + ], + "projectRootPath": "/a/b", + "safeList": {}, + "packageNameToTypingLocation": {}, + "typeAcquisition": { + "enable": true + }, + "unresolvedImports": [ + "console", + "somename" + ], + "typesRegistry": {}, + "compilerOptions": {} + } +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["node","somename"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "node", + "somename" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } + +ts.JsTyping.discoverTypings:: + { + "fileNames": [ + "/a/b/app.js" + ], + "projectRootPath": "/a/b", + "safeList": {}, + "packageNameToTypingLocation": {}, + "typeAcquisition": { + "enable": true + }, + "unresolvedImports": [ + "constants", + "somename" + ], + "typesRegistry": {}, + "compilerOptions": {} + } +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["node","somename"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "node", + "somename" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } + +ts.JsTyping.discoverTypings:: + { + "fileNames": [ + "/a/b/app.js" + ], + "projectRootPath": "/a/b", + "safeList": {}, + "packageNameToTypingLocation": {}, + "typeAcquisition": { + "enable": true + }, + "unresolvedImports": [ + "crypto", + "somename" + ], + "typesRegistry": {}, + "compilerOptions": {} + } +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["node","somename"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "node", + "somename" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } + +ts.JsTyping.discoverTypings:: + { + "fileNames": [ + "/a/b/app.js" + ], + "projectRootPath": "/a/b", + "safeList": {}, + "packageNameToTypingLocation": {}, + "typeAcquisition": { + "enable": true + }, + "unresolvedImports": [ + "dgram", + "somename" + ], + "typesRegistry": {}, + "compilerOptions": {} + } +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["node","somename"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "node", + "somename" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } + +ts.JsTyping.discoverTypings:: + { + "fileNames": [ + "/a/b/app.js" + ], + "projectRootPath": "/a/b", + "safeList": {}, + "packageNameToTypingLocation": {}, + "typeAcquisition": { + "enable": true + }, + "unresolvedImports": [ + "diagnostics_channel", + "somename" + ], + "typesRegistry": {}, + "compilerOptions": {} + } +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["node","somename"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "node", + "somename" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } + +ts.JsTyping.discoverTypings:: + { + "fileNames": [ + "/a/b/app.js" + ], + "projectRootPath": "/a/b", + "safeList": {}, + "packageNameToTypingLocation": {}, + "typeAcquisition": { + "enable": true + }, + "unresolvedImports": [ + "dns", + "somename" + ], + "typesRegistry": {}, + "compilerOptions": {} + } +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["node","somename"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "node", + "somename" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } + +ts.JsTyping.discoverTypings:: + { + "fileNames": [ + "/a/b/app.js" + ], + "projectRootPath": "/a/b", + "safeList": {}, + "packageNameToTypingLocation": {}, + "typeAcquisition": { + "enable": true + }, + "unresolvedImports": [ + "dns/promises", + "somename" + ], + "typesRegistry": {}, + "compilerOptions": {} + } +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["node","somename"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "node", + "somename" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } + +ts.JsTyping.discoverTypings:: + { + "fileNames": [ + "/a/b/app.js" + ], + "projectRootPath": "/a/b", + "safeList": {}, + "packageNameToTypingLocation": {}, + "typeAcquisition": { + "enable": true + }, + "unresolvedImports": [ + "domain", + "somename" + ], + "typesRegistry": {}, + "compilerOptions": {} + } +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["node","somename"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "node", + "somename" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } + +ts.JsTyping.discoverTypings:: + { + "fileNames": [ + "/a/b/app.js" + ], + "projectRootPath": "/a/b", + "safeList": {}, + "packageNameToTypingLocation": {}, + "typeAcquisition": { + "enable": true + }, + "unresolvedImports": [ + "events", + "somename" + ], + "typesRegistry": {}, + "compilerOptions": {} + } +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["node","somename"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "node", + "somename" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } + +ts.JsTyping.discoverTypings:: + { + "fileNames": [ + "/a/b/app.js" + ], + "projectRootPath": "/a/b", + "safeList": {}, + "packageNameToTypingLocation": {}, + "typeAcquisition": { + "enable": true + }, + "unresolvedImports": [ + "fs", + "somename" + ], + "typesRegistry": {}, + "compilerOptions": {} + } +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["node","somename"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "node", + "somename" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } + +ts.JsTyping.discoverTypings:: + { + "fileNames": [ + "/a/b/app.js" + ], + "projectRootPath": "/a/b", + "safeList": {}, + "packageNameToTypingLocation": {}, + "typeAcquisition": { + "enable": true + }, + "unresolvedImports": [ + "fs/promises", + "somename" + ], + "typesRegistry": {}, + "compilerOptions": {} + } +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["node","somename"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "node", + "somename" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } + +ts.JsTyping.discoverTypings:: + { + "fileNames": [ + "/a/b/app.js" + ], + "projectRootPath": "/a/b", + "safeList": {}, + "packageNameToTypingLocation": {}, + "typeAcquisition": { + "enable": true + }, + "unresolvedImports": [ + "http", + "somename" + ], + "typesRegistry": {}, + "compilerOptions": {} + } +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["node","somename"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "node", + "somename" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } + +ts.JsTyping.discoverTypings:: + { + "fileNames": [ + "/a/b/app.js" + ], + "projectRootPath": "/a/b", + "safeList": {}, + "packageNameToTypingLocation": {}, + "typeAcquisition": { + "enable": true + }, + "unresolvedImports": [ + "https", + "somename" + ], + "typesRegistry": {}, + "compilerOptions": {} + } +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["node","somename"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "node", + "somename" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } + +ts.JsTyping.discoverTypings:: + { + "fileNames": [ + "/a/b/app.js" + ], + "projectRootPath": "/a/b", + "safeList": {}, + "packageNameToTypingLocation": {}, + "typeAcquisition": { + "enable": true + }, + "unresolvedImports": [ + "http2", + "somename" + ], + "typesRegistry": {}, + "compilerOptions": {} + } +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["node","somename"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "node", + "somename" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } + +ts.JsTyping.discoverTypings:: + { + "fileNames": [ + "/a/b/app.js" + ], + "projectRootPath": "/a/b", + "safeList": {}, + "packageNameToTypingLocation": {}, + "typeAcquisition": { + "enable": true + }, + "unresolvedImports": [ + "inspector", + "somename" + ], + "typesRegistry": {}, + "compilerOptions": {} + } +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["node","somename"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "node", + "somename" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } + +ts.JsTyping.discoverTypings:: + { + "fileNames": [ + "/a/b/app.js" + ], + "projectRootPath": "/a/b", + "safeList": {}, + "packageNameToTypingLocation": {}, + "typeAcquisition": { + "enable": true + }, + "unresolvedImports": [ + "module", + "somename" + ], + "typesRegistry": {}, + "compilerOptions": {} + } +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["node","somename"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "node", + "somename" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } + +ts.JsTyping.discoverTypings:: + { + "fileNames": [ + "/a/b/app.js" + ], + "projectRootPath": "/a/b", + "safeList": {}, + "packageNameToTypingLocation": {}, + "typeAcquisition": { + "enable": true + }, + "unresolvedImports": [ + "net", + "somename" + ], + "typesRegistry": {}, + "compilerOptions": {} + } +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["node","somename"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "node", + "somename" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } + +ts.JsTyping.discoverTypings:: + { + "fileNames": [ + "/a/b/app.js" + ], + "projectRootPath": "/a/b", + "safeList": {}, + "packageNameToTypingLocation": {}, + "typeAcquisition": { + "enable": true + }, + "unresolvedImports": [ + "os", + "somename" + ], + "typesRegistry": {}, + "compilerOptions": {} + } +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["node","somename"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "node", + "somename" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } + +ts.JsTyping.discoverTypings:: + { + "fileNames": [ + "/a/b/app.js" + ], + "projectRootPath": "/a/b", + "safeList": {}, + "packageNameToTypingLocation": {}, + "typeAcquisition": { + "enable": true + }, + "unresolvedImports": [ + "path", + "somename" + ], + "typesRegistry": {}, + "compilerOptions": {} + } +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["node","somename"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "node", + "somename" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } + +ts.JsTyping.discoverTypings:: + { + "fileNames": [ + "/a/b/app.js" + ], + "projectRootPath": "/a/b", + "safeList": {}, + "packageNameToTypingLocation": {}, + "typeAcquisition": { + "enable": true + }, + "unresolvedImports": [ + "perf_hooks", + "somename" + ], + "typesRegistry": {}, + "compilerOptions": {} + } +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["node","somename"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "node", + "somename" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } + +ts.JsTyping.discoverTypings:: + { + "fileNames": [ + "/a/b/app.js" + ], + "projectRootPath": "/a/b", + "safeList": {}, + "packageNameToTypingLocation": {}, + "typeAcquisition": { + "enable": true + }, + "unresolvedImports": [ + "process", + "somename" + ], + "typesRegistry": {}, + "compilerOptions": {} + } +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["node","somename"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "node", + "somename" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } + +ts.JsTyping.discoverTypings:: + { + "fileNames": [ + "/a/b/app.js" + ], + "projectRootPath": "/a/b", + "safeList": {}, + "packageNameToTypingLocation": {}, + "typeAcquisition": { + "enable": true + }, + "unresolvedImports": [ + "punycode", + "somename" + ], + "typesRegistry": {}, + "compilerOptions": {} + } +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["node","somename"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "node", + "somename" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } + +ts.JsTyping.discoverTypings:: + { + "fileNames": [ + "/a/b/app.js" + ], + "projectRootPath": "/a/b", + "safeList": {}, + "packageNameToTypingLocation": {}, + "typeAcquisition": { + "enable": true + }, + "unresolvedImports": [ + "querystring", + "somename" + ], + "typesRegistry": {}, + "compilerOptions": {} + } +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["node","somename"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "node", + "somename" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } + +ts.JsTyping.discoverTypings:: + { + "fileNames": [ + "/a/b/app.js" + ], + "projectRootPath": "/a/b", + "safeList": {}, + "packageNameToTypingLocation": {}, + "typeAcquisition": { + "enable": true + }, + "unresolvedImports": [ + "readline", + "somename" + ], + "typesRegistry": {}, + "compilerOptions": {} + } +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["node","somename"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "node", + "somename" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } + +ts.JsTyping.discoverTypings:: + { + "fileNames": [ + "/a/b/app.js" + ], + "projectRootPath": "/a/b", + "safeList": {}, + "packageNameToTypingLocation": {}, + "typeAcquisition": { + "enable": true + }, + "unresolvedImports": [ + "repl", + "somename" + ], + "typesRegistry": {}, + "compilerOptions": {} + } +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["node","somename"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "node", + "somename" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } + +ts.JsTyping.discoverTypings:: + { + "fileNames": [ + "/a/b/app.js" + ], + "projectRootPath": "/a/b", + "safeList": {}, + "packageNameToTypingLocation": {}, + "typeAcquisition": { + "enable": true + }, + "unresolvedImports": [ + "stream", + "somename" + ], + "typesRegistry": {}, + "compilerOptions": {} + } +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["node","somename"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "node", + "somename" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } + +ts.JsTyping.discoverTypings:: + { + "fileNames": [ + "/a/b/app.js" + ], + "projectRootPath": "/a/b", + "safeList": {}, + "packageNameToTypingLocation": {}, + "typeAcquisition": { + "enable": true + }, + "unresolvedImports": [ + "stream/promises", + "somename" + ], + "typesRegistry": {}, + "compilerOptions": {} + } +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["node","somename"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "node", + "somename" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } + +ts.JsTyping.discoverTypings:: + { + "fileNames": [ + "/a/b/app.js" + ], + "projectRootPath": "/a/b", + "safeList": {}, + "packageNameToTypingLocation": {}, + "typeAcquisition": { + "enable": true + }, + "unresolvedImports": [ + "string_decoder", + "somename" + ], + "typesRegistry": {}, + "compilerOptions": {} + } +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["node","somename"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "node", + "somename" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } + +ts.JsTyping.discoverTypings:: + { + "fileNames": [ + "/a/b/app.js" + ], + "projectRootPath": "/a/b", + "safeList": {}, + "packageNameToTypingLocation": {}, + "typeAcquisition": { + "enable": true + }, + "unresolvedImports": [ + "timers", + "somename" + ], + "typesRegistry": {}, + "compilerOptions": {} + } +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["node","somename"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "node", + "somename" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } + +ts.JsTyping.discoverTypings:: + { + "fileNames": [ + "/a/b/app.js" + ], + "projectRootPath": "/a/b", + "safeList": {}, + "packageNameToTypingLocation": {}, + "typeAcquisition": { + "enable": true + }, + "unresolvedImports": [ + "timers/promises", + "somename" + ], + "typesRegistry": {}, + "compilerOptions": {} + } +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["node","somename"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "node", + "somename" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } + +ts.JsTyping.discoverTypings:: + { + "fileNames": [ + "/a/b/app.js" + ], + "projectRootPath": "/a/b", + "safeList": {}, + "packageNameToTypingLocation": {}, + "typeAcquisition": { + "enable": true + }, + "unresolvedImports": [ + "tls", + "somename" + ], + "typesRegistry": {}, + "compilerOptions": {} + } +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["node","somename"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "node", + "somename" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } + +ts.JsTyping.discoverTypings:: + { + "fileNames": [ + "/a/b/app.js" + ], + "projectRootPath": "/a/b", + "safeList": {}, + "packageNameToTypingLocation": {}, + "typeAcquisition": { + "enable": true + }, + "unresolvedImports": [ + "trace_events", + "somename" + ], + "typesRegistry": {}, + "compilerOptions": {} + } +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["node","somename"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "node", + "somename" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } + +ts.JsTyping.discoverTypings:: + { + "fileNames": [ + "/a/b/app.js" + ], + "projectRootPath": "/a/b", + "safeList": {}, + "packageNameToTypingLocation": {}, + "typeAcquisition": { + "enable": true + }, + "unresolvedImports": [ + "tty", + "somename" + ], + "typesRegistry": {}, + "compilerOptions": {} + } +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["node","somename"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "node", + "somename" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } + +ts.JsTyping.discoverTypings:: + { + "fileNames": [ + "/a/b/app.js" + ], + "projectRootPath": "/a/b", + "safeList": {}, + "packageNameToTypingLocation": {}, + "typeAcquisition": { + "enable": true + }, + "unresolvedImports": [ + "url", + "somename" + ], + "typesRegistry": {}, + "compilerOptions": {} + } +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["node","somename"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "node", + "somename" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } + +ts.JsTyping.discoverTypings:: + { + "fileNames": [ + "/a/b/app.js" + ], + "projectRootPath": "/a/b", + "safeList": {}, + "packageNameToTypingLocation": {}, + "typeAcquisition": { + "enable": true + }, + "unresolvedImports": [ + "util", + "somename" + ], + "typesRegistry": {}, + "compilerOptions": {} + } +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["node","somename"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "node", + "somename" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } + +ts.JsTyping.discoverTypings:: + { + "fileNames": [ + "/a/b/app.js" + ], + "projectRootPath": "/a/b", + "safeList": {}, + "packageNameToTypingLocation": {}, + "typeAcquisition": { + "enable": true + }, + "unresolvedImports": [ + "util/types", + "somename" + ], + "typesRegistry": {}, + "compilerOptions": {} + } +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["node","somename"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "node", + "somename" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } + +ts.JsTyping.discoverTypings:: + { + "fileNames": [ + "/a/b/app.js" + ], + "projectRootPath": "/a/b", + "safeList": {}, + "packageNameToTypingLocation": {}, + "typeAcquisition": { + "enable": true + }, + "unresolvedImports": [ + "v8", + "somename" + ], + "typesRegistry": {}, + "compilerOptions": {} + } +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["node","somename"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "node", + "somename" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } + +ts.JsTyping.discoverTypings:: + { + "fileNames": [ + "/a/b/app.js" + ], + "projectRootPath": "/a/b", + "safeList": {}, + "packageNameToTypingLocation": {}, + "typeAcquisition": { + "enable": true + }, + "unresolvedImports": [ + "vm", + "somename" + ], + "typesRegistry": {}, + "compilerOptions": {} + } +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["node","somename"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "node", + "somename" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } + +ts.JsTyping.discoverTypings:: + { + "fileNames": [ + "/a/b/app.js" + ], + "projectRootPath": "/a/b", + "safeList": {}, + "packageNameToTypingLocation": {}, + "typeAcquisition": { + "enable": true + }, + "unresolvedImports": [ + "wasi", + "somename" + ], + "typesRegistry": {}, + "compilerOptions": {} + } +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["node","somename"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "node", + "somename" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } + +ts.JsTyping.discoverTypings:: + { + "fileNames": [ + "/a/b/app.js" + ], + "projectRootPath": "/a/b", + "safeList": {}, + "packageNameToTypingLocation": {}, + "typeAcquisition": { + "enable": true + }, + "unresolvedImports": [ + "worker_threads", + "somename" + ], + "typesRegistry": {}, + "compilerOptions": {} + } +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["node","somename"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "node", + "somename" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } + +ts.JsTyping.discoverTypings:: + { + "fileNames": [ + "/a/b/app.js" + ], + "projectRootPath": "/a/b", + "safeList": {}, + "packageNameToTypingLocation": {}, + "typeAcquisition": { + "enable": true + }, + "unresolvedImports": [ + "zlib", + "somename" + ], + "typesRegistry": {}, + "compilerOptions": {} + } +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["node","somename"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "node", + "somename" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } + +ts.JsTyping.discoverTypings:: + { + "fileNames": [ + "/a/b/app.js" + ], + "projectRootPath": "/a/b", + "safeList": {}, + "packageNameToTypingLocation": {}, + "typeAcquisition": { + "enable": true + }, + "unresolvedImports": [ + "node:assert", + "somename" + ], + "typesRegistry": {}, + "compilerOptions": {} + } +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["node","somename"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "node", + "somename" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } + +ts.JsTyping.discoverTypings:: + { + "fileNames": [ + "/a/b/app.js" + ], + "projectRootPath": "/a/b", + "safeList": {}, + "packageNameToTypingLocation": {}, + "typeAcquisition": { + "enable": true + }, + "unresolvedImports": [ + "node:assert/strict", + "somename" + ], + "typesRegistry": {}, + "compilerOptions": {} + } +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["node","somename"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "node", + "somename" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } + +ts.JsTyping.discoverTypings:: + { + "fileNames": [ + "/a/b/app.js" + ], + "projectRootPath": "/a/b", + "safeList": {}, + "packageNameToTypingLocation": {}, + "typeAcquisition": { + "enable": true + }, + "unresolvedImports": [ + "node:async_hooks", + "somename" + ], + "typesRegistry": {}, + "compilerOptions": {} + } +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["node","somename"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "node", + "somename" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } + +ts.JsTyping.discoverTypings:: + { + "fileNames": [ + "/a/b/app.js" + ], + "projectRootPath": "/a/b", + "safeList": {}, + "packageNameToTypingLocation": {}, + "typeAcquisition": { + "enable": true + }, + "unresolvedImports": [ + "node:buffer", + "somename" + ], + "typesRegistry": {}, + "compilerOptions": {} + } +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["node","somename"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "node", + "somename" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } + +ts.JsTyping.discoverTypings:: + { + "fileNames": [ + "/a/b/app.js" + ], + "projectRootPath": "/a/b", + "safeList": {}, + "packageNameToTypingLocation": {}, + "typeAcquisition": { + "enable": true + }, + "unresolvedImports": [ + "node:child_process", + "somename" + ], + "typesRegistry": {}, + "compilerOptions": {} + } +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["node","somename"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "node", + "somename" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } + +ts.JsTyping.discoverTypings:: + { + "fileNames": [ + "/a/b/app.js" + ], + "projectRootPath": "/a/b", + "safeList": {}, + "packageNameToTypingLocation": {}, + "typeAcquisition": { + "enable": true + }, + "unresolvedImports": [ + "node:cluster", + "somename" + ], + "typesRegistry": {}, + "compilerOptions": {} + } +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["node","somename"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "node", + "somename" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } + +ts.JsTyping.discoverTypings:: + { + "fileNames": [ + "/a/b/app.js" + ], + "projectRootPath": "/a/b", + "safeList": {}, + "packageNameToTypingLocation": {}, + "typeAcquisition": { + "enable": true + }, + "unresolvedImports": [ + "node:console", + "somename" + ], + "typesRegistry": {}, + "compilerOptions": {} + } +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["node","somename"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "node", + "somename" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } + +ts.JsTyping.discoverTypings:: + { + "fileNames": [ + "/a/b/app.js" + ], + "projectRootPath": "/a/b", + "safeList": {}, + "packageNameToTypingLocation": {}, + "typeAcquisition": { + "enable": true + }, + "unresolvedImports": [ + "node:constants", + "somename" + ], + "typesRegistry": {}, + "compilerOptions": {} + } +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["node","somename"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "node", + "somename" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } + +ts.JsTyping.discoverTypings:: + { + "fileNames": [ + "/a/b/app.js" + ], + "projectRootPath": "/a/b", + "safeList": {}, + "packageNameToTypingLocation": {}, + "typeAcquisition": { + "enable": true + }, + "unresolvedImports": [ + "node:crypto", + "somename" + ], + "typesRegistry": {}, + "compilerOptions": {} + } +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["node","somename"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "node", + "somename" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } + +ts.JsTyping.discoverTypings:: + { + "fileNames": [ + "/a/b/app.js" + ], + "projectRootPath": "/a/b", + "safeList": {}, + "packageNameToTypingLocation": {}, + "typeAcquisition": { + "enable": true + }, + "unresolvedImports": [ + "node:dgram", + "somename" + ], + "typesRegistry": {}, + "compilerOptions": {} + } +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["node","somename"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "node", + "somename" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } + +ts.JsTyping.discoverTypings:: + { + "fileNames": [ + "/a/b/app.js" + ], + "projectRootPath": "/a/b", + "safeList": {}, + "packageNameToTypingLocation": {}, + "typeAcquisition": { + "enable": true + }, + "unresolvedImports": [ + "node:diagnostics_channel", + "somename" + ], + "typesRegistry": {}, + "compilerOptions": {} + } +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["node","somename"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "node", + "somename" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } + +ts.JsTyping.discoverTypings:: + { + "fileNames": [ + "/a/b/app.js" + ], + "projectRootPath": "/a/b", + "safeList": {}, + "packageNameToTypingLocation": {}, + "typeAcquisition": { + "enable": true + }, + "unresolvedImports": [ + "node:dns", + "somename" + ], + "typesRegistry": {}, + "compilerOptions": {} + } +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["node","somename"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "node", + "somename" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } + +ts.JsTyping.discoverTypings:: + { + "fileNames": [ + "/a/b/app.js" + ], + "projectRootPath": "/a/b", + "safeList": {}, + "packageNameToTypingLocation": {}, + "typeAcquisition": { + "enable": true + }, + "unresolvedImports": [ + "node:dns/promises", + "somename" + ], + "typesRegistry": {}, + "compilerOptions": {} + } +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["node","somename"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "node", + "somename" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } + +ts.JsTyping.discoverTypings:: + { + "fileNames": [ + "/a/b/app.js" + ], + "projectRootPath": "/a/b", + "safeList": {}, + "packageNameToTypingLocation": {}, + "typeAcquisition": { + "enable": true + }, + "unresolvedImports": [ + "node:domain", + "somename" + ], + "typesRegistry": {}, + "compilerOptions": {} + } +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["node","somename"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "node", + "somename" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } + +ts.JsTyping.discoverTypings:: + { + "fileNames": [ + "/a/b/app.js" + ], + "projectRootPath": "/a/b", + "safeList": {}, + "packageNameToTypingLocation": {}, + "typeAcquisition": { + "enable": true + }, + "unresolvedImports": [ + "node:events", + "somename" + ], + "typesRegistry": {}, + "compilerOptions": {} + } +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["node","somename"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "node", + "somename" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } + +ts.JsTyping.discoverTypings:: + { + "fileNames": [ + "/a/b/app.js" + ], + "projectRootPath": "/a/b", + "safeList": {}, + "packageNameToTypingLocation": {}, + "typeAcquisition": { + "enable": true + }, + "unresolvedImports": [ + "node:fs", + "somename" + ], + "typesRegistry": {}, + "compilerOptions": {} + } +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["node","somename"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "node", + "somename" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } + +ts.JsTyping.discoverTypings:: + { + "fileNames": [ + "/a/b/app.js" + ], + "projectRootPath": "/a/b", + "safeList": {}, + "packageNameToTypingLocation": {}, + "typeAcquisition": { + "enable": true + }, + "unresolvedImports": [ + "node:fs/promises", + "somename" + ], + "typesRegistry": {}, + "compilerOptions": {} + } +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["node","somename"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "node", + "somename" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } + +ts.JsTyping.discoverTypings:: + { + "fileNames": [ + "/a/b/app.js" + ], + "projectRootPath": "/a/b", + "safeList": {}, + "packageNameToTypingLocation": {}, + "typeAcquisition": { + "enable": true + }, + "unresolvedImports": [ + "node:http", + "somename" + ], + "typesRegistry": {}, + "compilerOptions": {} + } +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["node","somename"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "node", + "somename" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } + +ts.JsTyping.discoverTypings:: + { + "fileNames": [ + "/a/b/app.js" + ], + "projectRootPath": "/a/b", + "safeList": {}, + "packageNameToTypingLocation": {}, + "typeAcquisition": { + "enable": true + }, + "unresolvedImports": [ + "node:https", + "somename" + ], + "typesRegistry": {}, + "compilerOptions": {} + } +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["node","somename"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "node", + "somename" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } + +ts.JsTyping.discoverTypings:: + { + "fileNames": [ + "/a/b/app.js" + ], + "projectRootPath": "/a/b", + "safeList": {}, + "packageNameToTypingLocation": {}, + "typeAcquisition": { + "enable": true + }, + "unresolvedImports": [ + "node:http2", + "somename" + ], + "typesRegistry": {}, + "compilerOptions": {} + } +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["node","somename"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "node", + "somename" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } + +ts.JsTyping.discoverTypings:: + { + "fileNames": [ + "/a/b/app.js" + ], + "projectRootPath": "/a/b", + "safeList": {}, + "packageNameToTypingLocation": {}, + "typeAcquisition": { + "enable": true + }, + "unresolvedImports": [ + "node:inspector", + "somename" + ], + "typesRegistry": {}, + "compilerOptions": {} + } +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["node","somename"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "node", + "somename" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } + +ts.JsTyping.discoverTypings:: + { + "fileNames": [ + "/a/b/app.js" + ], + "projectRootPath": "/a/b", + "safeList": {}, + "packageNameToTypingLocation": {}, + "typeAcquisition": { + "enable": true + }, + "unresolvedImports": [ + "node:module", + "somename" + ], + "typesRegistry": {}, + "compilerOptions": {} + } +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["node","somename"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "node", + "somename" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } + +ts.JsTyping.discoverTypings:: + { + "fileNames": [ + "/a/b/app.js" + ], + "projectRootPath": "/a/b", + "safeList": {}, + "packageNameToTypingLocation": {}, + "typeAcquisition": { + "enable": true + }, + "unresolvedImports": [ + "node:net", + "somename" + ], + "typesRegistry": {}, + "compilerOptions": {} + } +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["node","somename"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "node", + "somename" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } + +ts.JsTyping.discoverTypings:: + { + "fileNames": [ + "/a/b/app.js" + ], + "projectRootPath": "/a/b", + "safeList": {}, + "packageNameToTypingLocation": {}, + "typeAcquisition": { + "enable": true + }, + "unresolvedImports": [ + "node:os", + "somename" + ], + "typesRegistry": {}, + "compilerOptions": {} + } +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["node","somename"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "node", + "somename" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } + +ts.JsTyping.discoverTypings:: + { + "fileNames": [ + "/a/b/app.js" + ], + "projectRootPath": "/a/b", + "safeList": {}, + "packageNameToTypingLocation": {}, + "typeAcquisition": { + "enable": true + }, + "unresolvedImports": [ + "node:path", + "somename" + ], + "typesRegistry": {}, + "compilerOptions": {} + } +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["node","somename"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "node", + "somename" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } + +ts.JsTyping.discoverTypings:: + { + "fileNames": [ + "/a/b/app.js" + ], + "projectRootPath": "/a/b", + "safeList": {}, + "packageNameToTypingLocation": {}, + "typeAcquisition": { + "enable": true + }, + "unresolvedImports": [ + "node:perf_hooks", + "somename" + ], + "typesRegistry": {}, + "compilerOptions": {} + } +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["node","somename"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "node", + "somename" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } + +ts.JsTyping.discoverTypings:: + { + "fileNames": [ + "/a/b/app.js" + ], + "projectRootPath": "/a/b", + "safeList": {}, + "packageNameToTypingLocation": {}, + "typeAcquisition": { + "enable": true + }, + "unresolvedImports": [ + "node:process", + "somename" + ], + "typesRegistry": {}, + "compilerOptions": {} + } +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["node","somename"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "node", + "somename" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } + +ts.JsTyping.discoverTypings:: + { + "fileNames": [ + "/a/b/app.js" + ], + "projectRootPath": "/a/b", + "safeList": {}, + "packageNameToTypingLocation": {}, + "typeAcquisition": { + "enable": true + }, + "unresolvedImports": [ + "node:punycode", + "somename" + ], + "typesRegistry": {}, + "compilerOptions": {} + } +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["node","somename"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "node", + "somename" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } + +ts.JsTyping.discoverTypings:: + { + "fileNames": [ + "/a/b/app.js" + ], + "projectRootPath": "/a/b", + "safeList": {}, + "packageNameToTypingLocation": {}, + "typeAcquisition": { + "enable": true + }, + "unresolvedImports": [ + "node:querystring", + "somename" + ], + "typesRegistry": {}, + "compilerOptions": {} + } +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["node","somename"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "node", + "somename" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } + +ts.JsTyping.discoverTypings:: + { + "fileNames": [ + "/a/b/app.js" + ], + "projectRootPath": "/a/b", + "safeList": {}, + "packageNameToTypingLocation": {}, + "typeAcquisition": { + "enable": true + }, + "unresolvedImports": [ + "node:readline", + "somename" + ], + "typesRegistry": {}, + "compilerOptions": {} + } +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["node","somename"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "node", + "somename" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } + +ts.JsTyping.discoverTypings:: + { + "fileNames": [ + "/a/b/app.js" + ], + "projectRootPath": "/a/b", + "safeList": {}, + "packageNameToTypingLocation": {}, + "typeAcquisition": { + "enable": true + }, + "unresolvedImports": [ + "node:repl", + "somename" + ], + "typesRegistry": {}, + "compilerOptions": {} + } +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["node","somename"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "node", + "somename" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } + +ts.JsTyping.discoverTypings:: + { + "fileNames": [ + "/a/b/app.js" + ], + "projectRootPath": "/a/b", + "safeList": {}, + "packageNameToTypingLocation": {}, + "typeAcquisition": { + "enable": true + }, + "unresolvedImports": [ + "node:stream", + "somename" + ], + "typesRegistry": {}, + "compilerOptions": {} + } +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["node","somename"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "node", + "somename" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } + +ts.JsTyping.discoverTypings:: + { + "fileNames": [ + "/a/b/app.js" + ], + "projectRootPath": "/a/b", + "safeList": {}, + "packageNameToTypingLocation": {}, + "typeAcquisition": { + "enable": true + }, + "unresolvedImports": [ + "node:stream/promises", + "somename" + ], + "typesRegistry": {}, + "compilerOptions": {} + } +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["node","somename"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "node", + "somename" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } + +ts.JsTyping.discoverTypings:: + { + "fileNames": [ + "/a/b/app.js" + ], + "projectRootPath": "/a/b", + "safeList": {}, + "packageNameToTypingLocation": {}, + "typeAcquisition": { + "enable": true + }, + "unresolvedImports": [ + "node:string_decoder", + "somename" + ], + "typesRegistry": {}, + "compilerOptions": {} + } +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["node","somename"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "node", + "somename" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } + +ts.JsTyping.discoverTypings:: + { + "fileNames": [ + "/a/b/app.js" + ], + "projectRootPath": "/a/b", + "safeList": {}, + "packageNameToTypingLocation": {}, + "typeAcquisition": { + "enable": true + }, + "unresolvedImports": [ + "node:timers", + "somename" + ], + "typesRegistry": {}, + "compilerOptions": {} + } +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["node","somename"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "node", + "somename" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } + +ts.JsTyping.discoverTypings:: + { + "fileNames": [ + "/a/b/app.js" + ], + "projectRootPath": "/a/b", + "safeList": {}, + "packageNameToTypingLocation": {}, + "typeAcquisition": { + "enable": true + }, + "unresolvedImports": [ + "node:timers/promises", + "somename" + ], + "typesRegistry": {}, + "compilerOptions": {} + } +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["node","somename"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "node", + "somename" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } + +ts.JsTyping.discoverTypings:: + { + "fileNames": [ + "/a/b/app.js" + ], + "projectRootPath": "/a/b", + "safeList": {}, + "packageNameToTypingLocation": {}, + "typeAcquisition": { + "enable": true + }, + "unresolvedImports": [ + "node:tls", + "somename" + ], + "typesRegistry": {}, + "compilerOptions": {} + } +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["node","somename"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "node", + "somename" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } + +ts.JsTyping.discoverTypings:: + { + "fileNames": [ + "/a/b/app.js" + ], + "projectRootPath": "/a/b", + "safeList": {}, + "packageNameToTypingLocation": {}, + "typeAcquisition": { + "enable": true + }, + "unresolvedImports": [ + "node:trace_events", + "somename" + ], + "typesRegistry": {}, + "compilerOptions": {} + } +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["node","somename"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "node", + "somename" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } + +ts.JsTyping.discoverTypings:: + { + "fileNames": [ + "/a/b/app.js" + ], + "projectRootPath": "/a/b", + "safeList": {}, + "packageNameToTypingLocation": {}, + "typeAcquisition": { + "enable": true + }, + "unresolvedImports": [ + "node:tty", + "somename" + ], + "typesRegistry": {}, + "compilerOptions": {} + } +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["node","somename"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "node", + "somename" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } + +ts.JsTyping.discoverTypings:: + { + "fileNames": [ + "/a/b/app.js" + ], + "projectRootPath": "/a/b", + "safeList": {}, + "packageNameToTypingLocation": {}, + "typeAcquisition": { + "enable": true + }, + "unresolvedImports": [ + "node:url", + "somename" + ], + "typesRegistry": {}, + "compilerOptions": {} + } +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["node","somename"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "node", + "somename" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } + +ts.JsTyping.discoverTypings:: + { + "fileNames": [ + "/a/b/app.js" + ], + "projectRootPath": "/a/b", + "safeList": {}, + "packageNameToTypingLocation": {}, + "typeAcquisition": { + "enable": true + }, + "unresolvedImports": [ + "node:util", + "somename" + ], + "typesRegistry": {}, + "compilerOptions": {} + } +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["node","somename"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "node", + "somename" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } + +ts.JsTyping.discoverTypings:: + { + "fileNames": [ + "/a/b/app.js" + ], + "projectRootPath": "/a/b", + "safeList": {}, + "packageNameToTypingLocation": {}, + "typeAcquisition": { + "enable": true + }, + "unresolvedImports": [ + "node:util/types", + "somename" + ], + "typesRegistry": {}, + "compilerOptions": {} + } +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["node","somename"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "node", + "somename" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } + +ts.JsTyping.discoverTypings:: + { + "fileNames": [ + "/a/b/app.js" + ], + "projectRootPath": "/a/b", + "safeList": {}, + "packageNameToTypingLocation": {}, + "typeAcquisition": { + "enable": true + }, + "unresolvedImports": [ + "node:v8", + "somename" + ], + "typesRegistry": {}, + "compilerOptions": {} + } +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["node","somename"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "node", + "somename" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } + +ts.JsTyping.discoverTypings:: + { + "fileNames": [ + "/a/b/app.js" + ], + "projectRootPath": "/a/b", + "safeList": {}, + "packageNameToTypingLocation": {}, + "typeAcquisition": { + "enable": true + }, + "unresolvedImports": [ + "node:vm", + "somename" + ], + "typesRegistry": {}, + "compilerOptions": {} + } +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["node","somename"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "node", + "somename" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } + +ts.JsTyping.discoverTypings:: + { + "fileNames": [ + "/a/b/app.js" + ], + "projectRootPath": "/a/b", + "safeList": {}, + "packageNameToTypingLocation": {}, + "typeAcquisition": { + "enable": true + }, + "unresolvedImports": [ + "node:wasi", + "somename" + ], + "typesRegistry": {}, + "compilerOptions": {} + } +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["node","somename"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "node", + "somename" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } + +ts.JsTyping.discoverTypings:: + { + "fileNames": [ + "/a/b/app.js" + ], + "projectRootPath": "/a/b", + "safeList": {}, + "packageNameToTypingLocation": {}, + "typeAcquisition": { + "enable": true + }, + "unresolvedImports": [ + "node:worker_threads", + "somename" + ], + "typesRegistry": {}, + "compilerOptions": {} + } +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["node","somename"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "node", + "somename" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } + +ts.JsTyping.discoverTypings:: + { + "fileNames": [ + "/a/b/app.js" + ], + "projectRootPath": "/a/b", + "safeList": {}, + "packageNameToTypingLocation": {}, + "typeAcquisition": { + "enable": true + }, + "unresolvedImports": [ + "node:zlib", + "somename" + ], + "typesRegistry": {}, + "compilerOptions": {} + } +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["node","somename"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "node", + "somename" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } diff --git a/tests/baselines/reference/tsserver/typingsInstaller/discover-typings-should-search-only-2-levels-deep.js b/tests/baselines/reference/tsserver/typingsInstaller/discover-typings-should-search-only-2-levels-deep.js new file mode 100644 index 0000000000000..f76aaee9c7763 --- /dev/null +++ b/tests/baselines/reference/tsserver/typingsInstaller/discover-typings-should-search-only-2-levels-deep.js @@ -0,0 +1,41 @@ +currentDirectory:: / useCaseSensitiveFileNames: false + +//// [/app.js] + + +//// [/node_modules/a/package.json] +{"name":"a"} + +//// [/node_modules/a/b/package.json] +{"name":"b"} + + +ts.JsTyping.discoverTypings:: + { + "fileNames": [ + "/app.js" + ], + "projectRootPath": "/", + "safeList": {}, + "packageNameToTypingLocation": {}, + "typeAcquisition": { + "enable": true + }, + "unresolvedImports": [], + "typesRegistry": {}, + "compilerOptions": {} + } +TI:: [hh:mm:ss:mss] Searching for typing names in /node_modules; all files: ["/node_modules/a/package.json"] +TI:: [hh:mm:ss:mss] Found package names: ["a"] +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "a" + ], + "filesToWatch": [ + "/bower_components", + "/node_modules" + ] + } diff --git a/tests/baselines/reference/tsserver/typingsInstaller/discover-typings-should-support-scoped-packages.js b/tests/baselines/reference/tsserver/typingsInstaller/discover-typings-should-support-scoped-packages.js new file mode 100644 index 0000000000000..f6318c3bec554 --- /dev/null +++ b/tests/baselines/reference/tsserver/typingsInstaller/discover-typings-should-support-scoped-packages.js @@ -0,0 +1,38 @@ +currentDirectory:: / useCaseSensitiveFileNames: false + +//// [/app.js] + + +//// [/node_modules/@a/b/package.json] +{"name":"@a/b"} + + +ts.JsTyping.discoverTypings:: + { + "fileNames": [ + "/app.js" + ], + "projectRootPath": "/", + "safeList": {}, + "packageNameToTypingLocation": {}, + "typeAcquisition": { + "enable": true + }, + "unresolvedImports": [], + "typesRegistry": {}, + "compilerOptions": {} + } +TI:: [hh:mm:ss:mss] Searching for typing names in /node_modules; all files: ["/node_modules/@a/b/package.json"] +TI:: [hh:mm:ss:mss] Found package names: ["@a/b"] +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "@a/b" + ], + "filesToWatch": [ + "/bower_components", + "/node_modules" + ] + } diff --git a/tests/baselines/reference/tsserver/typingsInstaller/discover-typings-should-use-cached-locations.js b/tests/baselines/reference/tsserver/typingsInstaller/discover-typings-should-use-cached-locations.js new file mode 100644 index 0000000000000..fd54361e0bf91 --- /dev/null +++ b/tests/baselines/reference/tsserver/typingsInstaller/discover-typings-should-use-cached-locations.js @@ -0,0 +1,64 @@ +currentDirectory:: / useCaseSensitiveFileNames: false + +//// [/a/b/app.js] + + +//// [/a/b/node.d.ts] + + + +ts.JsTyping.discoverTypings:: + { + "fileNames": [ + "/a/b/app.js" + ], + "projectRootPath": "/a/b", + "safeList": {}, + "packageNameToTypingLocation": { + "node": { + "typingLocation": "/a/b/node.d.ts", + "version": { + "major": 1, + "minor": 3, + "patch": 0, + "prerelease": [], + "build": [] + } + } + }, + "typeAcquisition": { + "enable": true + }, + "unresolvedImports": [ + "fs", + "bar" + ], + "typesRegistry": { + "node": { + "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" + } + }, + "compilerOptions": {} + } +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["node","bar"] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [ + "/a/b/node.d.ts" + ], + "newTypingNames": [ + "bar" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } diff --git a/tests/baselines/reference/tsserver/typingsInstaller/discover-typings-should-use-mappings-from-safe-list.js b/tests/baselines/reference/tsserver/typingsInstaller/discover-typings-should-use-mappings-from-safe-list.js new file mode 100644 index 0000000000000..65ea1a2aa9532 --- /dev/null +++ b/tests/baselines/reference/tsserver/typingsInstaller/discover-typings-should-use-mappings-from-safe-list.js @@ -0,0 +1,46 @@ +currentDirectory:: / useCaseSensitiveFileNames: false + +//// [/a/b/app.js] + + +//// [/a/b/jquery.js] + + +//// [/a/b/chroma.min.js] + + + +ts.JsTyping.discoverTypings:: + { + "fileNames": [ + "/a/b/app.js", + "/a/b/jquery.js", + "/a/b/chroma.min.js" + ], + "projectRootPath": "/a/b", + "safeList": { + "jquery": "jquery", + "chroma": "chroma-js" + }, + "packageNameToTypingLocation": {}, + "typeAcquisition": { + "enable": true + }, + "unresolvedImports": [], + "typesRegistry": {}, + "compilerOptions": {} + } +TI:: [hh:mm:ss:mss] Inferred typings from file names: ["jquery","chroma-js"] +TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "jquery", + "chroma-js" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } diff --git a/tests/baselines/reference/tsserver/typingsInstaller/expired-cache-entry.js b/tests/baselines/reference/tsserver/typingsInstaller/expired-cache-entry.js index 74a96c87da164..4848923bd4df4 100644 --- a/tests/baselines/reference/tsserver/typingsInstaller/expired-cache-entry.js +++ b/tests/baselines/reference/tsserver/typingsInstaller/expired-cache-entry.js @@ -40,8 +40,23 @@ PolledWatches:: TI:: [hh:mm:ss:mss] Global cache location '/a/data', safe file path '/safeList.json', types map path /typesMap.json TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Trying to find '/a/data/package.json'... -TI:: [hh:mm:ss:mss] Loaded content of '/a/data/package.json': {"dependencies":{"types-registry":"^0.1.317"},"devDependencies":{"@types/jquery":"^1.0.0"}} -TI:: [hh:mm:ss:mss] Loaded content of '/a/data/package-lock.json' +TI:: [hh:mm:ss:mss] Loaded content of '/a/data/package.json': + { + "dependencies": { + "types-registry": "^0.1.317" + }, + "devDependencies": { + "@types/jquery": "^1.0.0" + } + } +TI:: [hh:mm:ss:mss] Loaded content of '/a/data/package-lock.json': + { + "dependencies": { + "@types/jquery": { + "version": "1.0.0" + } + } + } TI:: [hh:mm:ss:mss] Adding entry into typings cache: 'jquery' => '/a/data/node_modules/@types/jquery/index.d.ts' TI:: [hh:mm:ss:mss] Finished processing cache location '/a/data' TI:: [hh:mm:ss:mss] Npm config file: /a/data/package.json @@ -67,7 +82,30 @@ TI:: typing installer creation complete } -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject1*","fileNames":["/a/b/app.js"],"compilerOptions":{"target":1,"jsx":1,"allowNonTsExtensions":true,"allowJs":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/","cachePath":"/a/data","kind":"discover"} +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject1*", + "fileNames": [ + "/a/b/app.js" + ], + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/", + "cachePath": "/a/data", + "kind": "discover" + } TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... @@ -75,10 +113,32 @@ TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/typesMap.json' TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Typing names in '/a/b/package.json' dependencies: ["jquery"] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":["jquery"],"filesToWatch":["/a/b/bower_components","/a/b/package.json","/a/b/node_modules","/bower_components","/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":["jquery"],"filesToWatch":["/a/b/bower_components","/a/b/package.json","/a/b/node_modules","/bower_components","/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "jquery" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/package.json", + "/a/b/node_modules", + "/bower_components", + "/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject1*","files":["/a/b/bower_components","/a/b/package.json","/a/b/node_modules","/bower_components","/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject1*", + "files": [ + "/a/b/bower_components", + "/a/b/package.json", + "/a/b/node_modules", + "/bower_components", + "/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /a 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/b/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location for typing installer @@ -89,7 +149,12 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /no TI:: [hh:mm:ss:mss] Installing typings ["jquery"] TI:: [hh:mm:ss:mss] Npm config file: /a/data/package.json TI:: [hh:mm:ss:mss] Sending response: - {"kind":"event::beginInstallTypes","eventId":1,"typingsInstallerVersion":"FakeVersion","projectName":"/dev/null/inferredProject1*"} + { + "kind": "event::beginInstallTypes", + "eventId": 1, + "typingsInstallerVersion": "FakeVersion", + "projectName": "/dev/null/inferredProject1*" + } TI:: [hh:mm:ss:mss] #1 with arguments'["@types/jquery@tsFakeMajor.Minor"]'. Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (1) @@ -122,11 +187,40 @@ TI:: After installWorker TI:: [hh:mm:ss:mss] Installed typings ["@types/jquery@tsFakeMajor.Minor"] TI:: [hh:mm:ss:mss] Installed typing files ["/a/data/node_modules/@types/jquery/index.d.ts"] 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":["/a/data/node_modules/@types/jquery/index.d.ts"],"unresolvedImports":[],"kind":"action::set"} + { + "projectName": "/dev/null/inferredProject1*", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typings": [ + "/a/data/node_modules/@types/jquery/index.d.ts" + ], + "unresolvedImports": [], + "kind": "action::set" + } Info seq [hh:mm:ss:mss] Scheduled: /dev/null/inferredProject1* Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles* TI:: [hh:mm:ss:mss] Sending response: - {"kind":"event::endInstallTypes","eventId":1,"projectName":"/dev/null/inferredProject1*","packagesToInstall":["@types/jquery@tsFakeMajor.Minor"],"installSuccess":true,"typingsInstallerVersion":"FakeVersion"} + { + "kind": "event::endInstallTypes", + "eventId": 1, + "projectName": "/dev/null/inferredProject1*", + "packagesToInstall": [ + "@types/jquery@tsFakeMajor.Minor" + ], + "installSuccess": true, + "typingsInstallerVersion": "FakeVersion" + } Before running Timeout callback:: count: 2 1: /dev/null/inferredProject1* 2: *ensureProjectForOpenFiles* @@ -146,19 +240,78 @@ Info seq [hh:mm:ss:mss] Files (2) Root file specified for compilation Info seq [hh:mm:ss:mss] ----------------------------------------------- -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject1*","fileNames":["/a/b/app.js","/a/data/node_modules/@types/jquery/index.d.ts"],"compilerOptions":{"target":1,"jsx":1,"allowNonTsExtensions":true,"allowJs":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/","cachePath":"/a/data","kind":"discover"} +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject1*", + "fileNames": [ + "/a/b/app.js", + "/a/data/node_modules/@types/jquery/index.d.ts" + ], + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/", + "cachePath": "/a/data", + "kind": "discover" + } TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Typing names in '/a/b/package.json' dependencies: ["jquery"] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":["/a/data/node_modules/@types/jquery/index.d.ts"],"newTypingNames":[],"filesToWatch":["/a/b/bower_components","/a/b/package.json","/a/b/node_modules","/bower_components","/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":["/a/data/node_modules/@types/jquery/index.d.ts"],"newTypingNames":[],"filesToWatch":["/a/b/bower_components","/a/b/package.json","/a/b/node_modules","/bower_components","/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [ + "/a/data/node_modules/@types/jquery/index.d.ts" + ], + "newTypingNames": [], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/package.json", + "/a/b/node_modules", + "/bower_components", + "/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject1*"} + { + "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":["/a/data/node_modules/@types/jquery/index.d.ts"],"unresolvedImports":[],"kind":"action::set"} + { + "projectName": "/dev/null/inferredProject1*", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typings": [ + "/a/data/node_modules/@types/jquery/index.d.ts" + ], + "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] Running: *ensureProjectForOpenFiles* Info seq [hh:mm:ss:mss] Before ensureProjectForOpenFiles: diff --git a/tests/baselines/reference/tsserver/typingsInstaller/external-projects-autoDiscovery.js b/tests/baselines/reference/tsserver/typingsInstaller/external-projects-autoDiscovery.js index 0b35107e2b4d6..853c569374ef0 100644 --- a/tests/baselines/reference/tsserver/typingsInstaller/external-projects-autoDiscovery.js +++ b/tests/baselines/reference/tsserver/typingsInstaller/external-projects-autoDiscovery.js @@ -59,17 +59,54 @@ TI:: typing installer creation complete } -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/a/app/test.csproj","fileNames":["/a/b/app.ts"],"compilerOptions":{"allowNonTsExtensions":true,"noEmitForJsFiles":true},"typeAcquisition":{"enable":true,"include":["jquery"],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/a/app","cachePath":"/a/data","kind":"discover"} +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/a/app/test.csproj", + "fileNames": [ + "/a/b/app.ts" + ], + "compilerOptions": { + "allowNonTsExtensions": true, + "noEmitForJsFiles": true + }, + "typeAcquisition": { + "enable": true, + "include": [ + "jquery" + ], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/a/app", + "cachePath": "/a/data", + "kind": "discover" + } TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/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] Result: {"cachedTypingPaths":[],"newTypingNames":["jquery"],"filesToWatch":["/a/app/bower_components","/a/app/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":["jquery"],"filesToWatch":["/a/app/bower_components","/a/app/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "jquery" + ], + "filesToWatch": [ + "/a/app/bower_components", + "/a/app/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/a/app/test.csproj","files":["/a/app/bower_components","/a/app/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "/a/app/test.csproj", + "files": [ + "/a/app/bower_components", + "/a/app/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /a/app/bower_components 1 undefined Project: /a/app/test.csproj WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a/app/bower_components 1 undefined Project: /a/app/test.csproj WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /a/app/node_modules 1 undefined Project: /a/app/test.csproj WatchType: Directory location for typing installer @@ -77,7 +114,12 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a/ TI:: [hh:mm:ss:mss] Installing typings ["jquery"] TI:: [hh:mm:ss:mss] Npm config file: /a/data/package.json TI:: [hh:mm:ss:mss] Sending response: - {"kind":"event::beginInstallTypes","eventId":1,"typingsInstallerVersion":"FakeVersion","projectName":"/a/app/test.csproj"} + { + "kind": "event::beginInstallTypes", + "eventId": 1, + "typingsInstallerVersion": "FakeVersion", + "projectName": "/a/app/test.csproj" + } TI:: [hh:mm:ss:mss] #1 with arguments'["@types/jquery@tsFakeMajor.Minor"]'. TI:: [hh:mm:ss:mss] #1 with arguments'["@types/jquery@tsFakeMajor.Minor"]':: true TI:: Before installWorker @@ -102,7 +144,34 @@ declare const $: { x: number } TI:: [hh:mm:ss:mss] Installed typings ["@types/jquery@tsFakeMajor.Minor"] TI:: [hh:mm:ss:mss] Installed typing files ["/a/data/node_modules/@types/jquery/index.d.ts"] TI:: [hh:mm:ss:mss] Sending response: - {"projectName":"/a/app/test.csproj","typeAcquisition":{"enable":true,"include":["jquery"],"exclude":[]},"compilerOptions":{"allowNonTsExtensions":true,"noEmitForJsFiles":true},"typings":["/a/data/node_modules/@types/jquery/index.d.ts"],"unresolvedImports":[],"kind":"action::set"} + { + "projectName": "/a/app/test.csproj", + "typeAcquisition": { + "enable": true, + "include": [ + "jquery" + ], + "exclude": [] + }, + "compilerOptions": { + "allowNonTsExtensions": true, + "noEmitForJsFiles": true + }, + "typings": [ + "/a/data/node_modules/@types/jquery/index.d.ts" + ], + "unresolvedImports": [], + "kind": "action::set" + } Info seq [hh:mm:ss:mss] Scheduled: /a/app/test.csproj TI:: [hh:mm:ss:mss] Sending response: - {"kind":"event::endInstallTypes","eventId":1,"projectName":"/a/app/test.csproj","packagesToInstall":["@types/jquery@tsFakeMajor.Minor"],"installSuccess":true,"typingsInstallerVersion":"FakeVersion"} \ No newline at end of file + { + "kind": "event::endInstallTypes", + "eventId": 1, + "projectName": "/a/app/test.csproj", + "packagesToInstall": [ + "@types/jquery@tsFakeMajor.Minor" + ], + "installSuccess": true, + "typingsInstallerVersion": "FakeVersion" + } \ No newline at end of file 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 69f9fbff80d30..835c11291367a 100644 --- a/tests/baselines/reference/tsserver/typingsInstaller/external-projects-duplicate-package.js +++ b/tests/baselines/reference/tsserver/typingsInstaller/external-projects-duplicate-package.js @@ -71,17 +71,54 @@ TI:: typing installer creation complete } -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/a/app/test.csproj","fileNames":["/a/b/app.js"],"compilerOptions":{"allowNonTsExtensions":true,"noEmitForJsFiles":true},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/a/app","cachePath":"/a/data","kind":"discover"} +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/a/app/test.csproj", + "fileNames": [ + "/a/b/app.js" + ], + "compilerOptions": { + "allowNonTsExtensions": true, + "noEmitForJsFiles": true + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/a/app", + "cachePath": "/a/data", + "kind": "discover" + } TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/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] Result: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/a/b/bower_components","/a/b/node_modules","/a/app/bower_components","/a/app/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/a/b/bower_components","/a/b/node_modules","/a/app/bower_components","/a/app/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules", + "/a/app/bower_components", + "/a/app/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/a/app/test.csproj","files":["/a/b/bower_components","/a/b/node_modules","/a/app/bower_components","/a/app/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "/a/app/test.csproj", + "files": [ + "/a/b/bower_components", + "/a/b/node_modules", + "/a/app/bower_components", + "/a/app/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /a/b/bower_components 1 undefined Project: /a/app/test.csproj WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a/b/bower_components 1 undefined Project: /a/app/test.csproj WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /a/b/node_modules 1 undefined Project: /a/app/test.csproj WatchType: Directory location for typing installer @@ -91,5 +128,19 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a/ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /a/app/node_modules 1 undefined Project: /a/app/test.csproj WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a/app/node_modules 1 undefined Project: /a/app/test.csproj WatchType: Directory location for typing installer TI:: [hh:mm:ss:mss] Sending response: - {"projectName":"/a/app/test.csproj","typeAcquisition":{"enable":true,"include":[],"exclude":[]},"compilerOptions":{"allowNonTsExtensions":true,"noEmitForJsFiles":true},"typings":[],"unresolvedImports":[],"kind":"action::set"} + { + "projectName": "/a/app/test.csproj", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowNonTsExtensions": true, + "noEmitForJsFiles": true + }, + "typings": [], + "unresolvedImports": [], + "kind": "action::set" + } TI:: [hh:mm:ss:mss] No new typings were requested as a result of typings discovery \ No newline at end of file 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 8fe8a05abbe5d..ea42f9ab72268 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 @@ -104,7 +104,32 @@ TI:: typing installer creation complete } -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/a/app/test.csproj","fileNames":["/a/b/file2.jsx","/a/b/file3.d.ts","/a/b/lodash.js"],"compilerOptions":{"allowJS":true,"moduleResolution":2,"allowNonTsExtensions":true,"noEmitForJsFiles":true},"typeAcquisition":{"include":["lodash"],"exclude":[],"enable":true},"unresolvedImports":[],"projectRootPath":"/a/app","cachePath":"/a/data","kind":"discover"} +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/a/app/test.csproj", + "fileNames": [ + "/a/b/file2.jsx", + "/a/b/file3.d.ts", + "/a/b/lodash.js" + ], + "compilerOptions": { + "allowJS": true, + "moduleResolution": 2, + "allowNonTsExtensions": true, + "noEmitForJsFiles": true + }, + "typeAcquisition": { + "include": [ + "lodash" + ], + "exclude": [], + "enable": true + }, + "unresolvedImports": [], + "projectRootPath": "/a/app", + "cachePath": "/a/data", + "kind": "discover" + } TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... @@ -113,10 +138,31 @@ 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] Result: {"cachedTypingPaths":[],"newTypingNames":["lodash","react"],"filesToWatch":["/a/b/bower_components","/a/b/node_modules","/a/app/bower_components","/a/app/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":["lodash","react"],"filesToWatch":["/a/b/bower_components","/a/b/node_modules","/a/app/bower_components","/a/app/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "lodash", + "react" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules", + "/a/app/bower_components", + "/a/app/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/a/app/test.csproj","files":["/a/b/bower_components","/a/b/node_modules","/a/app/bower_components","/a/app/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "/a/app/test.csproj", + "files": [ + "/a/b/bower_components", + "/a/b/node_modules", + "/a/app/bower_components", + "/a/app/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /a/b/bower_components 1 undefined Project: /a/app/test.csproj WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a/b/bower_components 1 undefined Project: /a/app/test.csproj WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /a/b/node_modules 1 undefined Project: /a/app/test.csproj WatchType: Directory location for typing installer @@ -128,7 +174,12 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a/ TI:: [hh:mm:ss:mss] Installing typings ["lodash","react"] TI:: [hh:mm:ss:mss] Npm config file: /a/data/package.json TI:: [hh:mm:ss:mss] Sending response: - {"kind":"event::beginInstallTypes","eventId":1,"typingsInstallerVersion":"FakeVersion","projectName":"/a/app/test.csproj"} + { + "kind": "event::beginInstallTypes", + "eventId": 1, + "typingsInstallerVersion": "FakeVersion", + "projectName": "/a/app/test.csproj" + } TI:: [hh:mm:ss:mss] #1 with arguments'["@types/lodash@tsFakeMajor.Minor","@types/react@tsFakeMajor.Minor"]'. TI:: [hh:mm:ss:mss] #1 with arguments'["@types/lodash@tsFakeMajor.Minor","@types/react@tsFakeMajor.Minor"]':: true TI:: Before installWorker @@ -162,10 +213,41 @@ declare const react: { x: number } TI:: [hh:mm:ss:mss] Installed typings ["@types/lodash@tsFakeMajor.Minor","@types/react@tsFakeMajor.Minor"] TI:: [hh:mm:ss:mss] Installed typing files ["/a/data/node_modules/@types/lodash/index.d.ts","/a/data/node_modules/@types/react/index.d.ts"] TI:: [hh:mm:ss:mss] Sending response: - {"projectName":"/a/app/test.csproj","typeAcquisition":{"include":["lodash"],"exclude":[],"enable":true},"compilerOptions":{"allowJS":true,"moduleResolution":2,"allowNonTsExtensions":true,"noEmitForJsFiles":true},"typings":["/a/data/node_modules/@types/lodash/index.d.ts","/a/data/node_modules/@types/react/index.d.ts"],"unresolvedImports":[],"kind":"action::set"} + { + "projectName": "/a/app/test.csproj", + "typeAcquisition": { + "include": [ + "lodash" + ], + "exclude": [], + "enable": true + }, + "compilerOptions": { + "allowJS": true, + "moduleResolution": 2, + "allowNonTsExtensions": true, + "noEmitForJsFiles": true + }, + "typings": [ + "/a/data/node_modules/@types/lodash/index.d.ts", + "/a/data/node_modules/@types/react/index.d.ts" + ], + "unresolvedImports": [], + "kind": "action::set" + } Info seq [hh:mm:ss:mss] Scheduled: /a/app/test.csproj TI:: [hh:mm:ss:mss] Sending response: - {"kind":"event::endInstallTypes","eventId":1,"projectName":"/a/app/test.csproj","packagesToInstall":["@types/lodash@tsFakeMajor.Minor","@types/react@tsFakeMajor.Minor"],"installSuccess":true,"typingsInstallerVersion":"FakeVersion"} + { + "kind": "event::endInstallTypes", + "eventId": 1, + "projectName": "/a/app/test.csproj", + "packagesToInstall": [ + "@types/lodash@tsFakeMajor.Minor", + "@types/react@tsFakeMajor.Minor" + ], + "installSuccess": true, + "typingsInstallerVersion": "FakeVersion" + } Before running Timeout callback:: count: 1 1: /a/app/test.csproj @@ -190,7 +272,34 @@ Info seq [hh:mm:ss:mss] Files (4) Root file specified for compilation Info seq [hh:mm:ss:mss] ----------------------------------------------- -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/a/app/test.csproj","fileNames":["/a/b/file2.jsx","/a/b/file3.d.ts","/a/data/node_modules/@types/lodash/index.d.ts","/a/data/node_modules/@types/react/index.d.ts","/a/b/lodash.js"],"compilerOptions":{"allowJS":true,"moduleResolution":2,"allowNonTsExtensions":true,"noEmitForJsFiles":true},"typeAcquisition":{"include":["lodash"],"exclude":[],"enable":true},"unresolvedImports":[],"projectRootPath":"/a/app","cachePath":"/a/data","kind":"discover"} +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/a/app/test.csproj", + "fileNames": [ + "/a/b/file2.jsx", + "/a/b/file3.d.ts", + "/a/data/node_modules/@types/lodash/index.d.ts", + "/a/data/node_modules/@types/react/index.d.ts", + "/a/b/lodash.js" + ], + "compilerOptions": { + "allowJS": true, + "moduleResolution": 2, + "allowNonTsExtensions": true, + "noEmitForJsFiles": true + }, + "typeAcquisition": { + "include": [ + "lodash" + ], + "exclude": [], + "enable": true + }, + "unresolvedImports": [], + "projectRootPath": "/a/app", + "cachePath": "/a/data", + "kind": "discover" + } TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... @@ -198,11 +307,47 @@ 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] Result: {"cachedTypingPaths":["/a/data/node_modules/@types/lodash/index.d.ts","/a/data/node_modules/@types/react/index.d.ts"],"newTypingNames":[],"filesToWatch":["/a/b/bower_components","/a/b/node_modules","/a/app/bower_components","/a/app/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":["/a/data/node_modules/@types/lodash/index.d.ts","/a/data/node_modules/@types/react/index.d.ts"],"newTypingNames":[],"filesToWatch":["/a/b/bower_components","/a/b/node_modules","/a/app/bower_components","/a/app/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [ + "/a/data/node_modules/@types/lodash/index.d.ts", + "/a/data/node_modules/@types/react/index.d.ts" + ], + "newTypingNames": [], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules", + "/a/app/bower_components", + "/a/app/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/a/app/test.csproj"} + { + "kind": "action::watchTypingLocations", + "projectName": "/a/app/test.csproj" + } TI:: [hh:mm:ss:mss] Sending response: - {"projectName":"/a/app/test.csproj","typeAcquisition":{"include":["lodash"],"exclude":[],"enable":true},"compilerOptions":{"allowJS":true,"moduleResolution":2,"allowNonTsExtensions":true,"noEmitForJsFiles":true},"typings":["/a/data/node_modules/@types/lodash/index.d.ts","/a/data/node_modules/@types/react/index.d.ts"],"unresolvedImports":[],"kind":"action::set"} + { + "projectName": "/a/app/test.csproj", + "typeAcquisition": { + "include": [ + "lodash" + ], + "exclude": [], + "enable": true + }, + "compilerOptions": { + "allowJS": true, + "moduleResolution": 2, + "allowNonTsExtensions": true, + "noEmitForJsFiles": true + }, + "typings": [ + "/a/data/node_modules/@types/lodash/index.d.ts", + "/a/data/node_modules/@types/react/index.d.ts" + ], + "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: 0 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 194ae4c96588f..ecaae783d94c5 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 @@ -59,17 +59,57 @@ TI:: typing installer creation complete } -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/a/app/test.csproj","fileNames":["/a/b/jquery.js"],"compilerOptions":{"allowJS":true,"moduleResolution":2,"allowNonTsExtensions":true,"noEmitForJsFiles":true},"typeAcquisition":{"enable":true,"disableFilenameBasedTypeAcquisition":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/a/app","cachePath":"/a/data","kind":"discover"} +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/a/app/test.csproj", + "fileNames": [ + "/a/b/jquery.js" + ], + "compilerOptions": { + "allowJS": true, + "moduleResolution": 2, + "allowNonTsExtensions": true, + "noEmitForJsFiles": true + }, + "typeAcquisition": { + "enable": true, + "disableFilenameBasedTypeAcquisition": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/a/app", + "cachePath": "/a/data", + "kind": "discover" + } TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/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] Result: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/a/b/bower_components","/a/b/node_modules","/a/app/bower_components","/a/app/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/a/b/bower_components","/a/b/node_modules","/a/app/bower_components","/a/app/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules", + "/a/app/bower_components", + "/a/app/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/a/app/test.csproj","files":["/a/b/bower_components","/a/b/node_modules","/a/app/bower_components","/a/app/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "/a/app/test.csproj", + "files": [ + "/a/b/bower_components", + "/a/b/node_modules", + "/a/app/bower_components", + "/a/app/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /a/b/bower_components 1 undefined Project: /a/app/test.csproj WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a/b/bower_components 1 undefined Project: /a/app/test.csproj WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /a/b/node_modules 1 undefined Project: /a/app/test.csproj WatchType: Directory location for typing installer @@ -79,5 +119,22 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a/ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /a/app/node_modules 1 undefined Project: /a/app/test.csproj WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a/app/node_modules 1 undefined Project: /a/app/test.csproj WatchType: Directory location for typing installer TI:: [hh:mm:ss:mss] Sending response: - {"projectName":"/a/app/test.csproj","typeAcquisition":{"enable":true,"disableFilenameBasedTypeAcquisition":true,"include":[],"exclude":[]},"compilerOptions":{"allowJS":true,"moduleResolution":2,"allowNonTsExtensions":true,"noEmitForJsFiles":true},"typings":[],"unresolvedImports":[],"kind":"action::set"} + { + "projectName": "/a/app/test.csproj", + "typeAcquisition": { + "enable": true, + "disableFilenameBasedTypeAcquisition": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJS": true, + "moduleResolution": 2, + "allowNonTsExtensions": true, + "noEmitForJsFiles": true + }, + "typings": [], + "unresolvedImports": [], + "kind": "action::set" + } TI:: [hh:mm:ss:mss] No new typings were requested as a result of typings discovery \ No newline at end of file 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 557e40b61099e..9b3805b896061 100644 --- a/tests/baselines/reference/tsserver/typingsInstaller/external-projects-type-acquisition.js +++ b/tests/baselines/reference/tsserver/typingsInstaller/external-projects-type-acquisition.js @@ -124,7 +124,37 @@ TI:: typing installer creation complete } -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/a/app/test.csproj","fileNames":["/a/b/file3.d.ts","/a/b/lodash.js","/a/b/commander.js"],"compilerOptions":{"allowJS":true,"moduleResolution":2,"allowNonTsExtensions":true,"noEmitForJsFiles":true},"typeAcquisition":{"enable":true,"include":["jquery","moment","lodash","commander"],"exclude":["lodash"]},"unresolvedImports":[],"projectRootPath":"/a/app","cachePath":"/a/data","kind":"discover"} +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/a/app/test.csproj", + "fileNames": [ + "/a/b/file3.d.ts", + "/a/b/lodash.js", + "/a/b/commander.js" + ], + "compilerOptions": { + "allowJS": true, + "moduleResolution": 2, + "allowNonTsExtensions": true, + "noEmitForJsFiles": true + }, + "typeAcquisition": { + "enable": true, + "include": [ + "jquery", + "moment", + "lodash", + "commander" + ], + "exclude": [ + "lodash" + ] + }, + "unresolvedImports": [], + "projectRootPath": "/a/app", + "cachePath": "/a/data", + "kind": "discover" + } TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... @@ -134,10 +164,35 @@ TI:: [hh:mm:ss:mss] Typing names in '/a/b/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] Result: {"cachedTypingPaths":[],"newTypingNames":["jquery","moment","commander","express"],"filesToWatch":["/a/b/bower_components","/a/b/package.json","/a/b/node_modules","/a/app/bower_components","/a/app/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":["jquery","moment","commander","express"],"filesToWatch":["/a/b/bower_components","/a/b/package.json","/a/b/node_modules","/a/app/bower_components","/a/app/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "jquery", + "moment", + "commander", + "express" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/package.json", + "/a/b/node_modules", + "/a/app/bower_components", + "/a/app/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/a/app/test.csproj","files":["/a/b/bower_components","/a/b/package.json","/a/b/node_modules","/a/app/bower_components","/a/app/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "/a/app/test.csproj", + "files": [ + "/a/b/bower_components", + "/a/b/package.json", + "/a/b/node_modules", + "/a/app/bower_components", + "/a/app/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /a/b/bower_components 1 undefined Project: /a/app/test.csproj WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a/b/bower_components 1 undefined Project: /a/app/test.csproj WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/b/package.json 2000 undefined Project: /a/app/test.csproj WatchType: File location for typing installer @@ -150,7 +205,12 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a/ TI:: [hh:mm:ss:mss] Installing typings ["jquery","moment","commander","express"] TI:: [hh:mm:ss:mss] Npm config file: /a/data/package.json TI:: [hh:mm:ss:mss] Sending response: - {"kind":"event::beginInstallTypes","eventId":1,"typingsInstallerVersion":"FakeVersion","projectName":"/a/app/test.csproj"} + { + "kind": "event::beginInstallTypes", + "eventId": 1, + "typingsInstallerVersion": "FakeVersion", + "projectName": "/a/app/test.csproj" + } TI:: [hh:mm:ss:mss] #1 with arguments'["@types/jquery@tsFakeMajor.Minor","@types/moment@tsFakeMajor.Minor","@types/commander@tsFakeMajor.Minor","@types/express@tsFakeMajor.Minor"]'. TI:: [hh:mm:ss:mss] #1 with arguments'["@types/jquery@tsFakeMajor.Minor","@types/moment@tsFakeMajor.Minor","@types/commander@tsFakeMajor.Minor","@types/express@tsFakeMajor.Minor"]':: true TI:: Before installWorker @@ -190,10 +250,50 @@ declare const moment: { x: number } TI:: [hh:mm:ss:mss] Installed typings ["@types/jquery@tsFakeMajor.Minor","@types/moment@tsFakeMajor.Minor","@types/commander@tsFakeMajor.Minor","@types/express@tsFakeMajor.Minor"] TI:: [hh:mm:ss:mss] Installed typing files ["/a/data/node_modules/@types/jquery/index.d.ts","/a/data/node_modules/@types/moment/index.d.ts","/a/data/node_modules/@types/commander/index.d.ts","/a/data/node_modules/@types/express/index.d.ts"] TI:: [hh:mm:ss:mss] Sending response: - {"projectName":"/a/app/test.csproj","typeAcquisition":{"enable":true,"include":["jquery","moment","lodash","commander"],"exclude":["lodash"]},"compilerOptions":{"allowJS":true,"moduleResolution":2,"allowNonTsExtensions":true,"noEmitForJsFiles":true},"typings":["/a/data/node_modules/@types/jquery/index.d.ts","/a/data/node_modules/@types/moment/index.d.ts","/a/data/node_modules/@types/commander/index.d.ts","/a/data/node_modules/@types/express/index.d.ts"],"unresolvedImports":[],"kind":"action::set"} + { + "projectName": "/a/app/test.csproj", + "typeAcquisition": { + "enable": true, + "include": [ + "jquery", + "moment", + "lodash", + "commander" + ], + "exclude": [ + "lodash" + ] + }, + "compilerOptions": { + "allowJS": true, + "moduleResolution": 2, + "allowNonTsExtensions": true, + "noEmitForJsFiles": true + }, + "typings": [ + "/a/data/node_modules/@types/jquery/index.d.ts", + "/a/data/node_modules/@types/moment/index.d.ts", + "/a/data/node_modules/@types/commander/index.d.ts", + "/a/data/node_modules/@types/express/index.d.ts" + ], + "unresolvedImports": [], + "kind": "action::set" + } Info seq [hh:mm:ss:mss] Scheduled: /a/app/test.csproj TI:: [hh:mm:ss:mss] Sending response: - {"kind":"event::endInstallTypes","eventId":1,"projectName":"/a/app/test.csproj","packagesToInstall":["@types/jquery@tsFakeMajor.Minor","@types/moment@tsFakeMajor.Minor","@types/commander@tsFakeMajor.Minor","@types/express@tsFakeMajor.Minor"],"installSuccess":true,"typingsInstallerVersion":"FakeVersion"} + { + "kind": "event::endInstallTypes", + "eventId": 1, + "projectName": "/a/app/test.csproj", + "packagesToInstall": [ + "@types/jquery@tsFakeMajor.Minor", + "@types/moment@tsFakeMajor.Minor", + "@types/commander@tsFakeMajor.Minor", + "@types/express@tsFakeMajor.Minor" + ], + "installSuccess": true, + "typingsInstallerVersion": "FakeVersion" + } Before running Timeout callback:: count: 1 1: /a/app/test.csproj @@ -221,7 +321,41 @@ Info seq [hh:mm:ss:mss] Files (5) Root file specified for compilation Info seq [hh:mm:ss:mss] ----------------------------------------------- -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/a/app/test.csproj","fileNames":["/a/b/file3.d.ts","/a/data/node_modules/@types/commander/index.d.ts","/a/data/node_modules/@types/express/index.d.ts","/a/data/node_modules/@types/jquery/index.d.ts","/a/data/node_modules/@types/moment/index.d.ts","/a/b/lodash.js","/a/b/commander.js"],"compilerOptions":{"allowJS":true,"moduleResolution":2,"allowNonTsExtensions":true,"noEmitForJsFiles":true},"typeAcquisition":{"enable":true,"include":["jquery","moment","lodash","commander"],"exclude":["lodash"]},"unresolvedImports":[],"projectRootPath":"/a/app","cachePath":"/a/data","kind":"discover"} +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/a/app/test.csproj", + "fileNames": [ + "/a/b/file3.d.ts", + "/a/data/node_modules/@types/commander/index.d.ts", + "/a/data/node_modules/@types/express/index.d.ts", + "/a/data/node_modules/@types/jquery/index.d.ts", + "/a/data/node_modules/@types/moment/index.d.ts", + "/a/b/lodash.js", + "/a/b/commander.js" + ], + "compilerOptions": { + "allowJS": true, + "moduleResolution": 2, + "allowNonTsExtensions": true, + "noEmitForJsFiles": true + }, + "typeAcquisition": { + "enable": true, + "include": [ + "jquery", + "moment", + "lodash", + "commander" + ], + "exclude": [ + "lodash" + ] + }, + "unresolvedImports": [], + "projectRootPath": "/a/app", + "cachePath": "/a/data", + "kind": "discover" + } TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... @@ -230,11 +364,57 @@ TI:: [hh:mm:ss:mss] Typing names in '/a/b/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] Result: {"cachedTypingPaths":["/a/data/node_modules/@types/jquery/index.d.ts","/a/data/node_modules/@types/moment/index.d.ts","/a/data/node_modules/@types/commander/index.d.ts","/a/data/node_modules/@types/express/index.d.ts"],"newTypingNames":[],"filesToWatch":["/a/b/bower_components","/a/b/package.json","/a/b/node_modules","/a/app/bower_components","/a/app/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":["/a/data/node_modules/@types/jquery/index.d.ts","/a/data/node_modules/@types/moment/index.d.ts","/a/data/node_modules/@types/commander/index.d.ts","/a/data/node_modules/@types/express/index.d.ts"],"newTypingNames":[],"filesToWatch":["/a/b/bower_components","/a/b/package.json","/a/b/node_modules","/a/app/bower_components","/a/app/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [ + "/a/data/node_modules/@types/jquery/index.d.ts", + "/a/data/node_modules/@types/moment/index.d.ts", + "/a/data/node_modules/@types/commander/index.d.ts", + "/a/data/node_modules/@types/express/index.d.ts" + ], + "newTypingNames": [], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/package.json", + "/a/b/node_modules", + "/a/app/bower_components", + "/a/app/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/a/app/test.csproj"} + { + "kind": "action::watchTypingLocations", + "projectName": "/a/app/test.csproj" + } TI:: [hh:mm:ss:mss] Sending response: - {"projectName":"/a/app/test.csproj","typeAcquisition":{"enable":true,"include":["jquery","moment","lodash","commander"],"exclude":["lodash"]},"compilerOptions":{"allowJS":true,"moduleResolution":2,"allowNonTsExtensions":true,"noEmitForJsFiles":true},"typings":["/a/data/node_modules/@types/jquery/index.d.ts","/a/data/node_modules/@types/moment/index.d.ts","/a/data/node_modules/@types/commander/index.d.ts","/a/data/node_modules/@types/express/index.d.ts"],"unresolvedImports":[],"kind":"action::set"} + { + "projectName": "/a/app/test.csproj", + "typeAcquisition": { + "enable": true, + "include": [ + "jquery", + "moment", + "lodash", + "commander" + ], + "exclude": [ + "lodash" + ] + }, + "compilerOptions": { + "allowJS": true, + "moduleResolution": 2, + "allowNonTsExtensions": true, + "noEmitForJsFiles": true + }, + "typings": [ + "/a/data/node_modules/@types/jquery/index.d.ts", + "/a/data/node_modules/@types/moment/index.d.ts", + "/a/data/node_modules/@types/commander/index.d.ts", + "/a/data/node_modules/@types/express/index.d.ts" + ], + "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: 0 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 336e977d9a3e8..dbc5439c822cb 100644 --- a/tests/baselines/reference/tsserver/typingsInstaller/inferred-projects-with-disableFilenameBasedTypeAcquisition.js +++ b/tests/baselines/reference/tsserver/typingsInstaller/inferred-projects-with-disableFilenameBasedTypeAcquisition.js @@ -56,22 +56,75 @@ TI:: typing installer creation complete } -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject1*","fileNames":["/a/b/jquery.js"],"compilerOptions":{"allowJs":true,"enable":true,"disableFilenameBasedTypeAcquisition":true,"allowNonTsExtensions":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typeAcquisition":{"enable":true,"disableFilenameBasedTypeAcquisition":true},"unresolvedImports":[],"projectRootPath":"/a/b","cachePath":"/a/data","kind":"discover"} +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject1*", + "fileNames": [ + "/a/b/jquery.js" + ], + "compilerOptions": { + "allowJs": true, + "enable": true, + "disableFilenameBasedTypeAcquisition": true, + "allowNonTsExtensions": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typeAcquisition": { + "enable": true, + "disableFilenameBasedTypeAcquisition": true + }, + "unresolvedImports": [], + "projectRootPath": "/a/b", + "cachePath": "/a/data", + "kind": "discover" + } TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/typesMap.json' TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/a/b/bower_components","/a/b/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/a/b/bower_components","/a/b/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject1*","files":["/a/b/bower_components","/a/b/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject1*", + "files": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /a/b/bower_components 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a/b/bower_components 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /a/b/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a/b/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer TI:: [hh:mm:ss:mss] Sending response: - {"projectName":"/dev/null/inferredProject1*","typeAcquisition":{"enable":true,"disableFilenameBasedTypeAcquisition":true},"compilerOptions":{"allowJs":true,"enable":true,"disableFilenameBasedTypeAcquisition":true,"allowNonTsExtensions":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typings":[],"unresolvedImports":[],"kind":"action::set"} + { + "projectName": "/dev/null/inferredProject1*", + "typeAcquisition": { + "enable": true, + "disableFilenameBasedTypeAcquisition": true + }, + "compilerOptions": { + "allowJs": true, + "enable": true, + "disableFilenameBasedTypeAcquisition": true, + "allowNonTsExtensions": 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] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (1) diff --git a/tests/baselines/reference/tsserver/typingsInstaller/inferred-projects.js b/tests/baselines/reference/tsserver/typingsInstaller/inferred-projects.js index 8bccc09810dc7..dc5db51b7ff2c 100644 --- a/tests/baselines/reference/tsserver/typingsInstaller/inferred-projects.js +++ b/tests/baselines/reference/tsserver/typingsInstaller/inferred-projects.js @@ -59,7 +59,30 @@ TI:: typing installer creation complete } -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject1*","fileNames":["/a/b/app.js"],"compilerOptions":{"target":1,"jsx":1,"allowNonTsExtensions":true,"allowJs":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/","cachePath":"/a/data","kind":"discover"} +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject1*", + "fileNames": [ + "/a/b/app.js" + ], + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/", + "cachePath": "/a/data", + "kind": "discover" + } TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... @@ -67,10 +90,32 @@ TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/typesMap.json' TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Typing names in '/a/b/package.json' dependencies: ["jquery"] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":["jquery"],"filesToWatch":["/a/b/bower_components","/a/b/package.json","/a/b/node_modules","/bower_components","/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":["jquery"],"filesToWatch":["/a/b/bower_components","/a/b/package.json","/a/b/node_modules","/bower_components","/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "jquery" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/package.json", + "/a/b/node_modules", + "/bower_components", + "/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject1*","files":["/a/b/bower_components","/a/b/package.json","/a/b/node_modules","/bower_components","/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject1*", + "files": [ + "/a/b/bower_components", + "/a/b/package.json", + "/a/b/node_modules", + "/bower_components", + "/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /a 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/b/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location for typing installer @@ -81,7 +126,12 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /no TI:: [hh:mm:ss:mss] Installing typings ["jquery"] TI:: [hh:mm:ss:mss] Npm config file: /a/data/package.json TI:: [hh:mm:ss:mss] Sending response: - {"kind":"event::beginInstallTypes","eventId":1,"typingsInstallerVersion":"FakeVersion","projectName":"/dev/null/inferredProject1*"} + { + "kind": "event::beginInstallTypes", + "eventId": 1, + "typingsInstallerVersion": "FakeVersion", + "projectName": "/dev/null/inferredProject1*" + } TI:: [hh:mm:ss:mss] #1 with arguments'["@types/jquery@tsFakeMajor.Minor"]'. Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (1) @@ -126,11 +176,40 @@ declare const $: { x: number } TI:: [hh:mm:ss:mss] Installed typings ["@types/jquery@tsFakeMajor.Minor"] TI:: [hh:mm:ss:mss] Installed typing files ["/a/data/node_modules/@types/jquery/index.d.ts"] 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":["/a/data/node_modules/@types/jquery/index.d.ts"],"unresolvedImports":[],"kind":"action::set"} + { + "projectName": "/dev/null/inferredProject1*", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typings": [ + "/a/data/node_modules/@types/jquery/index.d.ts" + ], + "unresolvedImports": [], + "kind": "action::set" + } Info seq [hh:mm:ss:mss] Scheduled: /dev/null/inferredProject1* Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles* TI:: [hh:mm:ss:mss] Sending response: - {"kind":"event::endInstallTypes","eventId":1,"projectName":"/dev/null/inferredProject1*","packagesToInstall":["@types/jquery@tsFakeMajor.Minor"],"installSuccess":true,"typingsInstallerVersion":"FakeVersion"} + { + "kind": "event::endInstallTypes", + "eventId": 1, + "projectName": "/dev/null/inferredProject1*", + "packagesToInstall": [ + "@types/jquery@tsFakeMajor.Minor" + ], + "installSuccess": true, + "typingsInstallerVersion": "FakeVersion" + } Before running Timeout callback:: count: 2 1: /dev/null/inferredProject1* 2: *ensureProjectForOpenFiles* @@ -150,19 +229,78 @@ Info seq [hh:mm:ss:mss] Files (2) Root file specified for compilation Info seq [hh:mm:ss:mss] ----------------------------------------------- -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject1*","fileNames":["/a/b/app.js","/a/data/node_modules/@types/jquery/index.d.ts"],"compilerOptions":{"target":1,"jsx":1,"allowNonTsExtensions":true,"allowJs":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/","cachePath":"/a/data","kind":"discover"} +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject1*", + "fileNames": [ + "/a/b/app.js", + "/a/data/node_modules/@types/jquery/index.d.ts" + ], + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/", + "cachePath": "/a/data", + "kind": "discover" + } TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Typing names in '/a/b/package.json' dependencies: ["jquery"] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":["/a/data/node_modules/@types/jquery/index.d.ts"],"newTypingNames":[],"filesToWatch":["/a/b/bower_components","/a/b/package.json","/a/b/node_modules","/bower_components","/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":["/a/data/node_modules/@types/jquery/index.d.ts"],"newTypingNames":[],"filesToWatch":["/a/b/bower_components","/a/b/package.json","/a/b/node_modules","/bower_components","/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [ + "/a/data/node_modules/@types/jquery/index.d.ts" + ], + "newTypingNames": [], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/package.json", + "/a/b/node_modules", + "/bower_components", + "/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject1*"} + { + "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":["/a/data/node_modules/@types/jquery/index.d.ts"],"unresolvedImports":[],"kind":"action::set"} + { + "projectName": "/dev/null/inferredProject1*", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typings": [ + "/a/data/node_modules/@types/jquery/index.d.ts" + ], + "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] Running: *ensureProjectForOpenFiles* Info seq [hh:mm:ss:mss] Before ensureProjectForOpenFiles: 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 e9818df19c7f2..50c3927abda7e 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 @@ -70,17 +70,62 @@ TI:: typing installer creation complete } -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject1*","fileNames":["/a/b/app.js"],"compilerOptions":{"target":1,"jsx":1,"allowNonTsExtensions":true,"allowJs":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":["@ember/component","commander","fs"],"projectRootPath":"/a/b","cachePath":"/a/cache","kind":"discover"} +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject1*", + "fileNames": [ + "/a/b/app.js" + ], + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [ + "@ember/component", + "commander", + "fs" + ], + "projectRootPath": "/a/b", + "cachePath": "/a/cache", + "kind": "discover" + } TI:: [hh:mm:ss:mss] Request specifies cache path '/a/cache', loading cached information... TI:: [hh:mm:ss:mss] Processing cache location '/a/cache' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/typesMap.json' TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["@ember/component","commander","node"] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":["@ember/component","commander","node"],"filesToWatch":["/a/b/bower_components","/a/b/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":["@ember/component","commander","node"],"filesToWatch":["/a/b/bower_components","/a/b/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "@ember/component", + "commander", + "node" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject1*","files":["/a/b/bower_components","/a/b/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject1*", + "files": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /a/b/bower_components 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a/b/bower_components 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /a/b/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer @@ -89,7 +134,12 @@ TI:: [hh:mm:ss:mss] Installing typings ["@ember/component","commander","node"] TI:: [hh:mm:ss:mss] '@ember/component':: Entry for package 'ember__component' does not exist in local types registry - skipping... TI:: [hh:mm:ss:mss] Npm config file: /a/cache/package.json TI:: [hh:mm:ss:mss] Sending response: - {"kind":"event::beginInstallTypes","eventId":1,"typingsInstallerVersion":"FakeVersion","projectName":"/dev/null/inferredProject1*"} + { + "kind": "event::beginInstallTypes", + "eventId": 1, + "typingsInstallerVersion": "FakeVersion", + "projectName": "/dev/null/inferredProject1*" + } TI:: [hh:mm:ss:mss] #1 with arguments'["@types/commander@tsFakeMajor.Minor","@types/node@tsFakeMajor.Minor"]'. Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (1) @@ -123,11 +173,46 @@ export let x: number TI:: [hh:mm:ss:mss] Installed typings ["@types/commander@tsFakeMajor.Minor","@types/node@tsFakeMajor.Minor"] TI:: [hh:mm:ss:mss] Installed typing files ["/a/cache/node_modules/@types/commander/index.d.ts","/a/cache/node_modules/@types/node/index.d.ts"] 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":["/a/cache/node_modules/@types/commander/index.d.ts","/a/cache/node_modules/@types/node/index.d.ts"],"unresolvedImports":["@ember/component","commander","fs"],"kind":"action::set"} + { + "projectName": "/dev/null/inferredProject1*", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typings": [ + "/a/cache/node_modules/@types/commander/index.d.ts", + "/a/cache/node_modules/@types/node/index.d.ts" + ], + "unresolvedImports": [ + "@ember/component", + "commander", + "fs" + ], + "kind": "action::set" + } Info seq [hh:mm:ss:mss] Scheduled: /dev/null/inferredProject1* Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles* TI:: [hh:mm:ss:mss] Sending response: - {"kind":"event::endInstallTypes","eventId":1,"projectName":"/dev/null/inferredProject1*","packagesToInstall":["@types/commander@tsFakeMajor.Minor","@types/node@tsFakeMajor.Minor"],"installSuccess":true,"typingsInstallerVersion":"FakeVersion"} + { + "kind": "event::endInstallTypes", + "eventId": 1, + "projectName": "/dev/null/inferredProject1*", + "packagesToInstall": [ + "@types/commander@tsFakeMajor.Minor", + "@types/node@tsFakeMajor.Minor" + ], + "installSuccess": true, + "typingsInstallerVersion": "FakeVersion" + } Before running Timeout callback:: count: 2 1: /dev/null/inferredProject1* 2: *ensureProjectForOpenFiles* @@ -155,18 +240,71 @@ Info seq [hh:mm:ss:mss] Files (4) Root file specified for compilation Info seq [hh:mm:ss:mss] ----------------------------------------------- -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject1*","fileNames":["/a/cache/node_modules/@types/node/index.d.ts","/a/cache/node_modules/@types/commander/index.d.ts","/a/b/app.js"],"compilerOptions":{"target":1,"jsx":1,"allowNonTsExtensions":true,"allowJs":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/a/b","cachePath":"/a/cache","kind":"discover"} +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject1*", + "fileNames": [ + "/a/cache/node_modules/@types/node/index.d.ts", + "/a/cache/node_modules/@types/commander/index.d.ts", + "/a/b/app.js" + ], + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/a/b", + "cachePath": "/a/cache", + "kind": "discover" + } TI:: [hh:mm:ss:mss] Request specifies cache path '/a/cache', loading cached information... TI:: [hh:mm:ss:mss] Processing cache location '/a/cache' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/a/b/bower_components","/a/b/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/a/b/bower_components","/a/b/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject1*"} + { + "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"} + { + "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] Scheduled: /dev/null/inferredProject1* Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles*, Cancelled earlier one TI:: [hh:mm:ss:mss] No new typings were requested as a result of typings discovery 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 548ce46c53b0c..f3438aadd2a84 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 @@ -72,7 +72,32 @@ TI:: typing installer creation complete } -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject1*","fileNames":["/a/b/app.js"],"compilerOptions":{"target":1,"jsx":1,"allowNonTsExtensions":true,"allowJs":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":["foo"],"projectRootPath":"/a/b","cachePath":"/tmp","kind":"discover"} +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject1*", + "fileNames": [ + "/a/b/app.js" + ], + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [ + "foo" + ], + "projectRootPath": "/a/b", + "cachePath": "/tmp", + "kind": "discover" + } TI:: [hh:mm:ss:mss] Request specifies cache path '/tmp', loading cached information... TI:: [hh:mm:ss:mss] Processing cache location '/tmp' TI:: [hh:mm:ss:mss] Cache location was already processed... @@ -81,10 +106,26 @@ TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Searching for typing names in /a/b/node_modules; all files: [] TI:: [hh:mm:ss:mss] Found package names: [] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["foo"] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":["foo"],"filesToWatch":["/a/b/bower_components","/a/b/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":["foo"],"filesToWatch":["/a/b/bower_components","/a/b/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "foo" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject1*","files":["/a/b/bower_components","/a/b/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject1*", + "files": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /a/b/bower_components 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a/b/bower_components 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /a/b/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer @@ -92,7 +133,12 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a/ TI:: [hh:mm:ss:mss] Installing typings ["foo"] TI:: [hh:mm:ss:mss] Npm config file: /tmp/package.json TI:: [hh:mm:ss:mss] Sending response: - {"kind":"event::beginInstallTypes","eventId":1,"typingsInstallerVersion":"FakeVersion","projectName":"/dev/null/inferredProject1*"} + { + "kind": "event::beginInstallTypes", + "eventId": 1, + "typingsInstallerVersion": "FakeVersion", + "projectName": "/dev/null/inferredProject1*" + } TI:: [hh:mm:ss:mss] #1 with arguments'["@types/foo@tsFakeMajor.Minor"]'. Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (2) @@ -131,11 +177,42 @@ export function c (): void; TI:: [hh:mm:ss:mss] Installed typings ["@types/foo@tsFakeMajor.Minor"] TI:: [hh:mm:ss:mss] Installed typing files ["/tmp/node_modules/foo/index.d.ts"] 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":["/tmp/node_modules/foo/index.d.ts"],"unresolvedImports":["foo"],"kind":"action::set"} + { + "projectName": "/dev/null/inferredProject1*", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typings": [ + "/tmp/node_modules/foo/index.d.ts" + ], + "unresolvedImports": [ + "foo" + ], + "kind": "action::set" + } Info seq [hh:mm:ss:mss] Scheduled: /dev/null/inferredProject1* Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles* TI:: [hh:mm:ss:mss] Sending response: - {"kind":"event::endInstallTypes","eventId":1,"projectName":"/dev/null/inferredProject1*","packagesToInstall":["@types/foo@tsFakeMajor.Minor"],"installSuccess":true,"typingsInstallerVersion":"FakeVersion"} + { + "kind": "event::endInstallTypes", + "eventId": 1, + "projectName": "/dev/null/inferredProject1*", + "packagesToInstall": [ + "@types/foo@tsFakeMajor.Minor" + ], + "installSuccess": true, + "typingsInstallerVersion": "FakeVersion" + } Before running Timeout callback:: count: 2 1: /dev/null/inferredProject1* 2: *ensureProjectForOpenFiles* @@ -167,7 +244,31 @@ Info seq [hh:mm:ss:mss] Files (6) Root file specified for compilation Info seq [hh:mm:ss:mss] ----------------------------------------------- -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject1*","fileNames":["/a/b/app.js","/tmp/node_modules/foo/index.d.ts"],"compilerOptions":{"target":1,"jsx":1,"allowNonTsExtensions":true,"allowJs":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/a/b","cachePath":"/tmp","kind":"discover"} +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject1*", + "fileNames": [ + "/a/b/app.js", + "/tmp/node_modules/foo/index.d.ts" + ], + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/a/b", + "cachePath": "/tmp", + "kind": "discover" + } TI:: [hh:mm:ss:mss] Request specifies cache path '/tmp', loading cached information... TI:: [hh:mm:ss:mss] Processing cache location '/tmp' TI:: [hh:mm:ss:mss] Cache location was already processed... @@ -175,12 +276,40 @@ TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Searching for typing names in /a/b/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] Result: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/a/b/bower_components","/a/b/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/a/b/bower_components","/a/b/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject1*"} + { + "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"} + { + "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] Scheduled: /dev/null/inferredProject1* Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles*, Cancelled earlier one TI:: [hh:mm:ss:mss] No new typings were requested as a result of typings discovery @@ -211,7 +340,30 @@ Info seq [hh:mm:ss:mss] Files (5) Root file specified for compilation Info seq [hh:mm:ss:mss] ----------------------------------------------- -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject1*","fileNames":["/a/b/app.js"],"compilerOptions":{"target":1,"jsx":1,"allowNonTsExtensions":true,"allowJs":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/a/b","cachePath":"/tmp","kind":"discover"} +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject1*", + "fileNames": [ + "/a/b/app.js" + ], + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/a/b", + "cachePath": "/tmp", + "kind": "discover" + } TI:: [hh:mm:ss:mss] Request specifies cache path '/tmp', loading cached information... TI:: [hh:mm:ss:mss] Processing cache location '/tmp' TI:: [hh:mm:ss:mss] Cache location was already processed... @@ -219,12 +371,40 @@ TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Searching for typing names in /a/b/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] Result: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/a/b/bower_components","/a/b/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/a/b/bower_components","/a/b/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject1*"} + { + "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"} + { + "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 Before running Timeout callback:: count: 2 3: /dev/null/inferredProject1* @@ -242,7 +422,32 @@ Info seq [hh:mm:ss:mss] Files (5) /a/b/app.js SVC-1-1 "import * as bar from \"bar\";\n import * as a from \"foo/a/a\";\n import * as b from \"foo/a/b\";\n import * as c from \"foo/a/c\";\n import * as x from \"fooo\";" Info seq [hh:mm:ss:mss] ----------------------------------------------- -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject1*","fileNames":["/a/b/app.js"],"compilerOptions":{"target":1,"jsx":1,"allowNonTsExtensions":true,"allowJs":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":["bar"],"projectRootPath":"/a/b","cachePath":"/tmp","kind":"discover"} +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject1*", + "fileNames": [ + "/a/b/app.js" + ], + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [ + "bar" + ], + "projectRootPath": "/a/b", + "cachePath": "/tmp", + "kind": "discover" + } TI:: [hh:mm:ss:mss] Request specifies cache path '/tmp', loading cached information... TI:: [hh:mm:ss:mss] Processing cache location '/tmp' TI:: [hh:mm:ss:mss] Cache location was already processed... @@ -250,15 +455,47 @@ TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Searching for typing names in /a/b/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] Result: {"cachedTypingPaths":[],"newTypingNames":["bar"],"filesToWatch":["/a/b/bower_components","/a/b/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":["bar"],"filesToWatch":["/a/b/bower_components","/a/b/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "bar" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject1*"} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject1*" + } TI:: [hh:mm:ss:mss] Installing typings ["bar"] TI:: [hh:mm:ss:mss] 'bar':: Entry for package 'bar' does not exist in local types registry - 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"],"kind":"action::set"} + { + "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" + ], + "kind": "action::set" + } Info seq [hh:mm:ss:mss] Running: *ensureProjectForOpenFiles* Info seq [hh:mm:ss:mss] Before ensureProjectForOpenFiles: Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) diff --git a/tests/baselines/reference/tsserver/typingsInstaller/invalidate-the-resolutions.js b/tests/baselines/reference/tsserver/typingsInstaller/invalidate-the-resolutions.js index 7b70592aa90cc..d620c2e4a9959 100644 --- a/tests/baselines/reference/tsserver/typingsInstaller/invalidate-the-resolutions.js +++ b/tests/baselines/reference/tsserver/typingsInstaller/invalidate-the-resolutions.js @@ -68,7 +68,32 @@ TI:: typing installer creation complete } -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject1*","fileNames":["/a/b/app.js"],"compilerOptions":{"target":1,"jsx":1,"allowNonTsExtensions":true,"allowJs":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":["foo"],"projectRootPath":"/a/b","cachePath":"/tmp","kind":"discover"} +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject1*", + "fileNames": [ + "/a/b/app.js" + ], + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [ + "foo" + ], + "projectRootPath": "/a/b", + "cachePath": "/tmp", + "kind": "discover" + } TI:: [hh:mm:ss:mss] Request specifies cache path '/tmp', loading cached information... TI:: [hh:mm:ss:mss] Processing cache location '/tmp' TI:: [hh:mm:ss:mss] Cache location was already processed... @@ -77,10 +102,26 @@ TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Searching for typing names in /a/b/node_modules; all files: [] TI:: [hh:mm:ss:mss] Found package names: [] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["foo"] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":["foo"],"filesToWatch":["/a/b/bower_components","/a/b/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":["foo"],"filesToWatch":["/a/b/bower_components","/a/b/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "foo" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject1*","files":["/a/b/bower_components","/a/b/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject1*", + "files": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /a/b/bower_components 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a/b/bower_components 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /a/b/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer @@ -88,7 +129,12 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a/ TI:: [hh:mm:ss:mss] Installing typings ["foo"] TI:: [hh:mm:ss:mss] Npm config file: /tmp/package.json TI:: [hh:mm:ss:mss] Sending response: - {"kind":"event::beginInstallTypes","eventId":1,"typingsInstallerVersion":"FakeVersion","projectName":"/dev/null/inferredProject1*"} + { + "kind": "event::beginInstallTypes", + "eventId": 1, + "typingsInstallerVersion": "FakeVersion", + "projectName": "/dev/null/inferredProject1*" + } TI:: [hh:mm:ss:mss] #1 with arguments'["@types/foo@tsFakeMajor.Minor"]'. Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (2) @@ -118,11 +164,42 @@ export function a(): void; TI:: [hh:mm:ss:mss] Installed typings ["@types/foo@tsFakeMajor.Minor"] TI:: [hh:mm:ss:mss] Installed typing files ["/tmp/node_modules/foo/index.d.ts"] 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":["/tmp/node_modules/foo/index.d.ts"],"unresolvedImports":["foo"],"kind":"action::set"} + { + "projectName": "/dev/null/inferredProject1*", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typings": [ + "/tmp/node_modules/foo/index.d.ts" + ], + "unresolvedImports": [ + "foo" + ], + "kind": "action::set" + } Info seq [hh:mm:ss:mss] Scheduled: /dev/null/inferredProject1* Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles* TI:: [hh:mm:ss:mss] Sending response: - {"kind":"event::endInstallTypes","eventId":1,"projectName":"/dev/null/inferredProject1*","packagesToInstall":["@types/foo@tsFakeMajor.Minor"],"installSuccess":true,"typingsInstallerVersion":"FakeVersion"} + { + "kind": "event::endInstallTypes", + "eventId": 1, + "projectName": "/dev/null/inferredProject1*", + "packagesToInstall": [ + "@types/foo@tsFakeMajor.Minor" + ], + "installSuccess": true, + "typingsInstallerVersion": "FakeVersion" + } Before running Timeout callback:: count: 2 1: /dev/null/inferredProject1* 2: *ensureProjectForOpenFiles* @@ -146,7 +223,31 @@ Info seq [hh:mm:ss:mss] Files (3) Root file specified for compilation Info seq [hh:mm:ss:mss] ----------------------------------------------- -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject1*","fileNames":["/tmp/node_modules/foo/index.d.ts","/a/b/app.js"],"compilerOptions":{"target":1,"jsx":1,"allowNonTsExtensions":true,"allowJs":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/a/b","cachePath":"/tmp","kind":"discover"} +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject1*", + "fileNames": [ + "/tmp/node_modules/foo/index.d.ts", + "/a/b/app.js" + ], + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/a/b", + "cachePath": "/tmp", + "kind": "discover" + } TI:: [hh:mm:ss:mss] Request specifies cache path '/tmp', loading cached information... TI:: [hh:mm:ss:mss] Processing cache location '/tmp' TI:: [hh:mm:ss:mss] Cache location was already processed... @@ -154,12 +255,40 @@ TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Searching for typing names in /a/b/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] Result: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/a/b/bower_components","/a/b/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/a/b/bower_components","/a/b/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject1*"} + { + "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"} + { + "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] Scheduled: /dev/null/inferredProject1* Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles*, Cancelled earlier one TI:: [hh:mm:ss:mss] No new typings were requested as a result of typings discovery @@ -184,7 +313,30 @@ Info seq [hh:mm:ss:mss] Files (3) Root file specified for compilation Info seq [hh:mm:ss:mss] ----------------------------------------------- -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject1*","fileNames":["/a/b/app.js"],"compilerOptions":{"target":1,"jsx":1,"allowNonTsExtensions":true,"allowJs":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/a/b","cachePath":"/tmp","kind":"discover"} +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject1*", + "fileNames": [ + "/a/b/app.js" + ], + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/a/b", + "cachePath": "/tmp", + "kind": "discover" + } TI:: [hh:mm:ss:mss] Request specifies cache path '/tmp', loading cached information... TI:: [hh:mm:ss:mss] Processing cache location '/tmp' TI:: [hh:mm:ss:mss] Cache location was already processed... @@ -192,12 +344,40 @@ TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Searching for typing names in /a/b/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] Result: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/a/b/bower_components","/a/b/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/a/b/bower_components","/a/b/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject1*"} + { + "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"} + { + "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 Before running Timeout callback:: count: 2 3: /dev/null/inferredProject1* @@ -213,7 +393,32 @@ Info seq [hh:mm:ss:mss] Files (3) /a/b/app.js SVC-1-1 "import * as bar from \"bar\";import * as a from \"foo\";import * as x from \"fooo\";" Info seq [hh:mm:ss:mss] ----------------------------------------------- -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject1*","fileNames":["/a/b/app.js"],"compilerOptions":{"target":1,"jsx":1,"allowNonTsExtensions":true,"allowJs":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":["bar"],"projectRootPath":"/a/b","cachePath":"/tmp","kind":"discover"} +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject1*", + "fileNames": [ + "/a/b/app.js" + ], + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [ + "bar" + ], + "projectRootPath": "/a/b", + "cachePath": "/tmp", + "kind": "discover" + } TI:: [hh:mm:ss:mss] Request specifies cache path '/tmp', loading cached information... TI:: [hh:mm:ss:mss] Processing cache location '/tmp' TI:: [hh:mm:ss:mss] Cache location was already processed... @@ -221,15 +426,47 @@ TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Searching for typing names in /a/b/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] Result: {"cachedTypingPaths":[],"newTypingNames":["bar"],"filesToWatch":["/a/b/bower_components","/a/b/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":["bar"],"filesToWatch":["/a/b/bower_components","/a/b/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "bar" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject1*"} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject1*" + } TI:: [hh:mm:ss:mss] Installing typings ["bar"] TI:: [hh:mm:ss:mss] 'bar':: Entry for package 'bar' does not exist in local types registry - 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"],"kind":"action::set"} + { + "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" + ], + "kind": "action::set" + } Info seq [hh:mm:ss:mss] Running: *ensureProjectForOpenFiles* Info seq [hh:mm:ss:mss] Before ensureProjectForOpenFiles: Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) 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 cb4670770f5aa..d06b29664298f 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 @@ -98,23 +98,81 @@ TI:: typing installer creation complete } -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/a/jsconfig.json","fileNames":["/a/config.js","/a/app.js"],"compilerOptions":{"allowJs":true,"maxNodeModuleJsDepth":2,"allowSyntheticDefaultImports":true,"skipLibCheck":true,"noEmit":true,"configFilePath":"/a/jsconfig.json","allowNonTsExtensions":true},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/a","cachePath":"/cache","kind":"discover"} +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/a/jsconfig.json", + "fileNames": [ + "/a/config.js", + "/a/app.js" + ], + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "configFilePath": "/a/jsconfig.json", + "allowNonTsExtensions": true + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/a", + "cachePath": "/cache", + "kind": "discover" + } TI:: [hh:mm:ss:mss] Request specifies cache path '/cache', loading cached information... TI:: [hh:mm:ss:mss] Processing cache location '/cache' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/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] Result: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/a/bower_components","/a/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/a/bower_components","/a/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/a/bower_components", + "/a/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/a/jsconfig.json","files":["/a/bower_components","/a/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "/a/jsconfig.json", + "files": [ + "/a/bower_components", + "/a/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /a/bower_components 1 undefined Project: /a/jsconfig.json WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a/bower_components 1 undefined Project: /a/jsconfig.json WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /a/node_modules 1 undefined Project: /a/jsconfig.json WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a/node_modules 1 undefined Project: /a/jsconfig.json WatchType: Directory location for typing installer TI:: [hh:mm:ss:mss] Sending response: - {"projectName":"/a/jsconfig.json","typeAcquisition":{"enable":true,"include":[],"exclude":[]},"compilerOptions":{"allowJs":true,"maxNodeModuleJsDepth":2,"allowSyntheticDefaultImports":true,"skipLibCheck":true,"noEmit":true,"configFilePath":"/a/jsconfig.json","allowNonTsExtensions":true},"typings":[],"unresolvedImports":[],"kind":"action::set"} + { + "projectName": "/a/jsconfig.json", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "configFilePath": "/a/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 Info seq [hh:mm:ss:mss] Project '/a/jsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (2) diff --git a/tests/baselines/reference/tsserver/typingsInstaller/malformed-packagejson.js b/tests/baselines/reference/tsserver/typingsInstaller/malformed-packagejson.js index b22e07f49825d..3bf4cbe4bb4ab 100644 --- a/tests/baselines/reference/tsserver/typingsInstaller/malformed-packagejson.js +++ b/tests/baselines/reference/tsserver/typingsInstaller/malformed-packagejson.js @@ -59,7 +59,30 @@ TI:: typing installer creation complete } -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject1*","fileNames":["/a/b/app.js"],"compilerOptions":{"target":1,"jsx":1,"allowNonTsExtensions":true,"allowJs":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/a/b","cachePath":"/a/cache/","kind":"discover"} +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject1*", + "fileNames": [ + "/a/b/app.js" + ], + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/a/b", + "cachePath": "/a/cache/", + "kind": "discover" + } TI:: [hh:mm:ss:mss] Request specifies cache path '/a/cache/', loading cached information... TI:: [hh:mm:ss:mss] Processing cache location '/a/cache/' TI:: [hh:mm:ss:mss] Cache location was already processed... @@ -67,10 +90,28 @@ TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/typesMap.json' TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Typing names in '/a/b/package.json' dependencies: ["co } }"] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":["co } }"],"filesToWatch":["/a/b/bower_components","/a/b/package.json","/a/b/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":["co } }"],"filesToWatch":["/a/b/bower_components","/a/b/package.json","/a/b/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "co } }" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/package.json", + "/a/b/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject1*","files":["/a/b/bower_components","/a/b/package.json","/a/b/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject1*", + "files": [ + "/a/b/bower_components", + "/a/b/package.json", + "/a/b/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /a/b/bower_components 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a/b/bower_components 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/b/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location for typing installer @@ -80,7 +121,25 @@ TI:: [hh:mm:ss:mss] Installing typings ["co } }"] TI:: [hh:mm:ss:mss] 'co } }':: Package name 'co } }' contains non URI safe characters 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":[],"kind":"action::set"} + { + "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] FileWatcher:: Added:: WatchInfo: /a/b/package.json 250 undefined WatchType: package.json file Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (1) @@ -90,21 +149,62 @@ Info seq [hh:mm:ss:mss] Open files: Info seq [hh:mm:ss:mss] FileName: /a/b/app.js ProjectRootPath: undefined Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* Info seq [hh:mm:ss:mss] FileWatcher:: Triggered with /a/b/package.json 1:: WatchInfo: /a/b/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location for typing installer -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject1*","fileNames":["/a/b/app.js"],"compilerOptions":{"target":1,"jsx":1,"allowNonTsExtensions":true,"allowJs":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/a/b","cachePath":"/a/cache/","kind":"discover"} +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject1*", + "fileNames": [ + "/a/b/app.js" + ], + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/a/b", + "cachePath": "/a/cache/", + "kind": "discover" + } TI:: [hh:mm:ss:mss] Request specifies cache path '/a/cache/', loading cached information... TI:: [hh:mm:ss:mss] Processing cache location '/a/cache/' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Typing names in '/a/b/package.json' dependencies: ["commander"] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":["commander"],"filesToWatch":["/a/b/bower_components","/a/b/package.json","/a/b/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":["commander"],"filesToWatch":["/a/b/bower_components","/a/b/package.json","/a/b/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "commander" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/package.json", + "/a/b/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject1*"} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject1*" + } TI:: [hh:mm:ss:mss] Installing typings ["commander"] TI:: [hh:mm:ss:mss] Npm config file: /a/cache/package.json TI:: [hh:mm:ss:mss] Sending response: - {"kind":"event::beginInstallTypes","eventId":1,"typingsInstallerVersion":"FakeVersion","projectName":"/dev/null/inferredProject1*"} + { + "kind": "event::beginInstallTypes", + "eventId": 1, + "typingsInstallerVersion": "FakeVersion", + "projectName": "/dev/null/inferredProject1*" + } TI:: [hh:mm:ss:mss] #1 with arguments'["@types/commander@tsFakeMajor.Minor"]'. Info seq [hh:mm:ss:mss] Elapsed:: *ms FileWatcher:: Triggered with /a/b/package.json 1:: WatchInfo: /a/b/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location for typing installer Info seq [hh:mm:ss:mss] FileWatcher:: Triggered with /a/b/package.json 1:: WatchInfo: /a/b/package.json 250 undefined WatchType: package.json file @@ -138,11 +238,40 @@ export let x: number TI:: [hh:mm:ss:mss] Installed typings ["@types/commander@tsFakeMajor.Minor"] TI:: [hh:mm:ss:mss] Installed typing files ["/a/cache/node_modules/@types/commander/index.d.ts"] 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":["/a/cache/node_modules/@types/commander/index.d.ts"],"unresolvedImports":[],"kind":"action::set"} + { + "projectName": "/dev/null/inferredProject1*", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typings": [ + "/a/cache/node_modules/@types/commander/index.d.ts" + ], + "unresolvedImports": [], + "kind": "action::set" + } Info seq [hh:mm:ss:mss] Scheduled: /dev/null/inferredProject1* Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles* TI:: [hh:mm:ss:mss] Sending response: - {"kind":"event::endInstallTypes","eventId":1,"projectName":"/dev/null/inferredProject1*","packagesToInstall":["@types/commander@tsFakeMajor.Minor"],"installSuccess":true,"typingsInstallerVersion":"FakeVersion"} + { + "kind": "event::endInstallTypes", + "eventId": 1, + "projectName": "/dev/null/inferredProject1*", + "packagesToInstall": [ + "@types/commander@tsFakeMajor.Minor" + ], + "installSuccess": true, + "typingsInstallerVersion": "FakeVersion" + } Before running Timeout callback:: count: 2 1: /dev/null/inferredProject1* 2: *ensureProjectForOpenFiles* @@ -162,19 +291,76 @@ Info seq [hh:mm:ss:mss] Files (2) Root file specified for compilation Info seq [hh:mm:ss:mss] ----------------------------------------------- -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject1*","fileNames":["/a/b/app.js","/a/cache/node_modules/@types/commander/index.d.ts"],"compilerOptions":{"target":1,"jsx":1,"allowNonTsExtensions":true,"allowJs":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/a/b","cachePath":"/a/cache/","kind":"discover"} +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject1*", + "fileNames": [ + "/a/b/app.js", + "/a/cache/node_modules/@types/commander/index.d.ts" + ], + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/a/b", + "cachePath": "/a/cache/", + "kind": "discover" + } TI:: [hh:mm:ss:mss] Request specifies cache path '/a/cache/', loading cached information... TI:: [hh:mm:ss:mss] Processing cache location '/a/cache/' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Typing names in '/a/b/package.json' dependencies: ["commander"] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":["/a/cache/node_modules/@types/commander/index.d.ts"],"newTypingNames":[],"filesToWatch":["/a/b/bower_components","/a/b/package.json","/a/b/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":["/a/cache/node_modules/@types/commander/index.d.ts"],"newTypingNames":[],"filesToWatch":["/a/b/bower_components","/a/b/package.json","/a/b/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [ + "/a/cache/node_modules/@types/commander/index.d.ts" + ], + "newTypingNames": [], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/package.json", + "/a/b/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject1*"} + { + "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":["/a/cache/node_modules/@types/commander/index.d.ts"],"unresolvedImports":[],"kind":"action::set"} + { + "projectName": "/dev/null/inferredProject1*", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typings": [ + "/a/cache/node_modules/@types/commander/index.d.ts" + ], + "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] Running: *ensureProjectForOpenFiles* Info seq [hh:mm:ss:mss] Before ensureProjectForOpenFiles: diff --git a/tests/baselines/reference/tsserver/typingsInstaller/multiple-projects.js b/tests/baselines/reference/tsserver/typingsInstaller/multiple-projects.js index ca20e209404ff..2d5bc13b550a6 100644 --- a/tests/baselines/reference/tsserver/typingsInstaller/multiple-projects.js +++ b/tests/baselines/reference/tsserver/typingsInstaller/multiple-projects.js @@ -136,7 +136,28 @@ TI:: typing installer creation complete } -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/user/username/projects/project/tsconfig.json","fileNames":["/a/lib/lib.d.ts","/user/username/projects/project/app.js"],"compilerOptions":{"allowJs":true,"configFilePath":"/user/username/projects/project/tsconfig.json","allowNonTsExtensions":true},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/user/username/projects/project","cachePath":"/a/data","kind":"discover"} +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/user/username/projects/project/tsconfig.json", + "fileNames": [ + "/a/lib/lib.d.ts", + "/user/username/projects/project/app.js" + ], + "compilerOptions": { + "allowJs": true, + "configFilePath": "/user/username/projects/project/tsconfig.json", + "allowNonTsExtensions": true + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/user/username/projects/project", + "cachePath": "/a/data", + "kind": "discover" + } TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... @@ -144,10 +165,28 @@ TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/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] Result: {"cachedTypingPaths":[],"newTypingNames":["jquery"],"filesToWatch":["/user/username/projects/project/bower_components","/user/username/projects/project/package.json","/user/username/projects/project/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":["jquery"],"filesToWatch":["/user/username/projects/project/bower_components","/user/username/projects/project/package.json","/user/username/projects/project/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "jquery" + ], + "filesToWatch": [ + "/user/username/projects/project/bower_components", + "/user/username/projects/project/package.json", + "/user/username/projects/project/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/user/username/projects/project/tsconfig.json","files":["/user/username/projects/project/bower_components","/user/username/projects/project/package.json","/user/username/projects/project/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "/user/username/projects/project/tsconfig.json", + "files": [ + "/user/username/projects/project/bower_components", + "/user/username/projects/project/package.json", + "/user/username/projects/project/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/project/bower_components 1 undefined Project: /user/username/projects/project/tsconfig.json WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/project/bower_components 1 undefined Project: /user/username/projects/project/tsconfig.json WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/project/package.json 2000 undefined Project: /user/username/projects/project/tsconfig.json WatchType: File location for typing installer @@ -156,7 +195,12 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /us TI:: [hh:mm:ss:mss] Installing typings ["jquery"] TI:: [hh:mm:ss:mss] Npm config file: /a/data/package.json TI:: [hh:mm:ss:mss] Sending response: - {"kind":"event::beginInstallTypes","eventId":1,"typingsInstallerVersion":"FakeVersion","projectName":"/user/username/projects/project/tsconfig.json"} + { + "kind": "event::beginInstallTypes", + "eventId": 1, + "typingsInstallerVersion": "FakeVersion", + "projectName": "/user/username/projects/project/tsconfig.json" + } TI:: [hh:mm:ss:mss] #1 with arguments'["@types/jquery@tsFakeMajor.Minor"]'. Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/project/package.json 250 undefined WatchType: package.json file Info seq [hh:mm:ss:mss] Project '/user/username/projects/project/tsconfig.json' (Configured) @@ -205,11 +249,37 @@ declare const $: { x: number } TI:: [hh:mm:ss:mss] Installed typings ["@types/jquery@tsFakeMajor.Minor"] TI:: [hh:mm:ss:mss] Installed typing files ["/a/data/node_modules/@types/jquery/index.d.ts"] TI:: [hh:mm:ss:mss] Sending response: - {"projectName":"/user/username/projects/project/tsconfig.json","typeAcquisition":{"enable":true,"include":[],"exclude":[]},"compilerOptions":{"allowJs":true,"configFilePath":"/user/username/projects/project/tsconfig.json","allowNonTsExtensions":true},"typings":["/a/data/node_modules/@types/jquery/index.d.ts"],"unresolvedImports":[],"kind":"action::set"} + { + "projectName": "/user/username/projects/project/tsconfig.json", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "configFilePath": "/user/username/projects/project/tsconfig.json", + "allowNonTsExtensions": true + }, + "typings": [ + "/a/data/node_modules/@types/jquery/index.d.ts" + ], + "unresolvedImports": [], + "kind": "action::set" + } Info seq [hh:mm:ss:mss] Scheduled: /user/username/projects/project/tsconfig.json Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles* TI:: [hh:mm:ss:mss] Sending response: - {"kind":"event::endInstallTypes","eventId":1,"projectName":"/user/username/projects/project/tsconfig.json","packagesToInstall":["@types/jquery@tsFakeMajor.Minor"],"installSuccess":true,"typingsInstallerVersion":"FakeVersion"} + { + "kind": "event::endInstallTypes", + "eventId": 1, + "projectName": "/user/username/projects/project/tsconfig.json", + "packagesToInstall": [ + "@types/jquery@tsFakeMajor.Minor" + ], + "installSuccess": true, + "typingsInstallerVersion": "FakeVersion" + } Before running Timeout callback:: count: 2 1: /user/username/projects/project/tsconfig.json 2: *ensureProjectForOpenFiles* @@ -232,19 +302,71 @@ Info seq [hh:mm:ss:mss] Files (3) Matched by default include pattern '**/*' Info seq [hh:mm:ss:mss] ----------------------------------------------- -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/user/username/projects/project/tsconfig.json","fileNames":["/a/lib/lib.d.ts","/user/username/projects/project/app.js","/a/data/node_modules/@types/jquery/index.d.ts"],"compilerOptions":{"allowJs":true,"configFilePath":"/user/username/projects/project/tsconfig.json","allowNonTsExtensions":true},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/user/username/projects/project","cachePath":"/a/data","kind":"discover"} +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/user/username/projects/project/tsconfig.json", + "fileNames": [ + "/a/lib/lib.d.ts", + "/user/username/projects/project/app.js", + "/a/data/node_modules/@types/jquery/index.d.ts" + ], + "compilerOptions": { + "allowJs": true, + "configFilePath": "/user/username/projects/project/tsconfig.json", + "allowNonTsExtensions": true + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/user/username/projects/project", + "cachePath": "/a/data", + "kind": "discover" + } TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... 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] Result: {"cachedTypingPaths":["/a/data/node_modules/@types/jquery/index.d.ts"],"newTypingNames":[],"filesToWatch":["/user/username/projects/project/bower_components","/user/username/projects/project/package.json","/user/username/projects/project/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":["/a/data/node_modules/@types/jquery/index.d.ts"],"newTypingNames":[],"filesToWatch":["/user/username/projects/project/bower_components","/user/username/projects/project/package.json","/user/username/projects/project/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [ + "/a/data/node_modules/@types/jquery/index.d.ts" + ], + "newTypingNames": [], + "filesToWatch": [ + "/user/username/projects/project/bower_components", + "/user/username/projects/project/package.json", + "/user/username/projects/project/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/user/username/projects/project/tsconfig.json"} + { + "kind": "action::watchTypingLocations", + "projectName": "/user/username/projects/project/tsconfig.json" + } TI:: [hh:mm:ss:mss] Sending response: - {"projectName":"/user/username/projects/project/tsconfig.json","typeAcquisition":{"enable":true,"include":[],"exclude":[]},"compilerOptions":{"allowJs":true,"configFilePath":"/user/username/projects/project/tsconfig.json","allowNonTsExtensions":true},"typings":["/a/data/node_modules/@types/jquery/index.d.ts"],"unresolvedImports":[],"kind":"action::set"} + { + "projectName": "/user/username/projects/project/tsconfig.json", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "configFilePath": "/user/username/projects/project/tsconfig.json", + "allowNonTsExtensions": true + }, + "typings": [ + "/a/data/node_modules/@types/jquery/index.d.ts" + ], + "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] Running: *ensureProjectForOpenFiles* Info seq [hh:mm:ss:mss] Before ensureProjectForOpenFiles: @@ -356,17 +478,56 @@ Info seq [hh:mm:ss:mss] Files (2) Matched by default include pattern '**/*' Info seq [hh:mm:ss:mss] ----------------------------------------------- -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/user/username/projects/project2/tsconfig.json","fileNames":["/a/lib/lib.d.ts","/user/username/projects/project2/app.js"],"compilerOptions":{"allowJs":true,"configFilePath":"/user/username/projects/project2/tsconfig.json","allowNonTsExtensions":true},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/user/username/projects/project2","cachePath":"/a/data","kind":"discover"} +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/user/username/projects/project2/tsconfig.json", + "fileNames": [ + "/a/lib/lib.d.ts", + "/user/username/projects/project2/app.js" + ], + "compilerOptions": { + "allowJs": true, + "configFilePath": "/user/username/projects/project2/tsconfig.json", + "allowNonTsExtensions": true + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/user/username/projects/project2", + "cachePath": "/a/data", + "kind": "discover" + } TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... 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] Result: {"cachedTypingPaths":[],"newTypingNames":["commander"],"filesToWatch":["/user/username/projects/project2/bower_components","/user/username/projects/project2/package.json","/user/username/projects/project2/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":["commander"],"filesToWatch":["/user/username/projects/project2/bower_components","/user/username/projects/project2/package.json","/user/username/projects/project2/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "commander" + ], + "filesToWatch": [ + "/user/username/projects/project2/bower_components", + "/user/username/projects/project2/package.json", + "/user/username/projects/project2/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/user/username/projects/project2/tsconfig.json","files":["/user/username/projects/project2/bower_components","/user/username/projects/project2/package.json","/user/username/projects/project2/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "/user/username/projects/project2/tsconfig.json", + "files": [ + "/user/username/projects/project2/bower_components", + "/user/username/projects/project2/package.json", + "/user/username/projects/project2/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/project2/bower_components 1 undefined Project: /user/username/projects/project2/tsconfig.json WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/project2/bower_components 1 undefined Project: /user/username/projects/project2/tsconfig.json WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/project2/package.json 2000 undefined Project: /user/username/projects/project2/tsconfig.json WatchType: File location for typing installer @@ -375,7 +536,12 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /us TI:: [hh:mm:ss:mss] Installing typings ["commander"] TI:: [hh:mm:ss:mss] Npm config file: /a/data/package.json TI:: [hh:mm:ss:mss] Sending response: - {"kind":"event::beginInstallTypes","eventId":2,"typingsInstallerVersion":"FakeVersion","projectName":"/user/username/projects/project2/tsconfig.json"} + { + "kind": "event::beginInstallTypes", + "eventId": 2, + "typingsInstallerVersion": "FakeVersion", + "projectName": "/user/username/projects/project2/tsconfig.json" + } TI:: [hh:mm:ss:mss] #2 with arguments'["@types/commander@tsFakeMajor.Minor"]'. Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /user/username/projects/project2/package.json 250 undefined WatchType: package.json file Info seq [hh:mm:ss:mss] `remove Project:: @@ -399,7 +565,11 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /us Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/project/tsconfig.json 2000 undefined Project: /user/username/projects/project/tsconfig.json WatchType: Config file TI:: [hh:mm:ss:mss] Closing file watchers for project '/user/username/projects/project/tsconfig.json' TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/user/username/projects/project/tsconfig.json","files":[]} + { + "kind": "action::watchTypingLocations", + "projectName": "/user/username/projects/project/tsconfig.json", + "files": [] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/project/bower_components 1 undefined Project: /user/username/projects/project/tsconfig.json WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /user/username/projects/project/bower_components 1 undefined Project: /user/username/projects/project/tsconfig.json WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /user/username/projects/project/package.json 2000 undefined Project: /user/username/projects/project/tsconfig.json WatchType: File location for typing installer 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 9d75a0837d840..18cd9895ed3ab 100644 --- a/tests/baselines/reference/tsserver/typingsInstaller/non-expired-cache-entry.js +++ b/tests/baselines/reference/tsserver/typingsInstaller/non-expired-cache-entry.js @@ -40,8 +40,23 @@ PolledWatches:: TI:: [hh:mm:ss:mss] Global cache location '/a/data', safe file path '/safeList.json', types map path /typesMap.json TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Trying to find '/a/data/package.json'... -TI:: [hh:mm:ss:mss] Loaded content of '/a/data/package.json': {"dependencies":{"types-registry":"^0.1.317"},"devDependencies":{"@types/jquery":"^1.3.0"}} -TI:: [hh:mm:ss:mss] Loaded content of '/a/data/package-lock.json' +TI:: [hh:mm:ss:mss] Loaded content of '/a/data/package.json': + { + "dependencies": { + "types-registry": "^0.1.317" + }, + "devDependencies": { + "@types/jquery": "^1.3.0" + } + } +TI:: [hh:mm:ss:mss] Loaded content of '/a/data/package-lock.json': + { + "dependencies": { + "@types/jquery": { + "version": "1.3.0" + } + } + } TI:: [hh:mm:ss:mss] Adding entry into typings cache: 'jquery' => '/a/data/node_modules/@types/jquery/index.d.ts' TI:: [hh:mm:ss:mss] Finished processing cache location '/a/data' TI:: [hh:mm:ss:mss] Npm config file: /a/data/package.json @@ -67,7 +82,30 @@ TI:: typing installer creation complete } -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject1*","fileNames":["/a/b/app.js"],"compilerOptions":{"target":1,"jsx":1,"allowNonTsExtensions":true,"allowJs":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/","cachePath":"/a/data","kind":"discover"} +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject1*", + "fileNames": [ + "/a/b/app.js" + ], + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/", + "cachePath": "/a/data", + "kind": "discover" + } TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... @@ -75,10 +113,32 @@ TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/typesMap.json' TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Typing names in '/a/b/package.json' dependencies: ["jquery"] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":["/a/data/node_modules/@types/jquery/index.d.ts"],"newTypingNames":[],"filesToWatch":["/a/b/bower_components","/a/b/package.json","/a/b/node_modules","/bower_components","/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":["/a/data/node_modules/@types/jquery/index.d.ts"],"newTypingNames":[],"filesToWatch":["/a/b/bower_components","/a/b/package.json","/a/b/node_modules","/bower_components","/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [ + "/a/data/node_modules/@types/jquery/index.d.ts" + ], + "newTypingNames": [], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/package.json", + "/a/b/node_modules", + "/bower_components", + "/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject1*","files":["/a/b/bower_components","/a/b/package.json","/a/b/node_modules","/bower_components","/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject1*", + "files": [ + "/a/b/bower_components", + "/a/b/package.json", + "/a/b/node_modules", + "/bower_components", + "/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /a 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/b/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location for typing installer @@ -87,7 +147,27 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /bo Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer 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":["/a/data/node_modules/@types/jquery/index.d.ts"],"unresolvedImports":[],"kind":"action::set"} + { + "projectName": "/dev/null/inferredProject1*", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typings": [ + "/a/data/node_modules/@types/jquery/index.d.ts" + ], + "unresolvedImports": [], + "kind": "action::set" + } Info seq [hh:mm:ss:mss] Scheduled: /dev/null/inferredProject1* Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles* TI:: [hh:mm:ss:mss] No new typings were requested as a result of typings discovery diff --git a/tests/baselines/reference/tsserver/typingsInstaller/pick-typing-names-from-nonrelative-unresolved-imports.js b/tests/baselines/reference/tsserver/typingsInstaller/pick-typing-names-from-nonrelative-unresolved-imports.js index b7e8c99485ba1..f2a15ebc2e28d 100644 --- a/tests/baselines/reference/tsserver/typingsInstaller/pick-typing-names-from-nonrelative-unresolved-imports.js +++ b/tests/baselines/reference/tsserver/typingsInstaller/pick-typing-names-from-nonrelative-unresolved-imports.js @@ -68,17 +68,62 @@ TI:: typing installer creation complete } -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject1*","fileNames":["/a/b/app.js"],"compilerOptions":{"target":1,"jsx":1,"allowNonTsExtensions":true,"allowJs":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":["@bar/common","@bar/router","foo"],"projectRootPath":"/a/b","cachePath":"/tmp","kind":"discover"} +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject1*", + "fileNames": [ + "/a/b/app.js" + ], + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [ + "@bar/common", + "@bar/router", + "foo" + ], + "projectRootPath": "/a/b", + "cachePath": "/tmp", + "kind": "discover" + } TI:: [hh:mm:ss:mss] Request specifies cache path '/tmp', loading cached information... TI:: [hh:mm:ss:mss] Processing cache location '/tmp' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/typesMap.json' TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["@bar/common","@bar/router","foo"] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":["@bar/common","@bar/router","foo"],"filesToWatch":["/a/b/bower_components","/a/b/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":["@bar/common","@bar/router","foo"],"filesToWatch":["/a/b/bower_components","/a/b/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "@bar/common", + "@bar/router", + "foo" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject1*","files":["/a/b/bower_components","/a/b/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject1*", + "files": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /a/b/bower_components 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a/b/bower_components 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /a/b/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer @@ -88,7 +133,12 @@ TI:: [hh:mm:ss:mss] '@bar/common':: Entry for package 'bar__common' does not exi TI:: [hh:mm:ss:mss] '@bar/router':: Entry for package 'bar__router' does not exist in local types registry - skipping... TI:: [hh:mm:ss:mss] Npm config file: /tmp/package.json TI:: [hh:mm:ss:mss] Sending response: - {"kind":"event::beginInstallTypes","eventId":1,"typingsInstallerVersion":"FakeVersion","projectName":"/dev/null/inferredProject1*"} + { + "kind": "event::beginInstallTypes", + "eventId": 1, + "typingsInstallerVersion": "FakeVersion", + "projectName": "/dev/null/inferredProject1*" + } TI:: [hh:mm:ss:mss] #1 with arguments'["@types/foo@tsFakeMajor.Minor"]'. Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (1) @@ -118,6 +168,37 @@ TI:: After installWorker TI:: [hh:mm:ss:mss] Installed typings ["@types/foo@tsFakeMajor.Minor"] TI:: [hh:mm:ss:mss] Installed typing files [] 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/common","@bar/router","foo"],"kind":"action::set"} + { + "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/common", + "@bar/router", + "foo" + ], + "kind": "action::set" + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"event::endInstallTypes","eventId":1,"projectName":"/dev/null/inferredProject1*","packagesToInstall":["@types/foo@tsFakeMajor.Minor"],"installSuccess":true,"typingsInstallerVersion":"FakeVersion"} \ No newline at end of file + { + "kind": "event::endInstallTypes", + "eventId": 1, + "projectName": "/dev/null/inferredProject1*", + "packagesToInstall": [ + "@types/foo@tsFakeMajor.Minor" + ], + "installSuccess": true, + "typingsInstallerVersion": "FakeVersion" + } \ No newline at end of file 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 10072f90cc2be..246f6613c7290 100644 --- a/tests/baselines/reference/tsserver/typingsInstaller/progress-notification-for-error.js +++ b/tests/baselines/reference/tsserver/typingsInstaller/progress-notification-for-error.js @@ -59,7 +59,30 @@ TI:: typing installer creation complete } -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject1*","fileNames":["/a/app.js"],"compilerOptions":{"target":1,"jsx":1,"allowNonTsExtensions":true,"allowJs":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/a","cachePath":"/a/cache/","kind":"discover"} +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject1*", + "fileNames": [ + "/a/app.js" + ], + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/a", + "cachePath": "/a/cache/", + "kind": "discover" + } TI:: [hh:mm:ss:mss] Request specifies cache path '/a/cache/', loading cached information... TI:: [hh:mm:ss:mss] Processing cache location '/a/cache/' TI:: [hh:mm:ss:mss] Cache location was already processed... @@ -67,10 +90,28 @@ TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/typesMap.json' TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Typing names in '/a/package.json' dependencies: ["commander"] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":["commander"],"filesToWatch":["/a/bower_components","/a/package.json","/a/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":["commander"],"filesToWatch":["/a/bower_components","/a/package.json","/a/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "commander" + ], + "filesToWatch": [ + "/a/bower_components", + "/a/package.json", + "/a/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject1*","files":["/a/bower_components","/a/package.json","/a/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject1*", + "files": [ + "/a/bower_components", + "/a/package.json", + "/a/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /a/bower_components 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a/bower_components 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location for typing installer @@ -79,7 +120,12 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a/ TI:: [hh:mm:ss:mss] Installing typings ["commander"] TI:: [hh:mm:ss:mss] Npm config file: /a/cache/package.json TI:: [hh:mm:ss:mss] Sending response: - {"kind":"event::beginInstallTypes","eventId":1,"typingsInstallerVersion":"FakeVersion","projectName":"/dev/null/inferredProject1*"} + { + "kind": "event::beginInstallTypes", + "eventId": 1, + "typingsInstallerVersion": "FakeVersion", + "projectName": "/dev/null/inferredProject1*" + } TI:: [hh:mm:ss:mss] #1 with arguments'["@types/commander@tsFakeMajor.Minor"]'. Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/package.json 250 undefined WatchType: package.json file Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) @@ -108,4 +154,13 @@ TI:: After installWorker TI:: [hh:mm:ss:mss] install request failed, marking packages as missing to prevent repeated requests: ["commander"] TI:: [hh:mm:ss:mss] Sending response: - {"kind":"event::endInstallTypes","eventId":1,"projectName":"/dev/null/inferredProject1*","packagesToInstall":["@types/commander@tsFakeMajor.Minor"],"installSuccess":false,"typingsInstallerVersion":"FakeVersion"} \ No newline at end of file + { + "kind": "event::endInstallTypes", + "eventId": 1, + "projectName": "/dev/null/inferredProject1*", + "packagesToInstall": [ + "@types/commander@tsFakeMajor.Minor" + ], + "installSuccess": false, + "typingsInstallerVersion": "FakeVersion" + } \ No newline at end of file diff --git a/tests/baselines/reference/tsserver/typingsInstaller/progress-notification.js b/tests/baselines/reference/tsserver/typingsInstaller/progress-notification.js index 5b504c8f6d31e..10f34bf1cfb36 100644 --- a/tests/baselines/reference/tsserver/typingsInstaller/progress-notification.js +++ b/tests/baselines/reference/tsserver/typingsInstaller/progress-notification.js @@ -62,7 +62,30 @@ TI:: typing installer creation complete } -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject1*","fileNames":["/a/app.js"],"compilerOptions":{"target":1,"jsx":1,"allowNonTsExtensions":true,"allowJs":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/a","cachePath":"/a/cache/","kind":"discover"} +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject1*", + "fileNames": [ + "/a/app.js" + ], + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/a", + "cachePath": "/a/cache/", + "kind": "discover" + } TI:: [hh:mm:ss:mss] Request specifies cache path '/a/cache/', loading cached information... TI:: [hh:mm:ss:mss] Processing cache location '/a/cache/' TI:: [hh:mm:ss:mss] Cache location was already processed... @@ -70,10 +93,28 @@ TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/typesMap.json' TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Typing names in '/a/package.json' dependencies: ["commander"] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":["commander"],"filesToWatch":["/a/bower_components","/a/package.json","/a/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":["commander"],"filesToWatch":["/a/bower_components","/a/package.json","/a/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "commander" + ], + "filesToWatch": [ + "/a/bower_components", + "/a/package.json", + "/a/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject1*","files":["/a/bower_components","/a/package.json","/a/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject1*", + "files": [ + "/a/bower_components", + "/a/package.json", + "/a/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /a/bower_components 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a/bower_components 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location for typing installer @@ -82,7 +123,12 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a/ TI:: [hh:mm:ss:mss] Installing typings ["commander"] TI:: [hh:mm:ss:mss] Npm config file: /a/cache/package.json TI:: [hh:mm:ss:mss] Sending response: - {"kind":"event::beginInstallTypes","eventId":1,"typingsInstallerVersion":"FakeVersion","projectName":"/dev/null/inferredProject1*"} + { + "kind": "event::beginInstallTypes", + "eventId": 1, + "typingsInstallerVersion": "FakeVersion", + "projectName": "/dev/null/inferredProject1*" + } TI:: [hh:mm:ss:mss] #1 with arguments'["@types/commander@tsFakeMajor.Minor"]'. Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/package.json 250 undefined WatchType: package.json file Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) @@ -115,11 +161,40 @@ export let x: number TI:: [hh:mm:ss:mss] Installed typings ["@types/commander@tsFakeMajor.Minor"] TI:: [hh:mm:ss:mss] Installed typing files ["/a/cache/node_modules/@types/commander/index.d.ts"] 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":["/a/cache/node_modules/@types/commander/index.d.ts"],"unresolvedImports":[],"kind":"action::set"} + { + "projectName": "/dev/null/inferredProject1*", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typings": [ + "/a/cache/node_modules/@types/commander/index.d.ts" + ], + "unresolvedImports": [], + "kind": "action::set" + } Info seq [hh:mm:ss:mss] Scheduled: /dev/null/inferredProject1* Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles* TI:: [hh:mm:ss:mss] Sending response: - {"kind":"event::endInstallTypes","eventId":1,"projectName":"/dev/null/inferredProject1*","packagesToInstall":["@types/commander@tsFakeMajor.Minor"],"installSuccess":true,"typingsInstallerVersion":"FakeVersion"} + { + "kind": "event::endInstallTypes", + "eventId": 1, + "projectName": "/dev/null/inferredProject1*", + "packagesToInstall": [ + "@types/commander@tsFakeMajor.Minor" + ], + "installSuccess": true, + "typingsInstallerVersion": "FakeVersion" + } Before running Timeout callback:: count: 2 1: /dev/null/inferredProject1* 2: *ensureProjectForOpenFiles* @@ -139,19 +214,76 @@ Info seq [hh:mm:ss:mss] Files (2) Root file specified for compilation Info seq [hh:mm:ss:mss] ----------------------------------------------- -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject1*","fileNames":["/a/app.js","/a/cache/node_modules/@types/commander/index.d.ts"],"compilerOptions":{"target":1,"jsx":1,"allowNonTsExtensions":true,"allowJs":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/a","cachePath":"/a/cache/","kind":"discover"} +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject1*", + "fileNames": [ + "/a/app.js", + "/a/cache/node_modules/@types/commander/index.d.ts" + ], + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/a", + "cachePath": "/a/cache/", + "kind": "discover" + } TI:: [hh:mm:ss:mss] Request specifies cache path '/a/cache/', loading cached information... TI:: [hh:mm:ss:mss] Processing cache location '/a/cache/' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Typing names in '/a/package.json' dependencies: ["commander"] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":["/a/cache/node_modules/@types/commander/index.d.ts"],"newTypingNames":[],"filesToWatch":["/a/bower_components","/a/package.json","/a/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":["/a/cache/node_modules/@types/commander/index.d.ts"],"newTypingNames":[],"filesToWatch":["/a/bower_components","/a/package.json","/a/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [ + "/a/cache/node_modules/@types/commander/index.d.ts" + ], + "newTypingNames": [], + "filesToWatch": [ + "/a/bower_components", + "/a/package.json", + "/a/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject1*"} + { + "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":["/a/cache/node_modules/@types/commander/index.d.ts"],"unresolvedImports":[],"kind":"action::set"} + { + "projectName": "/dev/null/inferredProject1*", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typings": [ + "/a/cache/node_modules/@types/commander/index.d.ts" + ], + "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] Running: *ensureProjectForOpenFiles* Info seq [hh:mm:ss:mss] Before ensureProjectForOpenFiles: 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 398d423ef4b53..d1d5ac94fe686 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 @@ -57,8 +57,14 @@ PolledWatches:: TI:: [hh:mm:ss:mss] Global cache location '/users/username/Library/Caches/typescript/2.7', safe file path '/safeList.json', types map path /typesMap.json TI:: [hh:mm:ss:mss] Processing cache location '/users/username/Library/Caches/typescript/2.7' TI:: [hh:mm:ss:mss] Trying to find '/users/username/Library/Caches/typescript/2.7/package.json'... -TI:: [hh:mm:ss:mss] Loaded content of '/users/username/Library/Caches/typescript/2.7/package.json': {"devDependencies":{}} -TI:: [hh:mm:ss:mss] Loaded content of '/users/username/Library/Caches/typescript/2.7/package-lock.json' +TI:: [hh:mm:ss:mss] Loaded content of '/users/username/Library/Caches/typescript/2.7/package.json': + { + "devDependencies": {} + } +TI:: [hh:mm:ss:mss] Loaded content of '/users/username/Library/Caches/typescript/2.7/package-lock.json': + { + "dependencies": {} + } TI:: [hh:mm:ss:mss] Finished processing cache location '/users/username/Library/Caches/typescript/2.7' TI:: [hh:mm:ss:mss] Npm config file: /users/username/Library/Caches/typescript/2.7/package.json TI:: [hh:mm:ss:mss] Updating types-registry npm package... @@ -83,23 +89,84 @@ TI:: typing installer creation complete } -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject1*","fileNames":["/user/username/projects/san2/x.js"],"compilerOptions":{"module":1,"target":3,"jsx":1,"experimentalDecorators":true,"allowJs":true,"allowSyntheticDefaultImports":true,"allowNonTsExtensions":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/user/username/projects/san2","cachePath":"/users/username/Library/Caches/typescript/2.7","kind":"discover"} +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject1*", + "fileNames": [ + "/user/username/projects/san2/x.js" + ], + "compilerOptions": { + "module": 1, + "target": 3, + "jsx": 1, + "experimentalDecorators": true, + "allowJs": true, + "allowSyntheticDefaultImports": true, + "allowNonTsExtensions": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/user/username/projects/san2", + "cachePath": "/users/username/Library/Caches/typescript/2.7", + "kind": "discover" + } TI:: [hh:mm:ss:mss] Request specifies cache path '/users/username/Library/Caches/typescript/2.7', loading cached information... TI:: [hh:mm:ss:mss] Processing cache location '/users/username/Library/Caches/typescript/2.7' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/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] Result: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/user/username/projects/san2/bower_components","/user/username/projects/san2/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/user/username/projects/san2/bower_components","/user/username/projects/san2/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/user/username/projects/san2/bower_components", + "/user/username/projects/san2/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject1*","files":["/user/username/projects/san2/bower_components","/user/username/projects/san2/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject1*", + "files": [ + "/user/username/projects/san2/bower_components", + "/user/username/projects/san2/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/san2/bower_components 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/san2/bower_components 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/san2/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/san2/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer TI:: [hh:mm:ss:mss] Sending response: - {"projectName":"/dev/null/inferredProject1*","typeAcquisition":{"enable":true,"include":[],"exclude":[]},"compilerOptions":{"module":1,"target":3,"jsx":1,"experimentalDecorators":true,"allowJs":true,"allowSyntheticDefaultImports":true,"allowNonTsExtensions":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typings":[],"unresolvedImports":[],"kind":"action::set"} + { + "projectName": "/dev/null/inferredProject1*", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "module": 1, + "target": 3, + "jsx": 1, + "experimentalDecorators": true, + "allowJs": true, + "allowSyntheticDefaultImports": true, + "allowNonTsExtensions": 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] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (1) 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 f1dd3ba51ce76..d72a3b83c4265 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 @@ -103,17 +103,58 @@ TI:: typing installer creation complete } -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject1*","fileNames":["/user/username/projects/a/b/app.js"],"compilerOptions":{"target":1,"jsx":1,"allowNonTsExtensions":true,"allowJs":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":["commander"],"projectRootPath":"/user/username/projects/a/b","cachePath":"/user/username/projects/a/cache","kind":"discover"} +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject1*", + "fileNames": [ + "/user/username/projects/a/b/app.js" + ], + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [ + "commander" + ], + "projectRootPath": "/user/username/projects/a/b", + "cachePath": "/user/username/projects/a/cache", + "kind": "discover" + } TI:: [hh:mm:ss:mss] Request specifies cache path '/user/username/projects/a/cache', loading cached information... TI:: [hh:mm:ss:mss] Processing cache location '/user/username/projects/a/cache' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/typesMap.json' TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["commander"] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":["commander"],"filesToWatch":["/user/username/projects/a/b/bower_components","/user/username/projects/a/b/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":["commander"],"filesToWatch":["/user/username/projects/a/b/bower_components","/user/username/projects/a/b/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "commander" + ], + "filesToWatch": [ + "/user/username/projects/a/b/bower_components", + "/user/username/projects/a/b/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject1*","files":["/user/username/projects/a/b/bower_components","/user/username/projects/a/b/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject1*", + "files": [ + "/user/username/projects/a/b/bower_components", + "/user/username/projects/a/b/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/a/b/bower_components 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/a/b/bower_components 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/a/b/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer @@ -121,7 +162,12 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /us TI:: [hh:mm:ss:mss] Installing typings ["commander"] TI:: [hh:mm:ss:mss] Npm config file: /user/username/projects/a/cache/package.json TI:: [hh:mm:ss:mss] Sending response: - {"kind":"event::beginInstallTypes","eventId":1,"typingsInstallerVersion":"FakeVersion","projectName":"/dev/null/inferredProject1*"} + { + "kind": "event::beginInstallTypes", + "eventId": 1, + "typingsInstallerVersion": "FakeVersion", + "projectName": "/dev/null/inferredProject1*" + } TI:: [hh:mm:ss:mss] #1 with arguments'["@types/commander@tsFakeMajor.Minor"]'. Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (2) @@ -169,11 +215,42 @@ TI:: After installWorker TI:: [hh:mm:ss:mss] Installed typings ["@types/commander@tsFakeMajor.Minor"] TI:: [hh:mm:ss:mss] Installed typing files ["/user/username/projects/a/cache/node_modules/@types/commander/index.d.ts"] 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":["/user/username/projects/a/cache/node_modules/@types/commander/index.d.ts"],"unresolvedImports":["commander"],"kind":"action::set"} + { + "projectName": "/dev/null/inferredProject1*", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typings": [ + "/user/username/projects/a/cache/node_modules/@types/commander/index.d.ts" + ], + "unresolvedImports": [ + "commander" + ], + "kind": "action::set" + } Info seq [hh:mm:ss:mss] Scheduled: /dev/null/inferredProject1* Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles* TI:: [hh:mm:ss:mss] Sending response: - {"kind":"event::endInstallTypes","eventId":1,"projectName":"/dev/null/inferredProject1*","packagesToInstall":["@types/commander@tsFakeMajor.Minor"],"installSuccess":true,"typingsInstallerVersion":"FakeVersion"} + { + "kind": "event::endInstallTypes", + "eventId": 1, + "projectName": "/dev/null/inferredProject1*", + "packagesToInstall": [ + "@types/commander@tsFakeMajor.Minor" + ], + "installSuccess": true, + "typingsInstallerVersion": "FakeVersion" + } Before running Timeout callback:: count: 2 1: /dev/null/inferredProject1* 2: *ensureProjectForOpenFiles* @@ -196,18 +273,70 @@ Info seq [hh:mm:ss:mss] Files (2) Root file specified for compilation Info seq [hh:mm:ss:mss] ----------------------------------------------- -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject1*","fileNames":["/user/username/projects/a/cache/node_modules/@types/commander/index.d.ts","/user/username/projects/a/b/app.js"],"compilerOptions":{"target":1,"jsx":1,"allowNonTsExtensions":true,"allowJs":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/user/username/projects/a/b","cachePath":"/user/username/projects/a/cache","kind":"discover"} +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject1*", + "fileNames": [ + "/user/username/projects/a/cache/node_modules/@types/commander/index.d.ts", + "/user/username/projects/a/b/app.js" + ], + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/user/username/projects/a/b", + "cachePath": "/user/username/projects/a/cache", + "kind": "discover" + } TI:: [hh:mm:ss:mss] Request specifies cache path '/user/username/projects/a/cache', loading cached information... TI:: [hh:mm:ss:mss] Processing cache location '/user/username/projects/a/cache' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/user/username/projects/a/b/bower_components","/user/username/projects/a/b/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/user/username/projects/a/b/bower_components","/user/username/projects/a/b/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/user/username/projects/a/b/bower_components", + "/user/username/projects/a/b/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject1*"} + { + "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"} + { + "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] Scheduled: /dev/null/inferredProject1* Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles*, Cancelled earlier one TI:: [hh:mm:ss:mss] No new typings were requested as a result of typings discovery diff --git a/tests/baselines/reference/tsserver/typingsInstaller/scoped-name-discovery.js b/tests/baselines/reference/tsserver/typingsInstaller/scoped-name-discovery.js index de12e9577d094..ad5f9d348926a 100644 --- a/tests/baselines/reference/tsserver/typingsInstaller/scoped-name-discovery.js +++ b/tests/baselines/reference/tsserver/typingsInstaller/scoped-name-discovery.js @@ -155,7 +155,31 @@ FsWatchesRecursive:: /: {} -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/jsconfig.json","fileNames":["/app.js"],"compilerOptions":{"allowJs":true,"maxNodeModuleJsDepth":2,"allowSyntheticDefaultImports":true,"skipLibCheck":true,"noEmit":true,"configFilePath":"/jsconfig.json","allowNonTsExtensions":true},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/","cachePath":"/tmp","kind":"discover"} +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/jsconfig.json", + "fileNames": [ + "/app.js" + ], + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "configFilePath": "/jsconfig.json", + "allowNonTsExtensions": true + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/", + "cachePath": "/tmp", + "kind": "discover" + } TI:: [hh:mm:ss:mss] Request specifies cache path '/tmp', loading cached information... TI:: [hh:mm:ss:mss] Processing cache location '/tmp' TI:: [hh:mm:ss:mss] Cache location was already processed... @@ -165,10 +189,28 @@ TI:: [hh:mm:ss:mss] Typing names in '/package.json' dependencies: ["@zkat/cacach TI:: [hh:mm:ss:mss] Searching for typing names in /node_modules; all files: ["/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] Result: {"cachedTypingPaths":[],"newTypingNames":["@zkat/cacache"],"filesToWatch":["/bower_components","/package.json","/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":["@zkat/cacache"],"filesToWatch":["/bower_components","/package.json","/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "@zkat/cacache" + ], + "filesToWatch": [ + "/bower_components", + "/package.json", + "/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/jsconfig.json","files":["/bower_components","/package.json","/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "/jsconfig.json", + "files": [ + "/bower_components", + "/package.json", + "/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /bower_components 1 undefined Project: /jsconfig.json WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /bower_components 1 undefined Project: /jsconfig.json WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /package.json 2000 undefined Project: /jsconfig.json WatchType: File location for typing installer @@ -177,7 +219,12 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /no TI:: [hh:mm:ss:mss] Installing typings ["@zkat/cacache"] TI:: [hh:mm:ss:mss] Npm config file: /tmp/package.json TI:: [hh:mm:ss:mss] Sending response: - {"kind":"event::beginInstallTypes","eventId":1,"typingsInstallerVersion":"FakeVersion","projectName":"/jsconfig.json"} + { + "kind": "event::beginInstallTypes", + "eventId": 1, + "typingsInstallerVersion": "FakeVersion", + "projectName": "/jsconfig.json" + } TI:: [hh:mm:ss:mss] #1 with arguments'["@types/zkat__cacache@tsFakeMajor.Minor"]'. Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /package.json 250 undefined WatchType: package.json file Info seq [hh:mm:ss:mss] AutoImportProviderProject: found 1 root files in 1 dependencies in * ms @@ -251,11 +298,41 @@ TI:: After installWorker TI:: [hh:mm:ss:mss] Installed typings ["@types/zkat__cacache@tsFakeMajor.Minor"] TI:: [hh:mm:ss:mss] Installed typing files ["/tmp/node_modules/@types/zkat__cacache/index.d.ts"] TI:: [hh:mm:ss:mss] Sending response: - {"projectName":"/jsconfig.json","typeAcquisition":{"enable":true,"include":[],"exclude":[]},"compilerOptions":{"allowJs":true,"maxNodeModuleJsDepth":2,"allowSyntheticDefaultImports":true,"skipLibCheck":true,"noEmit":true,"configFilePath":"/jsconfig.json","allowNonTsExtensions":true},"typings":["/tmp/node_modules/@types/zkat__cacache/index.d.ts"],"unresolvedImports":[],"kind":"action::set"} + { + "projectName": "/jsconfig.json", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "configFilePath": "/jsconfig.json", + "allowNonTsExtensions": true + }, + "typings": [ + "/tmp/node_modules/@types/zkat__cacache/index.d.ts" + ], + "unresolvedImports": [], + "kind": "action::set" + } Info seq [hh:mm:ss:mss] Scheduled: /jsconfig.json, Cancelled earlier one Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles*, Cancelled earlier one TI:: [hh:mm:ss:mss] Sending response: - {"kind":"event::endInstallTypes","eventId":1,"projectName":"/jsconfig.json","packagesToInstall":["@types/zkat__cacache@tsFakeMajor.Minor"],"installSuccess":true,"typingsInstallerVersion":"FakeVersion"} + { + "kind": "event::endInstallTypes", + "eventId": 1, + "projectName": "/jsconfig.json", + "packagesToInstall": [ + "@types/zkat__cacache@tsFakeMajor.Minor" + ], + "installSuccess": true, + "typingsInstallerVersion": "FakeVersion" + } Before running Timeout callback:: count: 2 13: /jsconfig.json 14: *ensureProjectForOpenFiles* @@ -279,7 +356,32 @@ Info seq [hh:mm:ss:mss] Project '/dev/null/autoImportProviderProject1*' (AutoIm Info seq [hh:mm:ss:mss] Files (1) Info seq [hh:mm:ss:mss] ----------------------------------------------- -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/jsconfig.json","fileNames":["/app.js","/tmp/node_modules/@types/zkat__cacache/index.d.ts"],"compilerOptions":{"allowJs":true,"maxNodeModuleJsDepth":2,"allowSyntheticDefaultImports":true,"skipLibCheck":true,"noEmit":true,"configFilePath":"/jsconfig.json","allowNonTsExtensions":true},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/","cachePath":"/tmp","kind":"discover"} +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/jsconfig.json", + "fileNames": [ + "/app.js", + "/tmp/node_modules/@types/zkat__cacache/index.d.ts" + ], + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "configFilePath": "/jsconfig.json", + "allowNonTsExtensions": true + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/", + "cachePath": "/tmp", + "kind": "discover" + } TI:: [hh:mm:ss:mss] Request specifies cache path '/tmp', loading cached information... TI:: [hh:mm:ss:mss] Processing cache location '/tmp' TI:: [hh:mm:ss:mss] Cache location was already processed... @@ -288,15 +390,47 @@ TI:: [hh:mm:ss:mss] Typing names in '/package.json' dependencies: ["@zkat/cacach TI:: [hh:mm:ss:mss] Searching for typing names in /node_modules; all files: ["/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] Result: {"cachedTypingPaths":[],"newTypingNames":["@zkat/cacache"],"filesToWatch":["/bower_components","/package.json","/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":["@zkat/cacache"],"filesToWatch":["/bower_components","/package.json","/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "@zkat/cacache" + ], + "filesToWatch": [ + "/bower_components", + "/package.json", + "/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/jsconfig.json"} + { + "kind": "action::watchTypingLocations", + "projectName": "/jsconfig.json" + } TI:: [hh:mm:ss:mss] Installing typings ["@zkat/cacache"] TI:: [hh:mm:ss:mss] '@zkat/cacache':: 'zkat__cacache' already has an up-to-date typing - 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":"/jsconfig.json","typeAcquisition":{"enable":true,"include":[],"exclude":[]},"compilerOptions":{"allowJs":true,"maxNodeModuleJsDepth":2,"allowSyntheticDefaultImports":true,"skipLibCheck":true,"noEmit":true,"configFilePath":"/jsconfig.json","allowNonTsExtensions":true},"typings":[],"unresolvedImports":[],"kind":"action::set"} + { + "projectName": "/jsconfig.json", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "configFilePath": "/jsconfig.json", + "allowNonTsExtensions": true + }, + "typings": [], + "unresolvedImports": [], + "kind": "action::set" + } Info seq [hh:mm:ss:mss] Scheduled: /jsconfig.json Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles*, Cancelled earlier one After running Timeout callback:: count: 2 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 a0a976100a579..f46a0e66f124e 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 @@ -75,17 +75,60 @@ TI:: typing installer creation complete } -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject1*","fileNames":["/a/lib/lib.d.ts","/a/b/app.js"],"compilerOptions":{"target":1,"jsx":1,"allowNonTsExtensions":true,"allowJs":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":["net","stream"],"projectRootPath":"/a/b","cachePath":"/tmp","kind":"discover"} +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject1*", + "fileNames": [ + "/a/lib/lib.d.ts", + "/a/b/app.js" + ], + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [ + "net", + "stream" + ], + "projectRootPath": "/a/b", + "cachePath": "/tmp", + "kind": "discover" + } TI:: [hh:mm:ss:mss] Request specifies cache path '/tmp', loading cached information... TI:: [hh:mm:ss:mss] Processing cache location '/tmp' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/typesMap.json' TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["node"] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":["node"],"filesToWatch":["/a/b/bower_components","/a/b/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":["node"],"filesToWatch":["/a/b/bower_components","/a/b/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "node" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject1*","files":["/a/b/bower_components","/a/b/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject1*", + "files": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /a/b/bower_components 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a/b/bower_components 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /a/b/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer @@ -93,7 +136,12 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a/ TI:: [hh:mm:ss:mss] Installing typings ["node"] TI:: [hh:mm:ss:mss] Npm config file: /tmp/package.json TI:: [hh:mm:ss:mss] Sending response: - {"kind":"event::beginInstallTypes","eventId":1,"typingsInstallerVersion":"FakeVersion","projectName":"/dev/null/inferredProject1*"} + { + "kind": "event::beginInstallTypes", + "eventId": 1, + "typingsInstallerVersion": "FakeVersion", + "projectName": "/dev/null/inferredProject1*" + } TI:: [hh:mm:ss:mss] #1 with arguments'["@types/node@tsFakeMajor.Minor"]'. Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (2) @@ -129,11 +177,43 @@ declare module "stream" { TI:: [hh:mm:ss:mss] Installed typings ["@types/node@tsFakeMajor.Minor"] TI:: [hh:mm:ss:mss] Installed typing files ["/tmp/node_modules/node/index.d.ts"] 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":["/tmp/node_modules/node/index.d.ts"],"unresolvedImports":["net","stream"],"kind":"action::set"} + { + "projectName": "/dev/null/inferredProject1*", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typings": [ + "/tmp/node_modules/node/index.d.ts" + ], + "unresolvedImports": [ + "net", + "stream" + ], + "kind": "action::set" + } Info seq [hh:mm:ss:mss] Scheduled: /dev/null/inferredProject1* Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles* TI:: [hh:mm:ss:mss] Sending response: - {"kind":"event::endInstallTypes","eventId":1,"projectName":"/dev/null/inferredProject1*","packagesToInstall":["@types/node@tsFakeMajor.Minor"],"installSuccess":true,"typingsInstallerVersion":"FakeVersion"} + { + "kind": "event::endInstallTypes", + "eventId": 1, + "projectName": "/dev/null/inferredProject1*", + "packagesToInstall": [ + "@types/node@tsFakeMajor.Minor" + ], + "installSuccess": true, + "typingsInstallerVersion": "FakeVersion" + } Before running Timeout callback:: count: 2 1: /dev/null/inferredProject1* 2: *ensureProjectForOpenFiles* @@ -158,18 +238,71 @@ Info seq [hh:mm:ss:mss] Files (3) Root file specified for compilation Info seq [hh:mm:ss:mss] ----------------------------------------------- -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject1*","fileNames":["/a/lib/lib.d.ts","/tmp/node_modules/node/index.d.ts","/a/b/app.js"],"compilerOptions":{"target":1,"jsx":1,"allowNonTsExtensions":true,"allowJs":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/a/b","cachePath":"/tmp","kind":"discover"} +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject1*", + "fileNames": [ + "/a/lib/lib.d.ts", + "/tmp/node_modules/node/index.d.ts", + "/a/b/app.js" + ], + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/a/b", + "cachePath": "/tmp", + "kind": "discover" + } TI:: [hh:mm:ss:mss] Request specifies cache path '/tmp', loading cached information... TI:: [hh:mm:ss:mss] Processing cache location '/tmp' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/a/b/bower_components","/a/b/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["/a/b/bower_components","/a/b/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject1*"} + { + "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"} + { + "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] Scheduled: /dev/null/inferredProject1* Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles*, Cancelled earlier one TI:: [hh:mm:ss:mss] No new typings were requested as a result of typings discovery @@ -199,21 +332,79 @@ Info seq [hh:mm:ss:mss] Files (3) Root file specified for compilation Info seq [hh:mm:ss:mss] ----------------------------------------------- -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject1*","fileNames":["/a/lib/lib.d.ts","/a/b/app.js"],"compilerOptions":{"target":1,"jsx":1,"allowNonTsExtensions":true,"allowJs":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":["s tream"],"projectRootPath":"/a/b","cachePath":"/tmp","kind":"discover"} +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject1*", + "fileNames": [ + "/a/lib/lib.d.ts", + "/a/b/app.js" + ], + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [ + "s tream" + ], + "projectRootPath": "/a/b", + "cachePath": "/tmp", + "kind": "discover" + } TI:: [hh:mm:ss:mss] Request specifies cache path '/tmp', loading cached information... TI:: [hh:mm:ss:mss] Processing cache location '/tmp' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: ["s tream"] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":["s tream"],"filesToWatch":["/a/b/bower_components","/a/b/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":["s tream"],"filesToWatch":["/a/b/bower_components","/a/b/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "s tream" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject1*"} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject1*" + } TI:: [hh:mm:ss:mss] Installing typings ["s tream"] TI:: [hh:mm:ss:mss] 's tream':: Package name 's tream' contains non URI safe characters 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":["s tream"],"kind":"action::set"} + { + "projectName": "/dev/null/inferredProject1*", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typings": [], + "unresolvedImports": [ + "s tream" + ], + "kind": "action::set" + } Info seq [hh:mm:ss:mss] Running: *ensureProjectForOpenFiles* Info seq [hh:mm:ss:mss] Before ensureProjectForOpenFiles: Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) @@ -245,21 +436,82 @@ Info seq [hh:mm:ss:mss] Files (3) /a/b/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":["/a/lib/lib.d.ts","/a/b/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":"/a/b","cachePath":"/tmp","kind":"discover"} +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject1*", + "fileNames": [ + "/a/lib/lib.d.ts", + "/a/b/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": "/a/b", + "cachePath": "/tmp", + "kind": "discover" + } TI:: [hh:mm:ss:mss] Request specifies cache path '/tmp', loading cached information... TI:: [hh:mm:ss:mss] Processing cache location '/tmp' TI:: [hh:mm:ss:mss] Cache location was already processed... 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] Result: {"cachedTypingPaths":[],"newTypingNames":["bar","s tream"],"filesToWatch":["/a/b/bower_components","/a/b/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":["bar","s tream"],"filesToWatch":["/a/b/bower_components","/a/b/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "bar", + "s tream" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject1*"} + { + "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"} + { + "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" + } Timeout callback:: count: 0 Immedidate callback:: count: 0 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 4afe11f50879e..7813922483202 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 @@ -47,7 +47,30 @@ TI:: typing installer creation complete } -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject1*","fileNames":["/a/b/app.js"],"compilerOptions":{"target":1,"jsx":1,"allowNonTsExtensions":true,"allowJs":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/a/b","cachePath":"/tmp","kind":"discover"} +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject1*", + "fileNames": [ + "/a/b/app.js" + ], + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/a/b", + "cachePath": "/tmp", + "kind": "discover" + } TI:: [hh:mm:ss:mss] Request specifies cache path '/tmp', loading cached information... TI:: [hh:mm:ss:mss] Processing cache location '/tmp' TI:: [hh:mm:ss:mss] Cache location was already processed... @@ -55,10 +78,28 @@ TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/typesMap.json' TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Typing names in '/a/b/package.json' dependencies: ["; say ‘Hello from TypeScript!’ #"] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":["; say ‘Hello from TypeScript!’ #"],"filesToWatch":["/a/b/bower_components","/a/b/package.json","/a/b/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":["; say ‘Hello from TypeScript!’ #"],"filesToWatch":["/a/b/bower_components","/a/b/package.json","/a/b/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "; say ‘Hello from TypeScript!’ #" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/package.json", + "/a/b/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject1*","files":["/a/b/bower_components","/a/b/package.json","/a/b/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject1*", + "files": [ + "/a/b/bower_components", + "/a/b/package.json", + "/a/b/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /a/b/bower_components 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a/b/bower_components 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/b/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location for typing installer @@ -68,7 +109,25 @@ TI:: [hh:mm:ss:mss] Installing typings ["; say ‘Hello from TypeScript!’ #"] TI:: [hh:mm:ss:mss] '; say ‘Hello from TypeScript!’ #':: Package name '; say ‘Hello from TypeScript!’ #' contains non URI safe characters 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":[],"kind":"action::set"} + { + "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] FileWatcher:: Added:: WatchInfo: /a/b/package.json 250 undefined WatchType: package.json file Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (1) diff --git a/tests/baselines/reference/tsserver/typingsInstaller/telemetry-events.js b/tests/baselines/reference/tsserver/typingsInstaller/telemetry-events.js index 825841a53824c..0e89ff4d07e58 100644 --- a/tests/baselines/reference/tsserver/typingsInstaller/telemetry-events.js +++ b/tests/baselines/reference/tsserver/typingsInstaller/telemetry-events.js @@ -59,7 +59,30 @@ TI:: typing installer creation complete } -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject1*","fileNames":["/a/app.js"],"compilerOptions":{"target":1,"jsx":1,"allowNonTsExtensions":true,"allowJs":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/a","cachePath":"/a/cache/","kind":"discover"} +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject1*", + "fileNames": [ + "/a/app.js" + ], + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/a", + "cachePath": "/a/cache/", + "kind": "discover" + } TI:: [hh:mm:ss:mss] Request specifies cache path '/a/cache/', loading cached information... TI:: [hh:mm:ss:mss] Processing cache location '/a/cache/' TI:: [hh:mm:ss:mss] Cache location was already processed... @@ -67,10 +90,28 @@ TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/typesMap.json' TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Typing names in '/a/package.json' dependencies: ["commander"] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":[],"newTypingNames":["commander"],"filesToWatch":["/a/bower_components","/a/package.json","/a/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":["commander"],"filesToWatch":["/a/bower_components","/a/package.json","/a/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "commander" + ], + "filesToWatch": [ + "/a/bower_components", + "/a/package.json", + "/a/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject1*","files":["/a/bower_components","/a/package.json","/a/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject1*", + "files": [ + "/a/bower_components", + "/a/package.json", + "/a/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /a/bower_components 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a/bower_components 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location for typing installer @@ -79,7 +120,12 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a/ TI:: [hh:mm:ss:mss] Installing typings ["commander"] TI:: [hh:mm:ss:mss] Npm config file: /a/cache/package.json TI:: [hh:mm:ss:mss] Sending response: - {"kind":"event::beginInstallTypes","eventId":1,"typingsInstallerVersion":"FakeVersion","projectName":"/dev/null/inferredProject1*"} + { + "kind": "event::beginInstallTypes", + "eventId": 1, + "typingsInstallerVersion": "FakeVersion", + "projectName": "/dev/null/inferredProject1*" + } TI:: [hh:mm:ss:mss] #1 with arguments'["@types/commander@tsFakeMajor.Minor"]'. Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/package.json 250 undefined WatchType: package.json file Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) @@ -112,11 +158,40 @@ export let x: number TI:: [hh:mm:ss:mss] Installed typings ["@types/commander@tsFakeMajor.Minor"] TI:: [hh:mm:ss:mss] Installed typing files ["/a/cache/node_modules/@types/commander/index.d.ts"] 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":["/a/cache/node_modules/@types/commander/index.d.ts"],"unresolvedImports":[],"kind":"action::set"} + { + "projectName": "/dev/null/inferredProject1*", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typings": [ + "/a/cache/node_modules/@types/commander/index.d.ts" + ], + "unresolvedImports": [], + "kind": "action::set" + } Info seq [hh:mm:ss:mss] Scheduled: /dev/null/inferredProject1* Info seq [hh:mm:ss:mss] Scheduled: *ensureProjectForOpenFiles* TI:: [hh:mm:ss:mss] Sending response: - {"kind":"event::endInstallTypes","eventId":1,"projectName":"/dev/null/inferredProject1*","packagesToInstall":["@types/commander@tsFakeMajor.Minor"],"installSuccess":true,"typingsInstallerVersion":"FakeVersion"} + { + "kind": "event::endInstallTypes", + "eventId": 1, + "projectName": "/dev/null/inferredProject1*", + "packagesToInstall": [ + "@types/commander@tsFakeMajor.Minor" + ], + "installSuccess": true, + "typingsInstallerVersion": "FakeVersion" + } Before running Timeout callback:: count: 2 1: /dev/null/inferredProject1* 2: *ensureProjectForOpenFiles* @@ -136,19 +211,76 @@ Info seq [hh:mm:ss:mss] Files (2) Root file specified for compilation Info seq [hh:mm:ss:mss] ----------------------------------------------- -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject1*","fileNames":["/a/app.js","/a/cache/node_modules/@types/commander/index.d.ts"],"compilerOptions":{"target":1,"jsx":1,"allowNonTsExtensions":true,"allowJs":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"/a","cachePath":"/a/cache/","kind":"discover"} +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject1*", + "fileNames": [ + "/a/app.js", + "/a/cache/node_modules/@types/commander/index.d.ts" + ], + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "/a", + "cachePath": "/a/cache/", + "kind": "discover" + } TI:: [hh:mm:ss:mss] Request specifies cache path '/a/cache/', loading cached information... TI:: [hh:mm:ss:mss] Processing cache location '/a/cache/' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Explicitly included types: [] TI:: [hh:mm:ss:mss] Typing names in '/a/package.json' dependencies: ["commander"] TI:: [hh:mm:ss:mss] Inferred typings from unresolved imports: [] -TI:: [hh:mm:ss:mss] Result: {"cachedTypingPaths":["/a/cache/node_modules/@types/commander/index.d.ts"],"newTypingNames":[],"filesToWatch":["/a/bower_components","/a/package.json","/a/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":["/a/cache/node_modules/@types/commander/index.d.ts"],"newTypingNames":[],"filesToWatch":["/a/bower_components","/a/package.json","/a/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [ + "/a/cache/node_modules/@types/commander/index.d.ts" + ], + "newTypingNames": [], + "filesToWatch": [ + "/a/bower_components", + "/a/package.json", + "/a/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject1*"} + { + "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":["/a/cache/node_modules/@types/commander/index.d.ts"],"unresolvedImports":[],"kind":"action::set"} + { + "projectName": "/dev/null/inferredProject1*", + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typings": [ + "/a/cache/node_modules/@types/commander/index.d.ts" + ], + "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] Running: *ensureProjectForOpenFiles* Info seq [hh:mm:ss:mss] Before ensureProjectForOpenFiles: 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 0464a6d5f9cdd..cb18fc2b53ebb 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 @@ -143,7 +143,35 @@ TI:: typing installer creation complete } -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/a/app/test1.csproj","fileNames":["/a/b/file3.d.ts","/a/b/lodash.js","/a/b/commander.js"],"compilerOptions":{"allowJS":true,"moduleResolution":2,"allowNonTsExtensions":true,"noEmitForJsFiles":true},"typeAcquisition":{"include":["jquery","cordova","lodash","commander"],"exclude":[],"enable":true},"unresolvedImports":[],"projectRootPath":"/a/app","cachePath":"/a/data","kind":"discover"} +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/a/app/test1.csproj", + "fileNames": [ + "/a/b/file3.d.ts", + "/a/b/lodash.js", + "/a/b/commander.js" + ], + "compilerOptions": { + "allowJS": true, + "moduleResolution": 2, + "allowNonTsExtensions": true, + "noEmitForJsFiles": true + }, + "typeAcquisition": { + "include": [ + "jquery", + "cordova", + "lodash", + "commander" + ], + "exclude": [], + "enable": true + }, + "unresolvedImports": [], + "projectRootPath": "/a/app", + "cachePath": "/a/data", + "kind": "discover" + } TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... @@ -151,10 +179,33 @@ TI:: [hh:mm:ss:mss] Loaded safelist from types map file '/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] Result: {"cachedTypingPaths":[],"newTypingNames":["jquery","cordova","lodash","commander"],"filesToWatch":["/a/b/bower_components","/a/b/node_modules","/a/app/bower_components","/a/app/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":["jquery","cordova","lodash","commander"],"filesToWatch":["/a/b/bower_components","/a/b/node_modules","/a/app/bower_components","/a/app/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "jquery", + "cordova", + "lodash", + "commander" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules", + "/a/app/bower_components", + "/a/app/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/a/app/test1.csproj","files":["/a/b/bower_components","/a/b/node_modules","/a/app/bower_components","/a/app/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "/a/app/test1.csproj", + "files": [ + "/a/b/bower_components", + "/a/b/node_modules", + "/a/app/bower_components", + "/a/app/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /a/b/bower_components 1 undefined Project: /a/app/test1.csproj WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a/b/bower_components 1 undefined Project: /a/app/test1.csproj WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /a/b/node_modules 1 undefined Project: /a/app/test1.csproj WatchType: Directory location for typing installer @@ -166,7 +217,12 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a/ TI:: [hh:mm:ss:mss] Installing typings ["jquery","cordova","lodash","commander"] TI:: [hh:mm:ss:mss] Npm config file: /a/data/package.json TI:: [hh:mm:ss:mss] Sending response: - {"kind":"event::beginInstallTypes","eventId":1,"typingsInstallerVersion":"FakeVersion","projectName":"/a/app/test1.csproj"} + { + "kind": "event::beginInstallTypes", + "eventId": 1, + "typingsInstallerVersion": "FakeVersion", + "projectName": "/a/app/test1.csproj" + } TI:: [hh:mm:ss:mss] #1 with arguments'["@types/jquery@tsFakeMajor.Minor","@types/cordova@tsFakeMajor.Minor","@types/lodash@tsFakeMajor.Minor","@types/commander@tsFakeMajor.Minor"]'. Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /a/app/test2.csproj Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 500 undefined Project: /a/app/test2.csproj WatchType: Missing file @@ -180,16 +236,57 @@ Info seq [hh:mm:ss:mss] Files (1) Root file specified for compilation Info seq [hh:mm:ss:mss] ----------------------------------------------- -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/a/app/test2.csproj","fileNames":["/a/b/file3.d.ts"],"compilerOptions":{"allowJS":true,"moduleResolution":2,"allowNonTsExtensions":true,"noEmitForJsFiles":true},"typeAcquisition":{"include":["grunt","gulp"],"exclude":[],"enable":true},"unresolvedImports":[],"projectRootPath":"/a/app","cachePath":"/a/data","kind":"discover"} +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/a/app/test2.csproj", + "fileNames": [ + "/a/b/file3.d.ts" + ], + "compilerOptions": { + "allowJS": true, + "moduleResolution": 2, + "allowNonTsExtensions": true, + "noEmitForJsFiles": true + }, + "typeAcquisition": { + "include": [ + "grunt", + "gulp" + ], + "exclude": [], + "enable": true + }, + "unresolvedImports": [], + "projectRootPath": "/a/app", + "cachePath": "/a/data", + "kind": "discover" + } TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... 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] Result: {"cachedTypingPaths":[],"newTypingNames":["grunt","gulp"],"filesToWatch":["/a/app/bower_components","/a/app/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":["grunt","gulp"],"filesToWatch":["/a/app/bower_components","/a/app/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "grunt", + "gulp" + ], + "filesToWatch": [ + "/a/app/bower_components", + "/a/app/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/a/app/test2.csproj","files":["/a/app/bower_components","/a/app/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "/a/app/test2.csproj", + "files": [ + "/a/app/bower_components", + "/a/app/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /a/app/bower_components 1 undefined Project: /a/app/test2.csproj WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a/app/bower_components 1 undefined Project: /a/app/test2.csproj WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /a/app/node_modules 1 undefined Project: /a/app/test2.csproj WatchType: Directory location for typing installer @@ -197,7 +294,12 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a/ TI:: [hh:mm:ss:mss] Installing typings ["grunt","gulp"] TI:: [hh:mm:ss:mss] Npm config file: /a/data/package.json TI:: [hh:mm:ss:mss] Sending response: - {"kind":"event::beginInstallTypes","eventId":2,"typingsInstallerVersion":"FakeVersion","projectName":"/a/app/test2.csproj"} + { + "kind": "event::beginInstallTypes", + "eventId": 2, + "typingsInstallerVersion": "FakeVersion", + "projectName": "/a/app/test2.csproj" + } TI:: [hh:mm:ss:mss] #1 with arguments'["@types/jquery@tsFakeMajor.Minor","@types/cordova@tsFakeMajor.Minor","@types/lodash@tsFakeMajor.Minor","@types/commander@tsFakeMajor.Minor"]':: true TI:: Before installWorker @@ -234,10 +336,48 @@ declare const cordova: { x: number } TI:: [hh:mm:ss:mss] Installed typings ["@types/jquery@tsFakeMajor.Minor","@types/cordova@tsFakeMajor.Minor","@types/lodash@tsFakeMajor.Minor","@types/commander@tsFakeMajor.Minor"] TI:: [hh:mm:ss:mss] Installed typing files ["/a/data/node_modules/@types/jquery/index.d.ts","/a/data/node_modules/@types/cordova/index.d.ts","/a/data/node_modules/@types/lodash/index.d.ts","/a/data/node_modules/@types/commander/index.d.ts"] TI:: [hh:mm:ss:mss] Sending response: - {"projectName":"/a/app/test1.csproj","typeAcquisition":{"include":["jquery","cordova","lodash","commander"],"exclude":[],"enable":true},"compilerOptions":{"allowJS":true,"moduleResolution":2,"allowNonTsExtensions":true,"noEmitForJsFiles":true},"typings":["/a/data/node_modules/@types/jquery/index.d.ts","/a/data/node_modules/@types/cordova/index.d.ts","/a/data/node_modules/@types/lodash/index.d.ts","/a/data/node_modules/@types/commander/index.d.ts"],"unresolvedImports":[],"kind":"action::set"} + { + "projectName": "/a/app/test1.csproj", + "typeAcquisition": { + "include": [ + "jquery", + "cordova", + "lodash", + "commander" + ], + "exclude": [], + "enable": true + }, + "compilerOptions": { + "allowJS": true, + "moduleResolution": 2, + "allowNonTsExtensions": true, + "noEmitForJsFiles": true + }, + "typings": [ + "/a/data/node_modules/@types/jquery/index.d.ts", + "/a/data/node_modules/@types/cordova/index.d.ts", + "/a/data/node_modules/@types/lodash/index.d.ts", + "/a/data/node_modules/@types/commander/index.d.ts" + ], + "unresolvedImports": [], + "kind": "action::set" + } Info seq [hh:mm:ss:mss] Scheduled: /a/app/test1.csproj TI:: [hh:mm:ss:mss] Sending response: - {"kind":"event::endInstallTypes","eventId":1,"projectName":"/a/app/test1.csproj","packagesToInstall":["@types/jquery@tsFakeMajor.Minor","@types/cordova@tsFakeMajor.Minor","@types/lodash@tsFakeMajor.Minor","@types/commander@tsFakeMajor.Minor"],"installSuccess":true,"typingsInstallerVersion":"FakeVersion"} + { + "kind": "event::endInstallTypes", + "eventId": 1, + "projectName": "/a/app/test1.csproj", + "packagesToInstall": [ + "@types/jquery@tsFakeMajor.Minor", + "@types/cordova@tsFakeMajor.Minor", + "@types/lodash@tsFakeMajor.Minor", + "@types/commander@tsFakeMajor.Minor" + ], + "installSuccess": true, + "typingsInstallerVersion": "FakeVersion" + } TI:: [hh:mm:ss:mss] #2 with arguments'["@types/grunt@tsFakeMajor.Minor","@types/gulp@tsFakeMajor.Minor"]'. TI:: [hh:mm:ss:mss] #2 with arguments'["@types/grunt@tsFakeMajor.Minor","@types/gulp@tsFakeMajor.Minor"]':: true TI:: Before installWorker @@ -253,10 +393,42 @@ declare const gulp: { x: number } TI:: [hh:mm:ss:mss] Installed typings ["@types/grunt@tsFakeMajor.Minor","@types/gulp@tsFakeMajor.Minor"] TI:: [hh:mm:ss:mss] Installed typing files ["/a/data/node_modules/@types/grunt/index.d.ts","/a/data/node_modules/@types/gulp/index.d.ts"] TI:: [hh:mm:ss:mss] Sending response: - {"projectName":"/a/app/test2.csproj","typeAcquisition":{"include":["grunt","gulp"],"exclude":[],"enable":true},"compilerOptions":{"allowJS":true,"moduleResolution":2,"allowNonTsExtensions":true,"noEmitForJsFiles":true},"typings":["/a/data/node_modules/@types/grunt/index.d.ts","/a/data/node_modules/@types/gulp/index.d.ts"],"unresolvedImports":[],"kind":"action::set"} + { + "projectName": "/a/app/test2.csproj", + "typeAcquisition": { + "include": [ + "grunt", + "gulp" + ], + "exclude": [], + "enable": true + }, + "compilerOptions": { + "allowJS": true, + "moduleResolution": 2, + "allowNonTsExtensions": true, + "noEmitForJsFiles": true + }, + "typings": [ + "/a/data/node_modules/@types/grunt/index.d.ts", + "/a/data/node_modules/@types/gulp/index.d.ts" + ], + "unresolvedImports": [], + "kind": "action::set" + } Info seq [hh:mm:ss:mss] Scheduled: /a/app/test2.csproj TI:: [hh:mm:ss:mss] Sending response: - {"kind":"event::endInstallTypes","eventId":2,"projectName":"/a/app/test2.csproj","packagesToInstall":["@types/grunt@tsFakeMajor.Minor","@types/gulp@tsFakeMajor.Minor"],"installSuccess":true,"typingsInstallerVersion":"FakeVersion"} + { + "kind": "event::endInstallTypes", + "eventId": 2, + "projectName": "/a/app/test2.csproj", + "packagesToInstall": [ + "@types/grunt@tsFakeMajor.Minor", + "@types/gulp@tsFakeMajor.Minor" + ], + "installSuccess": true, + "typingsInstallerVersion": "FakeVersion" + } Before running Timeout callback:: count: 2 1: /a/app/test1.csproj 2: /a/app/test2.csproj @@ -285,19 +457,94 @@ Info seq [hh:mm:ss:mss] Files (5) Root file specified for compilation Info seq [hh:mm:ss:mss] ----------------------------------------------- -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/a/app/test1.csproj","fileNames":["/a/b/file3.d.ts","/a/data/node_modules/@types/commander/index.d.ts","/a/data/node_modules/@types/cordova/index.d.ts","/a/data/node_modules/@types/jquery/index.d.ts","/a/data/node_modules/@types/lodash/index.d.ts","/a/b/lodash.js","/a/b/commander.js"],"compilerOptions":{"allowJS":true,"moduleResolution":2,"allowNonTsExtensions":true,"noEmitForJsFiles":true},"typeAcquisition":{"include":["jquery","cordova","lodash","commander"],"exclude":[],"enable":true},"unresolvedImports":[],"projectRootPath":"/a/app","cachePath":"/a/data","kind":"discover"} +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/a/app/test1.csproj", + "fileNames": [ + "/a/b/file3.d.ts", + "/a/data/node_modules/@types/commander/index.d.ts", + "/a/data/node_modules/@types/cordova/index.d.ts", + "/a/data/node_modules/@types/jquery/index.d.ts", + "/a/data/node_modules/@types/lodash/index.d.ts", + "/a/b/lodash.js", + "/a/b/commander.js" + ], + "compilerOptions": { + "allowJS": true, + "moduleResolution": 2, + "allowNonTsExtensions": true, + "noEmitForJsFiles": true + }, + "typeAcquisition": { + "include": [ + "jquery", + "cordova", + "lodash", + "commander" + ], + "exclude": [], + "enable": true + }, + "unresolvedImports": [], + "projectRootPath": "/a/app", + "cachePath": "/a/data", + "kind": "discover" + } TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... 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] Result: {"cachedTypingPaths":["/a/data/node_modules/@types/jquery/index.d.ts","/a/data/node_modules/@types/cordova/index.d.ts","/a/data/node_modules/@types/lodash/index.d.ts","/a/data/node_modules/@types/commander/index.d.ts"],"newTypingNames":[],"filesToWatch":["/a/b/bower_components","/a/b/node_modules","/a/app/bower_components","/a/app/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":["/a/data/node_modules/@types/jquery/index.d.ts","/a/data/node_modules/@types/cordova/index.d.ts","/a/data/node_modules/@types/lodash/index.d.ts","/a/data/node_modules/@types/commander/index.d.ts"],"newTypingNames":[],"filesToWatch":["/a/b/bower_components","/a/b/node_modules","/a/app/bower_components","/a/app/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [ + "/a/data/node_modules/@types/jquery/index.d.ts", + "/a/data/node_modules/@types/cordova/index.d.ts", + "/a/data/node_modules/@types/lodash/index.d.ts", + "/a/data/node_modules/@types/commander/index.d.ts" + ], + "newTypingNames": [], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/node_modules", + "/a/app/bower_components", + "/a/app/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/a/app/test1.csproj"} + { + "kind": "action::watchTypingLocations", + "projectName": "/a/app/test1.csproj" + } TI:: [hh:mm:ss:mss] Sending response: - {"projectName":"/a/app/test1.csproj","typeAcquisition":{"include":["jquery","cordova","lodash","commander"],"exclude":[],"enable":true},"compilerOptions":{"allowJS":true,"moduleResolution":2,"allowNonTsExtensions":true,"noEmitForJsFiles":true},"typings":["/a/data/node_modules/@types/jquery/index.d.ts","/a/data/node_modules/@types/cordova/index.d.ts","/a/data/node_modules/@types/lodash/index.d.ts","/a/data/node_modules/@types/commander/index.d.ts"],"unresolvedImports":[],"kind":"action::set"} + { + "projectName": "/a/app/test1.csproj", + "typeAcquisition": { + "include": [ + "jquery", + "cordova", + "lodash", + "commander" + ], + "exclude": [], + "enable": true + }, + "compilerOptions": { + "allowJS": true, + "moduleResolution": 2, + "allowNonTsExtensions": true, + "noEmitForJsFiles": true + }, + "typings": [ + "/a/data/node_modules/@types/jquery/index.d.ts", + "/a/data/node_modules/@types/cordova/index.d.ts", + "/a/data/node_modules/@types/lodash/index.d.ts", + "/a/data/node_modules/@types/commander/index.d.ts" + ], + "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] Running: /a/app/test2.csproj Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /a/app/test2.csproj @@ -317,17 +564,78 @@ Info seq [hh:mm:ss:mss] Files (3) Root file specified for compilation Info seq [hh:mm:ss:mss] ----------------------------------------------- -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/a/app/test2.csproj","fileNames":["/a/b/file3.d.ts","/a/data/node_modules/@types/grunt/index.d.ts","/a/data/node_modules/@types/gulp/index.d.ts"],"compilerOptions":{"allowJS":true,"moduleResolution":2,"allowNonTsExtensions":true,"noEmitForJsFiles":true},"typeAcquisition":{"include":["grunt","gulp"],"exclude":[],"enable":true},"unresolvedImports":[],"projectRootPath":"/a/app","cachePath":"/a/data","kind":"discover"} +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/a/app/test2.csproj", + "fileNames": [ + "/a/b/file3.d.ts", + "/a/data/node_modules/@types/grunt/index.d.ts", + "/a/data/node_modules/@types/gulp/index.d.ts" + ], + "compilerOptions": { + "allowJS": true, + "moduleResolution": 2, + "allowNonTsExtensions": true, + "noEmitForJsFiles": true + }, + "typeAcquisition": { + "include": [ + "grunt", + "gulp" + ], + "exclude": [], + "enable": true + }, + "unresolvedImports": [], + "projectRootPath": "/a/app", + "cachePath": "/a/data", + "kind": "discover" + } TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... 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] Result: {"cachedTypingPaths":["/a/data/node_modules/@types/grunt/index.d.ts","/a/data/node_modules/@types/gulp/index.d.ts"],"newTypingNames":[],"filesToWatch":["/a/app/bower_components","/a/app/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":["/a/data/node_modules/@types/grunt/index.d.ts","/a/data/node_modules/@types/gulp/index.d.ts"],"newTypingNames":[],"filesToWatch":["/a/app/bower_components","/a/app/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [ + "/a/data/node_modules/@types/grunt/index.d.ts", + "/a/data/node_modules/@types/gulp/index.d.ts" + ], + "newTypingNames": [], + "filesToWatch": [ + "/a/app/bower_components", + "/a/app/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/a/app/test2.csproj"} + { + "kind": "action::watchTypingLocations", + "projectName": "/a/app/test2.csproj" + } TI:: [hh:mm:ss:mss] Sending response: - {"projectName":"/a/app/test2.csproj","typeAcquisition":{"include":["grunt","gulp"],"exclude":[],"enable":true},"compilerOptions":{"allowJS":true,"moduleResolution":2,"allowNonTsExtensions":true,"noEmitForJsFiles":true},"typings":["/a/data/node_modules/@types/grunt/index.d.ts","/a/data/node_modules/@types/gulp/index.d.ts"],"unresolvedImports":[],"kind":"action::set"} + { + "projectName": "/a/app/test2.csproj", + "typeAcquisition": { + "include": [ + "grunt", + "gulp" + ], + "exclude": [], + "enable": true + }, + "compilerOptions": { + "allowJS": true, + "moduleResolution": 2, + "allowNonTsExtensions": true, + "noEmitForJsFiles": true + }, + "typings": [ + "/a/data/node_modules/@types/grunt/index.d.ts", + "/a/data/node_modules/@types/gulp/index.d.ts" + ], + "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: 0 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 79f50357d5097..04af549a59a36 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 @@ -135,7 +135,35 @@ TI:: typing installer creation complete } -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/a/app/test.csproj","fileNames":["/a/b/file3.d.ts","/a/b/lodash.js","/a/b/commander.js"],"compilerOptions":{"allowJS":true,"moduleResolution":2,"allowNonTsExtensions":true,"noEmitForJsFiles":true},"typeAcquisition":{"include":["jquery","moment","lodash","commander"],"exclude":[],"enable":true},"unresolvedImports":[],"projectRootPath":"/a/app","cachePath":"/a/data","kind":"discover"} +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/a/app/test.csproj", + "fileNames": [ + "/a/b/file3.d.ts", + "/a/b/lodash.js", + "/a/b/commander.js" + ], + "compilerOptions": { + "allowJS": true, + "moduleResolution": 2, + "allowNonTsExtensions": true, + "noEmitForJsFiles": true + }, + "typeAcquisition": { + "include": [ + "jquery", + "moment", + "lodash", + "commander" + ], + "exclude": [], + "enable": true + }, + "unresolvedImports": [], + "projectRootPath": "/a/app", + "cachePath": "/a/data", + "kind": "discover" + } TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... @@ -144,10 +172,36 @@ TI:: [hh:mm:ss:mss] Explicitly included types: ["jquery","moment","lodash","comm TI:: [hh:mm:ss:mss] Typing names in '/a/b/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] Result: {"cachedTypingPaths":[],"newTypingNames":["jquery","moment","lodash","commander","express"],"filesToWatch":["/a/b/bower_components","/a/b/package.json","/a/b/node_modules","/a/app/bower_components","/a/app/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":["jquery","moment","lodash","commander","express"],"filesToWatch":["/a/b/bower_components","/a/b/package.json","/a/b/node_modules","/a/app/bower_components","/a/app/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [ + "jquery", + "moment", + "lodash", + "commander", + "express" + ], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/package.json", + "/a/b/node_modules", + "/a/app/bower_components", + "/a/app/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/a/app/test.csproj","files":["/a/b/bower_components","/a/b/package.json","/a/b/node_modules","/a/app/bower_components","/a/app/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "/a/app/test.csproj", + "files": [ + "/a/b/bower_components", + "/a/b/package.json", + "/a/b/node_modules", + "/a/app/bower_components", + "/a/app/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /a/b/bower_components 1 undefined Project: /a/app/test.csproj WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a/b/bower_components 1 undefined Project: /a/app/test.csproj WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/b/package.json 2000 undefined Project: /a/app/test.csproj WatchType: File location for typing installer @@ -160,7 +214,12 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a/ TI:: [hh:mm:ss:mss] Installing typings ["jquery","moment","lodash","commander","express"] TI:: [hh:mm:ss:mss] Npm config file: /a/data/package.json TI:: [hh:mm:ss:mss] Sending response: - {"kind":"event::beginInstallTypes","eventId":1,"typingsInstallerVersion":"FakeVersion","projectName":"/a/app/test.csproj"} + { + "kind": "event::beginInstallTypes", + "eventId": 1, + "typingsInstallerVersion": "FakeVersion", + "projectName": "/a/app/test.csproj" + } TI:: [hh:mm:ss:mss] #1 with arguments'["@types/jquery@tsFakeMajor.Minor","@types/moment@tsFakeMajor.Minor","@types/lodash@tsFakeMajor.Minor","@types/commander@tsFakeMajor.Minor","@types/express@tsFakeMajor.Minor"]'. TI:: [hh:mm:ss:mss] #1 with arguments'["@types/jquery@tsFakeMajor.Minor","@types/moment@tsFakeMajor.Minor","@types/lodash@tsFakeMajor.Minor","@types/commander@tsFakeMajor.Minor","@types/express@tsFakeMajor.Minor"]':: true TI:: Before installWorker @@ -203,10 +262,50 @@ declare const lodash: { x: number } TI:: [hh:mm:ss:mss] Installed typings ["@types/jquery@tsFakeMajor.Minor","@types/moment@tsFakeMajor.Minor","@types/lodash@tsFakeMajor.Minor","@types/commander@tsFakeMajor.Minor","@types/express@tsFakeMajor.Minor"] TI:: [hh:mm:ss:mss] Installed typing files ["/a/data/node_modules/@types/jquery/index.d.ts","/a/data/node_modules/@types/moment/index.d.ts","/a/data/node_modules/@types/lodash/index.d.ts","/a/data/node_modules/@types/commander/index.d.ts","/a/data/node_modules/@types/express/index.d.ts"] TI:: [hh:mm:ss:mss] Sending response: - {"projectName":"/a/app/test.csproj","typeAcquisition":{"include":["jquery","moment","lodash","commander"],"exclude":[],"enable":true},"compilerOptions":{"allowJS":true,"moduleResolution":2,"allowNonTsExtensions":true,"noEmitForJsFiles":true},"typings":["/a/data/node_modules/@types/jquery/index.d.ts","/a/data/node_modules/@types/moment/index.d.ts","/a/data/node_modules/@types/lodash/index.d.ts","/a/data/node_modules/@types/commander/index.d.ts","/a/data/node_modules/@types/express/index.d.ts"],"unresolvedImports":[],"kind":"action::set"} + { + "projectName": "/a/app/test.csproj", + "typeAcquisition": { + "include": [ + "jquery", + "moment", + "lodash", + "commander" + ], + "exclude": [], + "enable": true + }, + "compilerOptions": { + "allowJS": true, + "moduleResolution": 2, + "allowNonTsExtensions": true, + "noEmitForJsFiles": true + }, + "typings": [ + "/a/data/node_modules/@types/jquery/index.d.ts", + "/a/data/node_modules/@types/moment/index.d.ts", + "/a/data/node_modules/@types/lodash/index.d.ts", + "/a/data/node_modules/@types/commander/index.d.ts", + "/a/data/node_modules/@types/express/index.d.ts" + ], + "unresolvedImports": [], + "kind": "action::set" + } Info seq [hh:mm:ss:mss] Scheduled: /a/app/test.csproj TI:: [hh:mm:ss:mss] Sending response: - {"kind":"event::endInstallTypes","eventId":1,"projectName":"/a/app/test.csproj","packagesToInstall":["@types/jquery@tsFakeMajor.Minor","@types/moment@tsFakeMajor.Minor","@types/lodash@tsFakeMajor.Minor","@types/commander@tsFakeMajor.Minor","@types/express@tsFakeMajor.Minor"],"installSuccess":true,"typingsInstallerVersion":"FakeVersion"} + { + "kind": "event::endInstallTypes", + "eventId": 1, + "projectName": "/a/app/test.csproj", + "packagesToInstall": [ + "@types/jquery@tsFakeMajor.Minor", + "@types/moment@tsFakeMajor.Minor", + "@types/lodash@tsFakeMajor.Minor", + "@types/commander@tsFakeMajor.Minor", + "@types/express@tsFakeMajor.Minor" + ], + "installSuccess": true, + "typingsInstallerVersion": "FakeVersion" + } Before running Timeout callback:: count: 1 1: /a/app/test.csproj @@ -237,7 +336,40 @@ Info seq [hh:mm:ss:mss] Files (6) Root file specified for compilation Info seq [hh:mm:ss:mss] ----------------------------------------------- -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/a/app/test.csproj","fileNames":["/a/b/file3.d.ts","/a/data/node_modules/@types/commander/index.d.ts","/a/data/node_modules/@types/express/index.d.ts","/a/data/node_modules/@types/jquery/index.d.ts","/a/data/node_modules/@types/lodash/index.d.ts","/a/data/node_modules/@types/moment/index.d.ts","/a/b/lodash.js","/a/b/commander.js"],"compilerOptions":{"allowJS":true,"moduleResolution":2,"allowNonTsExtensions":true,"noEmitForJsFiles":true},"typeAcquisition":{"include":["jquery","moment","lodash","commander"],"exclude":[],"enable":true},"unresolvedImports":[],"projectRootPath":"/a/app","cachePath":"/a/data","kind":"discover"} +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/a/app/test.csproj", + "fileNames": [ + "/a/b/file3.d.ts", + "/a/data/node_modules/@types/commander/index.d.ts", + "/a/data/node_modules/@types/express/index.d.ts", + "/a/data/node_modules/@types/jquery/index.d.ts", + "/a/data/node_modules/@types/lodash/index.d.ts", + "/a/data/node_modules/@types/moment/index.d.ts", + "/a/b/lodash.js", + "/a/b/commander.js" + ], + "compilerOptions": { + "allowJS": true, + "moduleResolution": 2, + "allowNonTsExtensions": true, + "noEmitForJsFiles": true + }, + "typeAcquisition": { + "include": [ + "jquery", + "moment", + "lodash", + "commander" + ], + "exclude": [], + "enable": true + }, + "unresolvedImports": [], + "projectRootPath": "/a/app", + "cachePath": "/a/data", + "kind": "discover" + } TI:: [hh:mm:ss:mss] Request specifies cache path '/a/data', loading cached information... TI:: [hh:mm:ss:mss] Processing cache location '/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... @@ -245,11 +377,57 @@ TI:: [hh:mm:ss:mss] Explicitly included types: ["jquery","moment","lodash","comm TI:: [hh:mm:ss:mss] Typing names in '/a/b/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] Result: {"cachedTypingPaths":["/a/data/node_modules/@types/jquery/index.d.ts","/a/data/node_modules/@types/moment/index.d.ts","/a/data/node_modules/@types/lodash/index.d.ts","/a/data/node_modules/@types/commander/index.d.ts","/a/data/node_modules/@types/express/index.d.ts"],"newTypingNames":[],"filesToWatch":["/a/b/bower_components","/a/b/package.json","/a/b/node_modules","/a/app/bower_components","/a/app/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":["/a/data/node_modules/@types/jquery/index.d.ts","/a/data/node_modules/@types/moment/index.d.ts","/a/data/node_modules/@types/lodash/index.d.ts","/a/data/node_modules/@types/commander/index.d.ts","/a/data/node_modules/@types/express/index.d.ts"],"newTypingNames":[],"filesToWatch":["/a/b/bower_components","/a/b/package.json","/a/b/node_modules","/a/app/bower_components","/a/app/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [ + "/a/data/node_modules/@types/jquery/index.d.ts", + "/a/data/node_modules/@types/moment/index.d.ts", + "/a/data/node_modules/@types/lodash/index.d.ts", + "/a/data/node_modules/@types/commander/index.d.ts", + "/a/data/node_modules/@types/express/index.d.ts" + ], + "newTypingNames": [], + "filesToWatch": [ + "/a/b/bower_components", + "/a/b/package.json", + "/a/b/node_modules", + "/a/app/bower_components", + "/a/app/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/a/app/test.csproj"} + { + "kind": "action::watchTypingLocations", + "projectName": "/a/app/test.csproj" + } TI:: [hh:mm:ss:mss] Sending response: - {"projectName":"/a/app/test.csproj","typeAcquisition":{"include":["jquery","moment","lodash","commander"],"exclude":[],"enable":true},"compilerOptions":{"allowJS":true,"moduleResolution":2,"allowNonTsExtensions":true,"noEmitForJsFiles":true},"typings":["/a/data/node_modules/@types/jquery/index.d.ts","/a/data/node_modules/@types/moment/index.d.ts","/a/data/node_modules/@types/lodash/index.d.ts","/a/data/node_modules/@types/commander/index.d.ts","/a/data/node_modules/@types/express/index.d.ts"],"unresolvedImports":[],"kind":"action::set"} + { + "projectName": "/a/app/test.csproj", + "typeAcquisition": { + "include": [ + "jquery", + "moment", + "lodash", + "commander" + ], + "exclude": [], + "enable": true + }, + "compilerOptions": { + "allowJS": true, + "moduleResolution": 2, + "allowNonTsExtensions": true, + "noEmitForJsFiles": true + }, + "typings": [ + "/a/data/node_modules/@types/jquery/index.d.ts", + "/a/data/node_modules/@types/moment/index.d.ts", + "/a/data/node_modules/@types/lodash/index.d.ts", + "/a/data/node_modules/@types/commander/index.d.ts", + "/a/data/node_modules/@types/express/index.d.ts" + ], + "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: 0 diff --git a/tests/baselines/reference/tsserver/watchEnvironment/external-project-watch-options-in-host-configuration.js b/tests/baselines/reference/tsserver/watchEnvironment/external-project-watch-options-in-host-configuration.js index 87d7d37f802e6..6ffd0243ed0d6 100644 --- a/tests/baselines/reference/tsserver/watchEnvironment/external-project-watch-options-in-host-configuration.js +++ b/tests/baselines/reference/tsserver/watchEnvironment/external-project-watch-options-in-host-configuration.js @@ -40,11 +40,11 @@ Info seq [hh:mm:ss:mss] request: Info seq [hh:mm:ss:mss] Host watch options changed to {"excludeDirectories":["node_modules"]}, it will be take effect for next watches. Info seq [hh:mm:ss:mss] response: { - "seq": 0, - "type": "response", - "command": "configure", - "request_seq": 1, - "success": true + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 1, + "success": true } Info seq [hh:mm:ss:mss] response: { diff --git a/tests/baselines/reference/tsserver/watchEnvironment/inferred-project-watch-options-in-host-configuration.js b/tests/baselines/reference/tsserver/watchEnvironment/inferred-project-watch-options-in-host-configuration.js index a781a636643c6..fbcd62ae377bf 100644 --- a/tests/baselines/reference/tsserver/watchEnvironment/inferred-project-watch-options-in-host-configuration.js +++ b/tests/baselines/reference/tsserver/watchEnvironment/inferred-project-watch-options-in-host-configuration.js @@ -40,11 +40,11 @@ Info seq [hh:mm:ss:mss] request: Info seq [hh:mm:ss:mss] Host watch options changed to {"excludeDirectories":["node_modules"]}, it will be take effect for next watches. Info seq [hh:mm:ss:mss] response: { - "seq": 0, - "type": "response", - "command": "configure", - "request_seq": 1, - "success": true + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 1, + "success": true } Info seq [hh:mm:ss:mss] response: { 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 33ba3a20cf172..cb56ac5163cbc 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 @@ -67,10 +67,10 @@ FsWatches:: c:/a/lib/lib.d.ts: *new* {} -TI:: [hh:mm:ss:mss] Global cache location 'c:/a/data/', safe file path '/safeList.json', types map path /typesMap.json -TI:: [hh:mm:ss:mss] Processing cache location 'c:/a/data/' +TI:: [hh:mm:ss:mss] Global cache location 'c:/a/data', safe file path '/safeList.json', types map path /typesMap.json +TI:: [hh:mm:ss:mss] Processing cache location 'c:/a/data' TI:: [hh:mm:ss:mss] Trying to find 'c:/a/data/package.json'... -TI:: [hh:mm:ss:mss] Finished processing cache location 'c:/a/data/' +TI:: [hh:mm:ss:mss] Finished processing cache location 'c:/a/data' TI:: [hh:mm:ss:mss] Npm config file: c:/a/data/package.json TI:: [hh:mm:ss:mss] Npm config file: 'c:/a/data/package.json' is missing, creating new one... TI:: [hh:mm:ss:mss] Updating types-registry npm package... @@ -86,23 +86,79 @@ TI:: typing installer creation complete } -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject1*","fileNames":["c:/a/lib/lib.d.ts","c:/myprojects/project/x.js"],"compilerOptions":{"target":1,"jsx":1,"allowNonTsExtensions":true,"allowJs":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"c:/myprojects/project","cachePath":"c:/a/data/","kind":"discover"} -TI:: [hh:mm:ss:mss] Request specifies cache path 'c:/a/data/', loading cached information... -TI:: [hh:mm:ss:mss] Processing cache location 'c:/a/data/' +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject1*", + "fileNames": [ + "c:/a/lib/lib.d.ts", + "c:/myprojects/project/x.js" + ], + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "c:/myprojects/project", + "cachePath": "c:/a/data", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Request specifies cache path 'c:/a/data', loading cached information... +TI:: [hh:mm:ss:mss] Processing cache location 'c:/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/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] Result: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["c:/myprojects/project/bower_components","c:/myprojects/project/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["c:/myprojects/project/bower_components","c:/myprojects/project/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "c:/myprojects/project/bower_components", + "c:/myprojects/project/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject1*","files":["c:/myprojects/project/bower_components","c:/myprojects/project/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject1*", + "files": [ + "c:/myprojects/project/bower_components", + "c:/myprojects/project/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: c:/myprojects/project/bower_components 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: c:/myprojects/project/bower_components 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: c:/myprojects/project/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: c:/myprojects/project/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer 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"} + { + "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] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (2) @@ -188,10 +244,10 @@ FsWatches:: //vda1cs4850/a/lib/lib.d.ts: *new* {} -TI:: [hh:mm:ss:mss] Global cache location '//vda1cs4850/a/data/', safe file path '/safeList.json', types map path /typesMap.json -TI:: [hh:mm:ss:mss] Processing cache location '//vda1cs4850/a/data/' +TI:: [hh:mm:ss:mss] Global cache location '//vda1cs4850/a/data', safe file path '/safeList.json', types map path /typesMap.json +TI:: [hh:mm:ss:mss] Processing cache location '//vda1cs4850/a/data' TI:: [hh:mm:ss:mss] Trying to find '//vda1cs4850/a/data/package.json'... -TI:: [hh:mm:ss:mss] Finished processing cache location '//vda1cs4850/a/data/' +TI:: [hh:mm:ss:mss] Finished processing cache location '//vda1cs4850/a/data' TI:: [hh:mm:ss:mss] Npm config file: //vda1cs4850/a/data/package.json TI:: [hh:mm:ss:mss] Npm config file: '//vda1cs4850/a/data/package.json' is missing, creating new one... TI:: [hh:mm:ss:mss] Updating types-registry npm package... @@ -207,23 +263,79 @@ TI:: typing installer creation complete } -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject1*","fileNames":["//vda1cs4850/a/lib/lib.d.ts","//vda1cs4850/myprojects/project/x.js"],"compilerOptions":{"target":1,"jsx":1,"allowNonTsExtensions":true,"allowJs":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"//vda1cs4850/myprojects/project","cachePath":"//vda1cs4850/a/data/","kind":"discover"} -TI:: [hh:mm:ss:mss] Request specifies cache path '//vda1cs4850/a/data/', loading cached information... -TI:: [hh:mm:ss:mss] Processing cache location '//vda1cs4850/a/data/' +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject1*", + "fileNames": [ + "//vda1cs4850/a/lib/lib.d.ts", + "//vda1cs4850/myprojects/project/x.js" + ], + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "//vda1cs4850/myprojects/project", + "cachePath": "//vda1cs4850/a/data", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Request specifies cache path '//vda1cs4850/a/data', loading cached information... +TI:: [hh:mm:ss:mss] Processing cache location '//vda1cs4850/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/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] Result: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["//vda1cs4850/myprojects/project/bower_components","//vda1cs4850/myprojects/project/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["//vda1cs4850/myprojects/project/bower_components","//vda1cs4850/myprojects/project/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "//vda1cs4850/myprojects/project/bower_components", + "//vda1cs4850/myprojects/project/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject1*","files":["//vda1cs4850/myprojects/project/bower_components","//vda1cs4850/myprojects/project/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject1*", + "files": [ + "//vda1cs4850/myprojects/project/bower_components", + "//vda1cs4850/myprojects/project/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: //vda1cs4850/myprojects/project/bower_components 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: //vda1cs4850/myprojects/project/bower_components 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: //vda1cs4850/myprojects/project/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: //vda1cs4850/myprojects/project/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer 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"} + { + "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] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (2) @@ -317,10 +429,10 @@ FsWatches:: //vda1cs4850/a/lib/lib.d.ts: *new* {} -TI:: [hh:mm:ss:mss] Global cache location '//vda1cs4850/a/data/', safe file path '/safeList.json', types map path /typesMap.json -TI:: [hh:mm:ss:mss] Processing cache location '//vda1cs4850/a/data/' +TI:: [hh:mm:ss:mss] Global cache location '//vda1cs4850/a/data', safe file path '/safeList.json', types map path /typesMap.json +TI:: [hh:mm:ss:mss] Processing cache location '//vda1cs4850/a/data' TI:: [hh:mm:ss:mss] Trying to find '//vda1cs4850/a/data/package.json'... -TI:: [hh:mm:ss:mss] Finished processing cache location '//vda1cs4850/a/data/' +TI:: [hh:mm:ss:mss] Finished processing cache location '//vda1cs4850/a/data' TI:: [hh:mm:ss:mss] Npm config file: //vda1cs4850/a/data/package.json TI:: [hh:mm:ss:mss] Npm config file: '//vda1cs4850/a/data/package.json' is missing, creating new one... TI:: [hh:mm:ss:mss] Updating types-registry npm package... @@ -336,23 +448,79 @@ TI:: typing installer creation complete } -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject1*","fileNames":["//vda1cs4850/a/lib/lib.d.ts","//vda1cs4850/c$/myprojects/project/x.js"],"compilerOptions":{"target":1,"jsx":1,"allowNonTsExtensions":true,"allowJs":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"//vda1cs4850/c$/myprojects/project","cachePath":"//vda1cs4850/a/data/","kind":"discover"} -TI:: [hh:mm:ss:mss] Request specifies cache path '//vda1cs4850/a/data/', loading cached information... -TI:: [hh:mm:ss:mss] Processing cache location '//vda1cs4850/a/data/' +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject1*", + "fileNames": [ + "//vda1cs4850/a/lib/lib.d.ts", + "//vda1cs4850/c$/myprojects/project/x.js" + ], + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "//vda1cs4850/c$/myprojects/project", + "cachePath": "//vda1cs4850/a/data", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Request specifies cache path '//vda1cs4850/a/data', loading cached information... +TI:: [hh:mm:ss:mss] Processing cache location '//vda1cs4850/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/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] Result: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["//vda1cs4850/c$/myprojects/project/bower_components","//vda1cs4850/c$/myprojects/project/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["//vda1cs4850/c$/myprojects/project/bower_components","//vda1cs4850/c$/myprojects/project/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "//vda1cs4850/c$/myprojects/project/bower_components", + "//vda1cs4850/c$/myprojects/project/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject1*","files":["//vda1cs4850/c$/myprojects/project/bower_components","//vda1cs4850/c$/myprojects/project/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject1*", + "files": [ + "//vda1cs4850/c$/myprojects/project/bower_components", + "//vda1cs4850/c$/myprojects/project/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: //vda1cs4850/c$/myprojects/project/bower_components 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: //vda1cs4850/c$/myprojects/project/bower_components 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: //vda1cs4850/c$/myprojects/project/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: //vda1cs4850/c$/myprojects/project/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer 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"} + { + "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] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (2) @@ -454,10 +622,10 @@ FsWatches:: c:/a/lib/lib.d.ts: *new* {} -TI:: [hh:mm:ss:mss] Global cache location 'c:/a/data/', safe file path '/safeList.json', types map path /typesMap.json -TI:: [hh:mm:ss:mss] Processing cache location 'c:/a/data/' +TI:: [hh:mm:ss:mss] Global cache location 'c:/a/data', safe file path '/safeList.json', types map path /typesMap.json +TI:: [hh:mm:ss:mss] Processing cache location 'c:/a/data' TI:: [hh:mm:ss:mss] Trying to find 'c:/a/data/package.json'... -TI:: [hh:mm:ss:mss] Finished processing cache location 'c:/a/data/' +TI:: [hh:mm:ss:mss] Finished processing cache location 'c:/a/data' TI:: [hh:mm:ss:mss] Npm config file: c:/a/data/package.json TI:: [hh:mm:ss:mss] Npm config file: 'c:/a/data/package.json' is missing, creating new one... TI:: [hh:mm:ss:mss] Updating types-registry npm package... @@ -473,23 +641,79 @@ TI:: typing installer creation complete } -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject1*","fileNames":["c:/a/lib/lib.d.ts","c:/users/username/myprojects/project/x.js"],"compilerOptions":{"target":1,"jsx":1,"allowNonTsExtensions":true,"allowJs":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"c:/users/username/myprojects/project","cachePath":"c:/a/data/","kind":"discover"} -TI:: [hh:mm:ss:mss] Request specifies cache path 'c:/a/data/', loading cached information... -TI:: [hh:mm:ss:mss] Processing cache location 'c:/a/data/' +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject1*", + "fileNames": [ + "c:/a/lib/lib.d.ts", + "c:/users/username/myprojects/project/x.js" + ], + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "c:/users/username/myprojects/project", + "cachePath": "c:/a/data", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Request specifies cache path 'c:/a/data', loading cached information... +TI:: [hh:mm:ss:mss] Processing cache location 'c:/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/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] Result: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["c:/users/username/myprojects/project/bower_components","c:/users/username/myprojects/project/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["c:/users/username/myprojects/project/bower_components","c:/users/username/myprojects/project/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "c:/users/username/myprojects/project/bower_components", + "c:/users/username/myprojects/project/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject1*","files":["c:/users/username/myprojects/project/bower_components","c:/users/username/myprojects/project/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject1*", + "files": [ + "c:/users/username/myprojects/project/bower_components", + "c:/users/username/myprojects/project/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: c:/users/username/myprojects/project/bower_components 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: c:/users/username/myprojects/project/bower_components 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: c:/users/username/myprojects/project/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: c:/users/username/myprojects/project/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer 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"} + { + "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] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (2) @@ -591,10 +815,10 @@ FsWatches:: //vda1cs4850/a/lib/lib.d.ts: *new* {} -TI:: [hh:mm:ss:mss] Global cache location '//vda1cs4850/a/data/', safe file path '/safeList.json', types map path /typesMap.json -TI:: [hh:mm:ss:mss] Processing cache location '//vda1cs4850/a/data/' +TI:: [hh:mm:ss:mss] Global cache location '//vda1cs4850/a/data', safe file path '/safeList.json', types map path /typesMap.json +TI:: [hh:mm:ss:mss] Processing cache location '//vda1cs4850/a/data' TI:: [hh:mm:ss:mss] Trying to find '//vda1cs4850/a/data/package.json'... -TI:: [hh:mm:ss:mss] Finished processing cache location '//vda1cs4850/a/data/' +TI:: [hh:mm:ss:mss] Finished processing cache location '//vda1cs4850/a/data' TI:: [hh:mm:ss:mss] Npm config file: //vda1cs4850/a/data/package.json TI:: [hh:mm:ss:mss] Npm config file: '//vda1cs4850/a/data/package.json' is missing, creating new one... TI:: [hh:mm:ss:mss] Updating types-registry npm package... @@ -610,23 +834,79 @@ TI:: typing installer creation complete } -TI:: [hh:mm:ss:mss] Got install request {"projectName":"/dev/null/inferredProject1*","fileNames":["//vda1cs4850/a/lib/lib.d.ts","//vda1cs4850/c$/users/username/myprojects/project/x.js"],"compilerOptions":{"target":1,"jsx":1,"allowNonTsExtensions":true,"allowJs":true,"noEmitForJsFiles":true,"maxNodeModuleJsDepth":2},"typeAcquisition":{"enable":true,"include":[],"exclude":[]},"unresolvedImports":[],"projectRootPath":"//vda1cs4850/c$/users/username/myprojects/project","cachePath":"//vda1cs4850/a/data/","kind":"discover"} -TI:: [hh:mm:ss:mss] Request specifies cache path '//vda1cs4850/a/data/', loading cached information... -TI:: [hh:mm:ss:mss] Processing cache location '//vda1cs4850/a/data/' +TI:: [hh:mm:ss:mss] Got install request + { + "projectName": "/dev/null/inferredProject1*", + "fileNames": [ + "//vda1cs4850/a/lib/lib.d.ts", + "//vda1cs4850/c$/users/username/myprojects/project/x.js" + ], + "compilerOptions": { + "target": 1, + "jsx": 1, + "allowNonTsExtensions": true, + "allowJs": true, + "noEmitForJsFiles": true, + "maxNodeModuleJsDepth": 2 + }, + "typeAcquisition": { + "enable": true, + "include": [], + "exclude": [] + }, + "unresolvedImports": [], + "projectRootPath": "//vda1cs4850/c$/users/username/myprojects/project", + "cachePath": "//vda1cs4850/a/data", + "kind": "discover" + } +TI:: [hh:mm:ss:mss] Request specifies cache path '//vda1cs4850/a/data', loading cached information... +TI:: [hh:mm:ss:mss] Processing cache location '//vda1cs4850/a/data' TI:: [hh:mm:ss:mss] Cache location was already processed... TI:: [hh:mm:ss:mss] Failed to load safelist from types map file '/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] Result: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["//vda1cs4850/c$/users/username/myprojects/project/bower_components","//vda1cs4850/c$/users/username/myprojects/project/node_modules"]} -TI:: [hh:mm:ss:mss] Finished typings discovery: {"cachedTypingPaths":[],"newTypingNames":[],"filesToWatch":["//vda1cs4850/c$/users/username/myprojects/project/bower_components","//vda1cs4850/c$/users/username/myprojects/project/node_modules"]} +TI:: [hh:mm:ss:mss] Finished typings discovery: + { + "cachedTypingPaths": [], + "newTypingNames": [], + "filesToWatch": [ + "//vda1cs4850/c$/users/username/myprojects/project/bower_components", + "//vda1cs4850/c$/users/username/myprojects/project/node_modules" + ] + } TI:: [hh:mm:ss:mss] Sending response: - {"kind":"action::watchTypingLocations","projectName":"/dev/null/inferredProject1*","files":["//vda1cs4850/c$/users/username/myprojects/project/bower_components","//vda1cs4850/c$/users/username/myprojects/project/node_modules"]} + { + "kind": "action::watchTypingLocations", + "projectName": "/dev/null/inferredProject1*", + "files": [ + "//vda1cs4850/c$/users/username/myprojects/project/bower_components", + "//vda1cs4850/c$/users/username/myprojects/project/node_modules" + ] + } Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: //vda1cs4850/c$/users/username/myprojects/project/bower_components 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: //vda1cs4850/c$/users/username/myprojects/project/bower_components 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: //vda1cs4850/c$/users/username/myprojects/project/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: //vda1cs4850/c$/users/username/myprojects/project/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Directory location for typing installer 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"} + { + "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] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (2) diff --git a/tests/baselines/reference/tsserver/watchEnvironment/watching-npm-install-in-codespaces-where-workspaces-folder-is-hosted-at-root.js b/tests/baselines/reference/tsserver/watchEnvironment/watching-npm-install-in-codespaces-where-workspaces-folder-is-hosted-at-root.js index 785cc8b0455fb..e4fa97551e78d 100644 --- a/tests/baselines/reference/tsserver/watchEnvironment/watching-npm-install-in-codespaces-where-workspaces-folder-is-hosted-at-root.js +++ b/tests/baselines/reference/tsserver/watchEnvironment/watching-npm-install-in-codespaces-where-workspaces-folder-is-hosted-at-root.js @@ -40,13 +40,13 @@ Info seq [hh:mm:ss:mss] Creating configuration project /workspaces/somerepo/src Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /workspaces/somerepo/src/tsconfig.json 2000 undefined Project: /workspaces/somerepo/src/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingStart", - "body": { - "projectName": "/workspaces/somerepo/src/tsconfig.json", - "reason": "Creating possible configured project for /workspaces/somerepo/src/main.ts to open" - } + "seq": 0, + "type": "event", + "event": "projectLoadingStart", + "body": { + "projectName": "/workspaces/somerepo/src/tsconfig.json", + "reason": "Creating possible configured project for /workspaces/somerepo/src/main.ts to open" + } } Info seq [hh:mm:ss:mss] Config: /workspaces/somerepo/src/tsconfig.json : { "rootNames": [ @@ -89,64 +89,64 @@ Info seq [hh:mm:ss:mss] Files (3) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectLoadingFinish", - "body": { - "projectName": "/workspaces/somerepo/src/tsconfig.json" - } + "seq": 0, + "type": "event", + "event": "projectLoadingFinish", + "body": { + "projectName": "/workspaces/somerepo/src/tsconfig.json" + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "telemetry", - "body": { - "telemetryEventName": "projectInfo", - "payload": { - "projectId": "9e8115631fa65f5cabbf69613510b85e9196bbd1dbd96acfd77b994bec889817", - "fileStats": { - "js": 0, - "jsSize": 0, - "jsx": 0, - "jsxSize": 0, - "ts": 1, - "tsSize": 55, - "tsx": 0, - "tsxSize": 0, - "dts": 2, - "dtsSize": 371, - "deferred": 0, - "deferredSize": 0 - }, - "compilerOptions": {}, - "typeAcquisition": { - "enable": false, - "include": false, - "exclude": false - }, - "extends": false, - "files": false, - "include": false, - "exclude": false, - "compileOnSave": false, - "configFileName": "tsconfig.json", - "projectType": "configured", - "languageServiceEnabled": true, - "version": "FakeVersion" + "seq": 0, + "type": "event", + "event": "telemetry", + "body": { + "telemetryEventName": "projectInfo", + "payload": { + "projectId": "9e8115631fa65f5cabbf69613510b85e9196bbd1dbd96acfd77b994bec889817", + "fileStats": { + "js": 0, + "jsSize": 0, + "jsx": 0, + "jsxSize": 0, + "ts": 1, + "tsSize": 55, + "tsx": 0, + "tsxSize": 0, + "dts": 2, + "dtsSize": 371, + "deferred": 0, + "deferredSize": 0 + }, + "compilerOptions": {}, + "typeAcquisition": { + "enable": false, + "include": false, + "exclude": false + }, + "extends": false, + "files": false, + "include": false, + "exclude": false, + "compileOnSave": false, + "configFileName": "tsconfig.json", + "projectType": "configured", + "languageServiceEnabled": true, + "version": "FakeVersion" + } } - } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "configFileDiag", - "body": { - "triggerFile": "/workspaces/somerepo/src/main.ts", - "configFile": "/workspaces/somerepo/src/tsconfig.json", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "configFileDiag", + "body": { + "triggerFile": "/workspaces/somerepo/src/main.ts", + "configFile": "/workspaces/somerepo/src/tsconfig.json", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] Project '/workspaces/somerepo/src/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (3) @@ -206,13 +206,13 @@ Before running Timeout callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/workspaces/somerepo/src/main.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/workspaces/somerepo/src/main.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 0 @@ -221,13 +221,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/workspaces/somerepo/src/main.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/workspaces/somerepo/src/main.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 1 2: suggestionCheck @@ -237,22 +237,22 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/workspaces/somerepo/src/main.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/workspaces/somerepo/src/main.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 2 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 2 + } } After running Immedidate callback:: count: 0 @@ -351,13 +351,13 @@ Info seq [hh:mm:ss:mss] Files (2) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/workspaces/somerepo/src/main.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/workspaces/somerepo/src/main.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 3 12: /workspaces/somerepo/src/tsconfig.json @@ -369,27 +369,27 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/workspaces/somerepo/src/main.ts", - "diagnostics": [ - { - "start": { - "line": 1, - "offset": 28 - }, - "end": { - "line": 1, - "offset": 41 - }, - "text": "Cannot find module 'random-seed' or its corresponding type declarations.", - "code": 2307, - "category": "error" - } - ] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/workspaces/somerepo/src/main.ts", + "diagnostics": [ + { + "start": { + "line": 1, + "offset": 28 + }, + "end": { + "line": 1, + "offset": 41 + }, + "text": "Cannot find module 'random-seed' or its corresponding type declarations.", + "code": 2307, + "category": "error" + } + ] + } } After running Immedidate callback:: count: 1 4: suggestionCheck @@ -399,22 +399,22 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/workspaces/somerepo/src/main.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/workspaces/somerepo/src/main.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 3 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 3 + } } After running Immedidate callback:: count: 0 @@ -444,14 +444,14 @@ Info seq [hh:mm:ss:mss] Projects: /workspaces/somerepo/src/tsconfig.json Info seq [hh:mm:ss:mss] got projects updated in background, updating diagnostics for /workspaces/somerepo/src/main.ts Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "projectsUpdatedInBackground", - "body": { - "openFiles": [ - "/workspaces/somerepo/src/main.ts" - ] - } + "seq": 0, + "type": "event", + "event": "projectsUpdatedInBackground", + "body": { + "openFiles": [ + "/workspaces/somerepo/src/main.ts" + ] + } } Info seq [hh:mm:ss:mss] sysLog:: onTimerToUpdateChildWatches:: 3 Info seq [hh:mm:ss:mss] sysLog:: invokingWatchers:: Elapsed:: *ms:: 0 @@ -558,13 +558,13 @@ Info seq [hh:mm:ss:mss] Files (3) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "syntaxDiag", - "body": { - "file": "/workspaces/somerepo/src/main.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "syntaxDiag", + "body": { + "file": "/workspaces/somerepo/src/main.ts", + "diagnostics": [] + } } After running Timeout callback:: count: 3 24: /workspaces/somerepo/src/tsconfig.json @@ -576,13 +576,13 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "semanticDiag", - "body": { - "file": "/workspaces/somerepo/src/main.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "semanticDiag", + "body": { + "file": "/workspaces/somerepo/src/main.ts", + "diagnostics": [] + } } After running Immedidate callback:: count: 1 6: suggestionCheck @@ -592,22 +592,22 @@ Before running Immedidate callback:: count: 1 Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "suggestionDiag", - "body": { - "file": "/workspaces/somerepo/src/main.ts", - "diagnostics": [] - } + "seq": 0, + "type": "event", + "event": "suggestionDiag", + "body": { + "file": "/workspaces/somerepo/src/main.ts", + "diagnostics": [] + } } Info seq [hh:mm:ss:mss] event: { - "seq": 0, - "type": "event", - "event": "requestCompleted", - "body": { - "request_seq": 4 - } + "seq": 0, + "type": "event", + "event": "requestCompleted", + "body": { + "request_seq": 4 + } } After running Immedidate callback:: count: 0 diff --git a/tests/baselines/reference/tsserver/watchEnvironment/with-excludeDirectories-option-in-configuration.js b/tests/baselines/reference/tsserver/watchEnvironment/with-excludeDirectories-option-in-configuration.js index abb9fd7e432c9..079318dc9cf6f 100644 --- a/tests/baselines/reference/tsserver/watchEnvironment/with-excludeDirectories-option-in-configuration.js +++ b/tests/baselines/reference/tsserver/watchEnvironment/with-excludeDirectories-option-in-configuration.js @@ -43,11 +43,11 @@ Info seq [hh:mm:ss:mss] request: Info seq [hh:mm:ss:mss] Host watch options changed to {"excludeDirectories":["node_modules"]}, it will be take effect for next watches. Info seq [hh:mm:ss:mss] response: { - "seq": 0, - "type": "response", - "command": "configure", - "request_seq": 1, - "success": true + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 1, + "success": true } Info seq [hh:mm:ss:mss] response: { diff --git a/tests/baselines/reference/tsserver/watchEnvironment/with-fallbackPolling-option-as-host-configuration.js b/tests/baselines/reference/tsserver/watchEnvironment/with-fallbackPolling-option-as-host-configuration.js index 396bc16815a47..7fa5f88168967 100644 --- a/tests/baselines/reference/tsserver/watchEnvironment/with-fallbackPolling-option-as-host-configuration.js +++ b/tests/baselines/reference/tsserver/watchEnvironment/with-fallbackPolling-option-as-host-configuration.js @@ -38,11 +38,11 @@ Info seq [hh:mm:ss:mss] request: Info seq [hh:mm:ss:mss] Host watch options changed to {"fallbackPolling":1}, it will be take effect for next watches. Info seq [hh:mm:ss:mss] response: { - "seq": 0, - "type": "response", - "command": "configure", - "request_seq": 1, - "success": true + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 1, + "success": true } Info seq [hh:mm:ss:mss] response: { diff --git a/tests/baselines/reference/tsserver/watchEnvironment/with-fallbackPolling-option-in-configFile.js b/tests/baselines/reference/tsserver/watchEnvironment/with-fallbackPolling-option-in-configFile.js index d9b62e7f9a51e..d954f4e2091c7 100644 --- a/tests/baselines/reference/tsserver/watchEnvironment/with-fallbackPolling-option-in-configFile.js +++ b/tests/baselines/reference/tsserver/watchEnvironment/with-fallbackPolling-option-in-configFile.js @@ -38,11 +38,11 @@ Info seq [hh:mm:ss:mss] request: Info seq [hh:mm:ss:mss] Host watch options changed to {"fallbackPolling":1}, it will be take effect for next watches. Info seq [hh:mm:ss:mss] response: { - "seq": 0, - "type": "response", - "command": "configure", - "request_seq": 1, - "success": true + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 1, + "success": true } Info seq [hh:mm:ss:mss] response: { diff --git a/tests/baselines/reference/tsserver/watchEnvironment/with-watchDirectory-option-as-host-configuration.js b/tests/baselines/reference/tsserver/watchEnvironment/with-watchDirectory-option-as-host-configuration.js index 61128b6e037df..cadca2793fdc4 100644 --- a/tests/baselines/reference/tsserver/watchEnvironment/with-watchDirectory-option-as-host-configuration.js +++ b/tests/baselines/reference/tsserver/watchEnvironment/with-watchDirectory-option-as-host-configuration.js @@ -38,11 +38,11 @@ Info seq [hh:mm:ss:mss] request: Info seq [hh:mm:ss:mss] Host watch options changed to {"watchDirectory":0}, it will be take effect for next watches. Info seq [hh:mm:ss:mss] response: { - "seq": 0, - "type": "response", - "command": "configure", - "request_seq": 1, - "success": true + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 1, + "success": true } Info seq [hh:mm:ss:mss] response: { diff --git a/tests/baselines/reference/tsserver/watchEnvironment/with-watchFile-option-as-host-configuration.js b/tests/baselines/reference/tsserver/watchEnvironment/with-watchFile-option-as-host-configuration.js index b108d5ce0c6c3..e8dca8a790cc5 100644 --- a/tests/baselines/reference/tsserver/watchEnvironment/with-watchFile-option-as-host-configuration.js +++ b/tests/baselines/reference/tsserver/watchEnvironment/with-watchFile-option-as-host-configuration.js @@ -38,11 +38,11 @@ Info seq [hh:mm:ss:mss] request: Info seq [hh:mm:ss:mss] Host watch options changed to {"watchFile":4}, it will be take effect for next watches. Info seq [hh:mm:ss:mss] response: { - "seq": 0, - "type": "response", - "command": "configure", - "request_seq": 1, - "success": true + "seq": 0, + "type": "response", + "command": "configure", + "request_seq": 1, + "success": true } Info seq [hh:mm:ss:mss] response: {