From 04c59cef70b375225034ccb21efcdf29fe9df0df Mon Sep 17 00:00:00 2001 From: Jake Bailey <5341706+jakebailey@users.noreply.github.com> Date: Tue, 27 Jan 2026 09:58:33 -0800 Subject: [PATCH 01/15] wow --- src/harness/fourslashImpl.ts | 46 +- src/harness/harnessIO.ts | 42 - src/harness/harnessLanguageService.ts | 113 +- src/harness/tsserverLogger.ts | 27 +- src/harness/vfsUtil.ts | 6 + src/testRunner/unittests/helpers/contents.ts | 8 +- ...leanLiteralsContextuallyTypedFromUnion.tsx | 2 +- tests/cases/compiler/jsxHasLiteralType.tsx | 2 +- .../jsxInferenceProducesLiteralAsExpected.tsx | 2 +- .../compiler/jsxSpreadFirstUnionNoErrors.tsx | 2 +- .../tsxDeepAttributeAssignabilityError.tsx | 3 +- .../compiler/tsxFragmentChildrenCheck.ts | 3 +- .../tsxResolveExternalModuleExportsTypes.ts | 2 +- .../conformance/directives/multiline.tsx | 2 +- .../jsx/checkJsxChildrenProperty1.tsx | 3 +- .../jsx/checkJsxChildrenProperty12.tsx | 3 +- .../jsx/checkJsxChildrenProperty13.tsx | 3 +- .../jsx/checkJsxChildrenProperty14.tsx | 3 +- .../jsx/checkJsxChildrenProperty15.tsx | 3 +- .../jsx/checkJsxChildrenProperty2.tsx | 3 +- .../jsx/checkJsxChildrenProperty3.tsx | 3 +- .../jsx/checkJsxChildrenProperty4.tsx | 3 +- .../jsx/checkJsxChildrenProperty5.tsx | 3 +- .../jsx/checkJsxChildrenProperty6.tsx | 3 +- .../jsx/checkJsxChildrenProperty7.tsx | 3 +- .../jsx/checkJsxChildrenProperty8.tsx | 3 +- .../jsx/checkJsxChildrenProperty9.tsx | 3 +- ...checkJsxGenericTagHasCorrectInferences.tsx | 3 +- .../jsx/commentEmittingInPreserveJsx1.tsx | 3 +- .../jsx/correctlyMarkAliasAsReferences1.tsx | 2 +- .../jsx/correctlyMarkAliasAsReferences2.tsx | 2 +- .../jsx/correctlyMarkAliasAsReferences3.tsx | 2 +- .../jsx/correctlyMarkAliasAsReferences4.tsx | 2 +- .../jsx/jsxCheckJsxNoTypeArgumentsAllowed.tsx | 3 +- .../jsxSpreadOverwritesAttributeStrict.tsx | 3 +- .../jsx/tsxAttributeResolution15.tsx | 3 +- .../jsx/tsxAttributeResolution16.tsx | 3 +- .../jsx/tsxDefaultAttributesResolution1.tsx | 3 +- .../jsx/tsxDefaultAttributesResolution2.tsx | 3 +- .../jsx/tsxDefaultAttributesResolution3.tsx | 3 +- .../jsx/tsxGenericAttributesType1.tsx | 3 +- .../jsx/tsxGenericAttributesType2.tsx | 3 +- .../jsx/tsxGenericAttributesType3.tsx | 3 +- .../jsx/tsxGenericAttributesType4.tsx | 3 +- .../jsx/tsxGenericAttributesType5.tsx | 3 +- .../jsx/tsxGenericAttributesType6.tsx | 3 +- .../jsx/tsxGenericAttributesType7.tsx | 3 +- .../jsx/tsxGenericAttributesType8.tsx | 3 +- .../jsx/tsxGenericAttributesType9.tsx | 3 +- ...eactComponentWithDefaultTypeParameter1.tsx | 3 +- ...eactComponentWithDefaultTypeParameter2.tsx | 3 +- ...eactComponentWithDefaultTypeParameter3.tsx | 3 +- .../conformance/jsx/tsxSfcReturnNull.tsx | 3 +- .../jsx/tsxSfcReturnNullStrictNullChecks.tsx | 3 +- .../tsxSfcReturnUndefinedStrictNullChecks.tsx | 3 +- .../jsx/tsxSpreadAttributesResolution1.tsx | 3 +- .../jsx/tsxSpreadAttributesResolution10.tsx | 3 +- .../jsx/tsxSpreadAttributesResolution11.tsx | 3 +- .../jsx/tsxSpreadAttributesResolution12.tsx | 3 +- .../jsx/tsxSpreadAttributesResolution13.tsx | 3 +- .../jsx/tsxSpreadAttributesResolution14.tsx | 3 +- .../jsx/tsxSpreadAttributesResolution15.tsx | 3 +- .../jsx/tsxSpreadAttributesResolution16.tsx | 3 +- .../jsx/tsxSpreadAttributesResolution17.tsx | 2 - .../jsx/tsxSpreadAttributesResolution2.tsx | 3 +- .../jsx/tsxSpreadAttributesResolution3.tsx | 3 +- .../jsx/tsxSpreadAttributesResolution4.tsx | 3 +- .../jsx/tsxSpreadAttributesResolution5.tsx | 3 +- .../jsx/tsxSpreadAttributesResolution6.tsx | 3 +- .../jsx/tsxSpreadAttributesResolution7.tsx | 3 +- .../jsx/tsxSpreadAttributesResolution8.tsx | 3 +- .../jsx/tsxSpreadAttributesResolution9.tsx | 3 +- ...tsxStatelessFunctionComponentOverload1.tsx | 3 +- ...tsxStatelessFunctionComponentOverload2.tsx | 3 +- ...tsxStatelessFunctionComponentOverload3.tsx | 3 +- ...tsxStatelessFunctionComponentOverload4.tsx | 3 +- ...tsxStatelessFunctionComponentOverload5.tsx | 3 +- ...tsxStatelessFunctionComponentOverload6.tsx | 3 +- ...tionComponentWithDefaultTypeParameter1.tsx | 3 +- ...tionComponentWithDefaultTypeParameter2.tsx | 3 +- .../jsx/tsxStatelessFunctionComponents1.tsx | 3 +- .../jsx/tsxStatelessFunctionComponents2.tsx | 3 +- .../jsx/tsxStatelessFunctionComponents3.tsx | 3 +- ...ssFunctionComponentsWithTypeArguments1.tsx | 3 +- ...ssFunctionComponentsWithTypeArguments2.tsx | 3 +- ...ssFunctionComponentsWithTypeArguments3.tsx | 3 +- ...ssFunctionComponentsWithTypeArguments4.tsx | 3 +- ...ssFunctionComponentsWithTypeArguments5.tsx | 3 +- .../jsx/tsxTypeArgumentResolution.tsx | 3 +- .../jsx/tsxTypeArgumentsJsxPreserveOutput.tsx | 3 +- .../conformance/jsx/tsxUnionElementType1.tsx | 3 +- .../conformance/jsx/tsxUnionElementType2.tsx | 3 +- .../conformance/jsx/tsxUnionElementType3.tsx | 3 +- .../conformance/jsx/tsxUnionElementType4.tsx | 3 +- .../conformance/jsx/tsxUnionElementType5.tsx | 3 +- .../conformance/jsx/tsxUnionElementType6.tsx | 3 +- .../jsx/tsxUnionTypeComponent1.tsx | 3 +- .../jsx/tsxUnionTypeComponent2.tsx | 3 +- .../jsx/unicodeEscapesInJsxtags.tsx | 3 +- ...lyTypedStringLiteralsInJsxAttributes02.tsx | 3 +- .../fourslash/moveToNewFile_moveJsxImport1.ts | 3 +- .../fourslash/moveToNewFile_moveJsxImport2.ts | 3 +- .../fourslash/moveToNewFile_moveJsxImport3.ts | 3 +- .../fourslash/moveToNewFile_moveJsxImport4.ts | 3 +- .../fourslash/server/jsdocTypedefTag1.ts | 1 + tests/cases/fourslash/tsxSignatureHelp1.ts | 3 +- tests/cases/fourslash/tsxSignatureHelp2.ts | 3 +- tests/lib/lib.d.ts | 17291 ---------------- 108 files changed, 236 insertions(+), 17587 deletions(-) delete mode 100644 tests/lib/lib.d.ts diff --git a/src/harness/fourslashImpl.ts b/src/harness/fourslashImpl.ts index 5b1c66546da88..4c0578ab6e207 100644 --- a/src/harness/fourslashImpl.ts +++ b/src/harness/fourslashImpl.ts @@ -9,10 +9,7 @@ import * as vpath from "./_namespaces/vpath.js"; import { LoggerWithInMemoryLogs } from "./tsserverLogger.js"; import ArrayOrSingle = FourSlashInterface.ArrayOrSingle; -import { - harnessSessionLibLocation, - harnessTypingInstallerCacheLocation, -} from "./harnessLanguageService.js"; +import { harnessTypingInstallerCacheLocation } from "./harnessLanguageService.js"; import { ensureWatchablePath } from "./watchUtils.js"; export const enum FourSlashTestType { @@ -367,11 +364,6 @@ export class TestState { } } - const libName = (name: string) => - this.testType !== FourSlashTestType.Server ? - name : - `${harnessSessionLibLocation}/${name}`; - let configParseResult: ts.ParsedCommandLine | undefined; if (configFileName) { const baseDir = ts.normalizePath(ts.getDirectoryPath(configFileName)); @@ -422,24 +414,6 @@ export class TestState { const importedFilePath = this.basePath + "/" + importedFile.fileName; this.addMatchedInputFile(importedFilePath, exts); }); - - this.languageServiceAdapterHost.addScript( - libName(Harness.Compiler.defaultLibFileName), - Harness.Compiler.getDefaultLibrarySourceFile()!.text, - /*isRootFile*/ false, - ); - - compilationOptions.lib?.forEach(fileName => { - const libFile = Harness.Compiler.getDefaultLibrarySourceFile(fileName); - ts.Debug.assertIsDefined(libFile, `Could not find lib file '${fileName}'`); - if (libFile) { - this.languageServiceAdapterHost.addScript( - libName(fileName), - libFile.text, - /*isRootFile*/ false, - ); - } - }); } else { // resolveReference file-option is not specified then do not resolve any files and include all inputFiles @@ -452,24 +426,6 @@ export class TestState { this.languageServiceAdapterHost.addScript(fileName, file, isRootFile); } }); - - if (!compilationOptions.noLib) { - const seen = new Set(); - const addSourceFile = (fileName: string) => { - if (seen.has(fileName)) return; - seen.add(fileName); - const libFile = Harness.Compiler.getDefaultLibrarySourceFile(fileName); - ts.Debug.assertIsDefined(libFile, `Could not find lib file '${fileName}'`); - this.languageServiceAdapterHost.addScript(libName(fileName), libFile.text, /*isRootFile*/ false); - if (!ts.some(libFile.libReferenceDirectives)) return; - for (const directive of libFile.libReferenceDirectives) { - addSourceFile(`lib.${directive.fileName}.d.ts`); - } - }; - - addSourceFile(Harness.Compiler.defaultLibFileName); - compilationOptions.lib?.forEach(addSourceFile); - } } for (const file of testData.files) { diff --git a/src/harness/harnessIO.ts b/src/harness/harnessIO.ts index 62eb692058e67..aae310d1d1178 100644 --- a/src/harness/harnessIO.ts +++ b/src/harness/harnessIO.ts @@ -229,48 +229,6 @@ export namespace Compiler { return result; } - export const defaultLibFileName = "lib.d.ts"; - export const es2015DefaultLibFileName = "lib.es2015.d.ts"; - - // Cache of lib files from "built/local" - export let libFileNameSourceFileMap: Map | undefined; - - export function getDefaultLibrarySourceFile(fileName: string = defaultLibFileName): ts.SourceFile | undefined { - if (!isDefaultLibraryFile(fileName)) { - return undefined; - } - - if (!libFileNameSourceFileMap) { - const file = createSourceFileAndAssertInvariants(defaultLibFileName, IO.readFile(libFolder + "lib.es5.d.ts")!, /*languageVersion*/ ts.ScriptTarget.Latest); - libFileNameSourceFileMap = new Map(Object.entries({ - [defaultLibFileName]: { file, stringified: JSON.stringify(file.text) }, - })); - } - - let sourceFile = libFileNameSourceFileMap.get(fileName); - if (!sourceFile) { - const file = createSourceFileAndAssertInvariants(fileName, IO.readFile(libFolder + fileName)!, ts.ScriptTarget.Latest); - sourceFile = { file, stringified: JSON.stringify(file.text) }; - libFileNameSourceFileMap.set(fileName, sourceFile); - } - return sourceFile.file; - } - - export function getDefaultLibFileName(options: ts.CompilerOptions): string { - switch (ts.getEmitScriptTarget(options)) { - case ts.ScriptTarget.ESNext: - case ts.ScriptTarget.ES2017: - return "lib.es2017.d.ts"; - case ts.ScriptTarget.ES2016: - return "lib.es2016.d.ts"; - case ts.ScriptTarget.ES2015: - return es2015DefaultLibFileName; - - default: - return defaultLibFileName; - } - } - // Cache these between executions so we don't have to re-parse them for every test export const fourslashFileName = "fourslash.ts"; export let fourslashSourceFile: ts.SourceFile; diff --git a/src/harness/harnessLanguageService.ts b/src/harness/harnessLanguageService.ts index 7aff47310a4b6..41a3f71b14fe8 100644 --- a/src/harness/harnessLanguageService.ts +++ b/src/harness/harnessLanguageService.ts @@ -1,7 +1,7 @@ import * as collections from "./_namespaces/collections.js"; import * as fakes from "./_namespaces/fakes.js"; import { - Compiler, + IO, mockHash, virtualFileSystemRoot, } from "./_namespaces/Harness.js"; @@ -128,13 +128,103 @@ export interface LanguageServiceAdapter { getLogger(): LoggerWithInMemoryLogs | undefined; } +/** Create VFS with libs mounted at builtFolder (/.ts) */ +function createLanguageServiceVfs(): vfs.FileSystem { + return vfs.createFromFileSystem(IO, /*ignoreCase*/ true, { cwd: virtualFileSystemRoot }); +} + +const sharedLibDocumentRegistry = ts.createDocumentRegistry(/*useCaseSensitiveFileNames*/ false, virtualFileSystemRoot); + +function createSelectiveDocumentRegistry(): ts.DocumentRegistry { + const localRegistry = ts.createDocumentRegistry(/*useCaseSensitiveFileNames*/ false, virtualFileSystemRoot); + + const enableLibAstCaching = true; + if (!enableLibAstCaching) { + return localRegistry; + } + + const libFileVersions = new Map(); + + function isLibFile(fileName: string): boolean { + return vpath.beneath(vfs.fourslashLibFolder, fileName); + } + + function getRegistry(fileName: string): ts.DocumentRegistry { + return isLibFile(fileName) ? sharedLibDocumentRegistry : localRegistry; + } + + function checkLibFileVersion(fileName: string, version: string): void { + if (!isLibFile(fileName)) return; + const existingVersion = libFileVersions.get(fileName); + if (existingVersion === undefined) { + libFileVersions.set(fileName, version); + } + else if (existingVersion !== version) { + throw new Error(`Lib file "${fileName}" version changed from "${existingVersion}" to "${version}" - lib files should not be modified`); + } + } + + return { + acquireDocument(fileName, compilationSettingsOrHost, scriptSnapshot, version, scriptKind, sourceFileOptions) { + checkLibFileVersion(fileName, version); + return getRegistry(fileName).acquireDocument(fileName, compilationSettingsOrHost, scriptSnapshot, version, scriptKind, sourceFileOptions); + }, + acquireDocumentWithKey(fileName, path, compilationSettingsOrHost, key, scriptSnapshot, version, scriptKind, sourceFileOptions) { + checkLibFileVersion(fileName, version); + return getRegistry(fileName).acquireDocumentWithKey(fileName, path, compilationSettingsOrHost, key, scriptSnapshot, version, scriptKind, sourceFileOptions); + }, + updateDocument(fileName, compilationSettingsOrHost, scriptSnapshot, version, scriptKind, sourceFileOptions) { + checkLibFileVersion(fileName, version); + return getRegistry(fileName).updateDocument(fileName, compilationSettingsOrHost, scriptSnapshot, version, scriptKind, sourceFileOptions); + }, + updateDocumentWithKey(fileName, path, compilationSettingsOrHost, key, scriptSnapshot, version, scriptKind, sourceFileOptions) { + checkLibFileVersion(fileName, version); + return getRegistry(fileName).updateDocumentWithKey(fileName, path, compilationSettingsOrHost, key, scriptSnapshot, version, scriptKind, sourceFileOptions); + }, + getKeyForCompilationSettings(settings) { + return sharedLibDocumentRegistry.getKeyForCompilationSettings(settings); + }, + getDocumentRegistryBucketKeyWithMode(key, mode) { + return sharedLibDocumentRegistry.getDocumentRegistryBucketKeyWithMode(key, mode); + }, + releaseDocument(fileName: string, compilationSettings: ts.CompilerOptions, scriptKind?: ts.ScriptKind, impliedNodeFormat?: ts.ResolutionMode) { + // Need to handle the overloaded signature + return getRegistry(fileName).releaseDocument(fileName, compilationSettings, scriptKind!, impliedNodeFormat); + }, + releaseDocumentWithKey(path: ts.Path, key: ts.DocumentRegistryBucketKey, scriptKind?: ts.ScriptKind, impliedNodeFormat?: ts.ResolutionMode) { + // We don't know the original file name here, so release from both registries + // This is safe because releaseDocument is a no-op if the document wasn't acquired + try { + localRegistry.releaseDocumentWithKey(path, key, scriptKind!, impliedNodeFormat); + } + catch { + // Ignore - document might be in the other registry + } + try { + sharedLibDocumentRegistry.releaseDocumentWithKey(path, key, scriptKind!, impliedNodeFormat); + } + catch { + // Ignore - document might be in the other registry + } + }, + reportStats() { + return `Shared lib registry: ${sharedLibDocumentRegistry.reportStats()}\nLocal registry: ${localRegistry.reportStats()}`; + }, + getBuckets() { + // Return local buckets - this is primarily for debugging + return localRegistry.getBuckets(); + }, + }; +} + export abstract class LanguageServiceAdapterHost { - public readonly sys: fakes.System = new fakes.System(new vfs.FileSystem(/*ignoreCase*/ true, { cwd: virtualFileSystemRoot })); + public readonly sys: fakes.System; public typesRegistry: Map | undefined; private scriptInfos: collections.SortedMap; public jsDocParsingMode: ts.JSDocParsingMode | undefined; constructor(protected cancellationToken: DefaultHostCancellationToken = DefaultHostCancellationToken.instance, protected settings: ts.CompilerOptions = ts.getDefaultCompilerOptions()) { + this.sys = new fakes.System(createLanguageServiceVfs()); this.scriptInfos = new collections.SortedMap({ comparer: this.vfs.stringComparer, sort: "insertion" }); } @@ -280,7 +370,7 @@ class NativeLanguageServiceHost extends LanguageServiceAdapterHost implements ts } getDefaultLibFileName(): string { - return Compiler.defaultLibFileName; + return vpath.combine(vfs.fourslashLibFolder, ts.getDefaultLibFileName(this.settings)); } getScriptFileNames(): string[] { @@ -289,7 +379,10 @@ class NativeLanguageServiceHost extends LanguageServiceAdapterHost implements ts getScriptSnapshot(fileName: string): ts.IScriptSnapshot | undefined { const script = this.getScriptInfo(fileName); - return script ? new ScriptSnapshot(script) : undefined; + if (script) return new ScriptSnapshot(script); + // Fall back to reading from VFS for files not in scriptInfos (e.g., lib files) + const content = this.readFile(fileName); + return content !== undefined ? ts.ScriptSnapshot.fromString(content) : undefined; } getScriptKind(): ts.ScriptKind { @@ -332,15 +425,17 @@ class NativeLanguageServiceHost extends LanguageServiceAdapterHost implements ts export class NativeLanguageServiceAdapter implements LanguageServiceAdapter { private host: NativeLanguageServiceHost; + private documentRegistry: ts.DocumentRegistry; getLogger: typeof ts.returnUndefined = ts.returnUndefined; constructor(cancellationToken?: ts.HostCancellationToken, options?: ts.CompilerOptions) { this.host = new NativeLanguageServiceHost(cancellationToken, options); + this.documentRegistry = createSelectiveDocumentRegistry(); } getHost(): LanguageServiceAdapterHost { return this.host; } getLanguageService(): ts.LanguageService { - return ts.createLanguageService(this.host); + return ts.createLanguageService(this.host, this.documentRegistry); } getClassifier(): ts.Classifier { return ts.createClassifier(); @@ -394,8 +489,6 @@ interface ServerHostDirectoryWatcher { cb: ts.DirectoryWatcherCallback; } -/** Default typescript and lib installs location for tests */ -export const harnessSessionLibLocation = "/home/src/tslibs/TS/Lib"; class SessionServerHost implements ts.server.ServerHost { args: string[] = []; newLine: string; @@ -420,7 +513,9 @@ class SessionServerHost implements ts.server.ServerHost { readFile(fileName: string): string | undefined { // System FS would follow symlinks, even though snapshots are stored by original file name const snapshot = this.host.getScriptSnapshot(fileName) || this.host.getScriptSnapshot(this.realpath(fileName)); - return snapshot && ts.getSnapshotText(snapshot); + if (snapshot) return ts.getSnapshotText(snapshot); + // Fall back to reading from VFS for files not in scriptInfos (e.g., lib files) + return this.host.readFile(fileName); } realpath(path: string) { @@ -443,7 +538,7 @@ class SessionServerHost implements ts.server.ServerHost { } getExecutingFilePath(): string { - return harnessSessionLibLocation + "/tsc.js"; + return vfs.fourslashLibFolder + "/tsc.js"; } exit = ts.noop; diff --git a/src/harness/tsserverLogger.ts b/src/harness/tsserverLogger.ts index 85d81ebfb217b..7aba023a2e88c 100644 --- a/src/harness/tsserverLogger.ts +++ b/src/harness/tsserverLogger.ts @@ -1,5 +1,8 @@ import * as ts from "./_namespaces/ts.js"; -import { Compiler } from "./harnessIO.js"; +import { + IO, + libFolder, +} from "./harnessIO.js"; export const HarnessLSCouldNotResolveModule = "HarnessLanguageService:: Could not resolve module"; @@ -142,11 +145,25 @@ function sanitizeHarnessLSException(s: string) { return s; } +const libFileTextReplacements = ts.memoize(() => { + const replacements: { text: string; jsonText: string; replacement: string; }[] = []; + // Read all lib files from built/local + const libFiles = IO.listFiles(libFolder, /^lib\..*\.d\.ts$/); + for (const libPath of libFiles) { + const content = IO.readFile(libPath); + if (content) { + const fileName = ts.getBaseFileName(libPath); + replacements.push({ text: content, jsonText: JSON.stringify(content), replacement: `${fileName}-Text` }); + } + } + return replacements; +}); + export function sanitizeLibFileText(s: string): string { - Compiler.libFileNameSourceFileMap?.forEach((lib, fileName) => { - s = replaceAll(s, lib.stringified, `${fileName}-Text`); - s = replaceAll(s, lib.file.text, `${fileName}-Text`); - }); + for (const { text, jsonText, replacement } of libFileTextReplacements()) { + s = replaceAll(s, jsonText, replacement); + s = replaceAll(s, text, replacement); + } return s; } diff --git a/src/harness/vfsUtil.ts b/src/harness/vfsUtil.ts index 596575beece2c..3a5113e0f083d 100644 --- a/src/harness/vfsUtil.ts +++ b/src/harness/vfsUtil.ts @@ -9,6 +9,11 @@ import * as vpath from "./_namespaces/vpath.js"; */ export const builtFolder = "/.ts"; +/** + * Posix-style path to libs for fourslash server tests (mounted to same location as builtFolder) + */ +export const fourslashLibFolder = "/home/src/tslibs/TS/Lib"; + /** * Posix-style path to additional mountable folders (./tests/projects in this repo) */ @@ -1566,6 +1571,7 @@ function getBuiltLocal(host: FileSystemResolverHost, ignoreCase: boolean): FileS builtLocalCI = new FileSystem(/*ignoreCase*/ true, { files: { [builtFolder]: new Mount(vpath.resolve(host.getWorkspaceRoot(), "built/local"), resolver), + [fourslashLibFolder]: new Mount(vpath.resolve(host.getWorkspaceRoot(), "built/local"), resolver), [testLibFolder]: new Mount(vpath.resolve(host.getWorkspaceRoot(), "tests/lib"), resolver), [projectsFolder]: new Mount(vpath.resolve(host.getWorkspaceRoot(), "tests/projects"), resolver), [srcFolder]: {}, diff --git a/src/testRunner/unittests/helpers/contents.ts b/src/testRunner/unittests/helpers/contents.ts index 780ca4b1d81ee..ddfd14d5695a4 100644 --- a/src/testRunner/unittests/helpers/contents.ts +++ b/src/testRunner/unittests/helpers/contents.ts @@ -1,13 +1,11 @@ -import { - harnessSessionLibLocation, - harnessTypingInstallerCacheLocation, -} from "../../../harness/harnessLanguageService.js"; +import * as vfs from "../../../harness/_namespaces/vfs.js"; +import { harnessTypingInstallerCacheLocation } from "../../../harness/harnessLanguageService.js"; import * as ts from "../../_namespaces/ts.js"; /** Default typescript and lib installs location for tests */ export const tscTypeScriptTestLocation: string = getPathForTypeScriptTestLocation("tsc.js"); export function getPathForTypeScriptTestLocation(fileName: string): string { - return ts.combinePaths(harnessSessionLibLocation, fileName); + return ts.combinePaths(vfs.fourslashLibFolder, fileName); } export function getTypeScriptLibTestLocation(libName: string): string { diff --git a/tests/cases/compiler/booleanLiteralsContextuallyTypedFromUnion.tsx b/tests/cases/compiler/booleanLiteralsContextuallyTypedFromUnion.tsx index fd5bbb73cf6a9..08d09aca9e540 100644 --- a/tests/cases/compiler/booleanLiteralsContextuallyTypedFromUnion.tsx +++ b/tests/cases/compiler/booleanLiteralsContextuallyTypedFromUnion.tsx @@ -1,7 +1,7 @@ // @strict: true // @jsx: preserve // @skipLibCheck: true -// @libFiles: lib.d.ts,react.d.ts +// @libFiles: react.d.ts interface A { isIt: true; text: string; } interface B { isIt: false; value: number; } type C = A | B; diff --git a/tests/cases/compiler/jsxHasLiteralType.tsx b/tests/cases/compiler/jsxHasLiteralType.tsx index 17132fdad40fd..32f126f18d8b4 100644 --- a/tests/cases/compiler/jsxHasLiteralType.tsx +++ b/tests/cases/compiler/jsxHasLiteralType.tsx @@ -1,7 +1,7 @@ // @strictNullChecks: true // @jsx: react // @skipLibCheck: true -// @libFiles: lib.d.ts,react.d.ts +// @libFiles: react.d.ts import * as React from "react"; interface Props { diff --git a/tests/cases/compiler/jsxInferenceProducesLiteralAsExpected.tsx b/tests/cases/compiler/jsxInferenceProducesLiteralAsExpected.tsx index ce7dc3317164b..a7aef51b6eab4 100644 --- a/tests/cases/compiler/jsxInferenceProducesLiteralAsExpected.tsx +++ b/tests/cases/compiler/jsxInferenceProducesLiteralAsExpected.tsx @@ -1,5 +1,5 @@ // @jsx: react -// @libFiles: lib.d.ts,react.d.ts +// @libFiles: react.d.ts import React = require("react"); type FunctionPropertyNames = { [K in keyof T]: T[K] extends Function ? K : never }[keyof T]; class TestObject { diff --git a/tests/cases/compiler/jsxSpreadFirstUnionNoErrors.tsx b/tests/cases/compiler/jsxSpreadFirstUnionNoErrors.tsx index 72c4cc5d20e99..72ba138c468cf 100644 --- a/tests/cases/compiler/jsxSpreadFirstUnionNoErrors.tsx +++ b/tests/cases/compiler/jsxSpreadFirstUnionNoErrors.tsx @@ -1,5 +1,5 @@ // @jsx: react -// @libFiles: lib.d.ts,react.d.ts +// @libFiles: react.d.ts // @skipLibCheck: true // @allowSyntheticDefaultImports: true import React from "react"; diff --git a/tests/cases/compiler/tsxDeepAttributeAssignabilityError.tsx b/tests/cases/compiler/tsxDeepAttributeAssignabilityError.tsx index c52b4b66167b0..f34890187ed90 100644 --- a/tests/cases/compiler/tsxDeepAttributeAssignabilityError.tsx +++ b/tests/cases/compiler/tsxDeepAttributeAssignabilityError.tsx @@ -1,7 +1,6 @@ // @jsx: react -// @noLib: true // @skipLibCheck: true -// @libFiles: react.d.ts,lib.d.ts +// @libFiles: react.d.ts // @Filename: my-component.tsx import * as React from 'react' diff --git a/tests/cases/compiler/tsxFragmentChildrenCheck.ts b/tests/cases/compiler/tsxFragmentChildrenCheck.ts index f49835404b4cf..8ae74e38d4562 100644 --- a/tests/cases/compiler/tsxFragmentChildrenCheck.ts +++ b/tests/cases/compiler/tsxFragmentChildrenCheck.ts @@ -1,8 +1,7 @@ // @jsx: react // @noUnusedLocals: true -// @noLib: true // @skipLibCheck: true -// @libFiles: react.d.ts,lib.d.ts +// @libFiles: react.d.ts // @Filename: my-component.tsx declare var React: any; diff --git a/tests/cases/compiler/tsxResolveExternalModuleExportsTypes.ts b/tests/cases/compiler/tsxResolveExternalModuleExportsTypes.ts index e8cfb6aa4e5d4..9b65b703e858e 100644 --- a/tests/cases/compiler/tsxResolveExternalModuleExportsTypes.ts +++ b/tests/cases/compiler/tsxResolveExternalModuleExportsTypes.ts @@ -1,6 +1,6 @@ // @module: ES2015 // @jsx: preserve -// @libFiles: react.d.ts,lib.d.ts +// @libFiles: react.d.ts // @Filename: /node_modules/@types/a/index.d.ts declare var a: a.Foo; diff --git a/tests/cases/conformance/directives/multiline.tsx b/tests/cases/conformance/directives/multiline.tsx index 740e9936f4d3a..4979857a4a782 100644 --- a/tests/cases/conformance/directives/multiline.tsx +++ b/tests/cases/conformance/directives/multiline.tsx @@ -15,7 +15,7 @@ texts.push("100"); // @filename: b.tsx // @jsx: react -// @libFiles: react.d.ts,lib.d.ts +// @libFiles: react.d.ts import * as React from "react"; export function MyComponent(props: { foo: string }) { diff --git a/tests/cases/conformance/jsx/checkJsxChildrenProperty1.tsx b/tests/cases/conformance/jsx/checkJsxChildrenProperty1.tsx index 09c003c376c8a..d3ea63d3b5c9f 100644 --- a/tests/cases/conformance/jsx/checkJsxChildrenProperty1.tsx +++ b/tests/cases/conformance/jsx/checkJsxChildrenProperty1.tsx @@ -1,8 +1,7 @@ // @filename: file.tsx // @jsx: preserve -// @noLib: true // @skipLibCheck: true -// @libFiles: react.d.ts,lib.d.ts +// @libFiles: react.d.ts import React = require('react'); diff --git a/tests/cases/conformance/jsx/checkJsxChildrenProperty12.tsx b/tests/cases/conformance/jsx/checkJsxChildrenProperty12.tsx index 679ec05799956..77e7693c8ec7b 100644 --- a/tests/cases/conformance/jsx/checkJsxChildrenProperty12.tsx +++ b/tests/cases/conformance/jsx/checkJsxChildrenProperty12.tsx @@ -1,8 +1,7 @@ // @filename: file.tsx // @jsx: preserve -// @noLib: true // @skipLibCheck: true -// @libFiles: react.d.ts,lib.d.ts +// @libFiles: react.d.ts import React = require('react'); diff --git a/tests/cases/conformance/jsx/checkJsxChildrenProperty13.tsx b/tests/cases/conformance/jsx/checkJsxChildrenProperty13.tsx index e7918999465ec..93d139cf528af 100644 --- a/tests/cases/conformance/jsx/checkJsxChildrenProperty13.tsx +++ b/tests/cases/conformance/jsx/checkJsxChildrenProperty13.tsx @@ -1,8 +1,7 @@ // @filename: file.tsx // @jsx: preserve -// @noLib: true // @skipLibCheck: true -// @libFiles: react.d.ts,lib.d.ts +// @libFiles: react.d.ts // @strictNullChecks: true import React = require('react'); diff --git a/tests/cases/conformance/jsx/checkJsxChildrenProperty14.tsx b/tests/cases/conformance/jsx/checkJsxChildrenProperty14.tsx index cac6fc8dc6457..8b00965747ae3 100644 --- a/tests/cases/conformance/jsx/checkJsxChildrenProperty14.tsx +++ b/tests/cases/conformance/jsx/checkJsxChildrenProperty14.tsx @@ -1,8 +1,7 @@ // @filename: file.tsx // @jsx: preserve -// @noLib: true // @skipLibCheck: true -// @libFiles: react.d.ts,lib.d.ts +// @libFiles: react.d.ts import React = require('react'); diff --git a/tests/cases/conformance/jsx/checkJsxChildrenProperty15.tsx b/tests/cases/conformance/jsx/checkJsxChildrenProperty15.tsx index 7f91b9516dd71..4183ec6ed0e88 100644 --- a/tests/cases/conformance/jsx/checkJsxChildrenProperty15.tsx +++ b/tests/cases/conformance/jsx/checkJsxChildrenProperty15.tsx @@ -1,8 +1,7 @@ // @filename: file.tsx // @jsx: preserve -// @noLib: true // @skipLibCheck: true -// @libFiles: react.d.ts,lib.d.ts +// @libFiles: react.d.ts import React = require('react'); diff --git a/tests/cases/conformance/jsx/checkJsxChildrenProperty2.tsx b/tests/cases/conformance/jsx/checkJsxChildrenProperty2.tsx index 2f452a0aaf629..ba553ea6bc7fc 100644 --- a/tests/cases/conformance/jsx/checkJsxChildrenProperty2.tsx +++ b/tests/cases/conformance/jsx/checkJsxChildrenProperty2.tsx @@ -1,8 +1,7 @@ // @filename: file.tsx // @jsx: preserve -// @noLib: true // @skipLibCheck: true -// @libFiles: react.d.ts,lib.d.ts +// @libFiles: react.d.ts // @strictNullChecks: true import React = require('react'); diff --git a/tests/cases/conformance/jsx/checkJsxChildrenProperty3.tsx b/tests/cases/conformance/jsx/checkJsxChildrenProperty3.tsx index c70a2292fa2d6..759b8e52d6073 100644 --- a/tests/cases/conformance/jsx/checkJsxChildrenProperty3.tsx +++ b/tests/cases/conformance/jsx/checkJsxChildrenProperty3.tsx @@ -1,8 +1,7 @@ // @filename: file.tsx // @jsx: preserve -// @noLib: true // @skipLibCheck: true -// @libFiles: react.d.ts,lib.d.ts +// @libFiles: react.d.ts import React = require('react'); diff --git a/tests/cases/conformance/jsx/checkJsxChildrenProperty4.tsx b/tests/cases/conformance/jsx/checkJsxChildrenProperty4.tsx index 277f2fb55c21d..12c94412b66c4 100644 --- a/tests/cases/conformance/jsx/checkJsxChildrenProperty4.tsx +++ b/tests/cases/conformance/jsx/checkJsxChildrenProperty4.tsx @@ -1,8 +1,7 @@ // @filename: file.tsx // @jsx: preserve -// @noLib: true // @skipLibCheck: true -// @libFiles: react.d.ts,lib.d.ts +// @libFiles: react.d.ts import React = require('react'); diff --git a/tests/cases/conformance/jsx/checkJsxChildrenProperty5.tsx b/tests/cases/conformance/jsx/checkJsxChildrenProperty5.tsx index 9b9dfac02b23c..949cb4e131b9f 100644 --- a/tests/cases/conformance/jsx/checkJsxChildrenProperty5.tsx +++ b/tests/cases/conformance/jsx/checkJsxChildrenProperty5.tsx @@ -1,8 +1,7 @@ // @filename: file.tsx // @jsx: preserve -// @noLib: true // @skipLibCheck: true -// @libFiles: react.d.ts,lib.d.ts +// @libFiles: react.d.ts import React = require('react'); diff --git a/tests/cases/conformance/jsx/checkJsxChildrenProperty6.tsx b/tests/cases/conformance/jsx/checkJsxChildrenProperty6.tsx index 40801539f549e..8f5e8a5163dbc 100644 --- a/tests/cases/conformance/jsx/checkJsxChildrenProperty6.tsx +++ b/tests/cases/conformance/jsx/checkJsxChildrenProperty6.tsx @@ -1,8 +1,7 @@ // @filename: file.tsx // @jsx: preserve -// @noLib: true // @skipLibCheck: true -// @libFiles: react.d.ts,lib.d.ts +// @libFiles: react.d.ts import React = require('react'); diff --git a/tests/cases/conformance/jsx/checkJsxChildrenProperty7.tsx b/tests/cases/conformance/jsx/checkJsxChildrenProperty7.tsx index 0a5d120dd197c..bc9d6c62843f3 100644 --- a/tests/cases/conformance/jsx/checkJsxChildrenProperty7.tsx +++ b/tests/cases/conformance/jsx/checkJsxChildrenProperty7.tsx @@ -1,8 +1,7 @@ // @filename: file.tsx // @jsx: preserve -// @noLib: true // @skipLibCheck: true -// @libFiles: react.d.ts,lib.d.ts +// @libFiles: react.d.ts import React = require('react'); diff --git a/tests/cases/conformance/jsx/checkJsxChildrenProperty8.tsx b/tests/cases/conformance/jsx/checkJsxChildrenProperty8.tsx index c9c5d70ae3722..6d2ed5353e8f9 100644 --- a/tests/cases/conformance/jsx/checkJsxChildrenProperty8.tsx +++ b/tests/cases/conformance/jsx/checkJsxChildrenProperty8.tsx @@ -1,8 +1,7 @@ // @filename: file.tsx // @jsx: preserve -// @noLib: true // @skipLibCheck: true -// @libFiles: react.d.ts,lib.d.ts +// @libFiles: react.d.ts import React = require('react'); diff --git a/tests/cases/conformance/jsx/checkJsxChildrenProperty9.tsx b/tests/cases/conformance/jsx/checkJsxChildrenProperty9.tsx index 7d3d65fbc6fef..038b32e141534 100644 --- a/tests/cases/conformance/jsx/checkJsxChildrenProperty9.tsx +++ b/tests/cases/conformance/jsx/checkJsxChildrenProperty9.tsx @@ -1,8 +1,7 @@ // @filename: file.tsx // @jsx: preserve -// @noLib: true // @skipLibCheck: true -// @libFiles: react.d.ts,lib.d.ts +// @libFiles: react.d.ts import React = require('react'); diff --git a/tests/cases/conformance/jsx/checkJsxGenericTagHasCorrectInferences.tsx b/tests/cases/conformance/jsx/checkJsxGenericTagHasCorrectInferences.tsx index 04574d4e09810..97a925c1805a2 100644 --- a/tests/cases/conformance/jsx/checkJsxGenericTagHasCorrectInferences.tsx +++ b/tests/cases/conformance/jsx/checkJsxGenericTagHasCorrectInferences.tsx @@ -1,8 +1,7 @@ // @filename: file.tsx // @jsx: preserve -// @noLib: true // @skipLibCheck: true -// @libFiles: react.d.ts,lib.d.ts +// @libFiles: react.d.ts import * as React from "react"; interface BaseProps { initialValues: T; diff --git a/tests/cases/conformance/jsx/commentEmittingInPreserveJsx1.tsx b/tests/cases/conformance/jsx/commentEmittingInPreserveJsx1.tsx index ebdb36aed1581..1dbb5cce2280c 100644 --- a/tests/cases/conformance/jsx/commentEmittingInPreserveJsx1.tsx +++ b/tests/cases/conformance/jsx/commentEmittingInPreserveJsx1.tsx @@ -1,8 +1,7 @@ // @filename: file.tsx // @jsx: preserve -// @noLib: true // @skipLibCheck: true -// @libFiles: react.d.ts,lib.d.ts +// @libFiles: react.d.ts import React = require('react'); diff --git a/tests/cases/conformance/jsx/correctlyMarkAliasAsReferences1.tsx b/tests/cases/conformance/jsx/correctlyMarkAliasAsReferences1.tsx index 249ea461eee25..854b5dfb53685 100644 --- a/tests/cases/conformance/jsx/correctlyMarkAliasAsReferences1.tsx +++ b/tests/cases/conformance/jsx/correctlyMarkAliasAsReferences1.tsx @@ -2,7 +2,7 @@ // @jsx: react // @moduleResolution: bundler // @skipLibCheck: true -// @libFiles: react.d.ts,lib.d.ts +// @libFiles: react.d.ts // @filename: declaration.d.ts declare module "classnames"; diff --git a/tests/cases/conformance/jsx/correctlyMarkAliasAsReferences2.tsx b/tests/cases/conformance/jsx/correctlyMarkAliasAsReferences2.tsx index f56342b38f76e..cb0d550e6c2dc 100644 --- a/tests/cases/conformance/jsx/correctlyMarkAliasAsReferences2.tsx +++ b/tests/cases/conformance/jsx/correctlyMarkAliasAsReferences2.tsx @@ -2,7 +2,7 @@ // @jsx: react // @moduleResolution: bundler // @skipLibCheck: true -// @libFiles: react.d.ts,lib.d.ts +// @libFiles: react.d.ts // @filename: declaration.d.ts declare module "classnames"; diff --git a/tests/cases/conformance/jsx/correctlyMarkAliasAsReferences3.tsx b/tests/cases/conformance/jsx/correctlyMarkAliasAsReferences3.tsx index 1c0045356871e..7ff8aa3c92245 100644 --- a/tests/cases/conformance/jsx/correctlyMarkAliasAsReferences3.tsx +++ b/tests/cases/conformance/jsx/correctlyMarkAliasAsReferences3.tsx @@ -3,7 +3,7 @@ // @moduleResolution: bundler // @noImplicitAny: true // @skipLibCheck: true -// @libFiles: react.d.ts,lib.d.ts +// @libFiles: react.d.ts // @filename: declaration.d.ts declare module "classnames"; diff --git a/tests/cases/conformance/jsx/correctlyMarkAliasAsReferences4.tsx b/tests/cases/conformance/jsx/correctlyMarkAliasAsReferences4.tsx index 5a31b7525e0e1..1309a1228fd21 100644 --- a/tests/cases/conformance/jsx/correctlyMarkAliasAsReferences4.tsx +++ b/tests/cases/conformance/jsx/correctlyMarkAliasAsReferences4.tsx @@ -2,7 +2,7 @@ // @jsx: react // @moduleResolution: bundler // @skipLibCheck: true -// @libFiles: react.d.ts,lib.d.ts +// @libFiles: react.d.ts // @filename: declaration.d.ts declare module "classnames"; diff --git a/tests/cases/conformance/jsx/jsxCheckJsxNoTypeArgumentsAllowed.tsx b/tests/cases/conformance/jsx/jsxCheckJsxNoTypeArgumentsAllowed.tsx index c3aa9ad2156aa..e6101b86c4d0f 100644 --- a/tests/cases/conformance/jsx/jsxCheckJsxNoTypeArgumentsAllowed.tsx +++ b/tests/cases/conformance/jsx/jsxCheckJsxNoTypeArgumentsAllowed.tsx @@ -1,7 +1,6 @@ // @jsx: preserve -// @noLib: true // @skipLibCheck: true -// @libFiles: react.d.ts,lib.d.ts +// @libFiles: react.d.ts // @allowJs: true // @outDir: ./out // @checkJs: true diff --git a/tests/cases/conformance/jsx/jsxSpreadOverwritesAttributeStrict.tsx b/tests/cases/conformance/jsx/jsxSpreadOverwritesAttributeStrict.tsx index 1b7d7133a5416..246d105359056 100644 --- a/tests/cases/conformance/jsx/jsxSpreadOverwritesAttributeStrict.tsx +++ b/tests/cases/conformance/jsx/jsxSpreadOverwritesAttributeStrict.tsx @@ -1,9 +1,8 @@ // @filename: file.tsx // @jsx: preserve // @strict: true -// @noLib: true // @skipLibCheck: true -// @libFiles: react.d.ts,lib.d.ts +// @libFiles: react.d.ts import React = require('react'); diff --git a/tests/cases/conformance/jsx/tsxAttributeResolution15.tsx b/tests/cases/conformance/jsx/tsxAttributeResolution15.tsx index 92bb9f50e7c9a..47e18bb7d2678 100644 --- a/tests/cases/conformance/jsx/tsxAttributeResolution15.tsx +++ b/tests/cases/conformance/jsx/tsxAttributeResolution15.tsx @@ -1,9 +1,8 @@ // @filename: file.tsx // @jsx: preserve -// @noLib: true // @skipLibCheck: true // @noImplicitAny: true -// @libFiles: react.d.ts,lib.d.ts +// @libFiles: react.d.ts import React = require('react'); diff --git a/tests/cases/conformance/jsx/tsxAttributeResolution16.tsx b/tests/cases/conformance/jsx/tsxAttributeResolution16.tsx index 15e8089a5ae12..ea5d773a81701 100644 --- a/tests/cases/conformance/jsx/tsxAttributeResolution16.tsx +++ b/tests/cases/conformance/jsx/tsxAttributeResolution16.tsx @@ -1,8 +1,7 @@ // @filename: file.tsx // @jsx: preserve -// @noLib: true // @skipLibCheck: true -// @libFiles: react.d.ts,lib.d.ts +// @libFiles: react.d.ts import React = require('react'); diff --git a/tests/cases/conformance/jsx/tsxDefaultAttributesResolution1.tsx b/tests/cases/conformance/jsx/tsxDefaultAttributesResolution1.tsx index b80252bee1b8d..07e25221a4257 100644 --- a/tests/cases/conformance/jsx/tsxDefaultAttributesResolution1.tsx +++ b/tests/cases/conformance/jsx/tsxDefaultAttributesResolution1.tsx @@ -1,8 +1,7 @@ // @filename: file.tsx // @jsx: preserve -// @noLib: true // @skipLibCheck: true -// @libFiles: react.d.ts,lib.d.ts +// @libFiles: react.d.ts import React = require('react'); diff --git a/tests/cases/conformance/jsx/tsxDefaultAttributesResolution2.tsx b/tests/cases/conformance/jsx/tsxDefaultAttributesResolution2.tsx index 27b1e24e23f32..28066283d95ff 100644 --- a/tests/cases/conformance/jsx/tsxDefaultAttributesResolution2.tsx +++ b/tests/cases/conformance/jsx/tsxDefaultAttributesResolution2.tsx @@ -1,8 +1,7 @@ // @filename: file.tsx // @jsx: preserve -// @noLib: true // @skipLibCheck: true -// @libFiles: react.d.ts,lib.d.ts +// @libFiles: react.d.ts import React = require('react'); diff --git a/tests/cases/conformance/jsx/tsxDefaultAttributesResolution3.tsx b/tests/cases/conformance/jsx/tsxDefaultAttributesResolution3.tsx index 981cdabf464e8..47f4ea47f19a3 100644 --- a/tests/cases/conformance/jsx/tsxDefaultAttributesResolution3.tsx +++ b/tests/cases/conformance/jsx/tsxDefaultAttributesResolution3.tsx @@ -1,8 +1,7 @@ // @filename: file.tsx // @jsx: preserve -// @noLib: true // @skipLibCheck: true -// @libFiles: react.d.ts,lib.d.ts +// @libFiles: react.d.ts import React = require('react'); diff --git a/tests/cases/conformance/jsx/tsxGenericAttributesType1.tsx b/tests/cases/conformance/jsx/tsxGenericAttributesType1.tsx index ebb80771856cb..fc0a4bec5e880 100644 --- a/tests/cases/conformance/jsx/tsxGenericAttributesType1.tsx +++ b/tests/cases/conformance/jsx/tsxGenericAttributesType1.tsx @@ -1,8 +1,7 @@ // @filename: file.tsx // @jsx: preserve -// @noLib: true // @skipLibCheck: true -// @libFiles: react.d.ts,lib.d.ts +// @libFiles: react.d.ts import React = require('react'); diff --git a/tests/cases/conformance/jsx/tsxGenericAttributesType2.tsx b/tests/cases/conformance/jsx/tsxGenericAttributesType2.tsx index 0b226f9cf902d..229085b4f94d0 100644 --- a/tests/cases/conformance/jsx/tsxGenericAttributesType2.tsx +++ b/tests/cases/conformance/jsx/tsxGenericAttributesType2.tsx @@ -1,8 +1,7 @@ // @filename: file.tsx // @jsx: preserve -// @noLib: true // @skipLibCheck: true -// @libFiles: react.d.ts,lib.d.ts +// @libFiles: react.d.ts import React = require('react'); diff --git a/tests/cases/conformance/jsx/tsxGenericAttributesType3.tsx b/tests/cases/conformance/jsx/tsxGenericAttributesType3.tsx index 28364b93afc6c..7b760fb70a050 100644 --- a/tests/cases/conformance/jsx/tsxGenericAttributesType3.tsx +++ b/tests/cases/conformance/jsx/tsxGenericAttributesType3.tsx @@ -1,8 +1,7 @@ // @filename: file.tsx // @jsx: preserve -// @noLib: true // @skipLibCheck: true -// @libFiles: react.d.ts,lib.d.ts +// @libFiles: react.d.ts import React = require('react'); diff --git a/tests/cases/conformance/jsx/tsxGenericAttributesType4.tsx b/tests/cases/conformance/jsx/tsxGenericAttributesType4.tsx index de918e6bb77b9..f790761c96e3f 100644 --- a/tests/cases/conformance/jsx/tsxGenericAttributesType4.tsx +++ b/tests/cases/conformance/jsx/tsxGenericAttributesType4.tsx @@ -1,8 +1,7 @@ // @filename: file.tsx // @jsx: preserve -// @noLib: true // @skipLibCheck: true -// @libFiles: react.d.ts,lib.d.ts +// @libFiles: react.d.ts import React = require('react'); diff --git a/tests/cases/conformance/jsx/tsxGenericAttributesType5.tsx b/tests/cases/conformance/jsx/tsxGenericAttributesType5.tsx index 5e4da2e46f73a..3fa5829a67f9c 100644 --- a/tests/cases/conformance/jsx/tsxGenericAttributesType5.tsx +++ b/tests/cases/conformance/jsx/tsxGenericAttributesType5.tsx @@ -1,8 +1,7 @@ // @filename: file.tsx // @jsx: preserve -// @noLib: true // @skipLibCheck: true -// @libFiles: react.d.ts,lib.d.ts +// @libFiles: react.d.ts import React = require('react'); diff --git a/tests/cases/conformance/jsx/tsxGenericAttributesType6.tsx b/tests/cases/conformance/jsx/tsxGenericAttributesType6.tsx index 22634ae9f7de6..0e63dfe548f65 100644 --- a/tests/cases/conformance/jsx/tsxGenericAttributesType6.tsx +++ b/tests/cases/conformance/jsx/tsxGenericAttributesType6.tsx @@ -1,8 +1,7 @@ // @filename: file.tsx // @jsx: preserve -// @noLib: true // @skipLibCheck: true -// @libFiles: react.d.ts,lib.d.ts +// @libFiles: react.d.ts import React = require('react'); diff --git a/tests/cases/conformance/jsx/tsxGenericAttributesType7.tsx b/tests/cases/conformance/jsx/tsxGenericAttributesType7.tsx index 07c6f05da1c16..359da070bf38c 100644 --- a/tests/cases/conformance/jsx/tsxGenericAttributesType7.tsx +++ b/tests/cases/conformance/jsx/tsxGenericAttributesType7.tsx @@ -1,8 +1,7 @@ // @filename: file.tsx // @jsx: preserve -// @noLib: true // @skipLibCheck: true -// @libFiles: react.d.ts,lib.d.ts +// @libFiles: react.d.ts import React = require('react'); diff --git a/tests/cases/conformance/jsx/tsxGenericAttributesType8.tsx b/tests/cases/conformance/jsx/tsxGenericAttributesType8.tsx index 77d391f7f39fa..ff200779d6c2c 100644 --- a/tests/cases/conformance/jsx/tsxGenericAttributesType8.tsx +++ b/tests/cases/conformance/jsx/tsxGenericAttributesType8.tsx @@ -1,8 +1,7 @@ // @filename: file.tsx // @jsx: preserve -// @noLib: true // @skipLibCheck: true -// @libFiles: react.d.ts,lib.d.ts +// @libFiles: react.d.ts import React = require('react'); diff --git a/tests/cases/conformance/jsx/tsxGenericAttributesType9.tsx b/tests/cases/conformance/jsx/tsxGenericAttributesType9.tsx index 5a3f2b19845a0..aca781cfbdc01 100644 --- a/tests/cases/conformance/jsx/tsxGenericAttributesType9.tsx +++ b/tests/cases/conformance/jsx/tsxGenericAttributesType9.tsx @@ -1,8 +1,7 @@ // @filename: file.tsx // @jsx: preserve -// @noLib: true // @skipLibCheck: true -// @libFiles: react.d.ts,lib.d.ts +// @libFiles: react.d.ts import React = require('react'); diff --git a/tests/cases/conformance/jsx/tsxReactComponentWithDefaultTypeParameter1.tsx b/tests/cases/conformance/jsx/tsxReactComponentWithDefaultTypeParameter1.tsx index 9d9ae5442cde6..e807cc4097124 100644 --- a/tests/cases/conformance/jsx/tsxReactComponentWithDefaultTypeParameter1.tsx +++ b/tests/cases/conformance/jsx/tsxReactComponentWithDefaultTypeParameter1.tsx @@ -1,8 +1,7 @@ // @filename: file.tsx // @jsx: preserve -// @noLib: true // @skipLibCheck: true -// @libFiles: react.d.ts,lib.d.ts +// @libFiles: react.d.ts import React = require('react'); diff --git a/tests/cases/conformance/jsx/tsxReactComponentWithDefaultTypeParameter2.tsx b/tests/cases/conformance/jsx/tsxReactComponentWithDefaultTypeParameter2.tsx index 7b96a88a382cc..2c903fdae1139 100644 --- a/tests/cases/conformance/jsx/tsxReactComponentWithDefaultTypeParameter2.tsx +++ b/tests/cases/conformance/jsx/tsxReactComponentWithDefaultTypeParameter2.tsx @@ -1,8 +1,7 @@ // @filename: file.tsx // @jsx: preserve -// @noLib: true // @skipLibCheck: true -// @libFiles: react.d.ts,lib.d.ts +// @libFiles: react.d.ts import React = require('react'); diff --git a/tests/cases/conformance/jsx/tsxReactComponentWithDefaultTypeParameter3.tsx b/tests/cases/conformance/jsx/tsxReactComponentWithDefaultTypeParameter3.tsx index 57b9a9e0a8ef9..a0cdb510b2b79 100644 --- a/tests/cases/conformance/jsx/tsxReactComponentWithDefaultTypeParameter3.tsx +++ b/tests/cases/conformance/jsx/tsxReactComponentWithDefaultTypeParameter3.tsx @@ -1,8 +1,7 @@ // @filename: file.tsx // @jsx: preserve -// @noLib: true // @skipLibCheck: true -// @libFiles: react.d.ts,lib.d.ts +// @libFiles: react.d.ts import React = require('react'); diff --git a/tests/cases/conformance/jsx/tsxSfcReturnNull.tsx b/tests/cases/conformance/jsx/tsxSfcReturnNull.tsx index 167fbd25c660d..6cec161747d14 100644 --- a/tests/cases/conformance/jsx/tsxSfcReturnNull.tsx +++ b/tests/cases/conformance/jsx/tsxSfcReturnNull.tsx @@ -1,9 +1,8 @@ // @filename: file.tsx // @jsx: preserve // @module: amd -// @noLib: true // @skipLibCheck: true -// @libFiles: react.d.ts,lib.d.ts +// @libFiles: react.d.ts import React = require('react'); diff --git a/tests/cases/conformance/jsx/tsxSfcReturnNullStrictNullChecks.tsx b/tests/cases/conformance/jsx/tsxSfcReturnNullStrictNullChecks.tsx index f66f93a9c1c38..a4de88a9cfae1 100644 --- a/tests/cases/conformance/jsx/tsxSfcReturnNullStrictNullChecks.tsx +++ b/tests/cases/conformance/jsx/tsxSfcReturnNullStrictNullChecks.tsx @@ -1,10 +1,9 @@ // @filename: file.tsx // @jsx: preserve // @module: amd -// @noLib: true // @strictNullChecks: true // @skipLibCheck: true -// @libFiles: react.d.ts,lib.d.ts +// @libFiles: react.d.ts import React = require('react'); diff --git a/tests/cases/conformance/jsx/tsxSfcReturnUndefinedStrictNullChecks.tsx b/tests/cases/conformance/jsx/tsxSfcReturnUndefinedStrictNullChecks.tsx index e8733600f0457..b4d0685742d5c 100644 --- a/tests/cases/conformance/jsx/tsxSfcReturnUndefinedStrictNullChecks.tsx +++ b/tests/cases/conformance/jsx/tsxSfcReturnUndefinedStrictNullChecks.tsx @@ -1,10 +1,9 @@ // @filename: file.tsx // @jsx: preserve // @module: commonjs -// @noLib: true // @strictNullChecks: true // @skipLibCheck: true -// @libFiles: react.d.ts,lib.d.ts +// @libFiles: react.d.ts import React = require('react'); diff --git a/tests/cases/conformance/jsx/tsxSpreadAttributesResolution1.tsx b/tests/cases/conformance/jsx/tsxSpreadAttributesResolution1.tsx index dfaaa8b3b72da..8531c328694e9 100644 --- a/tests/cases/conformance/jsx/tsxSpreadAttributesResolution1.tsx +++ b/tests/cases/conformance/jsx/tsxSpreadAttributesResolution1.tsx @@ -1,8 +1,7 @@ // @filename: file.tsx // @jsx: preserve -// @noLib: true // @skipLibCheck: true -// @libFiles: react.d.ts,lib.d.ts +// @libFiles: react.d.ts import React = require('react'); diff --git a/tests/cases/conformance/jsx/tsxSpreadAttributesResolution10.tsx b/tests/cases/conformance/jsx/tsxSpreadAttributesResolution10.tsx index 733731731e4b7..b7162eb897ea0 100644 --- a/tests/cases/conformance/jsx/tsxSpreadAttributesResolution10.tsx +++ b/tests/cases/conformance/jsx/tsxSpreadAttributesResolution10.tsx @@ -1,8 +1,7 @@ // @filename: file.tsx // @jsx: preserve -// @noLib: true // @skipLibCheck: true -// @libFiles: react.d.ts,lib.d.ts +// @libFiles: react.d.ts import React = require('react'); diff --git a/tests/cases/conformance/jsx/tsxSpreadAttributesResolution11.tsx b/tests/cases/conformance/jsx/tsxSpreadAttributesResolution11.tsx index 458cac5bc9835..b9c75c16ff7b8 100644 --- a/tests/cases/conformance/jsx/tsxSpreadAttributesResolution11.tsx +++ b/tests/cases/conformance/jsx/tsxSpreadAttributesResolution11.tsx @@ -1,8 +1,7 @@ // @filename: file.tsx // @jsx: preserve -// @noLib: true // @skipLibCheck: true -// @libFiles: react.d.ts,lib.d.ts +// @libFiles: react.d.ts import React = require('react'); diff --git a/tests/cases/conformance/jsx/tsxSpreadAttributesResolution12.tsx b/tests/cases/conformance/jsx/tsxSpreadAttributesResolution12.tsx index 4e0baa8677beb..15ff067803088 100644 --- a/tests/cases/conformance/jsx/tsxSpreadAttributesResolution12.tsx +++ b/tests/cases/conformance/jsx/tsxSpreadAttributesResolution12.tsx @@ -1,8 +1,7 @@ // @filename: file.tsx // @jsx: preserve -// @noLib: true // @skipLibCheck: true -// @libFiles: react.d.ts,lib.d.ts +// @libFiles: react.d.ts import React = require('react'); diff --git a/tests/cases/conformance/jsx/tsxSpreadAttributesResolution13.tsx b/tests/cases/conformance/jsx/tsxSpreadAttributesResolution13.tsx index a9ebb4caba4d8..e86d7d3ad7b64 100644 --- a/tests/cases/conformance/jsx/tsxSpreadAttributesResolution13.tsx +++ b/tests/cases/conformance/jsx/tsxSpreadAttributesResolution13.tsx @@ -1,8 +1,7 @@ // @filename: file.tsx // @jsx: preserve -// @noLib: true // @skipLibCheck: true -// @libFiles: react.d.ts,lib.d.ts +// @libFiles: react.d.ts import React = require('react'); diff --git a/tests/cases/conformance/jsx/tsxSpreadAttributesResolution14.tsx b/tests/cases/conformance/jsx/tsxSpreadAttributesResolution14.tsx index 5bfe228d10a64..6b04264938307 100644 --- a/tests/cases/conformance/jsx/tsxSpreadAttributesResolution14.tsx +++ b/tests/cases/conformance/jsx/tsxSpreadAttributesResolution14.tsx @@ -1,8 +1,7 @@ // @filename: file.tsx // @jsx: preserve -// @noLib: true // @skipLibCheck: true -// @libFiles: react.d.ts,lib.d.ts +// @libFiles: react.d.ts import React = require('react'); diff --git a/tests/cases/conformance/jsx/tsxSpreadAttributesResolution15.tsx b/tests/cases/conformance/jsx/tsxSpreadAttributesResolution15.tsx index 2ee07507c0832..5b890c1f3c39b 100644 --- a/tests/cases/conformance/jsx/tsxSpreadAttributesResolution15.tsx +++ b/tests/cases/conformance/jsx/tsxSpreadAttributesResolution15.tsx @@ -1,8 +1,7 @@ // @filename: file.tsx // @jsx: preserve -// @noLib: true // @skipLibCheck: true -// @libFiles: react.d.ts,lib.d.ts +// @libFiles: react.d.ts import React = require('react'); diff --git a/tests/cases/conformance/jsx/tsxSpreadAttributesResolution16.tsx b/tests/cases/conformance/jsx/tsxSpreadAttributesResolution16.tsx index d197e29fed30e..d45bf3552193e 100644 --- a/tests/cases/conformance/jsx/tsxSpreadAttributesResolution16.tsx +++ b/tests/cases/conformance/jsx/tsxSpreadAttributesResolution16.tsx @@ -1,8 +1,7 @@ // @filename: file.tsx // @jsx: preserve -// @noLib: true // @skipLibCheck: true -// @libFiles: react.d.ts,lib.d.ts +// @libFiles: react.d.ts import React = require('react'); diff --git a/tests/cases/conformance/jsx/tsxSpreadAttributesResolution17.tsx b/tests/cases/conformance/jsx/tsxSpreadAttributesResolution17.tsx index da5638d3e2a18..26b408ec3d94c 100644 --- a/tests/cases/conformance/jsx/tsxSpreadAttributesResolution17.tsx +++ b/tests/cases/conformance/jsx/tsxSpreadAttributesResolution17.tsx @@ -1,9 +1,7 @@ // @strictNullChecks: true // @filename: file.tsx // @jsx: preserve -// @noLib: true // @skipLibCheck: true -// @libFiles: lib.d.ts declare global { namespace JSX { diff --git a/tests/cases/conformance/jsx/tsxSpreadAttributesResolution2.tsx b/tests/cases/conformance/jsx/tsxSpreadAttributesResolution2.tsx index ad8461bc1a736..da1d35db35708 100644 --- a/tests/cases/conformance/jsx/tsxSpreadAttributesResolution2.tsx +++ b/tests/cases/conformance/jsx/tsxSpreadAttributesResolution2.tsx @@ -1,8 +1,7 @@ // @filename: file.tsx // @jsx: preserve -// @noLib: true // @skipLibCheck: true -// @libFiles: react.d.ts,lib.d.ts +// @libFiles: react.d.ts import React = require('react'); diff --git a/tests/cases/conformance/jsx/tsxSpreadAttributesResolution3.tsx b/tests/cases/conformance/jsx/tsxSpreadAttributesResolution3.tsx index 1ddf7bca081e4..ffc747eb0a7a1 100644 --- a/tests/cases/conformance/jsx/tsxSpreadAttributesResolution3.tsx +++ b/tests/cases/conformance/jsx/tsxSpreadAttributesResolution3.tsx @@ -1,8 +1,7 @@ // @filename: file.tsx // @jsx: preserve -// @noLib: true // @skipLibCheck: true -// @libFiles: react.d.ts,lib.d.ts +// @libFiles: react.d.ts import React = require('react'); diff --git a/tests/cases/conformance/jsx/tsxSpreadAttributesResolution4.tsx b/tests/cases/conformance/jsx/tsxSpreadAttributesResolution4.tsx index 3d39a1a7cc9a5..946a863a292e8 100644 --- a/tests/cases/conformance/jsx/tsxSpreadAttributesResolution4.tsx +++ b/tests/cases/conformance/jsx/tsxSpreadAttributesResolution4.tsx @@ -1,8 +1,7 @@ // @filename: file.tsx // @jsx: preserve -// @noLib: true // @skipLibCheck: true -// @libFiles: react.d.ts,lib.d.ts +// @libFiles: react.d.ts import React = require('react'); diff --git a/tests/cases/conformance/jsx/tsxSpreadAttributesResolution5.tsx b/tests/cases/conformance/jsx/tsxSpreadAttributesResolution5.tsx index dcea930fa25e7..6b26a4ac72617 100644 --- a/tests/cases/conformance/jsx/tsxSpreadAttributesResolution5.tsx +++ b/tests/cases/conformance/jsx/tsxSpreadAttributesResolution5.tsx @@ -1,8 +1,7 @@ // @filename: file.tsx // @jsx: preserve -// @noLib: true // @skipLibCheck: true -// @libFiles: react.d.ts,lib.d.ts +// @libFiles: react.d.ts import React = require('react'); diff --git a/tests/cases/conformance/jsx/tsxSpreadAttributesResolution6.tsx b/tests/cases/conformance/jsx/tsxSpreadAttributesResolution6.tsx index 5c7d9448d1235..21fb3f03f67e4 100644 --- a/tests/cases/conformance/jsx/tsxSpreadAttributesResolution6.tsx +++ b/tests/cases/conformance/jsx/tsxSpreadAttributesResolution6.tsx @@ -1,8 +1,7 @@ // @filename: file.tsx // @jsx: preserve -// @noLib: true // @skipLibCheck: true -// @libFiles: react.d.ts,lib.d.ts +// @libFiles: react.d.ts import React = require('react'); diff --git a/tests/cases/conformance/jsx/tsxSpreadAttributesResolution7.tsx b/tests/cases/conformance/jsx/tsxSpreadAttributesResolution7.tsx index 34cd8254b7af8..52afae55df596 100644 --- a/tests/cases/conformance/jsx/tsxSpreadAttributesResolution7.tsx +++ b/tests/cases/conformance/jsx/tsxSpreadAttributesResolution7.tsx @@ -1,8 +1,7 @@ // @filename: file.tsx // @jsx: preserve -// @noLib: true // @skipLibCheck: true -// @libFiles: react.d.ts,lib.d.ts +// @libFiles: react.d.ts import React = require('react'); diff --git a/tests/cases/conformance/jsx/tsxSpreadAttributesResolution8.tsx b/tests/cases/conformance/jsx/tsxSpreadAttributesResolution8.tsx index 04e61e32eb92b..6626d24913df6 100644 --- a/tests/cases/conformance/jsx/tsxSpreadAttributesResolution8.tsx +++ b/tests/cases/conformance/jsx/tsxSpreadAttributesResolution8.tsx @@ -1,8 +1,7 @@ // @filename: file.tsx // @jsx: preserve -// @noLib: true // @skipLibCheck: true -// @libFiles: react.d.ts,lib.d.ts +// @libFiles: react.d.ts import React = require('react'); diff --git a/tests/cases/conformance/jsx/tsxSpreadAttributesResolution9.tsx b/tests/cases/conformance/jsx/tsxSpreadAttributesResolution9.tsx index c14003774c221..202a025fb5229 100644 --- a/tests/cases/conformance/jsx/tsxSpreadAttributesResolution9.tsx +++ b/tests/cases/conformance/jsx/tsxSpreadAttributesResolution9.tsx @@ -1,8 +1,7 @@ // @filename: file.tsx // @jsx: preserve -// @noLib: true // @skipLibCheck: true -// @libFiles: react.d.ts,lib.d.ts +// @libFiles: react.d.ts import React = require('react'); diff --git a/tests/cases/conformance/jsx/tsxStatelessFunctionComponentOverload1.tsx b/tests/cases/conformance/jsx/tsxStatelessFunctionComponentOverload1.tsx index b0da4223ce326..3180b2773aed5 100644 --- a/tests/cases/conformance/jsx/tsxStatelessFunctionComponentOverload1.tsx +++ b/tests/cases/conformance/jsx/tsxStatelessFunctionComponentOverload1.tsx @@ -1,9 +1,8 @@ // @filename: file.tsx // @jsx: preserve // @module: amd -// @noLib: true // @skipLibCheck: true -// @libFiles: react.d.ts,lib.d.ts +// @libFiles: react.d.ts import React = require('react') diff --git a/tests/cases/conformance/jsx/tsxStatelessFunctionComponentOverload2.tsx b/tests/cases/conformance/jsx/tsxStatelessFunctionComponentOverload2.tsx index bd86e991a2fe6..46d3ce2fbf4dc 100644 --- a/tests/cases/conformance/jsx/tsxStatelessFunctionComponentOverload2.tsx +++ b/tests/cases/conformance/jsx/tsxStatelessFunctionComponentOverload2.tsx @@ -1,9 +1,8 @@ // @filename: file.tsx // @jsx: preserve // @module: amd -// @noLib: true // @skipLibCheck: true -// @libFiles: react.d.ts,lib.d.ts +// @libFiles: react.d.ts import React = require('react') declare function OneThing(): JSX.Element; diff --git a/tests/cases/conformance/jsx/tsxStatelessFunctionComponentOverload3.tsx b/tests/cases/conformance/jsx/tsxStatelessFunctionComponentOverload3.tsx index 1c2afd8253370..03c1bc1d07e7f 100644 --- a/tests/cases/conformance/jsx/tsxStatelessFunctionComponentOverload3.tsx +++ b/tests/cases/conformance/jsx/tsxStatelessFunctionComponentOverload3.tsx @@ -1,9 +1,8 @@ // @filename: file.tsx // @jsx: preserve // @module: amd -// @noLib: true // @skipLibCheck: true -// @libFiles: react.d.ts,lib.d.ts +// @libFiles: react.d.ts interface Context { color: any; diff --git a/tests/cases/conformance/jsx/tsxStatelessFunctionComponentOverload4.tsx b/tests/cases/conformance/jsx/tsxStatelessFunctionComponentOverload4.tsx index 79855c7279138..5033f5671429b 100644 --- a/tests/cases/conformance/jsx/tsxStatelessFunctionComponentOverload4.tsx +++ b/tests/cases/conformance/jsx/tsxStatelessFunctionComponentOverload4.tsx @@ -1,9 +1,8 @@ // @filename: file.tsx // @jsx: preserve // @module: commonjs -// @noLib: true // @skipLibCheck: true -// @libFiles: react.d.ts,lib.d.ts +// @libFiles: react.d.ts import React = require('react') declare function OneThing(): JSX.Element; diff --git a/tests/cases/conformance/jsx/tsxStatelessFunctionComponentOverload5.tsx b/tests/cases/conformance/jsx/tsxStatelessFunctionComponentOverload5.tsx index 61d2297ccd6e0..baf7a2bf5969e 100644 --- a/tests/cases/conformance/jsx/tsxStatelessFunctionComponentOverload5.tsx +++ b/tests/cases/conformance/jsx/tsxStatelessFunctionComponentOverload5.tsx @@ -1,9 +1,8 @@ // @filename: file.tsx // @jsx: preserve // @module: commonjs -// @noLib: true // @skipLibCheck: true -// @libFiles: react.d.ts,lib.d.ts +// @libFiles: react.d.ts import React = require('react') diff --git a/tests/cases/conformance/jsx/tsxStatelessFunctionComponentOverload6.tsx b/tests/cases/conformance/jsx/tsxStatelessFunctionComponentOverload6.tsx index 5cee1a4b79645..aca5a2ebbafc8 100644 --- a/tests/cases/conformance/jsx/tsxStatelessFunctionComponentOverload6.tsx +++ b/tests/cases/conformance/jsx/tsxStatelessFunctionComponentOverload6.tsx @@ -1,9 +1,8 @@ // @filename: file.tsx // @jsx: preserve // @module: commonjs -// @noLib: true // @skipLibCheck: true -// @libFiles: react.d.ts,lib.d.ts +// @libFiles: react.d.ts import React = require('react') diff --git a/tests/cases/conformance/jsx/tsxStatelessFunctionComponentWithDefaultTypeParameter1.tsx b/tests/cases/conformance/jsx/tsxStatelessFunctionComponentWithDefaultTypeParameter1.tsx index d9256ee6607a4..a049128daf4b1 100644 --- a/tests/cases/conformance/jsx/tsxStatelessFunctionComponentWithDefaultTypeParameter1.tsx +++ b/tests/cases/conformance/jsx/tsxStatelessFunctionComponentWithDefaultTypeParameter1.tsx @@ -1,9 +1,8 @@ // @filename: file.tsx // @jsx: preserve // @module: amd -// @noLib: true // @skipLibCheck: true -// @libFiles: react.d.ts,lib.d.ts +// @libFiles: react.d.ts import React = require('react') diff --git a/tests/cases/conformance/jsx/tsxStatelessFunctionComponentWithDefaultTypeParameter2.tsx b/tests/cases/conformance/jsx/tsxStatelessFunctionComponentWithDefaultTypeParameter2.tsx index 2117aedfac150..9a805fe1b39f1 100644 --- a/tests/cases/conformance/jsx/tsxStatelessFunctionComponentWithDefaultTypeParameter2.tsx +++ b/tests/cases/conformance/jsx/tsxStatelessFunctionComponentWithDefaultTypeParameter2.tsx @@ -1,9 +1,8 @@ // @filename: file.tsx // @jsx: preserve // @module: amd -// @noLib: true // @skipLibCheck: true -// @libFiles: react.d.ts,lib.d.ts +// @libFiles: react.d.ts import React = require('react') diff --git a/tests/cases/conformance/jsx/tsxStatelessFunctionComponents1.tsx b/tests/cases/conformance/jsx/tsxStatelessFunctionComponents1.tsx index 36a11bcc513fe..71eeae513940d 100644 --- a/tests/cases/conformance/jsx/tsxStatelessFunctionComponents1.tsx +++ b/tests/cases/conformance/jsx/tsxStatelessFunctionComponents1.tsx @@ -1,8 +1,7 @@ // @filename: file.tsx // @jsx: preserve -// @noLib: true // @skipLibCheck: true -// @libFiles: react.d.ts,lib.d.ts +// @libFiles: react.d.ts function EmptyPropSFC() { return
Default Greeting
; diff --git a/tests/cases/conformance/jsx/tsxStatelessFunctionComponents2.tsx b/tests/cases/conformance/jsx/tsxStatelessFunctionComponents2.tsx index 01e848f574e6f..80b100db42495 100644 --- a/tests/cases/conformance/jsx/tsxStatelessFunctionComponents2.tsx +++ b/tests/cases/conformance/jsx/tsxStatelessFunctionComponents2.tsx @@ -1,8 +1,7 @@ // @filename: file.tsx // @jsx: preserve -// @noLib: true // @skipLibCheck: true -// @libFiles: react.d.ts,lib.d.ts +// @libFiles: react.d.ts import React = require('react'); diff --git a/tests/cases/conformance/jsx/tsxStatelessFunctionComponents3.tsx b/tests/cases/conformance/jsx/tsxStatelessFunctionComponents3.tsx index 9490e913f929c..9e219210988f9 100644 --- a/tests/cases/conformance/jsx/tsxStatelessFunctionComponents3.tsx +++ b/tests/cases/conformance/jsx/tsxStatelessFunctionComponents3.tsx @@ -1,9 +1,8 @@ // @filename: file.tsx // @jsx: preserve // @module: amd -// @noLib: true // @skipLibCheck: true -// @libFiles: react.d.ts,lib.d.ts +// @libFiles: react.d.ts import React = require('react'); diff --git a/tests/cases/conformance/jsx/tsxStatelessFunctionComponentsWithTypeArguments1.tsx b/tests/cases/conformance/jsx/tsxStatelessFunctionComponentsWithTypeArguments1.tsx index 75b9915853b6f..c8850918b01cb 100644 --- a/tests/cases/conformance/jsx/tsxStatelessFunctionComponentsWithTypeArguments1.tsx +++ b/tests/cases/conformance/jsx/tsxStatelessFunctionComponentsWithTypeArguments1.tsx @@ -1,9 +1,8 @@ // @filename: file.tsx // @jsx: preserve // @module: amd -// @noLib: true // @skipLibCheck: true -// @libFiles: react.d.ts,lib.d.ts +// @libFiles: react.d.ts import React = require('react') diff --git a/tests/cases/conformance/jsx/tsxStatelessFunctionComponentsWithTypeArguments2.tsx b/tests/cases/conformance/jsx/tsxStatelessFunctionComponentsWithTypeArguments2.tsx index aff36145e152f..0a8fc37e2c48d 100644 --- a/tests/cases/conformance/jsx/tsxStatelessFunctionComponentsWithTypeArguments2.tsx +++ b/tests/cases/conformance/jsx/tsxStatelessFunctionComponentsWithTypeArguments2.tsx @@ -1,9 +1,8 @@ // @filename: file.tsx // @jsx: preserve // @module: amd -// @noLib: true // @skipLibCheck: true -// @libFiles: react.d.ts,lib.d.ts +// @libFiles: react.d.ts import React = require('react') diff --git a/tests/cases/conformance/jsx/tsxStatelessFunctionComponentsWithTypeArguments3.tsx b/tests/cases/conformance/jsx/tsxStatelessFunctionComponentsWithTypeArguments3.tsx index b55f9a72b65c4..c7cebee641505 100644 --- a/tests/cases/conformance/jsx/tsxStatelessFunctionComponentsWithTypeArguments3.tsx +++ b/tests/cases/conformance/jsx/tsxStatelessFunctionComponentsWithTypeArguments3.tsx @@ -1,9 +1,8 @@ // @filename: file.tsx // @jsx: preserve // @module: amd -// @noLib: true // @skipLibCheck: true -// @libFiles: react.d.ts,lib.d.ts +// @libFiles: react.d.ts import React = require('react') diff --git a/tests/cases/conformance/jsx/tsxStatelessFunctionComponentsWithTypeArguments4.tsx b/tests/cases/conformance/jsx/tsxStatelessFunctionComponentsWithTypeArguments4.tsx index 6982dbc7a0280..eb528da38b690 100644 --- a/tests/cases/conformance/jsx/tsxStatelessFunctionComponentsWithTypeArguments4.tsx +++ b/tests/cases/conformance/jsx/tsxStatelessFunctionComponentsWithTypeArguments4.tsx @@ -1,9 +1,8 @@ // @filename: file.tsx // @jsx: preserve // @module: commonjs -// @noLib: true // @skipLibCheck: true -// @libFiles: react.d.ts,lib.d.ts +// @libFiles: react.d.ts import React = require('react') diff --git a/tests/cases/conformance/jsx/tsxStatelessFunctionComponentsWithTypeArguments5.tsx b/tests/cases/conformance/jsx/tsxStatelessFunctionComponentsWithTypeArguments5.tsx index dcc8701881871..a2882ce9b2d1a 100644 --- a/tests/cases/conformance/jsx/tsxStatelessFunctionComponentsWithTypeArguments5.tsx +++ b/tests/cases/conformance/jsx/tsxStatelessFunctionComponentsWithTypeArguments5.tsx @@ -1,9 +1,8 @@ // @filename: file.tsx // @jsx: preserve // @module: amd -// @noLib: true // @skipLibCheck: true -// @libFiles: react.d.ts,lib.d.ts +// @libFiles: react.d.ts import React = require('react') diff --git a/tests/cases/conformance/jsx/tsxTypeArgumentResolution.tsx b/tests/cases/conformance/jsx/tsxTypeArgumentResolution.tsx index a52e0b125cf15..3ed89128afe84 100644 --- a/tests/cases/conformance/jsx/tsxTypeArgumentResolution.tsx +++ b/tests/cases/conformance/jsx/tsxTypeArgumentResolution.tsx @@ -1,8 +1,7 @@ // @filename: file.tsx // @jsx: preserve -// @noLib: true // @skipLibCheck: true -// @libFiles: react.d.ts,lib.d.ts +// @libFiles: react.d.ts import React = require('react'); diff --git a/tests/cases/conformance/jsx/tsxTypeArgumentsJsxPreserveOutput.tsx b/tests/cases/conformance/jsx/tsxTypeArgumentsJsxPreserveOutput.tsx index 0ac1d12eb5a84..14e35e255cf55 100644 --- a/tests/cases/conformance/jsx/tsxTypeArgumentsJsxPreserveOutput.tsx +++ b/tests/cases/conformance/jsx/tsxTypeArgumentsJsxPreserveOutput.tsx @@ -1,8 +1,7 @@ // @filename: foo.tsx // @jsx: preserve -// @noLib: true // @skipLibCheck: true -// @libFiles: react.d.ts,lib.d.ts +// @libFiles: react.d.ts import React = require('react'); diff --git a/tests/cases/conformance/jsx/tsxUnionElementType1.tsx b/tests/cases/conformance/jsx/tsxUnionElementType1.tsx index 91457469a8d56..a0f9d141d4a57 100644 --- a/tests/cases/conformance/jsx/tsxUnionElementType1.tsx +++ b/tests/cases/conformance/jsx/tsxUnionElementType1.tsx @@ -1,8 +1,7 @@ // @filename: file.tsx // @jsx: react -// @noLib: true // @skipLibCheck: true -// @libFiles: react.d.ts,lib.d.ts +// @libFiles: react.d.ts import React = require('react'); diff --git a/tests/cases/conformance/jsx/tsxUnionElementType2.tsx b/tests/cases/conformance/jsx/tsxUnionElementType2.tsx index ae0c0843b8156..9b34fda5f994b 100644 --- a/tests/cases/conformance/jsx/tsxUnionElementType2.tsx +++ b/tests/cases/conformance/jsx/tsxUnionElementType2.tsx @@ -1,8 +1,7 @@ // @filename: file.tsx // @jsx: react -// @noLib: true // @skipLibCheck: true -// @libFiles: react.d.ts,lib.d.ts +// @libFiles: react.d.ts import React = require('react'); diff --git a/tests/cases/conformance/jsx/tsxUnionElementType3.tsx b/tests/cases/conformance/jsx/tsxUnionElementType3.tsx index 6e021bc99faf2..2db79fd61d4dc 100644 --- a/tests/cases/conformance/jsx/tsxUnionElementType3.tsx +++ b/tests/cases/conformance/jsx/tsxUnionElementType3.tsx @@ -1,8 +1,7 @@ // @filename: file.tsx // @jsx: react -// @noLib: true // @skipLibCheck: true -// @libFiles: react.d.ts,lib.d.ts +// @libFiles: react.d.ts import React = require('react'); diff --git a/tests/cases/conformance/jsx/tsxUnionElementType4.tsx b/tests/cases/conformance/jsx/tsxUnionElementType4.tsx index e7d7b6ff5ff2e..5a00b126511bd 100644 --- a/tests/cases/conformance/jsx/tsxUnionElementType4.tsx +++ b/tests/cases/conformance/jsx/tsxUnionElementType4.tsx @@ -1,8 +1,7 @@ // @filename: file.tsx // @jsx: react -// @noLib: true // @skipLibCheck: true -// @libFiles: react.d.ts,lib.d.ts +// @libFiles: react.d.ts import React = require('react'); diff --git a/tests/cases/conformance/jsx/tsxUnionElementType5.tsx b/tests/cases/conformance/jsx/tsxUnionElementType5.tsx index 2f3d96f4eccad..923166d11f09b 100644 --- a/tests/cases/conformance/jsx/tsxUnionElementType5.tsx +++ b/tests/cases/conformance/jsx/tsxUnionElementType5.tsx @@ -1,8 +1,7 @@ // @filename: file.tsx // @jsx: react -// @noLib: true // @skipLibCheck: true -// @libFiles: react.d.ts,lib.d.ts +// @libFiles: react.d.ts import React = require('react'); diff --git a/tests/cases/conformance/jsx/tsxUnionElementType6.tsx b/tests/cases/conformance/jsx/tsxUnionElementType6.tsx index e4d2514dbd4a2..f82179dd7e5c5 100644 --- a/tests/cases/conformance/jsx/tsxUnionElementType6.tsx +++ b/tests/cases/conformance/jsx/tsxUnionElementType6.tsx @@ -1,8 +1,7 @@ // @filename: file.tsx // @jsx: react -// @noLib: true // @skipLibCheck: true -// @libFiles: react.d.ts,lib.d.ts +// @libFiles: react.d.ts import React = require('react'); diff --git a/tests/cases/conformance/jsx/tsxUnionTypeComponent1.tsx b/tests/cases/conformance/jsx/tsxUnionTypeComponent1.tsx index 09635bbaa161b..b951b615a1ef2 100644 --- a/tests/cases/conformance/jsx/tsxUnionTypeComponent1.tsx +++ b/tests/cases/conformance/jsx/tsxUnionTypeComponent1.tsx @@ -1,8 +1,7 @@ // @filename: file.tsx // @jsx: react -// @noLib: true // @skipLibCheck: true -// @libFiles: react.d.ts,lib.d.ts +// @libFiles: react.d.ts import React = require('react'); diff --git a/tests/cases/conformance/jsx/tsxUnionTypeComponent2.tsx b/tests/cases/conformance/jsx/tsxUnionTypeComponent2.tsx index 394e5e07d34a4..c38f29af326fe 100644 --- a/tests/cases/conformance/jsx/tsxUnionTypeComponent2.tsx +++ b/tests/cases/conformance/jsx/tsxUnionTypeComponent2.tsx @@ -1,8 +1,7 @@ // @filename: file.tsx // @jsx: react -// @noLib: true // @skipLibCheck: true -// @libFiles: react.d.ts,lib.d.ts +// @libFiles: react.d.ts import React = require('react'); diff --git a/tests/cases/conformance/jsx/unicodeEscapesInJsxtags.tsx b/tests/cases/conformance/jsx/unicodeEscapesInJsxtags.tsx index ac6611933ad4f..bc13b470e51a2 100644 --- a/tests/cases/conformance/jsx/unicodeEscapesInJsxtags.tsx +++ b/tests/cases/conformance/jsx/unicodeEscapesInJsxtags.tsx @@ -1,10 +1,9 @@ // @filename: file.tsx // @jsx: react -// @noLib: true // @skipLibCheck: true // @target: es2015 // @moduleResolution: bundler -// @libFiles: react.d.ts,lib.d.ts +// @libFiles: react.d.ts import * as React from "react"; declare global { namespace JSX { diff --git a/tests/cases/conformance/types/contextualTypes/jsxAttributes/contextuallyTypedStringLiteralsInJsxAttributes02.tsx b/tests/cases/conformance/types/contextualTypes/jsxAttributes/contextuallyTypedStringLiteralsInJsxAttributes02.tsx index ca309d23a1255..5117121269a30 100644 --- a/tests/cases/conformance/types/contextualTypes/jsxAttributes/contextuallyTypedStringLiteralsInJsxAttributes02.tsx +++ b/tests/cases/conformance/types/contextualTypes/jsxAttributes/contextuallyTypedStringLiteralsInJsxAttributes02.tsx @@ -1,9 +1,8 @@ // @filename: file.tsx // @jsx: preserve // @module: commonjs -// @noLib: true // @skipLibCheck: true -// @libFiles: react.d.ts,lib.d.ts +// @libFiles: react.d.ts import React = require('react') diff --git a/tests/cases/fourslash/moveToNewFile_moveJsxImport1.ts b/tests/cases/fourslash/moveToNewFile_moveJsxImport1.ts index f1c86b53a51cc..44005593c8da7 100644 --- a/tests/cases/fourslash/moveToNewFile_moveJsxImport1.ts +++ b/tests/cases/fourslash/moveToNewFile_moveJsxImport1.ts @@ -1,8 +1,7 @@ /// // @jsx: preserve -// @noLib: true -// @libFiles: react.d.ts,lib.d.ts +// @libFiles: react.d.ts // @Filename: file.tsx //// import React = require('react'); diff --git a/tests/cases/fourslash/moveToNewFile_moveJsxImport2.ts b/tests/cases/fourslash/moveToNewFile_moveJsxImport2.ts index d7ac317eba36e..0dfb6defb49c5 100644 --- a/tests/cases/fourslash/moveToNewFile_moveJsxImport2.ts +++ b/tests/cases/fourslash/moveToNewFile_moveJsxImport2.ts @@ -1,8 +1,7 @@ /// // @jsx: preserve -// @noLib: true -// @libFiles: react.d.ts,lib.d.ts +// @libFiles: react.d.ts // @Filename: file.tsx //// import React = require('react'); diff --git a/tests/cases/fourslash/moveToNewFile_moveJsxImport3.ts b/tests/cases/fourslash/moveToNewFile_moveJsxImport3.ts index 9adfa9fd14a91..493dff8521443 100644 --- a/tests/cases/fourslash/moveToNewFile_moveJsxImport3.ts +++ b/tests/cases/fourslash/moveToNewFile_moveJsxImport3.ts @@ -1,8 +1,7 @@ /// // @jsx: preserve -// @noLib: true -// @libFiles: react.d.ts,lib.d.ts +// @libFiles: react.d.ts // @Filename: file.tsx //// import React = require('react'); diff --git a/tests/cases/fourslash/moveToNewFile_moveJsxImport4.ts b/tests/cases/fourslash/moveToNewFile_moveJsxImport4.ts index b0cc169a86956..cfdb977510845 100644 --- a/tests/cases/fourslash/moveToNewFile_moveJsxImport4.ts +++ b/tests/cases/fourslash/moveToNewFile_moveJsxImport4.ts @@ -1,8 +1,7 @@ /// // @jsx: preserve -// @noLib: true -// @libFiles: react.d.ts,lib.d.ts,leftpad.d.ts +// @libFiles: react.d.ts,leftpad.d.ts // @Filename: file.tsx //// import React = require('leftpad'); diff --git a/tests/cases/fourslash/server/jsdocTypedefTag1.ts b/tests/cases/fourslash/server/jsdocTypedefTag1.ts index 4c7bde499eb60..4957e669bf5ad 100644 --- a/tests/cases/fourslash/server/jsdocTypedefTag1.ts +++ b/tests/cases/fourslash/server/jsdocTypedefTag1.ts @@ -1,5 +1,6 @@ /// +// @lib: es2015 // @allowNonTsExtensions: true // @Filename: jsdocCompletion_typedef.js diff --git a/tests/cases/fourslash/tsxSignatureHelp1.ts b/tests/cases/fourslash/tsxSignatureHelp1.ts index e8e14b57f951f..e4b14c5d7c5be 100644 --- a/tests/cases/fourslash/tsxSignatureHelp1.ts +++ b/tests/cases/fourslash/tsxSignatureHelp1.ts @@ -2,8 +2,7 @@ //@Filename: file.tsx // @jsx: preserve -// @noLib: true -// @libFiles: react.d.ts,lib.d.ts +// @libFiles: react.d.ts //// import React = require('react'); //// export interface ClickableProps { diff --git a/tests/cases/fourslash/tsxSignatureHelp2.ts b/tests/cases/fourslash/tsxSignatureHelp2.ts index 0a965eeb50b2d..6b47664694533 100644 --- a/tests/cases/fourslash/tsxSignatureHelp2.ts +++ b/tests/cases/fourslash/tsxSignatureHelp2.ts @@ -2,8 +2,7 @@ //@Filename: file.tsx // @jsx: preserve -// @noLib: true -// @libFiles: react.d.ts,lib.d.ts +// @libFiles: react.d.ts //// import React = require('react'); //// export interface ClickableProps { diff --git a/tests/lib/lib.d.ts b/tests/lib/lib.d.ts deleted file mode 100644 index 4db2f7ac2ac56..0000000000000 --- a/tests/lib/lib.d.ts +++ /dev/null @@ -1,17291 +0,0 @@ -/*! ***************************************************************************** -Copyright (c) Microsoft Corporation. All rights reserved. -Licensed under the Apache License, Version 2.0 (the "License"); you may not use -this file except in compliance with the License. You may obtain a copy of the -License at http://www.apache.org/licenses/LICENSE-2.0 - -THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED -WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, -MERCHANTABILITY OR NON-INFRINGEMENT. - -See the Apache Version 2.0 License for specific language governing permissions -and limitations under the License. -***************************************************************************** */ - -///////////////////////////// -/// ECMAScript APIs -///////////////////////////// - -declare var NaN: number; -declare var Infinity: number; - -/** - * Evaluates JavaScript code and executes it. - * @param x A String value that contains valid JavaScript code. - */ -declare function eval(x: string): any; - -/** - * Converts A string to an integer. - * @param s A string to convert into a number. - * @param radix A value between 2 and 36 that specifies the base of the number in numString. - * If this argument is not supplied, strings with a prefix of '0x' are considered hexadecimal. - * All other strings are considered decimal. - */ -declare function parseInt(s: string, radix?: number): number; - -/** - * Converts a string to a floating-point number. - * @param string A string that contains a floating-point number. - */ -declare function parseFloat(string: string): number; - -/** - * Returns a Boolean value that indicates whether a value is the reserved value NaN (not a number). - * @param number A numeric value. - */ -declare function isNaN(number: number): boolean; - -/** - * Determines whether a supplied number is finite. - * @param number Any numeric value. - */ -declare function isFinite(number: number): boolean; - -/** - * Gets the unencoded version of an encoded Uniform Resource Identifier (URI). - * @param encodedURI A value representing an encoded URI. - */ -declare function decodeURI(encodedURI: string): string; - -/** - * Gets the unencoded version of an encoded component of a Uniform Resource Identifier (URI). - * @param encodedURIComponent A value representing an encoded URI component. - */ -declare function decodeURIComponent(encodedURIComponent: string): string; - -/** - * Encodes a text string as a valid Uniform Resource Identifier (URI) - * @param uri A value representing an encoded URI. - */ -declare function encodeURI(uri: string): string; - -/** - * Encodes a text string as a valid component of a Uniform Resource Identifier (URI). - * @param uriComponent A value representing an encoded URI component. - */ -declare function encodeURIComponent(uriComponent: string | number | boolean): string; - -/** - * Computes a new string in which certain characters have been replaced by a hexadecimal escape sequence. - * @param string A string value - */ -declare function escape(string: string): string; - -/** - * Computes a new string in which hexadecimal escape sequences are replaced with the character that it represents. - * @param string A string value - */ -declare function unescape(string: string): string; - -interface PropertyDescriptor { - configurable?: boolean; - enumerable?: boolean; - value?: any; - writable?: boolean; - get? (): any; - set? (v: any): void; -} - -interface PropertyDescriptorMap { - [s: string]: PropertyDescriptor; -} - -interface Object { - /** The initial value of Object.prototype.constructor is the standard built-in Object constructor. */ - constructor: Function; - - /** Returns a string representation of an object. */ - toString(): string; - - /** Returns a date converted to a string using the current locale. */ - toLocaleString(): string; - - /** Returns the primitive value of the specified object. */ - valueOf(): Object; - - /** - * Determines whether an object has a property with the specified name. - * @param v A property name. - */ - hasOwnProperty(v: string): boolean; - - /** - * Determines whether an object exists in another object's prototype chain. - * @param v Another object whose prototype chain is to be checked. - */ - isPrototypeOf(v: Object): boolean; - - /** - * Determines whether a specified property is enumerable. - * @param v A property name. - */ - propertyIsEnumerable(v: string): boolean; -} - -interface ObjectConstructor { - new (value?: any): Object; - (): any; - (value: any): any; - - /** A reference to the prototype for a class of objects. */ - prototype: Object; - - /** - * Returns the prototype of an object. - * @param o The object that references the prototype. - */ - getPrototypeOf(o: any): any; - - /** - * Gets the own property descriptor of the specified object. - * An own property descriptor is one that is defined directly on the object and is not inherited from the object's prototype. - * @param o Object that contains the property. - * @param p Name of the property. - */ - getOwnPropertyDescriptor(o: any, p: string): PropertyDescriptor; - - /** - * Returns the names of the own properties of an object. The own properties of an object are those that are defined directly - * on that object, and are not inherited from the object's prototype. The properties of an object include both fields (objects) and functions. - * @param o Object that contains the own properties. - */ - getOwnPropertyNames(o: any): string[]; - - /** - * Creates an object that has the specified prototype, and that optionally contains specified properties. - * @param o Object to use as a prototype. May be null - * @param properties JavaScript object that contains one or more property descriptors. - */ - create(o: any, properties?: PropertyDescriptorMap): any; - - /** - * Adds a property to an object, or modifies attributes of an existing property. - * @param o Object on which to add or modify the property. This can be a native JavaScript object (that is, a user-defined object or a built in object) or a DOM object. - * @param p The property name. - * @param attributes Descriptor for the property. It can be for a data property or an accessor property. - */ - defineProperty(o: T, p: string, attributes: PropertyDescriptor): T; - - /** - * Adds one or more properties to an object, and/or modifies attributes of existing properties. - * @param o Object on which to add or modify the properties. This can be a native JavaScript object or a DOM object. - * @param properties JavaScript object that contains one or more descriptor objects. Each descriptor object describes a data property or an accessor property. - */ - defineProperties(o: T, properties: PropertyDescriptorMap): T; - - /** - * Prevents the modification of attributes of existing properties, and prevents the addition of new properties. - * @param o Object on which to lock the attributes. - */ - seal(o: T): T; - - /** - * Prevents the modification of existing property attributes and values, and prevents the addition of new properties. - * @param o Object on which to lock the attributes. - */ - freeze(o: T): T; - - /** - * Prevents the addition of new properties to an object. - * @param o Object to make non-extensible. - */ - preventExtensions(o: T): T; - - /** - * Returns true if existing property attributes cannot be modified in an object and new properties cannot be added to the object. - * @param o Object to test. - */ - isSealed(o: any): boolean; - - /** - * Returns true if existing property attributes and values cannot be modified in an object, and new properties cannot be added to the object. - * @param o Object to test. - */ - isFrozen(o: any): boolean; - - /** - * Returns a value that indicates whether new properties can be added to an object. - * @param o Object to test. - */ - isExtensible(o: any): boolean; - - /** - * Returns the names of the enumerable properties and methods of an object. - * @param o Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object. - */ - keys(o: any): string[]; -} - -/** - * Provides functionality common to all JavaScript objects. - */ -declare var Object: ObjectConstructor; - -/** - * Creates a new function. - */ -interface Function { - /** - * Calls the function, substituting the specified object for the this value of the function, and the specified array for the arguments of the function. - * @param thisArg The object to be used as the this object. - * @param argArray A set of arguments to be passed to the function. - */ - apply(thisArg: any, argArray?: any): any; - - /** - * Calls a method of an object, substituting another object for the current object. - * @param thisArg The object to be used as the current object. - * @param argArray A list of arguments to be passed to the method. - */ - call(thisArg: any, ...argArray: any[]): any; - - /** - * For a given function, creates a bound function that has the same body as the original function. - * The this object of the bound function is associated with the specified object, and has the specified initial parameters. - * @param thisArg An object to which the this keyword can refer inside the new function. - * @param argArray A list of arguments to be passed to the new function. - */ - bind(thisArg: any, ...argArray: any[]): any; - - prototype: any; - length: number; - - // Non-standard extensions - arguments: any; - caller: Function; -} - -interface FunctionConstructor { - /** - * Creates a new function. - * @param args A list of arguments the function accepts. - */ - new (...args: string[]): Function; - (...args: string[]): Function; - prototype: Function; -} - -declare var Function: FunctionConstructor; - -interface IArguments { - [index: number]: any; - length: number; - callee: Function; -} - -interface String { - /** Returns a string representation of a string. */ - toString(): string; - - /** - * Returns the character at the specified index. - * @param pos The zero-based index of the desired character. - */ - charAt(pos: number): string; - - /** - * Returns the Unicode value of the character at the specified location. - * @param index The zero-based index of the desired character. If there is no character at the specified index, NaN is returned. - */ - charCodeAt(index: number): number; - - /** - * Returns a string that contains the concatenation of two or more strings. - * @param strings The strings to append to the end of the string. - */ - concat(...strings: string[]): string; - - /** - * Returns the position of the first occurrence of a substring. - * @param searchString The substring to search for in the string - * @param position The index at which to begin searching the String object. If omitted, search starts at the beginning of the string. - */ - indexOf(searchString: string, position?: number): number; - - /** - * Returns the last occurrence of a substring in the string. - * @param searchString The substring to search for. - * @param position The index at which to begin searching. If omitted, the search begins at the end of the string. - */ - lastIndexOf(searchString: string, position?: number): number; - - /** - * Determines whether two strings are equivalent in the current locale. - * @param that String to compare to target string - */ - localeCompare(that: string): number; - - /** - * Matches a string with a regular expression, and returns an array containing the results of that search. - * @param regexp A variable name or string literal containing the regular expression pattern and flags. - */ - match(regexp: string): RegExpMatchArray; - - /** - * Matches a string with a regular expression, and returns an array containing the results of that search. - * @param regexp A regular expression object that contains the regular expression pattern and applicable flags. - */ - match(regexp: RegExp): RegExpMatchArray; - - /** - * Replaces text in a string, using a regular expression or search string. - * @param searchValue A string that represents the regular expression. - * @param replaceValue A string containing the text to replace for every successful match of searchValue in this string. - */ - replace(searchValue: string, replaceValue: string): string; - - /** - * Replaces text in a string, using a regular expression or search string. - * @param searchValue A string that represents the regular expression. - * @param replacer A function that returns the replacement text. - */ - replace(searchValue: string, replacer: (substring: string, ...args: any[]) => string): string; - - /** - * Replaces text in a string, using a regular expression or search string. - * @param searchValue A Regular Expression object containing the regular expression pattern and applicable flags. - * @param replaceValue A string containing the text to replace for every successful match of searchValue in this string. - */ - replace(searchValue: RegExp, replaceValue: string): string; - - /** - * Replaces text in a string, using a regular expression or search string. - * @param searchValue A Regular Expression object containing the regular expression pattern and applicable flags - * @param replacer A function that returns the replacement text. - */ - replace(searchValue: RegExp, replacer: (substring: string, ...args: any[]) => string): string; - - /** - * Finds the first substring match in a regular expression search. - * @param regexp The regular expression pattern and applicable flags. - */ - search(regexp: string): number; - - /** - * Finds the first substring match in a regular expression search. - * @param regexp The regular expression pattern and applicable flags. - */ - search(regexp: RegExp): number; - - /** - * Returns a section of a string. - * @param start The index to the beginning of the specified portion of stringObj. - * @param end The index to the end of the specified portion of stringObj. The substring includes the characters up to, but not including, the character indicated by end. - * If this value is not specified, the substring continues to the end of stringObj. - */ - slice(start?: number, end?: number): string; - - /** - * Split a string into substrings using the specified separator and return them as an array. - * @param separator A string that identifies character or characters to use in separating the string. If omitted, a single-element array containing the entire string is returned. - * @param limit A value used to limit the number of elements returned in the array. - */ - split(separator: string, limit?: number): string[]; - - /** - * Split a string into substrings using the specified separator and return them as an array. - * @param separator A Regular Express that identifies character or characters to use in separating the string. If omitted, a single-element array containing the entire string is returned. - * @param limit A value used to limit the number of elements returned in the array. - */ - split(separator: RegExp, limit?: number): string[]; - - /** - * Returns the substring at the specified location within a String object. - * @param start The zero-based index number indicating the beginning of the substring. - * @param end Zero-based index number indicating the end of the substring. The substring includes the characters up to, but not including, the character indicated by end. - * If end is omitted, the characters from start through the end of the original string are returned. - */ - substring(start: number, end?: number): string; - - /** Converts all the alphabetic characters in a string to lowercase. */ - toLowerCase(): string; - - /** Converts all alphabetic characters to lowercase, taking into account the host environment's current locale. */ - toLocaleLowerCase(): string; - - /** Converts all the alphabetic characters in a string to uppercase. */ - toUpperCase(): string; - - /** Returns a string where all alphabetic characters have been converted to uppercase, taking into account the host environment's current locale. */ - toLocaleUpperCase(): string; - - /** Removes the leading and trailing white space and line terminator characters from a string. */ - trim(): string; - - /** Returns the length of a String object. */ - length: number; - - // IE extensions - /** - * Gets a substring beginning at the specified location and having the specified length. - * @param from The starting position of the desired substring. The index of the first character in the string is zero. - * @param length The number of characters to include in the returned substring. - */ - substr(from: number, length?: number): string; - - /** Returns the primitive value of the specified object. */ - valueOf(): string; - - [index: number]: string; -} - -interface StringConstructor { - new (value?: any): String; - (value?: any): string; - prototype: String; - fromCharCode(...codes: number[]): string; -} - -/** - * Allows manipulation and formatting of text strings and determination and location of substrings within strings. - */ -declare var String: StringConstructor; - -interface Boolean { - /** Returns the primitive value of the specified object. */ - valueOf(): boolean; -} - -interface BooleanConstructor { - new (value?: any): Boolean; - (value?: any): boolean; - prototype: Boolean; -} - -declare var Boolean: BooleanConstructor; - -interface Number { - /** - * Returns a string representation of an object. - * @param radix Specifies a radix for converting numeric values to strings. This value is only used for numbers. - */ - toString(radix?: number): string; - - /** - * Returns a string representing a number in fixed-point notation. - * @param fractionDigits Number of digits after the decimal point. Must be in the range 0 - 20, inclusive. - */ - toFixed(fractionDigits?: number): string; - - /** - * Returns a string containing a number represented in exponential notation. - * @param fractionDigits Number of digits after the decimal point. Must be in the range 0 - 20, inclusive. - */ - toExponential(fractionDigits?: number): string; - - /** - * Returns a string containing a number represented either in exponential or fixed-point notation with a specified number of digits. - * @param precision Number of significant digits. Must be in the range 1 - 21, inclusive. - */ - toPrecision(precision?: number): string; - - /** Returns the primitive value of the specified object. */ - valueOf(): number; -} - -interface NumberConstructor { - new (value?: any): Number; - (value?: any): number; - prototype: Number; - - /** The largest number that can be represented in JavaScript. Equal to approximately 1.79E+308. */ - MAX_VALUE: number; - - /** The closest number to zero that can be represented in JavaScript. Equal to approximately 5.00E-324. */ - MIN_VALUE: number; - - /** - * A value that is not a number. - * In equality comparisons, NaN does not equal any value, including itself. To test whether a value is equivalent to NaN, use the isNaN function. - */ - NaN: number; - - /** - * A value that is less than the largest negative number that can be represented in JavaScript. - * JavaScript displays NEGATIVE_INFINITY values as -infinity. - */ - NEGATIVE_INFINITY: number; - - /** - * A value greater than the largest number that can be represented in JavaScript. - * JavaScript displays POSITIVE_INFINITY values as infinity. - */ - POSITIVE_INFINITY: number; -} - -/** An object that represents a number of any kind. All JavaScript numbers are 64-bit floating-point numbers. */ -declare var Number: NumberConstructor; - -interface TemplateStringsArray extends Array { - raw: string[]; -} - -interface Math { - /** The mathematical constant e. This is Euler's number, the base of natural logarithms. */ - E: number; - /** The natural logarithm of 10. */ - LN10: number; - /** The natural logarithm of 2. */ - LN2: number; - /** The base-2 logarithm of e. */ - LOG2E: number; - /** The base-10 logarithm of e. */ - LOG10E: number; - /** Pi. This is the ratio of the circumference of a circle to its diameter. */ - PI: number; - /** The square root of 0.5, or, equivalently, one divided by the square root of 2. */ - SQRT1_2: number; - /** The square root of 2. */ - SQRT2: number; - /** - * Returns the absolute value of a number (the value without regard to whether it is positive or negative). - * For example, the absolute value of -5 is the same as the absolute value of 5. - * @param x A numeric expression for which the absolute value is needed. - */ - abs(x: number): number; - /** - * Returns the arc cosine (or inverse cosine) of a number. - * @param x A numeric expression. - */ - acos(x: number): number; - /** - * Returns the arcsine of a number. - * @param x A numeric expression. - */ - asin(x: number): number; - /** - * Returns the arctangent of a number. - * @param x A numeric expression for which the arctangent is needed. - */ - atan(x: number): number; - /** - * Returns the angle (in radians) from the X axis to a point. - * @param y A numeric expression representing the cartesian y-coordinate. - * @param x A numeric expression representing the cartesian x-coordinate. - */ - atan2(y: number, x: number): number; - /** - * Returns the smallest number greater than or equal to its numeric argument. - * @param x A numeric expression. - */ - ceil(x: number): number; - /** - * Returns the cosine of a number. - * @param x A numeric expression that contains an angle measured in radians. - */ - cos(x: number): number; - /** - * Returns e (the base of natural logarithms) raised to a power. - * @param x A numeric expression representing the power of e. - */ - exp(x: number): number; - /** - * Returns the greatest number less than or equal to its numeric argument. - * @param x A numeric expression. - */ - floor(x: number): number; - /** - * Returns the natural logarithm (base e) of a number. - * @param x A numeric expression. - */ - log(x: number): number; - /** - * Returns the larger of a set of supplied numeric expressions. - * @param values Numeric expressions to be evaluated. - */ - max(...values: number[]): number; - /** - * Returns the smaller of a set of supplied numeric expressions. - * @param values Numeric expressions to be evaluated. - */ - min(...values: number[]): number; - /** - * Returns the value of a base expression taken to a specified power. - * @param x The base value of the expression. - * @param y The exponent value of the expression. - */ - pow(x: number, y: number): number; - /** Returns a pseudorandom number between 0 and 1. */ - random(): number; - /** - * Returns a supplied numeric expression rounded to the nearest number. - * @param x The value to be rounded to the nearest number. - */ - round(x: number): number; - /** - * Returns the sine of a number. - * @param x A numeric expression that contains an angle measured in radians. - */ - sin(x: number): number; - /** - * Returns the square root of a number. - * @param x A numeric expression. - */ - sqrt(x: number): number; - /** - * Returns the tangent of a number. - * @param x A numeric expression that contains an angle measured in radians. - */ - tan(x: number): number; -} -/** An intrinsic object that provides basic mathematics functionality and constants. */ -declare var Math: Math; - -/** Enables basic storage and retrieval of dates and times. */ -interface Date { - /** Returns a string representation of a date. The format of the string depends on the locale. */ - toString(): string; - /** Returns a date as a string value. */ - toDateString(): string; - /** Returns a time as a string value. */ - toTimeString(): string; - /** Returns a value as a string value appropriate to the host environment's current locale. */ - toLocaleString(): string; - /** Returns a date as a string value appropriate to the host environment's current locale. */ - toLocaleDateString(): string; - /** Returns a time as a string value appropriate to the host environment's current locale. */ - toLocaleTimeString(): string; - /** Returns the stored time value in milliseconds since midnight, January 1, 1970 UTC. */ - valueOf(): number; - /** Gets the time value in milliseconds. */ - getTime(): number; - /** Gets the year, using local time. */ - getFullYear(): number; - /** Gets the year using Universal Coordinated Time (UTC). */ - getUTCFullYear(): number; - /** Gets the month, using local time. */ - getMonth(): number; - /** Gets the month of a Date object using Universal Coordinated Time (UTC). */ - getUTCMonth(): number; - /** Gets the day-of-the-month, using local time. */ - getDate(): number; - /** Gets the day-of-the-month, using Universal Coordinated Time (UTC). */ - getUTCDate(): number; - /** Gets the day of the week, using local time. */ - getDay(): number; - /** Gets the day of the week using Universal Coordinated Time (UTC). */ - getUTCDay(): number; - /** Gets the hours in a date, using local time. */ - getHours(): number; - /** Gets the hours value in a Date object using Universal Coordinated Time (UTC). */ - getUTCHours(): number; - /** Gets the minutes of a Date object, using local time. */ - getMinutes(): number; - /** Gets the minutes of a Date object using Universal Coordinated Time (UTC). */ - getUTCMinutes(): number; - /** Gets the seconds of a Date object, using local time. */ - getSeconds(): number; - /** Gets the seconds of a Date object using Universal Coordinated Time (UTC). */ - getUTCSeconds(): number; - /** Gets the milliseconds of a Date, using local time. */ - getMilliseconds(): number; - /** Gets the milliseconds of a Date object using Universal Coordinated Time (UTC). */ - getUTCMilliseconds(): number; - /** Gets the difference in minutes between Universal Coordinated Time (UTC) and the time on the local computer. */ - getTimezoneOffset(): number; - /** - * Sets the date and time value in the Date object. - * @param time A numeric value representing the number of elapsed milliseconds since midnight, January 1, 1970 GMT. - */ - setTime(time: number): number; - /** - * Sets the milliseconds value in the Date object using local time. - * @param ms A numeric value equal to the millisecond value. - */ - setMilliseconds(ms: number): number; - /** - * Sets the milliseconds value in the Date object using Universal Coordinated Time (UTC). - * @param ms A numeric value equal to the millisecond value. - */ - setUTCMilliseconds(ms: number): number; - - /** - * Sets the seconds value in the Date object using local time. - * @param sec A numeric value equal to the seconds value. - * @param ms A numeric value equal to the milliseconds value. - */ - setSeconds(sec: number, ms?: number): number; - /** - * Sets the seconds value in the Date object using Universal Coordinated Time (UTC). - * @param sec A numeric value equal to the seconds value. - * @param ms A numeric value equal to the milliseconds value. - */ - setUTCSeconds(sec: number, ms?: number): number; - /** - * Sets the minutes value in the Date object using local time. - * @param min A numeric value equal to the minutes value. - * @param sec A numeric value equal to the seconds value. - * @param ms A numeric value equal to the milliseconds value. - */ - setMinutes(min: number, sec?: number, ms?: number): number; - /** - * Sets the minutes value in the Date object using Universal Coordinated Time (UTC). - * @param min A numeric value equal to the minutes value. - * @param sec A numeric value equal to the seconds value. - * @param ms A numeric value equal to the milliseconds value. - */ - setUTCMinutes(min: number, sec?: number, ms?: number): number; - /** - * Sets the hour value in the Date object using local time. - * @param hours A numeric value equal to the hours value. - * @param min A numeric value equal to the minutes value. - * @param sec A numeric value equal to the seconds value. - * @param ms A numeric value equal to the milliseconds value. - */ - setHours(hours: number, min?: number, sec?: number, ms?: number): number; - /** - * Sets the hours value in the Date object using Universal Coordinated Time (UTC). - * @param hours A numeric value equal to the hours value. - * @param min A numeric value equal to the minutes value. - * @param sec A numeric value equal to the seconds value. - * @param ms A numeric value equal to the milliseconds value. - */ - setUTCHours(hours: number, min?: number, sec?: number, ms?: number): number; - /** - * Sets the numeric day-of-the-month value of the Date object using local time. - * @param date A numeric value equal to the day of the month. - */ - setDate(date: number): number; - /** - * Sets the numeric day of the month in the Date object using Universal Coordinated Time (UTC). - * @param date A numeric value equal to the day of the month. - */ - setUTCDate(date: number): number; - /** - * Sets the month value in the Date object using local time. - * @param month A numeric value equal to the month. The value for January is 0, and other month values follow consecutively. - * @param date A numeric value representing the day of the month. If this value is not supplied, the value from a call to the getDate method is used. - */ - setMonth(month: number, date?: number): number; - /** - * Sets the month value in the Date object using Universal Coordinated Time (UTC). - * @param month A numeric value equal to the month. The value for January is 0, and other month values follow consecutively. - * @param date A numeric value representing the day of the month. If it is not supplied, the value from a call to the getUTCDate method is used. - */ - setUTCMonth(month: number, date?: number): number; - /** - * Sets the year of the Date object using local time. - * @param year A numeric value for the year. - * @param month A zero-based numeric value for the month (0 for January, 11 for December). Must be specified if numDate is specified. - * @param date A numeric value equal for the day of the month. - */ - setFullYear(year: number, month?: number, date?: number): number; - /** - * Sets the year value in the Date object using Universal Coordinated Time (UTC). - * @param year A numeric value equal to the year. - * @param month A numeric value equal to the month. The value for January is 0, and other month values follow consecutively. Must be supplied if numDate is supplied. - * @param date A numeric value equal to the day of the month. - */ - setUTCFullYear(year: number, month?: number, date?: number): number; - /** Returns a date converted to a string using Universal Coordinated Time (UTC). */ - toUTCString(): string; - /** Returns a date as a string value in ISO format. */ - toISOString(): string; - /** Used by the JSON.stringify method to enable the transformation of an object's data for JavaScript Object Notation (JSON) serialization. */ - toJSON(key?: any): string; -} - -interface DateConstructor { - new (): Date; - new (value: number): Date; - new (value: string): Date; - new (year: number, month: number, date?: number, hours?: number, minutes?: number, seconds?: number, ms?: number): Date; - (): string; - prototype: Date; - /** - * Parses a string containing a date, and returns the number of milliseconds between that date and midnight, January 1, 1970. - * @param s A date string - */ - parse(s: string): number; - /** - * Returns the number of milliseconds between midnight, January 1, 1970 Universal Coordinated Time (UTC) (or GMT) and the specified date. - * @param year The full year designation is required for cross-century date accuracy. If year is between 0 and 99 is used, then year is assumed to be 1900 + year. - * @param month The month as an number between 0 and 11 (January to December). - * @param date The date as an number between 1 and 31. - * @param hours Must be supplied if minutes is supplied. An number from 0 to 23 (midnight to 11pm) that specifies the hour. - * @param minutes Must be supplied if seconds is supplied. An number from 0 to 59 that specifies the minutes. - * @param seconds Must be supplied if milliseconds is supplied. An number from 0 to 59 that specifies the seconds. - * @param ms An number from 0 to 999 that specifies the milliseconds. - */ - UTC(year: number, month: number, date?: number, hours?: number, minutes?: number, seconds?: number, ms?: number): number; - now(): number; -} - -declare var Date: DateConstructor; - -interface RegExpMatchArray extends Array { - index?: number; - input?: string; -} - -interface RegExpExecArray extends Array { - index: number; - input: string; -} - -interface RegExp { - /** - * Executes a search on a string using a regular expression pattern, and returns an array containing the results of that search. - * @param string The String object or string literal on which to perform the search. - */ - exec(string: string): RegExpExecArray; - - /** - * Returns a Boolean value that indicates whether or not a pattern exists in a searched string. - * @param string String on which to perform the search. - */ - test(string: string): boolean; - - /** Returns a copy of the text of the regular expression pattern. Read-only. The regExp argument is a Regular expression object. It can be a variable name or a literal. */ - source: string; - - /** Returns a Boolean value indicating the state of the global flag (g) used with a regular expression. Default is false. Read-only. */ - global: boolean; - - /** Returns a Boolean value indicating the state of the ignoreCase flag (i) used with a regular expression. Default is false. Read-only. */ - ignoreCase: boolean; - - /** Returns a Boolean value indicating the state of the multiline flag (m) used with a regular expression. Default is false. Read-only. */ - multiline: boolean; - - lastIndex: number; - - // Non-standard extensions - compile(): RegExp; -} - -interface RegExpConstructor { - new (pattern: string, flags?: string): RegExp; - (pattern: string, flags?: string): RegExp; - prototype: RegExp; - - // Non-standard extensions - $1: string; - $2: string; - $3: string; - $4: string; - $5: string; - $6: string; - $7: string; - $8: string; - $9: string; - lastMatch: string; -} - -declare var RegExp: RegExpConstructor; - -interface Error { - name: string; - message: string; -} - -interface ErrorConstructor { - new (message?: string): Error; - (message?: string): Error; - prototype: Error; -} - -declare var Error: ErrorConstructor; - -interface EvalError extends Error { -} - -interface EvalErrorConstructor { - new (message?: string): EvalError; - (message?: string): EvalError; - prototype: EvalError; -} - -declare var EvalError: EvalErrorConstructor; - -interface RangeError extends Error { -} - -interface RangeErrorConstructor { - new (message?: string): RangeError; - (message?: string): RangeError; - prototype: RangeError; -} - -declare var RangeError: RangeErrorConstructor; - -interface ReferenceError extends Error { -} - -interface ReferenceErrorConstructor { - new (message?: string): ReferenceError; - (message?: string): ReferenceError; - prototype: ReferenceError; -} - -declare var ReferenceError: ReferenceErrorConstructor; - -interface SyntaxError extends Error { -} - -interface SyntaxErrorConstructor { - new (message?: string): SyntaxError; - (message?: string): SyntaxError; - prototype: SyntaxError; -} - -declare var SyntaxError: SyntaxErrorConstructor; - -interface TypeError extends Error { -} - -interface TypeErrorConstructor { - new (message?: string): TypeError; - (message?: string): TypeError; - prototype: TypeError; -} - -declare var TypeError: TypeErrorConstructor; - -interface URIError extends Error { -} - -interface URIErrorConstructor { - new (message?: string): URIError; - (message?: string): URIError; - prototype: URIError; -} - -declare var URIError: URIErrorConstructor; - -interface JSON { - /** - * Converts a JavaScript Object Notation (JSON) string into an object. - * @param text A valid JSON string. - * @param reviver A function that transforms the results. This function is called for each member of the object. - * If a member contains nested objects, the nested objects are transformed before the parent object is. - */ - parse(text: string, reviver?: (key: any, value: any) => any): any; - /** - * Converts a JavaScript value to a JavaScript Object Notation (JSON) string. - * @param value A JavaScript value, usually an object or array, to be converted. - */ - stringify(value: any): string; - /** - * Converts a JavaScript value to a JavaScript Object Notation (JSON) string. - * @param value A JavaScript value, usually an object or array, to be converted. - * @param replacer A function that transforms the results. - */ - stringify(value: any, replacer: (key: string, value: any) => any): string; - /** - * Converts a JavaScript value to a JavaScript Object Notation (JSON) string. - * @param value A JavaScript value, usually an object or array, to be converted. - * @param replacer Array that transforms the results. - */ - stringify(value: any, replacer: any[]): string; - /** - * Converts a JavaScript value to a JavaScript Object Notation (JSON) string. - * @param value A JavaScript value, usually an object or array, to be converted. - * @param replacer A function that transforms the results. - * @param space Adds indentation, white space, and line break characters to the return-value JSON text to make it easier to read. - */ - stringify(value: any, replacer: (key: string, value: any) => any, space: string | number): string; - /** - * Converts a JavaScript value to a JavaScript Object Notation (JSON) string. - * @param value A JavaScript value, usually an object or array, to be converted. - * @param replacer Array that transforms the results. - * @param space Adds indentation, white space, and line break characters to the return-value JSON text to make it easier to read. - */ - stringify(value: any, replacer: any[], space: string | number): string; -} -/** - * An intrinsic object that provides functions to convert JavaScript values to and from the JavaScript Object Notation (JSON) format. - */ -declare var JSON: JSON; - - -///////////////////////////// -/// ECMAScript Array API (specially handled by compiler) -///////////////////////////// - -interface Array { - /** - * Gets or sets the length of the array. This is a number one higher than the highest element defined in an array. - */ - length: number; - /** - * Returns a string representation of an array. - */ - toString(): string; - toLocaleString(): string; - /** - * Appends new elements to an array, and returns the new length of the array. - * @param items New elements of the Array. - */ - push(...items: T[]): number; - /** - * Removes the last element from an array and returns it. - */ - pop(): T; - /** - * Combines two or more arrays. - * @param items Additional items to add to the end of array1. - */ - concat(...items: U[]): T[]; - /** - * Combines two or more arrays. - * @param items Additional items to add to the end of array1. - */ - concat(...items: T[]): T[]; - /** - * Adds all the elements of an array separated by the specified separator string. - * @param separator A string used to separate one element of an array from the next in the resulting String. If omitted, the array elements are separated with a comma. - */ - join(separator?: string): string; - /** - * Reverses the elements in an Array. - */ - reverse(): T[]; - /** - * Removes the first element from an array and returns it. - */ - shift(): T; - /** - * Returns a section of an array. - * @param start The beginning of the specified portion of the array. - * @param end The end of the specified portion of the array. - */ - slice(start?: number, end?: number): T[]; - - /** - * Sorts an array. - * @param compareFn The name of the function used to determine the order of the elements. If omitted, the elements are sorted in ascending, UTF-16 code unit order. - */ - sort(compareFn?: (a: T, b: T) => number): T[]; - - /** - * Removes elements from an array and, if necessary, inserts new elements in their place, returning the deleted elements. - * @param start The zero-based location in the array from which to start removing elements. - */ - splice(start: number): T[]; - - /** - * Removes elements from an array and, if necessary, inserts new elements in their place, returning the deleted elements. - * @param start The zero-based location in the array from which to start removing elements. - * @param deleteCount The number of elements to remove. - * @param items Elements to insert into the array in place of the deleted elements. - */ - splice(start: number, deleteCount: number, ...items: T[]): T[]; - - /** - * Inserts new elements at the start of an array. - * @param items Elements to insert at the start of the Array. - */ - unshift(...items: T[]): number; - - /** - * Returns the index of the first occurrence of a value in an array. - * @param searchElement The value to locate in the array. - * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the search starts at index 0. - */ - indexOf(searchElement: T, fromIndex?: number): number; - - /** - * Returns the index of the last occurrence of a specified value in an array. - * @param searchElement The value to locate in the array. - * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the search starts at the last index in the array. - */ - lastIndexOf(searchElement: T, fromIndex?: number): number; - - /** - * Determines whether all the members of an array satisfy the specified test. - * @param callbackfn A function that accepts up to three arguments. The every method calls the callbackfn function for each element in array1 until the callbackfn returns false, or until the end of the array. - * @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value. - */ - every(callbackfn: (value: T, index: number, array: T[]) => boolean, thisArg?: any): boolean; - - /** - * Determines whether the specified callback function returns true for any element of an array. - * @param callbackfn A function that accepts up to three arguments. The some method calls the callbackfn function for each element in array1 until the callbackfn returns true, or until the end of the array. - * @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value. - */ - some(callbackfn: (value: T, index: number, array: T[]) => boolean, thisArg?: any): boolean; - - /** - * Performs the specified action for each element in an array. - * @param callbackfn A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the array. - * @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value. - */ - forEach(callbackfn: (value: T, index: number, array: T[]) => void, thisArg?: any): void; - - /** - * Calls a defined callback function on each element of an array, and returns an array that contains the results. - * @param callbackfn A function that accepts up to three arguments. The map method calls the callbackfn function one time for each element in the array. - * @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value. - */ - map(callbackfn: (value: T, index: number, array: T[]) => U, thisArg?: any): U[]; - - /** - * Returns the elements of an array that meet the condition specified in a callback function. - * @param callbackfn A function that accepts up to three arguments. The filter method calls the callbackfn function one time for each element in the array. - * @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value. - */ - filter(callbackfn: (value: T, index: number, array: T[]) => boolean, thisArg?: any): T[]; - - /** - * Calls the specified callback function for all the elements in an array. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function. - * @param callbackfn A function that accepts up to four arguments. The reduce method calls the callbackfn function one time for each element in the array. - * @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value. - */ - reduce(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: T[]) => T, initialValue?: T): T; - /** - * Calls the specified callback function for all the elements in an array. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function. - * @param callbackfn A function that accepts up to four arguments. The reduce method calls the callbackfn function one time for each element in the array. - * @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value. - */ - reduce(callbackfn: (previousValue: U, currentValue: T, currentIndex: number, array: T[]) => U, initialValue: U): U; - - /** - * Calls the specified callback function for all the elements in an array, in descending order. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function. - * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls the callbackfn function one time for each element in the array. - * @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value. - */ - reduceRight(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: T[]) => T, initialValue?: T): T; - /** - * Calls the specified callback function for all the elements in an array, in descending order. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function. - * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls the callbackfn function one time for each element in the array. - * @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value. - */ - reduceRight(callbackfn: (previousValue: U, currentValue: T, currentIndex: number, array: T[]) => U, initialValue: U): U; - - [n: number]: T; -} - -interface ArrayConstructor { - new (arrayLength?: number): any[]; - new (arrayLength: number): T[]; - new (...items: T[]): T[]; - (arrayLength?: number): any[]; - (arrayLength: number): T[]; - (...items: T[]): T[]; - isArray(arg: any): arg is Array; - prototype: Array; -} - -declare var Array: ArrayConstructor; - -interface TypedPropertyDescriptor { - enumerable?: boolean; - configurable?: boolean; - writable?: boolean; - value?: T; - get?: () => T; - set?: (value: T) => void; -} - -declare type ClassDecorator = (target: TFunction) => TFunction | void; -declare type PropertyDecorator = (target: Object, propertyKey: string | symbol) => void; -declare type MethodDecorator = (target: Object, propertyKey: string | symbol, descriptor: TypedPropertyDescriptor) => TypedPropertyDescriptor | void; -declare type ParameterDecorator = (target: Object, propertyKey: string | symbol, parameterIndex: number) => void; - -declare type PromiseConstructorLike = new (executor: (resolve: (value?: T | PromiseLike) => void, reject: (reason?: any) => void) => void) => PromiseLike; - -interface PromiseLike { - /** - * Attaches callbacks for the resolution and/or rejection of the Promise. - * @param onfulfilled The callback to execute when the Promise is resolved. - * @param onrejected The callback to execute when the Promise is rejected. - * @returns A Promise for the completion of which ever callback is executed. - */ - then(onfulfilled?: (value: T) => TResult | PromiseLike, onrejected?: (reason: any) => TResult | PromiseLike): PromiseLike; - then(onfulfilled?: (value: T) => TResult | PromiseLike, onrejected?: (reason: any) => void): PromiseLike; -} - -interface ArrayLike { - length: number; - [n: number]: T; -} - - -/** - * Represents a raw buffer of binary data, which is used to store data for the - * different typed arrays. ArrayBuffers cannot be read from or written to directly, - * but can be passed to a typed array or DataView Object to interpret the raw - * buffer as needed. - */ -interface ArrayBuffer { - /** - * Read-only. The length of the ArrayBuffer (in bytes). - */ - byteLength: number; - - /** - * Returns a section of an ArrayBuffer. - */ - slice(begin:number, end?:number): ArrayBuffer; -} - -interface ArrayBufferConstructor { - prototype: ArrayBuffer; - new (byteLength: number): ArrayBuffer; - isView(arg: any): arg is ArrayBufferView; -} -declare var ArrayBuffer: ArrayBufferConstructor; - -interface ArrayBufferView { - /** - * The ArrayBuffer instance referenced by the array. - */ - buffer: ArrayBuffer; - - /** - * The length in bytes of the array. - */ - byteLength: number; - - /** - * The offset in bytes of the array. - */ - byteOffset: number; -} - -interface DataView { - buffer: ArrayBuffer; - byteLength: number; - byteOffset: number; - /** - * Gets the Float32 value at the specified byte offset from the start of the view. There is - * no alignment constraint; multi-byte values may be fetched from any offset. - * @param byteOffset The place in the buffer at which the value should be retrieved. - */ - getFloat32(byteOffset: number, littleEndian?: boolean): number; - - /** - * Gets the Float64 value at the specified byte offset from the start of the view. There is - * no alignment constraint; multi-byte values may be fetched from any offset. - * @param byteOffset The place in the buffer at which the value should be retrieved. - */ - getFloat64(byteOffset: number, littleEndian?: boolean): number; - - /** - * Gets the Int8 value at the specified byte offset from the start of the view. There is - * no alignment constraint; multi-byte values may be fetched from any offset. - * @param byteOffset The place in the buffer at which the value should be retrieved. - */ - getInt8(byteOffset: number): number; - - /** - * Gets the Int16 value at the specified byte offset from the start of the view. There is - * no alignment constraint; multi-byte values may be fetched from any offset. - * @param byteOffset The place in the buffer at which the value should be retrieved. - */ - getInt16(byteOffset: number, littleEndian?: boolean): number; - /** - * Gets the Int32 value at the specified byte offset from the start of the view. There is - * no alignment constraint; multi-byte values may be fetched from any offset. - * @param byteOffset The place in the buffer at which the value should be retrieved. - */ - getInt32(byteOffset: number, littleEndian?: boolean): number; - - /** - * Gets the Uint8 value at the specified byte offset from the start of the view. There is - * no alignment constraint; multi-byte values may be fetched from any offset. - * @param byteOffset The place in the buffer at which the value should be retrieved. - */ - getUint8(byteOffset: number): number; - - /** - * Gets the Uint16 value at the specified byte offset from the start of the view. There is - * no alignment constraint; multi-byte values may be fetched from any offset. - * @param byteOffset The place in the buffer at which the value should be retrieved. - */ - getUint16(byteOffset: number, littleEndian?: boolean): number; - - /** - * Gets the Uint32 value at the specified byte offset from the start of the view. There is - * no alignment constraint; multi-byte values may be fetched from any offset. - * @param byteOffset The place in the buffer at which the value should be retrieved. - */ - getUint32(byteOffset: number, littleEndian?: boolean): number; - - /** - * Stores an Float32 value at the specified byte offset from the start of the view. - * @param byteOffset The place in the buffer at which the value should be set. - * @param value The value to set. - * @param littleEndian If false or undefined, a big-endian value should be written, - * otherwise a little-endian value should be written. - */ - setFloat32(byteOffset: number, value: number, littleEndian?: boolean): void; - - /** - * Stores an Float64 value at the specified byte offset from the start of the view. - * @param byteOffset The place in the buffer at which the value should be set. - * @param value The value to set. - * @param littleEndian If false or undefined, a big-endian value should be written, - * otherwise a little-endian value should be written. - */ - setFloat64(byteOffset: number, value: number, littleEndian?: boolean): void; - - /** - * Stores an Int8 value at the specified byte offset from the start of the view. - * @param byteOffset The place in the buffer at which the value should be set. - * @param value The value to set. - */ - setInt8(byteOffset: number, value: number): void; - - /** - * Stores an Int16 value at the specified byte offset from the start of the view. - * @param byteOffset The place in the buffer at which the value should be set. - * @param value The value to set. - * @param littleEndian If false or undefined, a big-endian value should be written, - * otherwise a little-endian value should be written. - */ - setInt16(byteOffset: number, value: number, littleEndian?: boolean): void; - - /** - * Stores an Int32 value at the specified byte offset from the start of the view. - * @param byteOffset The place in the buffer at which the value should be set. - * @param value The value to set. - * @param littleEndian If false or undefined, a big-endian value should be written, - * otherwise a little-endian value should be written. - */ - setInt32(byteOffset: number, value: number, littleEndian?: boolean): void; - - /** - * Stores an Uint8 value at the specified byte offset from the start of the view. - * @param byteOffset The place in the buffer at which the value should be set. - * @param value The value to set. - */ - setUint8(byteOffset: number, value: number): void; - - /** - * Stores an Uint16 value at the specified byte offset from the start of the view. - * @param byteOffset The place in the buffer at which the value should be set. - * @param value The value to set. - * @param littleEndian If false or undefined, a big-endian value should be written, - * otherwise a little-endian value should be written. - */ - setUint16(byteOffset: number, value: number, littleEndian?: boolean): void; - - /** - * Stores an Uint32 value at the specified byte offset from the start of the view. - * @param byteOffset The place in the buffer at which the value should be set. - * @param value The value to set. - * @param littleEndian If false or undefined, a big-endian value should be written, - * otherwise a little-endian value should be written. - */ - setUint32(byteOffset: number, value: number, littleEndian?: boolean): void; -} - -interface DataViewConstructor { - new (buffer: ArrayBuffer & { BYTES_PER_ELEMENT?: never }, byteOffset?: number, byteLength?: number): DataView; -} -declare var DataView: DataViewConstructor; - -/** - * A typed array of 8-bit integer values. The contents are initialized to 0. If the requested - * number of bytes could not be allocated an exception is raised. - */ -interface Int8Array { - /** - * The size in bytes of each element in the array. - */ - BYTES_PER_ELEMENT: number; - - /** - * The ArrayBuffer instance referenced by the array. - */ - buffer: ArrayBuffer; - - /** - * The length in bytes of the array. - */ - byteLength: number; - - /** - * The offset in bytes of the array. - */ - byteOffset: number; - - /** - * Returns the this object after copying a section of the array identified by start and end - * to the same array starting at position target - * @param target If target is negative, it is treated as length+target where length is the - * length of the array. - * @param start If start is negative, it is treated as length+start. If end is negative, it - * is treated as length+end. - * @param end If not specified, length of the this object is used as its default value. - */ - copyWithin(target: number, start: number, end?: number): Int8Array; - - /** - * Determines whether all the members of an array satisfy the specified test. - * @param callbackfn A function that accepts up to three arguments. The every method calls - * the callbackfn function for each element in array1 until the callbackfn returns false, - * or until the end of the array. - * @param thisArg An object to which the this keyword can refer in the callbackfn function. - * If thisArg is omitted, undefined is used as the this value. - */ - every(callbackfn: (value: number, index: number, array: Int8Array) => boolean, thisArg?: any): boolean; - - /** - * Returns the this object after filling the section identified by start and end with value - * @param value value to fill array section with - * @param start index to start filling the array at. If start is negative, it is treated as - * length+start where length is the length of the array. - * @param end index to stop filling the array at. If end is negative, it is treated as - * length+end. - */ - fill(value: number, start?: number, end?: number): Int8Array; - - /** - * Returns the elements of an array that meet the condition specified in a callback function. - * @param callbackfn A function that accepts up to three arguments. The filter method calls - * the callbackfn function one time for each element in the array. - * @param thisArg An object to which the this keyword can refer in the callbackfn function. - * If thisArg is omitted, undefined is used as the this value. - */ - filter(callbackfn: (value: number, index: number, array: Int8Array) => boolean, thisArg?: any): Int8Array; - - /** - * Returns the value of the first element in the array where predicate is true, and undefined - * otherwise. - * @param predicate find calls predicate once for each element of the array, in ascending - * order, until it finds one where predicate returns true. If such an element is found, find - * immediately returns that element value. Otherwise, find returns undefined. - * @param thisArg If provided, it will be used as the this value for each invocation of - * predicate. If it is not provided, undefined is used instead. - */ - find(predicate: (value: number, index: number, obj: Array) => boolean, thisArg?: any): number; - - /** - * Returns the index of the first element in the array where predicate is true, and undefined - * otherwise. - * @param predicate find calls predicate once for each element of the array, in ascending - * order, until it finds one where predicate returns true. If such an element is found, find - * immediately returns that element value. Otherwise, find returns undefined. - * @param thisArg If provided, it will be used as the this value for each invocation of - * predicate. If it is not provided, undefined is used instead. - */ - findIndex(predicate: (value: number) => boolean, thisArg?: any): number; - - /** - * Performs the specified action for each element in an array. - * @param callbackfn A function that accepts up to three arguments. forEach calls the - * callbackfn function one time for each element in the array. - * @param thisArg An object to which the this keyword can refer in the callbackfn function. - * If thisArg is omitted, undefined is used as the this value. - */ - forEach(callbackfn: (value: number, index: number, array: Int8Array) => void, thisArg?: any): void; - - /** - * Returns the index of the first occurrence of a value in an array. - * @param searchElement The value to locate in the array. - * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the - * search starts at index 0. - */ - indexOf(searchElement: number, fromIndex?: number): number; - - /** - * Adds all the elements of an array separated by the specified separator string. - * @param separator A string used to separate one element of an array from the next in the - * resulting String. If omitted, the array elements are separated with a comma. - */ - join(separator?: string): string; - - /** - * Returns the index of the last occurrence of a value in an array. - * @param searchElement The value to locate in the array. - * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the - * search starts at index 0. - */ - lastIndexOf(searchElement: number, fromIndex?: number): number; - - /** - * The length of the array. - */ - length: number; - - /** - * Calls a defined callback function on each element of an array, and returns an array that - * contains the results. - * @param callbackfn A function that accepts up to three arguments. The map method calls the - * callbackfn function one time for each element in the array. - * @param thisArg An object to which the this keyword can refer in the callbackfn function. - * If thisArg is omitted, undefined is used as the this value. - */ - map(callbackfn: (value: number, index: number, array: Int8Array) => number, thisArg?: any): Int8Array; - - /** - * Calls the specified callback function for all the elements in an array. The return value of - * the callback function is the accumulated result, and is provided as an argument in the next - * call to the callback function. - * @param callbackfn A function that accepts up to four arguments. The reduce method calls the - * callbackfn function one time for each element in the array. - * @param initialValue If initialValue is specified, it is used as the initial value to start - * the accumulation. The first call to the callbackfn function provides this value as an argument - * instead of an array value. - */ - reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int8Array) => number, initialValue?: number): number; - - /** - * Calls the specified callback function for all the elements in an array. The return value of - * the callback function is the accumulated result, and is provided as an argument in the next - * call to the callback function. - * @param callbackfn A function that accepts up to four arguments. The reduce method calls the - * callbackfn function one time for each element in the array. - * @param initialValue If initialValue is specified, it is used as the initial value to start - * the accumulation. The first call to the callbackfn function provides this value as an argument - * instead of an array value. - */ - reduce(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Int8Array) => U, initialValue: U): U; - - /** - * Calls the specified callback function for all the elements in an array, in descending order. - * The return value of the callback function is the accumulated result, and is provided as an - * argument in the next call to the callback function. - * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls - * the callbackfn function one time for each element in the array. - * @param initialValue If initialValue is specified, it is used as the initial value to start - * the accumulation. The first call to the callbackfn function provides this value as an - * argument instead of an array value. - */ - reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int8Array) => number, initialValue?: number): number; - - /** - * Calls the specified callback function for all the elements in an array, in descending order. - * The return value of the callback function is the accumulated result, and is provided as an - * argument in the next call to the callback function. - * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls - * the callbackfn function one time for each element in the array. - * @param initialValue If initialValue is specified, it is used as the initial value to start - * the accumulation. The first call to the callbackfn function provides this value as an argument - * instead of an array value. - */ - reduceRight(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Int8Array) => U, initialValue: U): U; - - /** - * Reverses the elements in an Array. - */ - reverse(): Int8Array; - - /** - * Sets a value or an array of values. - * @param index The index of the location to set. - * @param value The value to set. - */ - set(index: number, value: number): void; - - /** - * Sets a value or an array of values. - * @param array A typed or untyped array of values to set. - * @param offset The index in the current array at which the values are to be written. - */ - set(array: ArrayLike, offset?: number): void; - - /** - * Returns a section of an array. - * @param start The beginning of the specified portion of the array. - * @param end The end of the specified portion of the array. - */ - slice(start?: number, end?: number): Int8Array; - - /** - * Determines whether the specified callback function returns true for any element of an array. - * @param callbackfn A function that accepts up to three arguments. The some method calls the - * callbackfn function for each element in array1 until the callbackfn returns true, or until - * the end of the array. - * @param thisArg An object to which the this keyword can refer in the callbackfn function. - * If thisArg is omitted, undefined is used as the this value. - */ - some(callbackfn: (value: number, index: number, array: Int8Array) => boolean, thisArg?: any): boolean; - - /** - * Sorts an array. - * @param compareFn The name of the function used to determine the order of the elements. If - * omitted, the elements are sorted in ascending, numerical order. - */ - sort(compareFn?: (a: number, b: number) => number): Int8Array; - - /** - * Gets a new Int8Array view of the ArrayBuffer store for this array, referencing the elements - * at begin, inclusive, up to end, exclusive. - * @param begin The index of the beginning of the array. - * @param end The index of the end of the array. - */ - subarray(begin?: number, end?: number): Int8Array; - - /** - * Converts a number to a string by using the current locale. - */ - toLocaleString(): string; - - /** - * Returns a string representation of an array. - */ - toString(): string; - - [index: number]: number; -} -interface Int8ArrayConstructor { - prototype: Int8Array; - new (length: number): Int8Array; - new (array: ArrayLike): Int8Array; - new (buffer: ArrayBuffer, byteOffset?: number, length?: number): Int8Array; - - /** - * The size in bytes of each element in the array. - */ - BYTES_PER_ELEMENT: number; - - /** - * Returns a new array from a set of elements. - * @param items A set of elements to include in the new array object. - */ - of(...items: number[]): Int8Array; - - /** - * Creates an array from an array-like or iterable object. - * @param arrayLike An array-like or iterable object to convert to an array. - * @param mapfn A mapping function to call on every element of the array. - * @param thisArg Value of 'this' used to invoke the mapfn. - */ - from(arrayLike: ArrayLike, mapfn?: (v: number, k: number) => number, thisArg?: any): Int8Array; - -} -declare var Int8Array: Int8ArrayConstructor; - -/** - * A typed array of 8-bit unsigned integer values. The contents are initialized to 0. If the - * requested number of bytes could not be allocated an exception is raised. - */ -interface Uint8Array { - /** - * The size in bytes of each element in the array. - */ - BYTES_PER_ELEMENT: number; - - /** - * The ArrayBuffer instance referenced by the array. - */ - buffer: ArrayBuffer; - - /** - * The length in bytes of the array. - */ - byteLength: number; - - /** - * The offset in bytes of the array. - */ - byteOffset: number; - - /** - * Returns the this object after copying a section of the array identified by start and end - * to the same array starting at position target - * @param target If target is negative, it is treated as length+target where length is the - * length of the array. - * @param start If start is negative, it is treated as length+start. If end is negative, it - * is treated as length+end. - * @param end If not specified, length of the this object is used as its default value. - */ - copyWithin(target: number, start: number, end?: number): Uint8Array; - - /** - * Determines whether all the members of an array satisfy the specified test. - * @param callbackfn A function that accepts up to three arguments. The every method calls - * the callbackfn function for each element in array1 until the callbackfn returns false, - * or until the end of the array. - * @param thisArg An object to which the this keyword can refer in the callbackfn function. - * If thisArg is omitted, undefined is used as the this value. - */ - every(callbackfn: (value: number, index: number, array: Uint8Array) => boolean, thisArg?: any): boolean; - - /** - * Returns the this object after filling the section identified by start and end with value - * @param value value to fill array section with - * @param start index to start filling the array at. If start is negative, it is treated as - * length+start where length is the length of the array. - * @param end index to stop filling the array at. If end is negative, it is treated as - * length+end. - */ - fill(value: number, start?: number, end?: number): Uint8Array; - - /** - * Returns the elements of an array that meet the condition specified in a callback function. - * @param callbackfn A function that accepts up to three arguments. The filter method calls - * the callbackfn function one time for each element in the array. - * @param thisArg An object to which the this keyword can refer in the callbackfn function. - * If thisArg is omitted, undefined is used as the this value. - */ - filter(callbackfn: (value: number, index: number, array: Uint8Array) => boolean, thisArg?: any): Uint8Array; - - /** - * Returns the value of the first element in the array where predicate is true, and undefined - * otherwise. - * @param predicate find calls predicate once for each element of the array, in ascending - * order, until it finds one where predicate returns true. If such an element is found, find - * immediately returns that element value. Otherwise, find returns undefined. - * @param thisArg If provided, it will be used as the this value for each invocation of - * predicate. If it is not provided, undefined is used instead. - */ - find(predicate: (value: number, index: number, obj: Array) => boolean, thisArg?: any): number; - - /** - * Returns the index of the first element in the array where predicate is true, and undefined - * otherwise. - * @param predicate find calls predicate once for each element of the array, in ascending - * order, until it finds one where predicate returns true. If such an element is found, find - * immediately returns that element value. Otherwise, find returns undefined. - * @param thisArg If provided, it will be used as the this value for each invocation of - * predicate. If it is not provided, undefined is used instead. - */ - findIndex(predicate: (value: number) => boolean, thisArg?: any): number; - - /** - * Performs the specified action for each element in an array. - * @param callbackfn A function that accepts up to three arguments. forEach calls the - * callbackfn function one time for each element in the array. - * @param thisArg An object to which the this keyword can refer in the callbackfn function. - * If thisArg is omitted, undefined is used as the this value. - */ - forEach(callbackfn: (value: number, index: number, array: Uint8Array) => void, thisArg?: any): void; - - /** - * Returns the index of the first occurrence of a value in an array. - * @param searchElement The value to locate in the array. - * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the - * search starts at index 0. - */ - indexOf(searchElement: number, fromIndex?: number): number; - - /** - * Adds all the elements of an array separated by the specified separator string. - * @param separator A string used to separate one element of an array from the next in the - * resulting String. If omitted, the array elements are separated with a comma. - */ - join(separator?: string): string; - - /** - * Returns the index of the last occurrence of a value in an array. - * @param searchElement The value to locate in the array. - * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the - * search starts at index 0. - */ - lastIndexOf(searchElement: number, fromIndex?: number): number; - - /** - * The length of the array. - */ - length: number; - - /** - * Calls a defined callback function on each element of an array, and returns an array that - * contains the results. - * @param callbackfn A function that accepts up to three arguments. The map method calls the - * callbackfn function one time for each element in the array. - * @param thisArg An object to which the this keyword can refer in the callbackfn function. - * If thisArg is omitted, undefined is used as the this value. - */ - map(callbackfn: (value: number, index: number, array: Uint8Array) => number, thisArg?: any): Uint8Array; - - /** - * Calls the specified callback function for all the elements in an array. The return value of - * the callback function is the accumulated result, and is provided as an argument in the next - * call to the callback function. - * @param callbackfn A function that accepts up to four arguments. The reduce method calls the - * callbackfn function one time for each element in the array. - * @param initialValue If initialValue is specified, it is used as the initial value to start - * the accumulation. The first call to the callbackfn function provides this value as an argument - * instead of an array value. - */ - reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8Array) => number, initialValue?: number): number; - - /** - * Calls the specified callback function for all the elements in an array. The return value of - * the callback function is the accumulated result, and is provided as an argument in the next - * call to the callback function. - * @param callbackfn A function that accepts up to four arguments. The reduce method calls the - * callbackfn function one time for each element in the array. - * @param initialValue If initialValue is specified, it is used as the initial value to start - * the accumulation. The first call to the callbackfn function provides this value as an argument - * instead of an array value. - */ - reduce(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint8Array) => U, initialValue: U): U; - - /** - * Calls the specified callback function for all the elements in an array, in descending order. - * The return value of the callback function is the accumulated result, and is provided as an - * argument in the next call to the callback function. - * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls - * the callbackfn function one time for each element in the array. - * @param initialValue If initialValue is specified, it is used as the initial value to start - * the accumulation. The first call to the callbackfn function provides this value as an - * argument instead of an array value. - */ - reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8Array) => number, initialValue?: number): number; - - /** - * Calls the specified callback function for all the elements in an array, in descending order. - * The return value of the callback function is the accumulated result, and is provided as an - * argument in the next call to the callback function. - * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls - * the callbackfn function one time for each element in the array. - * @param initialValue If initialValue is specified, it is used as the initial value to start - * the accumulation. The first call to the callbackfn function provides this value as an argument - * instead of an array value. - */ - reduceRight(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint8Array) => U, initialValue: U): U; - - /** - * Reverses the elements in an Array. - */ - reverse(): Uint8Array; - - /** - * Sets a value or an array of values. - * @param index The index of the location to set. - * @param value The value to set. - */ - set(index: number, value: number): void; - - /** - * Sets a value or an array of values. - * @param array A typed or untyped array of values to set. - * @param offset The index in the current array at which the values are to be written. - */ - set(array: ArrayLike, offset?: number): void; - - /** - * Returns a section of an array. - * @param start The beginning of the specified portion of the array. - * @param end The end of the specified portion of the array. - */ - slice(start?: number, end?: number): Uint8Array; - - /** - * Determines whether the specified callback function returns true for any element of an array. - * @param callbackfn A function that accepts up to three arguments. The some method calls the - * callbackfn function for each element in array1 until the callbackfn returns true, or until - * the end of the array. - * @param thisArg An object to which the this keyword can refer in the callbackfn function. - * If thisArg is omitted, undefined is used as the this value. - */ - some(callbackfn: (value: number, index: number, array: Uint8Array) => boolean, thisArg?: any): boolean; - - /** - * Sorts an array. - * @param compareFn The name of the function used to determine the order of the elements. If - * omitted, the elements are sorted in ascending, numerical order. - */ - sort(compareFn?: (a: number, b: number) => number): Uint8Array; - - /** - * Gets a new Uint8Array view of the ArrayBuffer store for this array, referencing the elements - * at begin, inclusive, up to end, exclusive. - * @param begin The index of the beginning of the array. - * @param end The index of the end of the array. - */ - subarray(begin?: number, end?: number): Uint8Array; - - /** - * Converts a number to a string by using the current locale. - */ - toLocaleString(): string; - - /** - * Returns a string representation of an array. - */ - toString(): string; - - [index: number]: number; -} - -interface Uint8ArrayConstructor { - prototype: Uint8Array; - new (length: number): Uint8Array; - new (array: ArrayLike): Uint8Array; - new (buffer: ArrayBuffer, byteOffset?: number, length?: number): Uint8Array; - - /** - * The size in bytes of each element in the array. - */ - BYTES_PER_ELEMENT: number; - - /** - * Returns a new array from a set of elements. - * @param items A set of elements to include in the new array object. - */ - of(...items: number[]): Uint8Array; - - /** - * Creates an array from an array-like or iterable object. - * @param arrayLike An array-like or iterable object to convert to an array. - * @param mapfn A mapping function to call on every element of the array. - * @param thisArg Value of 'this' used to invoke the mapfn. - */ - from(arrayLike: ArrayLike, mapfn?: (v: number, k: number) => number, thisArg?: any): Uint8Array; - -} -declare var Uint8Array: Uint8ArrayConstructor; - -/** - * A typed array of 8-bit unsigned integer (clamped) values. The contents are initialized to 0. - * If the requested number of bytes could not be allocated an exception is raised. - */ -interface Uint8ClampedArray { - /** - * The size in bytes of each element in the array. - */ - BYTES_PER_ELEMENT: number; - - /** - * The ArrayBuffer instance referenced by the array. - */ - buffer: ArrayBuffer; - - /** - * The length in bytes of the array. - */ - byteLength: number; - - /** - * The offset in bytes of the array. - */ - byteOffset: number; - - /** - * Returns the this object after copying a section of the array identified by start and end - * to the same array starting at position target - * @param target If target is negative, it is treated as length+target where length is the - * length of the array. - * @param start If start is negative, it is treated as length+start. If end is negative, it - * is treated as length+end. - * @param end If not specified, length of the this object is used as its default value. - */ - copyWithin(target: number, start: number, end?: number): Uint8ClampedArray; - - /** - * Determines whether all the members of an array satisfy the specified test. - * @param callbackfn A function that accepts up to three arguments. The every method calls - * the callbackfn function for each element in array1 until the callbackfn returns false, - * or until the end of the array. - * @param thisArg An object to which the this keyword can refer in the callbackfn function. - * If thisArg is omitted, undefined is used as the this value. - */ - every(callbackfn: (value: number, index: number, array: Uint8ClampedArray) => boolean, thisArg?: any): boolean; - - /** - * Returns the this object after filling the section identified by start and end with value - * @param value value to fill array section with - * @param start index to start filling the array at. If start is negative, it is treated as - * length+start where length is the length of the array. - * @param end index to stop filling the array at. If end is negative, it is treated as - * length+end. - */ - fill(value: number, start?: number, end?: number): Uint8ClampedArray; - - /** - * Returns the elements of an array that meet the condition specified in a callback function. - * @param callbackfn A function that accepts up to three arguments. The filter method calls - * the callbackfn function one time for each element in the array. - * @param thisArg An object to which the this keyword can refer in the callbackfn function. - * If thisArg is omitted, undefined is used as the this value. - */ - filter(callbackfn: (value: number, index: number, array: Uint8ClampedArray) => boolean, thisArg?: any): Uint8ClampedArray; - - /** - * Returns the value of the first element in the array where predicate is true, and undefined - * otherwise. - * @param predicate find calls predicate once for each element of the array, in ascending - * order, until it finds one where predicate returns true. If such an element is found, find - * immediately returns that element value. Otherwise, find returns undefined. - * @param thisArg If provided, it will be used as the this value for each invocation of - * predicate. If it is not provided, undefined is used instead. - */ - find(predicate: (value: number, index: number, obj: Array) => boolean, thisArg?: any): number; - - /** - * Returns the index of the first element in the array where predicate is true, and undefined - * otherwise. - * @param predicate find calls predicate once for each element of the array, in ascending - * order, until it finds one where predicate returns true. If such an element is found, find - * immediately returns that element value. Otherwise, find returns undefined. - * @param thisArg If provided, it will be used as the this value for each invocation of - * predicate. If it is not provided, undefined is used instead. - */ - findIndex(predicate: (value: number) => boolean, thisArg?: any): number; - - /** - * Performs the specified action for each element in an array. - * @param callbackfn A function that accepts up to three arguments. forEach calls the - * callbackfn function one time for each element in the array. - * @param thisArg An object to which the this keyword can refer in the callbackfn function. - * If thisArg is omitted, undefined is used as the this value. - */ - forEach(callbackfn: (value: number, index: number, array: Uint8ClampedArray) => void, thisArg?: any): void; - - /** - * Returns the index of the first occurrence of a value in an array. - * @param searchElement The value to locate in the array. - * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the - * search starts at index 0. - */ - indexOf(searchElement: number, fromIndex?: number): number; - - /** - * Adds all the elements of an array separated by the specified separator string. - * @param separator A string used to separate one element of an array from the next in the - * resulting String. If omitted, the array elements are separated with a comma. - */ - join(separator?: string): string; - - /** - * Returns the index of the last occurrence of a value in an array. - * @param searchElement The value to locate in the array. - * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the - * search starts at index 0. - */ - lastIndexOf(searchElement: number, fromIndex?: number): number; - - /** - * The length of the array. - */ - length: number; - - /** - * Calls a defined callback function on each element of an array, and returns an array that - * contains the results. - * @param callbackfn A function that accepts up to three arguments. The map method calls the - * callbackfn function one time for each element in the array. - * @param thisArg An object to which the this keyword can refer in the callbackfn function. - * If thisArg is omitted, undefined is used as the this value. - */ - map(callbackfn: (value: number, index: number, array: Uint8ClampedArray) => number, thisArg?: any): Uint8ClampedArray; - - /** - * Calls the specified callback function for all the elements in an array. The return value of - * the callback function is the accumulated result, and is provided as an argument in the next - * call to the callback function. - * @param callbackfn A function that accepts up to four arguments. The reduce method calls the - * callbackfn function one time for each element in the array. - * @param initialValue If initialValue is specified, it is used as the initial value to start - * the accumulation. The first call to the callbackfn function provides this value as an argument - * instead of an array value. - */ - reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8ClampedArray) => number, initialValue?: number): number; - - /** - * Calls the specified callback function for all the elements in an array. The return value of - * the callback function is the accumulated result, and is provided as an argument in the next - * call to the callback function. - * @param callbackfn A function that accepts up to four arguments. The reduce method calls the - * callbackfn function one time for each element in the array. - * @param initialValue If initialValue is specified, it is used as the initial value to start - * the accumulation. The first call to the callbackfn function provides this value as an argument - * instead of an array value. - */ - reduce(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint8ClampedArray) => U, initialValue: U): U; - - /** - * Calls the specified callback function for all the elements in an array, in descending order. - * The return value of the callback function is the accumulated result, and is provided as an - * argument in the next call to the callback function. - * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls - * the callbackfn function one time for each element in the array. - * @param initialValue If initialValue is specified, it is used as the initial value to start - * the accumulation. The first call to the callbackfn function provides this value as an - * argument instead of an array value. - */ - reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8ClampedArray) => number, initialValue?: number): number; - - /** - * Calls the specified callback function for all the elements in an array, in descending order. - * The return value of the callback function is the accumulated result, and is provided as an - * argument in the next call to the callback function. - * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls - * the callbackfn function one time for each element in the array. - * @param initialValue If initialValue is specified, it is used as the initial value to start - * the accumulation. The first call to the callbackfn function provides this value as an argument - * instead of an array value. - */ - reduceRight(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint8ClampedArray) => U, initialValue: U): U; - - /** - * Reverses the elements in an Array. - */ - reverse(): Uint8ClampedArray; - - /** - * Sets a value or an array of values. - * @param index The index of the location to set. - * @param value The value to set. - */ - set(index: number, value: number): void; - - /** - * Sets a value or an array of values. - * @param array A typed or untyped array of values to set. - * @param offset The index in the current array at which the values are to be written. - */ - set(array: Uint8ClampedArray, offset?: number): void; - - /** - * Returns a section of an array. - * @param start The beginning of the specified portion of the array. - * @param end The end of the specified portion of the array. - */ - slice(start?: number, end?: number): Uint8ClampedArray; - - /** - * Determines whether the specified callback function returns true for any element of an array. - * @param callbackfn A function that accepts up to three arguments. The some method calls the - * callbackfn function for each element in array1 until the callbackfn returns true, or until - * the end of the array. - * @param thisArg An object to which the this keyword can refer in the callbackfn function. - * If thisArg is omitted, undefined is used as the this value. - */ - some(callbackfn: (value: number, index: number, array: Uint8ClampedArray) => boolean, thisArg?: any): boolean; - - /** - * Sorts an array. - * @param compareFn The name of the function used to determine the order of the elements. If - * omitted, the elements are sorted in ascending, numerical order. - */ - sort(compareFn?: (a: number, b: number) => number): Uint8ClampedArray; - - /** - * Gets a new Uint8ClampedArray view of the ArrayBuffer store for this array, referencing the elements - * at begin, inclusive, up to end, exclusive. - * @param begin The index of the beginning of the array. - * @param end The index of the end of the array. - */ - subarray(begin?: number, end?: number): Uint8ClampedArray; - - /** - * Converts a number to a string by using the current locale. - */ - toLocaleString(): string; - - /** - * Returns a string representation of an array. - */ - toString(): string; - - [index: number]: number; -} - -interface Uint8ClampedArrayConstructor { - prototype: Uint8ClampedArray; - new (length: number): Uint8ClampedArray; - new (array: ArrayLike): Uint8ClampedArray; - new (buffer: ArrayBuffer, byteOffset?: number, length?: number): Uint8ClampedArray; - - /** - * The size in bytes of each element in the array. - */ - BYTES_PER_ELEMENT: number; - - /** - * Returns a new array from a set of elements. - * @param items A set of elements to include in the new array object. - */ - of(...items: number[]): Uint8ClampedArray; - - /** - * Creates an array from an array-like or iterable object. - * @param arrayLike An array-like or iterable object to convert to an array. - * @param mapfn A mapping function to call on every element of the array. - * @param thisArg Value of 'this' used to invoke the mapfn. - */ - from(arrayLike: ArrayLike, mapfn?: (v: number, k: number) => number, thisArg?: any): Uint8ClampedArray; -} -declare var Uint8ClampedArray: Uint8ClampedArrayConstructor; - -/** - * A typed array of 16-bit signed integer values. The contents are initialized to 0. If the - * requested number of bytes could not be allocated an exception is raised. - */ -interface Int16Array { - /** - * The size in bytes of each element in the array. - */ - BYTES_PER_ELEMENT: number; - - /** - * The ArrayBuffer instance referenced by the array. - */ - buffer: ArrayBuffer; - - /** - * The length in bytes of the array. - */ - byteLength: number; - - /** - * The offset in bytes of the array. - */ - byteOffset: number; - - /** - * Returns the this object after copying a section of the array identified by start and end - * to the same array starting at position target - * @param target If target is negative, it is treated as length+target where length is the - * length of the array. - * @param start If start is negative, it is treated as length+start. If end is negative, it - * is treated as length+end. - * @param end If not specified, length of the this object is used as its default value. - */ - copyWithin(target: number, start: number, end?: number): Int16Array; - - /** - * Determines whether all the members of an array satisfy the specified test. - * @param callbackfn A function that accepts up to three arguments. The every method calls - * the callbackfn function for each element in array1 until the callbackfn returns false, - * or until the end of the array. - * @param thisArg An object to which the this keyword can refer in the callbackfn function. - * If thisArg is omitted, undefined is used as the this value. - */ - every(callbackfn: (value: number, index: number, array: Int16Array) => boolean, thisArg?: any): boolean; - - /** - * Returns the this object after filling the section identified by start and end with value - * @param value value to fill array section with - * @param start index to start filling the array at. If start is negative, it is treated as - * length+start where length is the length of the array. - * @param end index to stop filling the array at. If end is negative, it is treated as - * length+end. - */ - fill(value: number, start?: number, end?: number): Int16Array; - - /** - * Returns the elements of an array that meet the condition specified in a callback function. - * @param callbackfn A function that accepts up to three arguments. The filter method calls - * the callbackfn function one time for each element in the array. - * @param thisArg An object to which the this keyword can refer in the callbackfn function. - * If thisArg is omitted, undefined is used as the this value. - */ - filter(callbackfn: (value: number, index: number, array: Int16Array) => boolean, thisArg?: any): Int16Array; - - /** - * Returns the value of the first element in the array where predicate is true, and undefined - * otherwise. - * @param predicate find calls predicate once for each element of the array, in ascending - * order, until it finds one where predicate returns true. If such an element is found, find - * immediately returns that element value. Otherwise, find returns undefined. - * @param thisArg If provided, it will be used as the this value for each invocation of - * predicate. If it is not provided, undefined is used instead. - */ - find(predicate: (value: number, index: number, obj: Array) => boolean, thisArg?: any): number; - - /** - * Returns the index of the first element in the array where predicate is true, and undefined - * otherwise. - * @param predicate find calls predicate once for each element of the array, in ascending - * order, until it finds one where predicate returns true. If such an element is found, find - * immediately returns that element value. Otherwise, find returns undefined. - * @param thisArg If provided, it will be used as the this value for each invocation of - * predicate. If it is not provided, undefined is used instead. - */ - findIndex(predicate: (value: number) => boolean, thisArg?: any): number; - - /** - * Performs the specified action for each element in an array. - * @param callbackfn A function that accepts up to three arguments. forEach calls the - * callbackfn function one time for each element in the array. - * @param thisArg An object to which the this keyword can refer in the callbackfn function. - * If thisArg is omitted, undefined is used as the this value. - */ - forEach(callbackfn: (value: number, index: number, array: Int16Array) => void, thisArg?: any): void; - - /** - * Returns the index of the first occurrence of a value in an array. - * @param searchElement The value to locate in the array. - * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the - * search starts at index 0. - */ - indexOf(searchElement: number, fromIndex?: number): number; - - /** - * Adds all the elements of an array separated by the specified separator string. - * @param separator A string used to separate one element of an array from the next in the - * resulting String. If omitted, the array elements are separated with a comma. - */ - join(separator?: string): string; - - /** - * Returns the index of the last occurrence of a value in an array. - * @param searchElement The value to locate in the array. - * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the - * search starts at index 0. - */ - lastIndexOf(searchElement: number, fromIndex?: number): number; - - /** - * The length of the array. - */ - length: number; - - /** - * Calls a defined callback function on each element of an array, and returns an array that - * contains the results. - * @param callbackfn A function that accepts up to three arguments. The map method calls the - * callbackfn function one time for each element in the array. - * @param thisArg An object to which the this keyword can refer in the callbackfn function. - * If thisArg is omitted, undefined is used as the this value. - */ - map(callbackfn: (value: number, index: number, array: Int16Array) => number, thisArg?: any): Int16Array; - - /** - * Calls the specified callback function for all the elements in an array. The return value of - * the callback function is the accumulated result, and is provided as an argument in the next - * call to the callback function. - * @param callbackfn A function that accepts up to four arguments. The reduce method calls the - * callbackfn function one time for each element in the array. - * @param initialValue If initialValue is specified, it is used as the initial value to start - * the accumulation. The first call to the callbackfn function provides this value as an argument - * instead of an array value. - */ - reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int16Array) => number, initialValue?: number): number; - - /** - * Calls the specified callback function for all the elements in an array. The return value of - * the callback function is the accumulated result, and is provided as an argument in the next - * call to the callback function. - * @param callbackfn A function that accepts up to four arguments. The reduce method calls the - * callbackfn function one time for each element in the array. - * @param initialValue If initialValue is specified, it is used as the initial value to start - * the accumulation. The first call to the callbackfn function provides this value as an argument - * instead of an array value. - */ - reduce(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Int16Array) => U, initialValue: U): U; - - /** - * Calls the specified callback function for all the elements in an array, in descending order. - * The return value of the callback function is the accumulated result, and is provided as an - * argument in the next call to the callback function. - * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls - * the callbackfn function one time for each element in the array. - * @param initialValue If initialValue is specified, it is used as the initial value to start - * the accumulation. The first call to the callbackfn function provides this value as an - * argument instead of an array value. - */ - reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int16Array) => number, initialValue?: number): number; - - /** - * Calls the specified callback function for all the elements in an array, in descending order. - * The return value of the callback function is the accumulated result, and is provided as an - * argument in the next call to the callback function. - * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls - * the callbackfn function one time for each element in the array. - * @param initialValue If initialValue is specified, it is used as the initial value to start - * the accumulation. The first call to the callbackfn function provides this value as an argument - * instead of an array value. - */ - reduceRight(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Int16Array) => U, initialValue: U): U; - - /** - * Reverses the elements in an Array. - */ - reverse(): Int16Array; - - /** - * Sets a value or an array of values. - * @param index The index of the location to set. - * @param value The value to set. - */ - set(index: number, value: number): void; - - /** - * Sets a value or an array of values. - * @param array A typed or untyped array of values to set. - * @param offset The index in the current array at which the values are to be written. - */ - set(array: ArrayLike, offset?: number): void; - - /** - * Returns a section of an array. - * @param start The beginning of the specified portion of the array. - * @param end The end of the specified portion of the array. - */ - slice(start?: number, end?: number): Int16Array; - - /** - * Determines whether the specified callback function returns true for any element of an array. - * @param callbackfn A function that accepts up to three arguments. The some method calls the - * callbackfn function for each element in array1 until the callbackfn returns true, or until - * the end of the array. - * @param thisArg An object to which the this keyword can refer in the callbackfn function. - * If thisArg is omitted, undefined is used as the this value. - */ - some(callbackfn: (value: number, index: number, array: Int16Array) => boolean, thisArg?: any): boolean; - - /** - * Sorts an array. - * @param compareFn The name of the function used to determine the order of the elements. If - * omitted, the elements are sorted in ascending, numerical order. - */ - sort(compareFn?: (a: number, b: number) => number): Int16Array; - - /** - * Gets a new Int16Array view of the ArrayBuffer store for this array, referencing the elements - * at begin, inclusive, up to end, exclusive. - * @param begin The index of the beginning of the array. - * @param end The index of the end of the array. - */ - subarray(begin?: number, end?: number): Int16Array; - - /** - * Converts a number to a string by using the current locale. - */ - toLocaleString(): string; - - /** - * Returns a string representation of an array. - */ - toString(): string; - - [index: number]: number; -} - -interface Int16ArrayConstructor { - prototype: Int16Array; - new (length: number): Int16Array; - new (array: ArrayLike): Int16Array; - new (buffer: ArrayBuffer, byteOffset?: number, length?: number): Int16Array; - - /** - * The size in bytes of each element in the array. - */ - BYTES_PER_ELEMENT: number; - - /** - * Returns a new array from a set of elements. - * @param items A set of elements to include in the new array object. - */ - of(...items: number[]): Int16Array; - - /** - * Creates an array from an array-like or iterable object. - * @param arrayLike An array-like or iterable object to convert to an array. - * @param mapfn A mapping function to call on every element of the array. - * @param thisArg Value of 'this' used to invoke the mapfn. - */ - from(arrayLike: ArrayLike, mapfn?: (v: number, k: number) => number, thisArg?: any): Int16Array; - -} -declare var Int16Array: Int16ArrayConstructor; - -/** - * A typed array of 16-bit unsigned integer values. The contents are initialized to 0. If the - * requested number of bytes could not be allocated an exception is raised. - */ -interface Uint16Array { - /** - * The size in bytes of each element in the array. - */ - BYTES_PER_ELEMENT: number; - - /** - * The ArrayBuffer instance referenced by the array. - */ - buffer: ArrayBuffer; - - /** - * The length in bytes of the array. - */ - byteLength: number; - - /** - * The offset in bytes of the array. - */ - byteOffset: number; - - /** - * Returns the this object after copying a section of the array identified by start and end - * to the same array starting at position target - * @param target If target is negative, it is treated as length+target where length is the - * length of the array. - * @param start If start is negative, it is treated as length+start. If end is negative, it - * is treated as length+end. - * @param end If not specified, length of the this object is used as its default value. - */ - copyWithin(target: number, start: number, end?: number): Uint16Array; - - /** - * Determines whether all the members of an array satisfy the specified test. - * @param callbackfn A function that accepts up to three arguments. The every method calls - * the callbackfn function for each element in array1 until the callbackfn returns false, - * or until the end of the array. - * @param thisArg An object to which the this keyword can refer in the callbackfn function. - * If thisArg is omitted, undefined is used as the this value. - */ - every(callbackfn: (value: number, index: number, array: Uint16Array) => boolean, thisArg?: any): boolean; - - /** - * Returns the this object after filling the section identified by start and end with value - * @param value value to fill array section with - * @param start index to start filling the array at. If start is negative, it is treated as - * length+start where length is the length of the array. - * @param end index to stop filling the array at. If end is negative, it is treated as - * length+end. - */ - fill(value: number, start?: number, end?: number): Uint16Array; - - /** - * Returns the elements of an array that meet the condition specified in a callback function. - * @param callbackfn A function that accepts up to three arguments. The filter method calls - * the callbackfn function one time for each element in the array. - * @param thisArg An object to which the this keyword can refer in the callbackfn function. - * If thisArg is omitted, undefined is used as the this value. - */ - filter(callbackfn: (value: number, index: number, array: Uint16Array) => boolean, thisArg?: any): Uint16Array; - - /** - * Returns the value of the first element in the array where predicate is true, and undefined - * otherwise. - * @param predicate find calls predicate once for each element of the array, in ascending - * order, until it finds one where predicate returns true. If such an element is found, find - * immediately returns that element value. Otherwise, find returns undefined. - * @param thisArg If provided, it will be used as the this value for each invocation of - * predicate. If it is not provided, undefined is used instead. - */ - find(predicate: (value: number, index: number, obj: Array) => boolean, thisArg?: any): number; - - /** - * Returns the index of the first element in the array where predicate is true, and undefined - * otherwise. - * @param predicate find calls predicate once for each element of the array, in ascending - * order, until it finds one where predicate returns true. If such an element is found, find - * immediately returns that element value. Otherwise, find returns undefined. - * @param thisArg If provided, it will be used as the this value for each invocation of - * predicate. If it is not provided, undefined is used instead. - */ - findIndex(predicate: (value: number) => boolean, thisArg?: any): number; - - /** - * Performs the specified action for each element in an array. - * @param callbackfn A function that accepts up to three arguments. forEach calls the - * callbackfn function one time for each element in the array. - * @param thisArg An object to which the this keyword can refer in the callbackfn function. - * If thisArg is omitted, undefined is used as the this value. - */ - forEach(callbackfn: (value: number, index: number, array: Uint16Array) => void, thisArg?: any): void; - - /** - * Returns the index of the first occurrence of a value in an array. - * @param searchElement The value to locate in the array. - * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the - * search starts at index 0. - */ - indexOf(searchElement: number, fromIndex?: number): number; - - /** - * Adds all the elements of an array separated by the specified separator string. - * @param separator A string used to separate one element of an array from the next in the - * resulting String. If omitted, the array elements are separated with a comma. - */ - join(separator?: string): string; - - /** - * Returns the index of the last occurrence of a value in an array. - * @param searchElement The value to locate in the array. - * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the - * search starts at index 0. - */ - lastIndexOf(searchElement: number, fromIndex?: number): number; - - /** - * The length of the array. - */ - length: number; - - /** - * Calls a defined callback function on each element of an array, and returns an array that - * contains the results. - * @param callbackfn A function that accepts up to three arguments. The map method calls the - * callbackfn function one time for each element in the array. - * @param thisArg An object to which the this keyword can refer in the callbackfn function. - * If thisArg is omitted, undefined is used as the this value. - */ - map(callbackfn: (value: number, index: number, array: Uint16Array) => number, thisArg?: any): Uint16Array; - - /** - * Calls the specified callback function for all the elements in an array. The return value of - * the callback function is the accumulated result, and is provided as an argument in the next - * call to the callback function. - * @param callbackfn A function that accepts up to four arguments. The reduce method calls the - * callbackfn function one time for each element in the array. - * @param initialValue If initialValue is specified, it is used as the initial value to start - * the accumulation. The first call to the callbackfn function provides this value as an argument - * instead of an array value. - */ - reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint16Array) => number, initialValue?: number): number; - - /** - * Calls the specified callback function for all the elements in an array. The return value of - * the callback function is the accumulated result, and is provided as an argument in the next - * call to the callback function. - * @param callbackfn A function that accepts up to four arguments. The reduce method calls the - * callbackfn function one time for each element in the array. - * @param initialValue If initialValue is specified, it is used as the initial value to start - * the accumulation. The first call to the callbackfn function provides this value as an argument - * instead of an array value. - */ - reduce(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint16Array) => U, initialValue: U): U; - - /** - * Calls the specified callback function for all the elements in an array, in descending order. - * The return value of the callback function is the accumulated result, and is provided as an - * argument in the next call to the callback function. - * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls - * the callbackfn function one time for each element in the array. - * @param initialValue If initialValue is specified, it is used as the initial value to start - * the accumulation. The first call to the callbackfn function provides this value as an - * argument instead of an array value. - */ - reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint16Array) => number, initialValue?: number): number; - - /** - * Calls the specified callback function for all the elements in an array, in descending order. - * The return value of the callback function is the accumulated result, and is provided as an - * argument in the next call to the callback function. - * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls - * the callbackfn function one time for each element in the array. - * @param initialValue If initialValue is specified, it is used as the initial value to start - * the accumulation. The first call to the callbackfn function provides this value as an argument - * instead of an array value. - */ - reduceRight(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint16Array) => U, initialValue: U): U; - - /** - * Reverses the elements in an Array. - */ - reverse(): Uint16Array; - - /** - * Sets a value or an array of values. - * @param index The index of the location to set. - * @param value The value to set. - */ - set(index: number, value: number): void; - - /** - * Sets a value or an array of values. - * @param array A typed or untyped array of values to set. - * @param offset The index in the current array at which the values are to be written. - */ - set(array: ArrayLike, offset?: number): void; - - /** - * Returns a section of an array. - * @param start The beginning of the specified portion of the array. - * @param end The end of the specified portion of the array. - */ - slice(start?: number, end?: number): Uint16Array; - - /** - * Determines whether the specified callback function returns true for any element of an array. - * @param callbackfn A function that accepts up to three arguments. The some method calls the - * callbackfn function for each element in array1 until the callbackfn returns true, or until - * the end of the array. - * @param thisArg An object to which the this keyword can refer in the callbackfn function. - * If thisArg is omitted, undefined is used as the this value. - */ - some(callbackfn: (value: number, index: number, array: Uint16Array) => boolean, thisArg?: any): boolean; - - /** - * Sorts an array. - * @param compareFn The name of the function used to determine the order of the elements. If - * omitted, the elements are sorted in ascending, numerical order. - */ - sort(compareFn?: (a: number, b: number) => number): Uint16Array; - - /** - * Gets a new Uint16Array view of the ArrayBuffer store for this array, referencing the elements - * at begin, inclusive, up to end, exclusive. - * @param begin The index of the beginning of the array. - * @param end The index of the end of the array. - */ - subarray(begin?: number, end?: number): Uint16Array; - - /** - * Converts a number to a string by using the current locale. - */ - toLocaleString(): string; - - /** - * Returns a string representation of an array. - */ - toString(): string; - - [index: number]: number; -} - -interface Uint16ArrayConstructor { - prototype: Uint16Array; - new (length: number): Uint16Array; - new (array: ArrayLike): Uint16Array; - new (buffer: ArrayBuffer, byteOffset?: number, length?: number): Uint16Array; - - /** - * The size in bytes of each element in the array. - */ - BYTES_PER_ELEMENT: number; - - /** - * Returns a new array from a set of elements. - * @param items A set of elements to include in the new array object. - */ - of(...items: number[]): Uint16Array; - - /** - * Creates an array from an array-like or iterable object. - * @param arrayLike An array-like or iterable object to convert to an array. - * @param mapfn A mapping function to call on every element of the array. - * @param thisArg Value of 'this' used to invoke the mapfn. - */ - from(arrayLike: ArrayLike, mapfn?: (v: number, k: number) => number, thisArg?: any): Uint16Array; - -} -declare var Uint16Array: Uint16ArrayConstructor; -/** - * A typed array of 32-bit signed integer values. The contents are initialized to 0. If the - * requested number of bytes could not be allocated an exception is raised. - */ -interface Int32Array { - /** - * The size in bytes of each element in the array. - */ - BYTES_PER_ELEMENT: number; - - /** - * The ArrayBuffer instance referenced by the array. - */ - buffer: ArrayBuffer; - - /** - * The length in bytes of the array. - */ - byteLength: number; - - /** - * The offset in bytes of the array. - */ - byteOffset: number; - - /** - * Returns the this object after copying a section of the array identified by start and end - * to the same array starting at position target - * @param target If target is negative, it is treated as length+target where length is the - * length of the array. - * @param start If start is negative, it is treated as length+start. If end is negative, it - * is treated as length+end. - * @param end If not specified, length of the this object is used as its default value. - */ - copyWithin(target: number, start: number, end?: number): Int32Array; - - /** - * Determines whether all the members of an array satisfy the specified test. - * @param callbackfn A function that accepts up to three arguments. The every method calls - * the callbackfn function for each element in array1 until the callbackfn returns false, - * or until the end of the array. - * @param thisArg An object to which the this keyword can refer in the callbackfn function. - * If thisArg is omitted, undefined is used as the this value. - */ - every(callbackfn: (value: number, index: number, array: Int32Array) => boolean, thisArg?: any): boolean; - - /** - * Returns the this object after filling the section identified by start and end with value - * @param value value to fill array section with - * @param start index to start filling the array at. If start is negative, it is treated as - * length+start where length is the length of the array. - * @param end index to stop filling the array at. If end is negative, it is treated as - * length+end. - */ - fill(value: number, start?: number, end?: number): Int32Array; - - /** - * Returns the elements of an array that meet the condition specified in a callback function. - * @param callbackfn A function that accepts up to three arguments. The filter method calls - * the callbackfn function one time for each element in the array. - * @param thisArg An object to which the this keyword can refer in the callbackfn function. - * If thisArg is omitted, undefined is used as the this value. - */ - filter(callbackfn: (value: number, index: number, array: Int32Array) => boolean, thisArg?: any): Int32Array; - - /** - * Returns the value of the first element in the array where predicate is true, and undefined - * otherwise. - * @param predicate find calls predicate once for each element of the array, in ascending - * order, until it finds one where predicate returns true. If such an element is found, find - * immediately returns that element value. Otherwise, find returns undefined. - * @param thisArg If provided, it will be used as the this value for each invocation of - * predicate. If it is not provided, undefined is used instead. - */ - find(predicate: (value: number, index: number, obj: Array) => boolean, thisArg?: any): number; - - /** - * Returns the index of the first element in the array where predicate is true, and undefined - * otherwise. - * @param predicate find calls predicate once for each element of the array, in ascending - * order, until it finds one where predicate returns true. If such an element is found, find - * immediately returns that element value. Otherwise, find returns undefined. - * @param thisArg If provided, it will be used as the this value for each invocation of - * predicate. If it is not provided, undefined is used instead. - */ - findIndex(predicate: (value: number) => boolean, thisArg?: any): number; - - /** - * Performs the specified action for each element in an array. - * @param callbackfn A function that accepts up to three arguments. forEach calls the - * callbackfn function one time for each element in the array. - * @param thisArg An object to which the this keyword can refer in the callbackfn function. - * If thisArg is omitted, undefined is used as the this value. - */ - forEach(callbackfn: (value: number, index: number, array: Int32Array) => void, thisArg?: any): void; - - /** - * Returns the index of the first occurrence of a value in an array. - * @param searchElement The value to locate in the array. - * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the - * search starts at index 0. - */ - indexOf(searchElement: number, fromIndex?: number): number; - - /** - * Adds all the elements of an array separated by the specified separator string. - * @param separator A string used to separate one element of an array from the next in the - * resulting String. If omitted, the array elements are separated with a comma. - */ - join(separator?: string): string; - - /** - * Returns the index of the last occurrence of a value in an array. - * @param searchElement The value to locate in the array. - * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the - * search starts at index 0. - */ - lastIndexOf(searchElement: number, fromIndex?: number): number; - - /** - * The length of the array. - */ - length: number; - - /** - * Calls a defined callback function on each element of an array, and returns an array that - * contains the results. - * @param callbackfn A function that accepts up to three arguments. The map method calls the - * callbackfn function one time for each element in the array. - * @param thisArg An object to which the this keyword can refer in the callbackfn function. - * If thisArg is omitted, undefined is used as the this value. - */ - map(callbackfn: (value: number, index: number, array: Int32Array) => number, thisArg?: any): Int32Array; - - /** - * Calls the specified callback function for all the elements in an array. The return value of - * the callback function is the accumulated result, and is provided as an argument in the next - * call to the callback function. - * @param callbackfn A function that accepts up to four arguments. The reduce method calls the - * callbackfn function one time for each element in the array. - * @param initialValue If initialValue is specified, it is used as the initial value to start - * the accumulation. The first call to the callbackfn function provides this value as an argument - * instead of an array value. - */ - reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int32Array) => number, initialValue?: number): number; - - /** - * Calls the specified callback function for all the elements in an array. The return value of - * the callback function is the accumulated result, and is provided as an argument in the next - * call to the callback function. - * @param callbackfn A function that accepts up to four arguments. The reduce method calls the - * callbackfn function one time for each element in the array. - * @param initialValue If initialValue is specified, it is used as the initial value to start - * the accumulation. The first call to the callbackfn function provides this value as an argument - * instead of an array value. - */ - reduce(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Int32Array) => U, initialValue: U): U; - - /** - * Calls the specified callback function for all the elements in an array, in descending order. - * The return value of the callback function is the accumulated result, and is provided as an - * argument in the next call to the callback function. - * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls - * the callbackfn function one time for each element in the array. - * @param initialValue If initialValue is specified, it is used as the initial value to start - * the accumulation. The first call to the callbackfn function provides this value as an - * argument instead of an array value. - */ - reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int32Array) => number, initialValue?: number): number; - - /** - * Calls the specified callback function for all the elements in an array, in descending order. - * The return value of the callback function is the accumulated result, and is provided as an - * argument in the next call to the callback function. - * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls - * the callbackfn function one time for each element in the array. - * @param initialValue If initialValue is specified, it is used as the initial value to start - * the accumulation. The first call to the callbackfn function provides this value as an argument - * instead of an array value. - */ - reduceRight(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Int32Array) => U, initialValue: U): U; - - /** - * Reverses the elements in an Array. - */ - reverse(): Int32Array; - - /** - * Sets a value or an array of values. - * @param index The index of the location to set. - * @param value The value to set. - */ - set(index: number, value: number): void; - - /** - * Sets a value or an array of values. - * @param array A typed or untyped array of values to set. - * @param offset The index in the current array at which the values are to be written. - */ - set(array: ArrayLike, offset?: number): void; - - /** - * Returns a section of an array. - * @param start The beginning of the specified portion of the array. - * @param end The end of the specified portion of the array. - */ - slice(start?: number, end?: number): Int32Array; - - /** - * Determines whether the specified callback function returns true for any element of an array. - * @param callbackfn A function that accepts up to three arguments. The some method calls the - * callbackfn function for each element in array1 until the callbackfn returns true, or until - * the end of the array. - * @param thisArg An object to which the this keyword can refer in the callbackfn function. - * If thisArg is omitted, undefined is used as the this value. - */ - some(callbackfn: (value: number, index: number, array: Int32Array) => boolean, thisArg?: any): boolean; - - /** - * Sorts an array. - * @param compareFn The name of the function used to determine the order of the elements. If - * omitted, the elements are sorted in ascending, numerical order. - */ - sort(compareFn?: (a: number, b: number) => number): Int32Array; - - /** - * Gets a new Int32Array view of the ArrayBuffer store for this array, referencing the elements - * at begin, inclusive, up to end, exclusive. - * @param begin The index of the beginning of the array. - * @param end The index of the end of the array. - */ - subarray(begin?: number, end?: number): Int32Array; - - /** - * Converts a number to a string by using the current locale. - */ - toLocaleString(): string; - - /** - * Returns a string representation of an array. - */ - toString(): string; - - [index: number]: number; -} - -interface Int32ArrayConstructor { - prototype: Int32Array; - new (length: number): Int32Array; - new (array: ArrayLike): Int32Array; - new (buffer: ArrayBuffer, byteOffset?: number, length?: number): Int32Array; - - /** - * The size in bytes of each element in the array. - */ - BYTES_PER_ELEMENT: number; - - /** - * Returns a new array from a set of elements. - * @param items A set of elements to include in the new array object. - */ - of(...items: number[]): Int32Array; - - /** - * Creates an array from an array-like or iterable object. - * @param arrayLike An array-like or iterable object to convert to an array. - * @param mapfn A mapping function to call on every element of the array. - * @param thisArg Value of 'this' used to invoke the mapfn. - */ - from(arrayLike: ArrayLike, mapfn?: (v: number, k: number) => number, thisArg?: any): Int32Array; -} -declare var Int32Array: Int32ArrayConstructor; - -/** - * A typed array of 32-bit unsigned integer values. The contents are initialized to 0. If the - * requested number of bytes could not be allocated an exception is raised. - */ -interface Uint32Array { - /** - * The size in bytes of each element in the array. - */ - BYTES_PER_ELEMENT: number; - - /** - * The ArrayBuffer instance referenced by the array. - */ - buffer: ArrayBuffer; - - /** - * The length in bytes of the array. - */ - byteLength: number; - - /** - * The offset in bytes of the array. - */ - byteOffset: number; - - /** - * Returns the this object after copying a section of the array identified by start and end - * to the same array starting at position target - * @param target If target is negative, it is treated as length+target where length is the - * length of the array. - * @param start If start is negative, it is treated as length+start. If end is negative, it - * is treated as length+end. - * @param end If not specified, length of the this object is used as its default value. - */ - copyWithin(target: number, start: number, end?: number): Uint32Array; - - /** - * Determines whether all the members of an array satisfy the specified test. - * @param callbackfn A function that accepts up to three arguments. The every method calls - * the callbackfn function for each element in array1 until the callbackfn returns false, - * or until the end of the array. - * @param thisArg An object to which the this keyword can refer in the callbackfn function. - * If thisArg is omitted, undefined is used as the this value. - */ - every(callbackfn: (value: number, index: number, array: Uint32Array) => boolean, thisArg?: any): boolean; - - /** - * Returns the this object after filling the section identified by start and end with value - * @param value value to fill array section with - * @param start index to start filling the array at. If start is negative, it is treated as - * length+start where length is the length of the array. - * @param end index to stop filling the array at. If end is negative, it is treated as - * length+end. - */ - fill(value: number, start?: number, end?: number): Uint32Array; - - /** - * Returns the elements of an array that meet the condition specified in a callback function. - * @param callbackfn A function that accepts up to three arguments. The filter method calls - * the callbackfn function one time for each element in the array. - * @param thisArg An object to which the this keyword can refer in the callbackfn function. - * If thisArg is omitted, undefined is used as the this value. - */ - filter(callbackfn: (value: number, index: number, array: Uint32Array) => boolean, thisArg?: any): Uint32Array; - - /** - * Returns the value of the first element in the array where predicate is true, and undefined - * otherwise. - * @param predicate find calls predicate once for each element of the array, in ascending - * order, until it finds one where predicate returns true. If such an element is found, find - * immediately returns that element value. Otherwise, find returns undefined. - * @param thisArg If provided, it will be used as the this value for each invocation of - * predicate. If it is not provided, undefined is used instead. - */ - find(predicate: (value: number, index: number, obj: Array) => boolean, thisArg?: any): number; - - /** - * Returns the index of the first element in the array where predicate is true, and undefined - * otherwise. - * @param predicate find calls predicate once for each element of the array, in ascending - * order, until it finds one where predicate returns true. If such an element is found, find - * immediately returns that element value. Otherwise, find returns undefined. - * @param thisArg If provided, it will be used as the this value for each invocation of - * predicate. If it is not provided, undefined is used instead. - */ - findIndex(predicate: (value: number) => boolean, thisArg?: any): number; - - /** - * Performs the specified action for each element in an array. - * @param callbackfn A function that accepts up to three arguments. forEach calls the - * callbackfn function one time for each element in the array. - * @param thisArg An object to which the this keyword can refer in the callbackfn function. - * If thisArg is omitted, undefined is used as the this value. - */ - forEach(callbackfn: (value: number, index: number, array: Uint32Array) => void, thisArg?: any): void; - - /** - * Returns the index of the first occurrence of a value in an array. - * @param searchElement The value to locate in the array. - * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the - * search starts at index 0. - */ - indexOf(searchElement: number, fromIndex?: number): number; - - /** - * Adds all the elements of an array separated by the specified separator string. - * @param separator A string used to separate one element of an array from the next in the - * resulting String. If omitted, the array elements are separated with a comma. - */ - join(separator?: string): string; - - /** - * Returns the index of the last occurrence of a value in an array. - * @param searchElement The value to locate in the array. - * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the - * search starts at index 0. - */ - lastIndexOf(searchElement: number, fromIndex?: number): number; - - /** - * The length of the array. - */ - length: number; - - /** - * Calls a defined callback function on each element of an array, and returns an array that - * contains the results. - * @param callbackfn A function that accepts up to three arguments. The map method calls the - * callbackfn function one time for each element in the array. - * @param thisArg An object to which the this keyword can refer in the callbackfn function. - * If thisArg is omitted, undefined is used as the this value. - */ - map(callbackfn: (value: number, index: number, array: Uint32Array) => number, thisArg?: any): Uint32Array; - - /** - * Calls the specified callback function for all the elements in an array. The return value of - * the callback function is the accumulated result, and is provided as an argument in the next - * call to the callback function. - * @param callbackfn A function that accepts up to four arguments. The reduce method calls the - * callbackfn function one time for each element in the array. - * @param initialValue If initialValue is specified, it is used as the initial value to start - * the accumulation. The first call to the callbackfn function provides this value as an argument - * instead of an array value. - */ - reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint32Array) => number, initialValue?: number): number; - - /** - * Calls the specified callback function for all the elements in an array. The return value of - * the callback function is the accumulated result, and is provided as an argument in the next - * call to the callback function. - * @param callbackfn A function that accepts up to four arguments. The reduce method calls the - * callbackfn function one time for each element in the array. - * @param initialValue If initialValue is specified, it is used as the initial value to start - * the accumulation. The first call to the callbackfn function provides this value as an argument - * instead of an array value. - */ - reduce(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint32Array) => U, initialValue: U): U; - - /** - * Calls the specified callback function for all the elements in an array, in descending order. - * The return value of the callback function is the accumulated result, and is provided as an - * argument in the next call to the callback function. - * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls - * the callbackfn function one time for each element in the array. - * @param initialValue If initialValue is specified, it is used as the initial value to start - * the accumulation. The first call to the callbackfn function provides this value as an - * argument instead of an array value. - */ - reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint32Array) => number, initialValue?: number): number; - - /** - * Calls the specified callback function for all the elements in an array, in descending order. - * The return value of the callback function is the accumulated result, and is provided as an - * argument in the next call to the callback function. - * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls - * the callbackfn function one time for each element in the array. - * @param initialValue If initialValue is specified, it is used as the initial value to start - * the accumulation. The first call to the callbackfn function provides this value as an argument - * instead of an array value. - */ - reduceRight(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint32Array) => U, initialValue: U): U; - - /** - * Reverses the elements in an Array. - */ - reverse(): Uint32Array; - - /** - * Sets a value or an array of values. - * @param index The index of the location to set. - * @param value The value to set. - */ - set(index: number, value: number): void; - - /** - * Sets a value or an array of values. - * @param array A typed or untyped array of values to set. - * @param offset The index in the current array at which the values are to be written. - */ - set(array: ArrayLike, offset?: number): void; - - /** - * Returns a section of an array. - * @param start The beginning of the specified portion of the array. - * @param end The end of the specified portion of the array. - */ - slice(start?: number, end?: number): Uint32Array; - - /** - * Determines whether the specified callback function returns true for any element of an array. - * @param callbackfn A function that accepts up to three arguments. The some method calls the - * callbackfn function for each element in array1 until the callbackfn returns true, or until - * the end of the array. - * @param thisArg An object to which the this keyword can refer in the callbackfn function. - * If thisArg is omitted, undefined is used as the this value. - */ - some(callbackfn: (value: number, index: number, array: Uint32Array) => boolean, thisArg?: any): boolean; - - /** - * Sorts an array. - * @param compareFn The name of the function used to determine the order of the elements. If - * omitted, the elements are sorted in ascending, numerical order. - */ - sort(compareFn?: (a: number, b: number) => number): Uint32Array; - - /** - * Gets a new Uint32Array view of the ArrayBuffer store for this array, referencing the elements - * at begin, inclusive, up to end, exclusive. - * @param begin The index of the beginning of the array. - * @param end The index of the end of the array. - */ - subarray(begin?: number, end?: number): Uint32Array; - - /** - * Converts a number to a string by using the current locale. - */ - toLocaleString(): string; - - /** - * Returns a string representation of an array. - */ - toString(): string; - - [index: number]: number; -} - -interface Uint32ArrayConstructor { - prototype: Uint32Array; - new (length: number): Uint32Array; - new (array: ArrayLike): Uint32Array; - new (buffer: ArrayBuffer, byteOffset?: number, length?: number): Uint32Array; - - /** - * The size in bytes of each element in the array. - */ - BYTES_PER_ELEMENT: number; - - /** - * Returns a new array from a set of elements. - * @param items A set of elements to include in the new array object. - */ - of(...items: number[]): Uint32Array; - - /** - * Creates an array from an array-like or iterable object. - * @param arrayLike An array-like or iterable object to convert to an array. - * @param mapfn A mapping function to call on every element of the array. - * @param thisArg Value of 'this' used to invoke the mapfn. - */ - from(arrayLike: ArrayLike, mapfn?: (v: number, k: number) => number, thisArg?: any): Uint32Array; -} -declare var Uint32Array: Uint32ArrayConstructor; - -/** - * A typed array of 32-bit float values. The contents are initialized to 0. If the requested number - * of bytes could not be allocated an exception is raised. - */ -interface Float32Array { - /** - * The size in bytes of each element in the array. - */ - BYTES_PER_ELEMENT: number; - - /** - * The ArrayBuffer instance referenced by the array. - */ - buffer: ArrayBuffer; - - /** - * The length in bytes of the array. - */ - byteLength: number; - - /** - * The offset in bytes of the array. - */ - byteOffset: number; - - /** - * Returns the this object after copying a section of the array identified by start and end - * to the same array starting at position target - * @param target If target is negative, it is treated as length+target where length is the - * length of the array. - * @param start If start is negative, it is treated as length+start. If end is negative, it - * is treated as length+end. - * @param end If not specified, length of the this object is used as its default value. - */ - copyWithin(target: number, start: number, end?: number): Float32Array; - - /** - * Determines whether all the members of an array satisfy the specified test. - * @param callbackfn A function that accepts up to three arguments. The every method calls - * the callbackfn function for each element in array1 until the callbackfn returns false, - * or until the end of the array. - * @param thisArg An object to which the this keyword can refer in the callbackfn function. - * If thisArg is omitted, undefined is used as the this value. - */ - every(callbackfn: (value: number, index: number, array: Float32Array) => boolean, thisArg?: any): boolean; - - /** - * Returns the this object after filling the section identified by start and end with value - * @param value value to fill array section with - * @param start index to start filling the array at. If start is negative, it is treated as - * length+start where length is the length of the array. - * @param end index to stop filling the array at. If end is negative, it is treated as - * length+end. - */ - fill(value: number, start?: number, end?: number): Float32Array; - - /** - * Returns the elements of an array that meet the condition specified in a callback function. - * @param callbackfn A function that accepts up to three arguments. The filter method calls - * the callbackfn function one time for each element in the array. - * @param thisArg An object to which the this keyword can refer in the callbackfn function. - * If thisArg is omitted, undefined is used as the this value. - */ - filter(callbackfn: (value: number, index: number, array: Float32Array) => boolean, thisArg?: any): Float32Array; - - /** - * Returns the value of the first element in the array where predicate is true, and undefined - * otherwise. - * @param predicate find calls predicate once for each element of the array, in ascending - * order, until it finds one where predicate returns true. If such an element is found, find - * immediately returns that element value. Otherwise, find returns undefined. - * @param thisArg If provided, it will be used as the this value for each invocation of - * predicate. If it is not provided, undefined is used instead. - */ - find(predicate: (value: number, index: number, obj: Array) => boolean, thisArg?: any): number; - - /** - * Returns the index of the first element in the array where predicate is true, and undefined - * otherwise. - * @param predicate find calls predicate once for each element of the array, in ascending - * order, until it finds one where predicate returns true. If such an element is found, find - * immediately returns that element value. Otherwise, find returns undefined. - * @param thisArg If provided, it will be used as the this value for each invocation of - * predicate. If it is not provided, undefined is used instead. - */ - findIndex(predicate: (value: number) => boolean, thisArg?: any): number; - - /** - * Performs the specified action for each element in an array. - * @param callbackfn A function that accepts up to three arguments. forEach calls the - * callbackfn function one time for each element in the array. - * @param thisArg An object to which the this keyword can refer in the callbackfn function. - * If thisArg is omitted, undefined is used as the this value. - */ - forEach(callbackfn: (value: number, index: number, array: Float32Array) => void, thisArg?: any): void; - - /** - * Returns the index of the first occurrence of a value in an array. - * @param searchElement The value to locate in the array. - * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the - * search starts at index 0. - */ - indexOf(searchElement: number, fromIndex?: number): number; - - /** - * Adds all the elements of an array separated by the specified separator string. - * @param separator A string used to separate one element of an array from the next in the - * resulting String. If omitted, the array elements are separated with a comma. - */ - join(separator?: string): string; - - /** - * Returns the index of the last occurrence of a value in an array. - * @param searchElement The value to locate in the array. - * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the - * search starts at index 0. - */ - lastIndexOf(searchElement: number, fromIndex?: number): number; - - /** - * The length of the array. - */ - length: number; - - /** - * Calls a defined callback function on each element of an array, and returns an array that - * contains the results. - * @param callbackfn A function that accepts up to three arguments. The map method calls the - * callbackfn function one time for each element in the array. - * @param thisArg An object to which the this keyword can refer in the callbackfn function. - * If thisArg is omitted, undefined is used as the this value. - */ - map(callbackfn: (value: number, index: number, array: Float32Array) => number, thisArg?: any): Float32Array; - - /** - * Calls the specified callback function for all the elements in an array. The return value of - * the callback function is the accumulated result, and is provided as an argument in the next - * call to the callback function. - * @param callbackfn A function that accepts up to four arguments. The reduce method calls the - * callbackfn function one time for each element in the array. - * @param initialValue If initialValue is specified, it is used as the initial value to start - * the accumulation. The first call to the callbackfn function provides this value as an argument - * instead of an array value. - */ - reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float32Array) => number, initialValue?: number): number; - - /** - * Calls the specified callback function for all the elements in an array. The return value of - * the callback function is the accumulated result, and is provided as an argument in the next - * call to the callback function. - * @param callbackfn A function that accepts up to four arguments. The reduce method calls the - * callbackfn function one time for each element in the array. - * @param initialValue If initialValue is specified, it is used as the initial value to start - * the accumulation. The first call to the callbackfn function provides this value as an argument - * instead of an array value. - */ - reduce(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Float32Array) => U, initialValue: U): U; - - /** - * Calls the specified callback function for all the elements in an array, in descending order. - * The return value of the callback function is the accumulated result, and is provided as an - * argument in the next call to the callback function. - * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls - * the callbackfn function one time for each element in the array. - * @param initialValue If initialValue is specified, it is used as the initial value to start - * the accumulation. The first call to the callbackfn function provides this value as an - * argument instead of an array value. - */ - reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float32Array) => number, initialValue?: number): number; - - /** - * Calls the specified callback function for all the elements in an array, in descending order. - * The return value of the callback function is the accumulated result, and is provided as an - * argument in the next call to the callback function. - * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls - * the callbackfn function one time for each element in the array. - * @param initialValue If initialValue is specified, it is used as the initial value to start - * the accumulation. The first call to the callbackfn function provides this value as an argument - * instead of an array value. - */ - reduceRight(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Float32Array) => U, initialValue: U): U; - - /** - * Reverses the elements in an Array. - */ - reverse(): Float32Array; - - /** - * Sets a value or an array of values. - * @param index The index of the location to set. - * @param value The value to set. - */ - set(index: number, value: number): void; - - /** - * Sets a value or an array of values. - * @param array A typed or untyped array of values to set. - * @param offset The index in the current array at which the values are to be written. - */ - set(array: ArrayLike, offset?: number): void; - - /** - * Returns a section of an array. - * @param start The beginning of the specified portion of the array. - * @param end The end of the specified portion of the array. - */ - slice(start?: number, end?: number): Float32Array; - - /** - * Determines whether the specified callback function returns true for any element of an array. - * @param callbackfn A function that accepts up to three arguments. The some method calls the - * callbackfn function for each element in array1 until the callbackfn returns true, or until - * the end of the array. - * @param thisArg An object to which the this keyword can refer in the callbackfn function. - * If thisArg is omitted, undefined is used as the this value. - */ - some(callbackfn: (value: number, index: number, array: Float32Array) => boolean, thisArg?: any): boolean; - - /** - * Sorts an array. - * @param compareFn The name of the function used to determine the order of the elements. If - * omitted, the elements are sorted in ascending, numerical order. - */ - sort(compareFn?: (a: number, b: number) => number): Float32Array; - - /** - * Gets a new Float32Array view of the ArrayBuffer store for this array, referencing the elements - * at begin, inclusive, up to end, exclusive. - * @param begin The index of the beginning of the array. - * @param end The index of the end of the array. - */ - subarray(begin?: number, end?: number): Float32Array; - - /** - * Converts a number to a string by using the current locale. - */ - toLocaleString(): string; - - /** - * Returns a string representation of an array. - */ - toString(): string; - - [index: number]: number; -} - -interface Float32ArrayConstructor { - prototype: Float32Array; - new (length: number): Float32Array; - new (array: ArrayLike): Float32Array; - new (buffer: ArrayBuffer, byteOffset?: number, length?: number): Float32Array; - - /** - * The size in bytes of each element in the array. - */ - BYTES_PER_ELEMENT: number; - - /** - * Returns a new array from a set of elements. - * @param items A set of elements to include in the new array object. - */ - of(...items: number[]): Float32Array; - - /** - * Creates an array from an array-like or iterable object. - * @param arrayLike An array-like or iterable object to convert to an array. - * @param mapfn A mapping function to call on every element of the array. - * @param thisArg Value of 'this' used to invoke the mapfn. - */ - from(arrayLike: ArrayLike, mapfn?: (v: number, k: number) => number, thisArg?: any): Float32Array; - -} -declare var Float32Array: Float32ArrayConstructor; - -/** - * A typed array of 64-bit float values. The contents are initialized to 0. If the requested - * number of bytes could not be allocated an exception is raised. - */ -interface Float64Array { - /** - * The size in bytes of each element in the array. - */ - BYTES_PER_ELEMENT: number; - - /** - * The ArrayBuffer instance referenced by the array. - */ - buffer: ArrayBuffer; - - /** - * The length in bytes of the array. - */ - byteLength: number; - - /** - * The offset in bytes of the array. - */ - byteOffset: number; - - /** - * Returns the this object after copying a section of the array identified by start and end - * to the same array starting at position target - * @param target If target is negative, it is treated as length+target where length is the - * length of the array. - * @param start If start is negative, it is treated as length+start. If end is negative, it - * is treated as length+end. - * @param end If not specified, length of the this object is used as its default value. - */ - copyWithin(target: number, start: number, end?: number): Float64Array; - - /** - * Determines whether all the members of an array satisfy the specified test. - * @param callbackfn A function that accepts up to three arguments. The every method calls - * the callbackfn function for each element in array1 until the callbackfn returns false, - * or until the end of the array. - * @param thisArg An object to which the this keyword can refer in the callbackfn function. - * If thisArg is omitted, undefined is used as the this value. - */ - every(callbackfn: (value: number, index: number, array: Float64Array) => boolean, thisArg?: any): boolean; - - /** - * Returns the this object after filling the section identified by start and end with value - * @param value value to fill array section with - * @param start index to start filling the array at. If start is negative, it is treated as - * length+start where length is the length of the array. - * @param end index to stop filling the array at. If end is negative, it is treated as - * length+end. - */ - fill(value: number, start?: number, end?: number): Float64Array; - - /** - * Returns the elements of an array that meet the condition specified in a callback function. - * @param callbackfn A function that accepts up to three arguments. The filter method calls - * the callbackfn function one time for each element in the array. - * @param thisArg An object to which the this keyword can refer in the callbackfn function. - * If thisArg is omitted, undefined is used as the this value. - */ - filter(callbackfn: (value: number, index: number, array: Float64Array) => boolean, thisArg?: any): Float64Array; - - /** - * Returns the value of the first element in the array where predicate is true, and undefined - * otherwise. - * @param predicate find calls predicate once for each element of the array, in ascending - * order, until it finds one where predicate returns true. If such an element is found, find - * immediately returns that element value. Otherwise, find returns undefined. - * @param thisArg If provided, it will be used as the this value for each invocation of - * predicate. If it is not provided, undefined is used instead. - */ - find(predicate: (value: number, index: number, obj: Array) => boolean, thisArg?: any): number; - - /** - * Returns the index of the first element in the array where predicate is true, and undefined - * otherwise. - * @param predicate find calls predicate once for each element of the array, in ascending - * order, until it finds one where predicate returns true. If such an element is found, find - * immediately returns that element value. Otherwise, find returns undefined. - * @param thisArg If provided, it will be used as the this value for each invocation of - * predicate. If it is not provided, undefined is used instead. - */ - findIndex(predicate: (value: number) => boolean, thisArg?: any): number; - - /** - * Performs the specified action for each element in an array. - * @param callbackfn A function that accepts up to three arguments. forEach calls the - * callbackfn function one time for each element in the array. - * @param thisArg An object to which the this keyword can refer in the callbackfn function. - * If thisArg is omitted, undefined is used as the this value. - */ - forEach(callbackfn: (value: number, index: number, array: Float64Array) => void, thisArg?: any): void; - - /** - * Returns the index of the first occurrence of a value in an array. - * @param searchElement The value to locate in the array. - * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the - * search starts at index 0. - */ - indexOf(searchElement: number, fromIndex?: number): number; - - /** - * Adds all the elements of an array separated by the specified separator string. - * @param separator A string used to separate one element of an array from the next in the - * resulting String. If omitted, the array elements are separated with a comma. - */ - join(separator?: string): string; - - /** - * Returns the index of the last occurrence of a value in an array. - * @param searchElement The value to locate in the array. - * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the - * search starts at index 0. - */ - lastIndexOf(searchElement: number, fromIndex?: number): number; - - /** - * The length of the array. - */ - length: number; - - /** - * Calls a defined callback function on each element of an array, and returns an array that - * contains the results. - * @param callbackfn A function that accepts up to three arguments. The map method calls the - * callbackfn function one time for each element in the array. - * @param thisArg An object to which the this keyword can refer in the callbackfn function. - * If thisArg is omitted, undefined is used as the this value. - */ - map(callbackfn: (value: number, index: number, array: Float64Array) => number, thisArg?: any): Float64Array; - - /** - * Calls the specified callback function for all the elements in an array. The return value of - * the callback function is the accumulated result, and is provided as an argument in the next - * call to the callback function. - * @param callbackfn A function that accepts up to four arguments. The reduce method calls the - * callbackfn function one time for each element in the array. - * @param initialValue If initialValue is specified, it is used as the initial value to start - * the accumulation. The first call to the callbackfn function provides this value as an argument - * instead of an array value. - */ - reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float64Array) => number, initialValue?: number): number; - - /** - * Calls the specified callback function for all the elements in an array. The return value of - * the callback function is the accumulated result, and is provided as an argument in the next - * call to the callback function. - * @param callbackfn A function that accepts up to four arguments. The reduce method calls the - * callbackfn function one time for each element in the array. - * @param initialValue If initialValue is specified, it is used as the initial value to start - * the accumulation. The first call to the callbackfn function provides this value as an argument - * instead of an array value. - */ - reduce(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Float64Array) => U, initialValue: U): U; - - /** - * Calls the specified callback function for all the elements in an array, in descending order. - * The return value of the callback function is the accumulated result, and is provided as an - * argument in the next call to the callback function. - * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls - * the callbackfn function one time for each element in the array. - * @param initialValue If initialValue is specified, it is used as the initial value to start - * the accumulation. The first call to the callbackfn function provides this value as an - * argument instead of an array value. - */ - reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float64Array) => number, initialValue?: number): number; - - /** - * Calls the specified callback function for all the elements in an array, in descending order. - * The return value of the callback function is the accumulated result, and is provided as an - * argument in the next call to the callback function. - * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls - * the callbackfn function one time for each element in the array. - * @param initialValue If initialValue is specified, it is used as the initial value to start - * the accumulation. The first call to the callbackfn function provides this value as an argument - * instead of an array value. - */ - reduceRight(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Float64Array) => U, initialValue: U): U; - - /** - * Reverses the elements in an Array. - */ - reverse(): Float64Array; - - /** - * Sets a value or an array of values. - * @param index The index of the location to set. - * @param value The value to set. - */ - set(index: number, value: number): void; - - /** - * Sets a value or an array of values. - * @param array A typed or untyped array of values to set. - * @param offset The index in the current array at which the values are to be written. - */ - set(array: ArrayLike, offset?: number): void; - - /** - * Returns a section of an array. - * @param start The beginning of the specified portion of the array. - * @param end The end of the specified portion of the array. - */ - slice(start?: number, end?: number): Float64Array; - - /** - * Determines whether the specified callback function returns true for any element of an array. - * @param callbackfn A function that accepts up to three arguments. The some method calls the - * callbackfn function for each element in array1 until the callbackfn returns true, or until - * the end of the array. - * @param thisArg An object to which the this keyword can refer in the callbackfn function. - * If thisArg is omitted, undefined is used as the this value. - */ - some(callbackfn: (value: number, index: number, array: Float64Array) => boolean, thisArg?: any): boolean; - - /** - * Sorts an array. - * @param compareFn The name of the function used to determine the order of the elements. If - * omitted, the elements are sorted in ascending, numerical order. - */ - sort(compareFn?: (a: number, b: number) => number): Float64Array; - - /** - * Gets a new Float64Array view of the ArrayBuffer store for this array, referencing the elements - * at begin, inclusive, up to end, exclusive. - * @param begin The index of the beginning of the array. - * @param end The index of the end of the array. - */ - subarray(begin?: number, end?: number): Float64Array; - - /** - * Converts a number to a string by using the current locale. - */ - toLocaleString(): string; - - /** - * Returns a string representation of an array. - */ - toString(): string; - - [index: number]: number; -} - -interface Float64ArrayConstructor { - prototype: Float64Array; - new (length: number): Float64Array; - new (array: ArrayLike): Float64Array; - new (buffer: ArrayBuffer, byteOffset?: number, length?: number): Float64Array; - - /** - * The size in bytes of each element in the array. - */ - BYTES_PER_ELEMENT: number; - - /** - * Returns a new array from a set of elements. - * @param items A set of elements to include in the new array object. - */ - of(...items: number[]): Float64Array; - - /** - * Creates an array from an array-like or iterable object. - * @param arrayLike An array-like or iterable object to convert to an array. - * @param mapfn A mapping function to call on every element of the array. - * @param thisArg Value of 'this' used to invoke the mapfn. - */ - from(arrayLike: ArrayLike, mapfn?: (v: number, k: number) => number, thisArg?: any): Float64Array; -} -declare var Float64Array: Float64ArrayConstructor; -///////////////////////////// -/// ECMAScript Internationalization API -///////////////////////////// - -declare namespace Intl { - interface CollatorOptions { - usage?: string; - localeMatcher?: string; - numeric?: boolean; - caseFirst?: string; - sensitivity?: string; - ignorePunctuation?: boolean; - } - - interface ResolvedCollatorOptions { - locale: string; - usage: string; - sensitivity: string; - ignorePunctuation: boolean; - collation: string; - caseFirst: string; - numeric: boolean; - } - - interface Collator { - compare(x: string, y: string): number; - resolvedOptions(): ResolvedCollatorOptions; - } - var Collator: { - new (locales?: string[], options?: CollatorOptions): Collator; - new (locale?: string, options?: CollatorOptions): Collator; - (locales?: string[], options?: CollatorOptions): Collator; - (locale?: string, options?: CollatorOptions): Collator; - supportedLocalesOf(locales: string[], options?: CollatorOptions): string[]; - supportedLocalesOf(locale: string, options?: CollatorOptions): string[]; - } - - interface NumberFormatOptions { - localeMatcher?: string; - style?: string; - compactDisplay?: string; - currency?: string; - currencyDisplay?: string; - unit?: string; - unitDisplay?: string; - useGrouping?: boolean; - minimumIntegerDigits?: number; - minimumFractionDigits?: number; - maximumFractionDigits?: number; - minimumSignificantDigits?: number; - maximumSignificantDigits?: number; - notation?: string; - signDisplay?: string; - } - - interface ResolvedNumberFormatOptions { - locale: string; - numberingSystem: string; - style: string; - compactDisplay?: string; - currency?: string; - currencyDisplay?: string; - unit?: string; - unitDisplay?: string; - minimumIntegerDigits: number; - minimumFractionDigits: number; - maximumFractionDigits: number; - minimumSignificantDigits?: number; - maximumSignificantDigits?: number; - useGrouping: boolean; - notation?: string; - signDisplay?: string; - } - - interface NumberFormat { - format(value: number): string; - resolvedOptions(): ResolvedNumberFormatOptions; - } - var NumberFormat: { - new (locales?: string[], options?: NumberFormatOptions): NumberFormat; - new (locale?: string, options?: NumberFormatOptions): NumberFormat; - (locales?: string[], options?: NumberFormatOptions): NumberFormat; - (locale?: string, options?: NumberFormatOptions): NumberFormat; - supportedLocalesOf(locales: string[], options?: NumberFormatOptions): string[]; - supportedLocalesOf(locale: string, options?: NumberFormatOptions): string[]; - } - - interface DateTimeFormatOptions { - dateStyle?: "full" | "long" | "medium" | "short"; - timeStyle?: "full" | "long" | "medium" | "short"; - calendar?: "buddhist" | "chinese" | " coptic" | "ethiopia" | "ethiopic" | "gregory" | " hebrew" | "indian" | "islamic" | "iso8601" | " japanese" | "persian" | "roc"; - dayPeriod?: "narrow" | "short" | " long"; - numberingSystem?: "arab" | "arabext" | " bali" | "beng" | "deva" | "fullwide" | " gujr" | "guru" | "hanidec" | "khmr" | " knda" | "laoo" | "latn" | "limb" | "mlym" | " mong" | "mymr" | "orya" | "tamldec" | " telu" | "thai" | "tibt"; - localeMatcher?: "best fit" | "lookup"; - timeZone?: string; - hour12?: boolean; - hourCycle?: "h11" | "h12" | "h23" | "h24"; - formatMatcher?: "best fit" | "basic"; - weekday?: "long" | "short" | "narrow"; - era?: "long" | "short" | "narrow"; - year?: "numeric" | "2-digit"; - month?: "numeric" | "2-digit" |"long" | "short" | "narrow"; - day?: "numeric" | "2-digit"; - hour?: "numeric" | "2-digit"; - minute?: "numeric" | "2-digit"; - second?: "numeric" | "2-digit"; - fractionalSecondDigits?: 1 | 2 | 3; - timeZoneName?: "long" | "short"; - } - - interface ResolvedDateTimeFormatOptions { - locale: string; - calendar: string; - numberingSystem: string; - timeZone: string; - hour12?: boolean; - weekday?: string; - era?: string; - year?: string; - month?: string; - day?: string; - hour?: string; - minute?: string; - second?: string; - timeZoneName?: string; - } - - interface DateTimeFormat { - format(date?: Date | number): string; - resolvedOptions(): ResolvedDateTimeFormatOptions; - } - var DateTimeFormat: { - new (locales?: string[], options?: DateTimeFormatOptions): DateTimeFormat; - new (locale?: string, options?: DateTimeFormatOptions): DateTimeFormat; - (locales?: string[], options?: DateTimeFormatOptions): DateTimeFormat; - (locale?: string, options?: DateTimeFormatOptions): DateTimeFormat; - supportedLocalesOf(locales: string[], options?: DateTimeFormatOptions): string[]; - supportedLocalesOf(locale: string, options?: DateTimeFormatOptions): string[]; - } -} - -interface String { - /** - * Determines whether two strings are equivalent in the current locale. - * @param that String to compare to target string - * @param locales An array of locale strings that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used. This parameter must conform to BCP 47 standards; see the Intl.Collator object for details. - * @param options An object that contains one or more properties that specify comparison options. see the Intl.Collator object for details. - */ - localeCompare(that: string, locales: string[], options?: Intl.CollatorOptions): number; - - /** - * Determines whether two strings are equivalent in the current locale. - * @param that String to compare to target string - * @param locale Locale tag. If you omit this parameter, the default locale of the JavaScript runtime is used. This parameter must conform to BCP 47 standards; see the Intl.Collator object for details. - * @param options An object that contains one or more properties that specify comparison options. see the Intl.Collator object for details. - */ - localeCompare(that: string, locale: string, options?: Intl.CollatorOptions): number; -} - -interface Number { - /** - * Converts a number to a string by using the current or specified locale. - * @param locales An array of locale strings that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used. - * @param options An object that contains one or more properties that specify comparison options. - */ - toLocaleString(locales?: string[], options?: Intl.NumberFormatOptions): string; - - /** - * Converts a number to a string by using the current or specified locale. - * @param locale Locale tag. If you omit this parameter, the default locale of the JavaScript runtime is used. - * @param options An object that contains one or more properties that specify comparison options. - */ - toLocaleString(locale?: string, options?: Intl.NumberFormatOptions): string; -} - -interface Date { - /** - * Converts a date and time to a string by using the current or specified locale. - * @param locales An array of locale strings that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used. - * @param options An object that contains one or more properties that specify comparison options. - */ - toLocaleString(locales?: string[], options?: Intl.DateTimeFormatOptions): string; - /** - * Converts a date to a string by using the current or specified locale. - * @param locales An array of locale strings that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used. - * @param options An object that contains one or more properties that specify comparison options. - */ - toLocaleDateString(locales?: string[], options?: Intl.DateTimeFormatOptions): string; - - /** - * Converts a time to a string by using the current or specified locale. - * @param locale Locale tag. If you omit this parameter, the default locale of the JavaScript runtime is used. - * @param options An object that contains one or more properties that specify comparison options. - */ - toLocaleTimeString(locale?: string[], options?: Intl.DateTimeFormatOptions): string; - - /** - * Converts a date and time to a string by using the current or specified locale. - * @param locale Locale tag. If you omit this parameter, the default locale of the JavaScript runtime is used. - * @param options An object that contains one or more properties that specify comparison options. - */ - toLocaleString(locale?: string, options?: Intl.DateTimeFormatOptions): string; - - /** - * Converts a date to a string by using the current or specified locale. - * @param locale Locale tag. If you omit this parameter, the default locale of the JavaScript runtime is used. - * @param options An object that contains one or more properties that specify comparison options. - */ - toLocaleDateString(locale?: string, options?: Intl.DateTimeFormatOptions): string; - - /** - * Converts a time to a string by using the current or specified locale. - * @param locale Locale tag. If you omit this parameter, the default locale of the JavaScript runtime is used. - * @param options An object that contains one or more properties that specify comparison options. - */ - toLocaleTimeString(locale?: string, options?: Intl.DateTimeFormatOptions): string; -} - - -///////////////////////////// -/// IE DOM APIs -///////////////////////////// - -interface Algorithm { - name?: string; -} - -interface AriaRequestEventInit extends EventInit { - attributeName?: string; - attributeValue?: string; -} - -interface ClipboardEventInit extends EventInit { - data?: string; - dataType?: string; -} - -interface CommandEventInit extends EventInit { - commandName?: string; - detail?: string; -} - -interface CompositionEventInit extends UIEventInit { - data?: string; -} - -interface ConfirmSiteSpecificExceptionsInformation extends ExceptionInformation { - arrayOfDomainStrings?: string[]; -} - -interface CustomEventInit extends EventInit { - detail?: any; -} - -interface DeviceAccelerationDict { - x?: number; - y?: number; - z?: number; -} - -interface DeviceRotationRateDict { - alpha?: number; - beta?: number; - gamma?: number; -} - -interface EventInit { - bubbles?: boolean; - cancelable?: boolean; -} - -interface ExceptionInformation { - domain?: string; -} - -interface FocusEventInit extends UIEventInit { - relatedTarget?: EventTarget; -} - -interface HashChangeEventInit extends EventInit { - newURL?: string; - oldURL?: string; -} - -interface KeyAlgorithm { - name?: string; -} - -interface KeyboardEventInit extends SharedKeyboardAndMouseEventInit { - key?: string; - location?: number; - repeat?: boolean; -} - -interface MouseEventInit extends SharedKeyboardAndMouseEventInit { - screenX?: number; - screenY?: number; - clientX?: number; - clientY?: number; - button?: number; - buttons?: number; - relatedTarget?: EventTarget; -} - -interface MsZoomToOptions { - contentX?: number; - contentY?: number; - viewportX?: string; - viewportY?: string; - scaleFactor?: number; - animate?: string; -} - -interface MutationObserverInit { - childList?: boolean; - attributes?: boolean; - characterData?: boolean; - subtree?: boolean; - attributeOldValue?: boolean; - characterDataOldValue?: boolean; - attributeFilter?: string[]; -} - -interface ObjectURLOptions { - oneTimeOnly?: boolean; -} - -interface PointerEventInit extends MouseEventInit { - pointerId?: number; - width?: number; - height?: number; - pressure?: number; - tiltX?: number; - tiltY?: number; - pointerType?: string; - isPrimary?: boolean; -} - -interface PositionOptions { - enableHighAccuracy?: boolean; - timeout?: number; - maximumAge?: number; -} - -interface SharedKeyboardAndMouseEventInit extends UIEventInit { - ctrlKey?: boolean; - shiftKey?: boolean; - altKey?: boolean; - metaKey?: boolean; - keyModifierStateAltGraph?: boolean; - keyModifierStateCapsLock?: boolean; - keyModifierStateFn?: boolean; - keyModifierStateFnLock?: boolean; - keyModifierStateHyper?: boolean; - keyModifierStateNumLock?: boolean; - keyModifierStateOS?: boolean; - keyModifierStateScrollLock?: boolean; - keyModifierStateSuper?: boolean; - keyModifierStateSymbol?: boolean; - keyModifierStateSymbolLock?: boolean; -} - -interface StoreExceptionsInformation extends ExceptionInformation { - siteName?: string; - explanationString?: string; - detailURI?: string; -} - -interface StoreSiteSpecificExceptionsInformation extends StoreExceptionsInformation { - arrayOfDomainStrings?: string[]; -} - -interface UIEventInit extends EventInit { - view?: Window; - detail?: number; -} - -interface WebGLContextAttributes { - alpha?: boolean; - depth?: boolean; - stencil?: boolean; - antialias?: boolean; - premultipliedAlpha?: boolean; - preserveDrawingBuffer?: boolean; -} - -interface WebGLContextEventInit extends EventInit { - statusMessage?: string; -} - -interface WheelEventInit extends MouseEventInit { - deltaX?: number; - deltaY?: number; - deltaZ?: number; - deltaMode?: number; -} - -interface EventListener { - (evt: Event): void; -} - -interface ANGLE_instanced_arrays { - drawArraysInstancedANGLE(mode: number, first: number, count: number, primcount: number): void; - drawElementsInstancedANGLE(mode: number, count: number, type: number, offset: number, primcount: number): void; - vertexAttribDivisorANGLE(index: number, divisor: number): void; - VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE: number; -} - -declare var ANGLE_instanced_arrays: { - prototype: ANGLE_instanced_arrays; - new(): ANGLE_instanced_arrays; - VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE: number; -} - -interface AnalyserNode extends AudioNode { - fftSize: number; - frequencyBinCount: number; - maxDecibels: number; - minDecibels: number; - smoothingTimeConstant: number; - getByteFrequencyData(array: Uint8Array): void; - getByteTimeDomainData(array: Uint8Array): void; - getFloatFrequencyData(array: Float32Array): void; - getFloatTimeDomainData(array: Float32Array): void; -} - -declare var AnalyserNode: { - prototype: AnalyserNode; - new(): AnalyserNode; -} - -interface AnimationEvent extends Event { - animationName: string; - elapsedTime: number; - initAnimationEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, animationNameArg: string, elapsedTimeArg: number): void; -} - -declare var AnimationEvent: { - prototype: AnimationEvent; - new(): AnimationEvent; -} - -interface ApplicationCache extends EventTarget { - oncached: (ev: Event) => any; - onchecking: (ev: Event) => any; - ondownloading: (ev: Event) => any; - onerror: (ev: Event) => any; - onnoupdate: (ev: Event) => any; - onobsolete: (ev: Event) => any; - onprogress: (ev: ProgressEvent) => any; - onupdateready: (ev: Event) => any; - status: number; - abort(): void; - swapCache(): void; - update(): void; - CHECKING: number; - DOWNLOADING: number; - IDLE: number; - OBSOLETE: number; - UNCACHED: number; - UPDATEREADY: number; - addEventListener(type: "cached", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "checking", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "downloading", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "error", listener: (ev: ErrorEvent) => any, useCapture?: boolean): void; - addEventListener(type: "noupdate", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "obsolete", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "progress", listener: (ev: ProgressEvent) => any, useCapture?: boolean): void; - addEventListener(type: "updateready", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; -} - -declare var ApplicationCache: { - prototype: ApplicationCache; - new(): ApplicationCache; - CHECKING: number; - DOWNLOADING: number; - IDLE: number; - OBSOLETE: number; - UNCACHED: number; - UPDATEREADY: number; -} - -interface AriaRequestEvent extends Event { - attributeName: string; - attributeValue: string; -} - -declare var AriaRequestEvent: { - prototype: AriaRequestEvent; - new(type: string, eventInitDict?: AriaRequestEventInit): AriaRequestEvent; -} - -interface Attr extends Node { - name: string; - ownerElement: Element; - specified: boolean; - value: string; -} - -declare var Attr: { - prototype: Attr; - new(): Attr; -} - -interface AudioBuffer { - duration: number; - length: number; - numberOfChannels: number; - sampleRate: number; - getChannelData(channel: number): Float32Array; -} - -declare var AudioBuffer: { - prototype: AudioBuffer; - new(): AudioBuffer; -} - -interface AudioBufferSourceNode extends AudioNode { - buffer: AudioBuffer; - loop: boolean; - loopEnd: number; - loopStart: number; - onended: (ev: Event) => any; - playbackRate: AudioParam; - start(when?: number, offset?: number, duration?: number): void; - stop(when?: number): void; - addEventListener(type: "ended", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; -} - -declare var AudioBufferSourceNode: { - prototype: AudioBufferSourceNode; - new(): AudioBufferSourceNode; -} - -interface AudioContext extends EventTarget { - currentTime: number; - destination: AudioDestinationNode; - listener: AudioListener; - sampleRate: number; - createAnalyser(): AnalyserNode; - createBiquadFilter(): BiquadFilterNode; - createBuffer(numberOfChannels: number, length: number, sampleRate: number): AudioBuffer; - createBufferSource(): AudioBufferSourceNode; - createChannelMerger(numberOfInputs?: number): ChannelMergerNode; - createChannelSplitter(numberOfOutputs?: number): ChannelSplitterNode; - createConvolver(): ConvolverNode; - createDelay(maxDelayTime?: number): DelayNode; - createDynamicsCompressor(): DynamicsCompressorNode; - createGain(): GainNode; - createMediaElementSource(mediaElement: HTMLMediaElement): MediaElementAudioSourceNode; - createOscillator(): OscillatorNode; - createPanner(): PannerNode; - createPeriodicWave(real: Float32Array, imag: Float32Array): PeriodicWave; - createScriptProcessor(bufferSize?: number, numberOfInputChannels?: number, numberOfOutputChannels?: number): ScriptProcessorNode; - createStereoPanner(): StereoPannerNode; - createWaveShaper(): WaveShaperNode; - decodeAudioData(audioData: ArrayBuffer, successCallback: DecodeSuccessCallback, errorCallback?: DecodeErrorCallback): void; -} - -declare var AudioContext: { - prototype: AudioContext; - new(): AudioContext; -} - -interface AudioDestinationNode extends AudioNode { - maxChannelCount: number; -} - -declare var AudioDestinationNode: { - prototype: AudioDestinationNode; - new(): AudioDestinationNode; -} - -interface AudioListener { - dopplerFactor: number; - speedOfSound: number; - setOrientation(x: number, y: number, z: number, xUp: number, yUp: number, zUp: number): void; - setPosition(x: number, y: number, z: number): void; - setVelocity(x: number, y: number, z: number): void; -} - -declare var AudioListener: { - prototype: AudioListener; - new(): AudioListener; -} - -interface AudioNode extends EventTarget { - channelCount: number; - channelCountMode: string; - channelInterpretation: string; - context: AudioContext; - numberOfInputs: number; - numberOfOutputs: number; - connect(destination: AudioNode, output?: number, input?: number): void; - disconnect(output?: number): void; -} - -declare var AudioNode: { - prototype: AudioNode; - new(): AudioNode; -} - -interface AudioParam { - defaultValue: number; - value: number; - cancelScheduledValues(startTime: number): void; - exponentialRampToValueAtTime(value: number, endTime: number): void; - linearRampToValueAtTime(value: number, endTime: number): void; - setTargetAtTime(target: number, startTime: number, timeConstant: number): void; - setValueAtTime(value: number, startTime: number): void; - setValueCurveAtTime(values: Float32Array, startTime: number, duration: number): void; -} - -declare var AudioParam: { - prototype: AudioParam; - new(): AudioParam; -} - -interface AudioProcessingEvent extends Event { - inputBuffer: AudioBuffer; - outputBuffer: AudioBuffer; - playbackTime: number; -} - -declare var AudioProcessingEvent: { - prototype: AudioProcessingEvent; - new(): AudioProcessingEvent; -} - -interface AudioTrack { - enabled: boolean; - id: string; - kind: string; - label: string; - language: string; - sourceBuffer: SourceBuffer; -} - -declare var AudioTrack: { - prototype: AudioTrack; - new(): AudioTrack; -} - -interface AudioTrackList extends EventTarget { - length: number; - onaddtrack: (ev: TrackEvent) => any; - onchange: (ev: Event) => any; - onremovetrack: (ev: TrackEvent) => any; - getTrackById(id: string): AudioTrack; - item(index: number): AudioTrack; - addEventListener(type: "addtrack", listener: (ev: TrackEvent) => any, useCapture?: boolean): void; - addEventListener(type: "change", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "removetrack", listener: (ev: TrackEvent) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; - [index: number]: AudioTrack; -} - -declare var AudioTrackList: { - prototype: AudioTrackList; - new(): AudioTrackList; -} - -interface BarProp { - visible: boolean; -} - -declare var BarProp: { - prototype: BarProp; - new(): BarProp; -} - -interface BeforeUnloadEvent extends Event { - returnValue: any; -} - -declare var BeforeUnloadEvent: { - prototype: BeforeUnloadEvent; - new(): BeforeUnloadEvent; -} - -interface BiquadFilterNode extends AudioNode { - Q: AudioParam; - detune: AudioParam; - frequency: AudioParam; - gain: AudioParam; - type: string; - getFrequencyResponse(frequencyHz: Float32Array, magResponse: Float32Array, phaseResponse: Float32Array): void; -} - -declare var BiquadFilterNode: { - prototype: BiquadFilterNode; - new(): BiquadFilterNode; -} - -interface Blob { - size: number; - type: string; - msClose(): void; - msDetachStream(): any; - slice(start?: number, end?: number, contentType?: string): Blob; -} - -declare var Blob: { - prototype: Blob; - new (blobParts?: any[], options?: BlobPropertyBag): Blob; -} - -interface CDATASection extends Text { -} - -declare var CDATASection: { - prototype: CDATASection; - new(): CDATASection; -} - -interface CSS { - supports(property: string, value?: string): boolean; -} -declare var CSS: CSS; - -interface CSSConditionRule extends CSSGroupingRule { - conditionText: string; -} - -declare var CSSConditionRule: { - prototype: CSSConditionRule; - new(): CSSConditionRule; -} - -interface CSSFontFaceRule extends CSSRule { - style: CSSStyleDeclaration; -} - -declare var CSSFontFaceRule: { - prototype: CSSFontFaceRule; - new(): CSSFontFaceRule; -} - -interface CSSGroupingRule extends CSSRule { - cssRules: CSSRuleList; - deleteRule(index?: number): void; - insertRule(rule: string, index?: number): number; -} - -declare var CSSGroupingRule: { - prototype: CSSGroupingRule; - new(): CSSGroupingRule; -} - -interface CSSImportRule extends CSSRule { - href: string; - media: MediaList; - styleSheet: CSSStyleSheet; -} - -declare var CSSImportRule: { - prototype: CSSImportRule; - new(): CSSImportRule; -} - -interface CSSKeyframeRule extends CSSRule { - keyText: string; - style: CSSStyleDeclaration; -} - -declare var CSSKeyframeRule: { - prototype: CSSKeyframeRule; - new(): CSSKeyframeRule; -} - -interface CSSKeyframesRule extends CSSRule { - cssRules: CSSRuleList; - name: string; - appendRule(rule: string): void; - deleteRule(rule: string): void; - findRule(rule: string): CSSKeyframeRule; -} - -declare var CSSKeyframesRule: { - prototype: CSSKeyframesRule; - new(): CSSKeyframesRule; -} - -interface CSSMediaRule extends CSSConditionRule { - media: MediaList; -} - -declare var CSSMediaRule: { - prototype: CSSMediaRule; - new(): CSSMediaRule; -} - -interface CSSNamespaceRule extends CSSRule { - namespaceURI: string; - prefix: string; -} - -declare var CSSNamespaceRule: { - prototype: CSSNamespaceRule; - new(): CSSNamespaceRule; -} - -interface CSSPageRule extends CSSRule { - pseudoClass: string; - selector: string; - selectorText: string; - style: CSSStyleDeclaration; -} - -declare var CSSPageRule: { - prototype: CSSPageRule; - new(): CSSPageRule; -} - -interface CSSRule { - cssText: string; - parentRule: CSSRule; - parentStyleSheet: CSSStyleSheet; - type: number; - CHARSET_RULE: number; - FONT_FACE_RULE: number; - IMPORT_RULE: number; - KEYFRAMES_RULE: number; - KEYFRAME_RULE: number; - MEDIA_RULE: number; - NAMESPACE_RULE: number; - PAGE_RULE: number; - STYLE_RULE: number; - SUPPORTS_RULE: number; - UNKNOWN_RULE: number; - VIEWPORT_RULE: number; -} - -declare var CSSRule: { - prototype: CSSRule; - new(): CSSRule; - CHARSET_RULE: number; - FONT_FACE_RULE: number; - IMPORT_RULE: number; - KEYFRAMES_RULE: number; - KEYFRAME_RULE: number; - MEDIA_RULE: number; - NAMESPACE_RULE: number; - PAGE_RULE: number; - STYLE_RULE: number; - SUPPORTS_RULE: number; - UNKNOWN_RULE: number; - VIEWPORT_RULE: number; -} - -interface CSSRuleList { - length: number; - item(index: number): CSSRule; - [index: number]: CSSRule; -} - -declare var CSSRuleList: { - prototype: CSSRuleList; - new(): CSSRuleList; -} - -interface CSSStyleDeclaration { - alignContent: string; - alignItems: string; - alignSelf: string; - alignmentBaseline: string; - animation: string; - animationDelay: string; - animationDirection: string; - animationDuration: string; - animationFillMode: string; - animationIterationCount: string; - animationName: string; - animationPlayState: string; - animationTimingFunction: string; - backfaceVisibility: string; - background: string; - backgroundAttachment: string; - backgroundClip: string; - backgroundColor: string; - backgroundImage: string; - backgroundOrigin: string; - backgroundPosition: string; - backgroundPositionX: string; - backgroundPositionY: string; - backgroundRepeat: string; - backgroundSize: string; - baselineShift: string; - border: string; - borderBottom: string; - borderBottomColor: string; - borderBottomLeftRadius: string; - borderBottomRightRadius: string; - borderBottomStyle: string; - borderBottomWidth: string; - borderCollapse: string; - borderColor: string; - borderImage: string; - borderImageOutset: string; - borderImageRepeat: string; - borderImageSlice: string; - borderImageSource: string; - borderImageWidth: string; - borderLeft: string; - borderLeftColor: string; - borderLeftStyle: string; - borderLeftWidth: string; - borderRadius: string; - borderRight: string; - borderRightColor: string; - borderRightStyle: string; - borderRightWidth: string; - borderSpacing: string; - borderStyle: string; - borderTop: string; - borderTopColor: string; - borderTopLeftRadius: string; - borderTopRightRadius: string; - borderTopStyle: string; - borderTopWidth: string; - borderWidth: string; - bottom: string; - boxShadow: string; - boxSizing: string; - breakAfter: string; - breakBefore: string; - breakInside: string; - captionSide: string; - clear: string; - clip: string; - clipPath: string; - clipRule: string; - color: string; - colorInterpolationFilters: string; - columnCount: any; - columnFill: string; - columnGap: any; - columnRule: string; - columnRuleColor: any; - columnRuleStyle: string; - columnRuleWidth: any; - columnSpan: string; - columnWidth: any; - columns: string; - content: string; - counterIncrement: string; - counterReset: string; - cssFloat: string; - cssText: string; - cursor: string; - direction: string; - display: string; - dominantBaseline: string; - emptyCells: string; - enableBackground: string; - fill: string; - fillOpacity: string; - fillRule: string; - filter: string; - flex: string; - flexBasis: string; - flexDirection: string; - flexFlow: string; - flexGrow: string; - flexShrink: string; - flexWrap: string; - floodColor: string; - floodOpacity: string; - font: string; - fontFamily: string; - fontFeatureSettings: string; - fontSize: string; - fontSizeAdjust: string; - fontStretch: string; - fontStyle: string; - fontVariant: string; - fontWeight: string; - glyphOrientationHorizontal: string; - glyphOrientationVertical: string; - height: string; - imeMode: string; - justifyContent: string; - kerning: string; - left: string; - length: number; - letterSpacing: string; - lightingColor: string; - lineHeight: string; - listStyle: string; - listStyleImage: string; - listStylePosition: string; - listStyleType: string; - margin: string; - marginBottom: string; - marginLeft: string; - marginRight: string; - marginTop: string; - marker: string; - markerEnd: string; - markerMid: string; - markerStart: string; - mask: string; - maxHeight: string; - maxWidth: string; - minHeight: string; - minWidth: string; - msContentZoomChaining: string; - msContentZoomLimit: string; - msContentZoomLimitMax: any; - msContentZoomLimitMin: any; - msContentZoomSnap: string; - msContentZoomSnapPoints: string; - msContentZoomSnapType: string; - msContentZooming: string; - msFlowFrom: string; - msFlowInto: string; - msFontFeatureSettings: string; - msGridColumn: any; - msGridColumnAlign: string; - msGridColumnSpan: any; - msGridColumns: string; - msGridRow: any; - msGridRowAlign: string; - msGridRowSpan: any; - msGridRows: string; - msHighContrastAdjust: string; - msHyphenateLimitChars: string; - msHyphenateLimitLines: any; - msHyphenateLimitZone: any; - msHyphens: string; - msImeAlign: string; - msOverflowStyle: string; - msScrollChaining: string; - msScrollLimit: string; - msScrollLimitXMax: any; - msScrollLimitXMin: any; - msScrollLimitYMax: any; - msScrollLimitYMin: any; - msScrollRails: string; - msScrollSnapPointsX: string; - msScrollSnapPointsY: string; - msScrollSnapType: string; - msScrollSnapX: string; - msScrollSnapY: string; - msScrollTranslation: string; - msTextCombineHorizontal: string; - msTextSizeAdjust: any; - msTouchAction: string; - msTouchSelect: string; - msUserSelect: string; - msWrapFlow: string; - msWrapMargin: any; - msWrapThrough: string; - opacity: string; - order: string; - orphans: string; - outline: string; - outlineColor: string; - outlineStyle: string; - outlineWidth: string; - overflow: string; - overflowX: string; - overflowY: string; - padding: string; - paddingBottom: string; - paddingLeft: string; - paddingRight: string; - paddingTop: string; - pageBreakAfter: string; - pageBreakBefore: string; - pageBreakInside: string; - parentRule: CSSRule; - perspective: string; - perspectiveOrigin: string; - pointerEvents: string; - position: string; - quotes: string; - right: string; - rubyAlign: string; - rubyOverhang: string; - rubyPosition: string; - stopColor: string; - stopOpacity: string; - stroke: string; - strokeDasharray: string; - strokeDashoffset: string; - strokeLinecap: string; - strokeLinejoin: string; - strokeMiterlimit: string; - strokeOpacity: string; - strokeWidth: string; - tableLayout: string; - textAlign: string; - textAlignLast: string; - textAnchor: string; - textDecoration: string; - textFillColor: string; - textIndent: string; - textJustify: string; - textKashida: string; - textKashidaSpace: string; - textOverflow: string; - textShadow: string; - textTransform: string; - textUnderlinePosition: string; - top: string; - touchAction: string; - transform: string; - transformOrigin: string; - transformStyle: string; - transition: string; - transitionDelay: string; - transitionDuration: string; - transitionProperty: string; - transitionTimingFunction: string; - unicodeBidi: string; - verticalAlign: string; - visibility: string; - webkitAlignContent: string; - webkitAlignItems: string; - webkitAlignSelf: string; - webkitAnimation: string; - webkitAnimationDelay: string; - webkitAnimationDirection: string; - webkitAnimationDuration: string; - webkitAnimationFillMode: string; - webkitAnimationIterationCount: string; - webkitAnimationName: string; - webkitAnimationPlayState: string; - webkitAnimationTimingFunction: string; - webkitAppearance: string; - webkitBackfaceVisibility: string; - webkitBackground: string; - webkitBackgroundAttachment: string; - webkitBackgroundClip: string; - webkitBackgroundColor: string; - webkitBackgroundImage: string; - webkitBackgroundOrigin: string; - webkitBackgroundPosition: string; - webkitBackgroundPositionX: string; - webkitBackgroundPositionY: string; - webkitBackgroundRepeat: string; - webkitBackgroundSize: string; - webkitBorderBottomLeftRadius: string; - webkitBorderBottomRightRadius: string; - webkitBorderImage: string; - webkitBorderImageOutset: string; - webkitBorderImageRepeat: string; - webkitBorderImageSlice: string; - webkitBorderImageSource: string; - webkitBorderImageWidth: string; - webkitBorderRadius: string; - webkitBorderTopLeftRadius: string; - webkitBorderTopRightRadius: string; - webkitBoxAlign: string; - webkitBoxDirection: string; - webkitBoxFlex: string; - webkitBoxOrdinalGroup: string; - webkitBoxOrient: string; - webkitBoxPack: string; - webkitBoxSizing: string; - webkitColumnBreakAfter: string; - webkitColumnBreakBefore: string; - webkitColumnBreakInside: string; - webkitColumnCount: any; - webkitColumnGap: any; - webkitColumnRule: string; - webkitColumnRuleColor: any; - webkitColumnRuleStyle: string; - webkitColumnRuleWidth: any; - webkitColumnSpan: string; - webkitColumnWidth: any; - webkitColumns: string; - webkitFilter: string; - webkitFlex: string; - webkitFlexBasis: string; - webkitFlexDirection: string; - webkitFlexFlow: string; - webkitFlexGrow: string; - webkitFlexShrink: string; - webkitFlexWrap: string; - webkitJustifyContent: string; - webkitOrder: string; - webkitPerspective: string; - webkitPerspectiveOrigin: string; - webkitTapHighlightColor: string; - webkitTextFillColor: string; - webkitTextSizeAdjust: any; - webkitTransform: string; - webkitTransformOrigin: string; - webkitTransformStyle: string; - webkitTransition: string; - webkitTransitionDelay: string; - webkitTransitionDuration: string; - webkitTransitionProperty: string; - webkitTransitionTimingFunction: string; - webkitUserSelect: string; - webkitWritingMode: string; - whiteSpace: string; - widows: string; - width: string; - wordBreak: string; - wordSpacing: string; - wordWrap: string; - writingMode: string; - zIndex: string; - zoom: string; - getPropertyPriority(propertyName: string): string; - getPropertyValue(propertyName: string): string; - item(index: number): string; - removeProperty(propertyName: string): string; - setProperty(propertyName: string, value: string, priority?: string): void; - [index: number]: string; -} - -declare var CSSStyleDeclaration: { - prototype: CSSStyleDeclaration; - new(): CSSStyleDeclaration; -} - -interface CSSStyleRule extends CSSRule { - readOnly: boolean; - selectorText: string; - style: CSSStyleDeclaration; -} - -declare var CSSStyleRule: { - prototype: CSSStyleRule; - new(): CSSStyleRule; -} - -interface CSSStyleSheet extends StyleSheet { - cssRules: CSSRuleList; - cssText: string; - href: string; - id: string; - imports: StyleSheetList; - isAlternate: boolean; - isPrefAlternate: boolean; - ownerRule: CSSRule; - owningElement: Element; - pages: StyleSheetPageList; - readOnly: boolean; - rules: CSSRuleList; - addImport(bstrURL: string, lIndex?: number): number; - addPageRule(bstrSelector: string, bstrStyle: string, lIndex?: number): number; - addRule(bstrSelector: string, bstrStyle?: string, lIndex?: number): number; - deleteRule(index?: number): void; - insertRule(rule: string, index?: number): number; - removeImport(lIndex: number): void; - removeRule(lIndex: number): void; -} - -declare var CSSStyleSheet: { - prototype: CSSStyleSheet; - new(): CSSStyleSheet; -} - -interface CSSSupportsRule extends CSSConditionRule { -} - -declare var CSSSupportsRule: { - prototype: CSSSupportsRule; - new(): CSSSupportsRule; -} - -interface CanvasGradient { - addColorStop(offset: number, color: string): void; -} - -declare var CanvasGradient: { - prototype: CanvasGradient; - new(): CanvasGradient; -} - -interface CanvasPattern { -} - -declare var CanvasPattern: { - prototype: CanvasPattern; - new(): CanvasPattern; -} - -interface CanvasRenderingContext2D { - canvas: HTMLCanvasElement; - fillStyle: string | CanvasGradient | CanvasPattern; - font: string; - globalAlpha: number; - globalCompositeOperation: string; - lineCap: string; - lineDashOffset: number; - lineJoin: string; - lineWidth: number; - miterLimit: number; - msFillRule: string; - msImageSmoothingEnabled: boolean; - shadowBlur: number; - shadowColor: string; - shadowOffsetX: number; - shadowOffsetY: number; - strokeStyle: string | CanvasGradient | CanvasPattern; - textAlign: string; - textBaseline: string; - arc(x: number, y: number, radius: number, startAngle: number, endAngle: number, anticlockwise?: boolean): void; - arcTo(x1: number, y1: number, x2: number, y2: number, radius: number): void; - beginPath(): void; - bezierCurveTo(cp1x: number, cp1y: number, cp2x: number, cp2y: number, x: number, y: number): void; - clearRect(x: number, y: number, w: number, h: number): void; - clip(fillRule?: string): void; - closePath(): void; - createImageData(imageDataOrSw: number | ImageData, sh?: number): ImageData; - createLinearGradient(x0: number, y0: number, x1: number, y1: number): CanvasGradient; - createPattern(image: HTMLImageElement | HTMLCanvasElement | HTMLVideoElement, repetition: string): CanvasPattern; - createRadialGradient(x0: number, y0: number, r0: number, x1: number, y1: number, r1: number): CanvasGradient; - drawImage(image: HTMLImageElement | HTMLCanvasElement | HTMLVideoElement, offsetX: number, offsetY: number, width?: number, height?: number, canvasOffsetX?: number, canvasOffsetY?: number, canvasImageWidth?: number, canvasImageHeight?: number): void; - fill(fillRule?: string): void; - fillRect(x: number, y: number, w: number, h: number): void; - fillText(text: string, x: number, y: number, maxWidth?: number): void; - getImageData(sx: number, sy: number, sw: number, sh: number): ImageData; - getLineDash(): number[]; - isPointInPath(x: number, y: number, fillRule?: string): boolean; - lineTo(x: number, y: number): void; - measureText(text: string): TextMetrics; - moveTo(x: number, y: number): void; - putImageData(imagedata: ImageData, dx: number, dy: number, dirtyX?: number, dirtyY?: number, dirtyWidth?: number, dirtyHeight?: number): void; - quadraticCurveTo(cpx: number, cpy: number, x: number, y: number): void; - rect(x: number, y: number, w: number, h: number): void; - restore(): void; - rotate(angle: number): void; - save(): void; - scale(x: number, y: number): void; - setLineDash(segments: number[]): void; - setTransform(m11: number, m12: number, m21: number, m22: number, dx: number, dy: number): void; - stroke(): void; - strokeRect(x: number, y: number, w: number, h: number): void; - strokeText(text: string, x: number, y: number, maxWidth?: number): void; - transform(m11: number, m12: number, m21: number, m22: number, dx: number, dy: number): void; - translate(x: number, y: number): void; -} - -declare var CanvasRenderingContext2D: { - prototype: CanvasRenderingContext2D; - new(): CanvasRenderingContext2D; -} - -interface ChannelMergerNode extends AudioNode { -} - -declare var ChannelMergerNode: { - prototype: ChannelMergerNode; - new(): ChannelMergerNode; -} - -interface ChannelSplitterNode extends AudioNode { -} - -declare var ChannelSplitterNode: { - prototype: ChannelSplitterNode; - new(): ChannelSplitterNode; -} - -interface CharacterData extends Node, ChildNode { - data: string; - length: number; - appendData(arg: string): void; - deleteData(offset: number, count: number): void; - insertData(offset: number, arg: string): void; - replaceData(offset: number, count: number, arg: string): void; - substringData(offset: number, count: number): string; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; -} - -declare var CharacterData: { - prototype: CharacterData; - new(): CharacterData; -} - -interface ClientRect { - bottom: number; - height: number; - left: number; - right: number; - top: number; - width: number; -} - -declare var ClientRect: { - prototype: ClientRect; - new(): ClientRect; -} - -interface ClientRectList { - length: number; - item(index: number): ClientRect; - [index: number]: ClientRect; -} - -declare var ClientRectList: { - prototype: ClientRectList; - new(): ClientRectList; -} - -interface ClipboardEvent extends Event { - clipboardData: DataTransfer; -} - -declare var ClipboardEvent: { - prototype: ClipboardEvent; - new(type: string, eventInitDict?: ClipboardEventInit): ClipboardEvent; -} - -interface CloseEvent extends Event { - code: number; - reason: string; - wasClean: boolean; - initCloseEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, wasCleanArg: boolean, codeArg: number, reasonArg: string): void; -} - -declare var CloseEvent: { - prototype: CloseEvent; - new(): CloseEvent; -} - -interface CommandEvent extends Event { - commandName: string; - detail: string; -} - -declare var CommandEvent: { - prototype: CommandEvent; - new(type: string, eventInitDict?: CommandEventInit): CommandEvent; -} - -interface Comment extends CharacterData { - text: string; -} - -declare var Comment: { - prototype: Comment; - new(): Comment; -} - -interface CompositionEvent extends UIEvent { - data: string; - locale: string; - initCompositionEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, viewArg: Window, dataArg: string, locale: string): void; -} - -declare var CompositionEvent: { - prototype: CompositionEvent; - new(typeArg: string, eventInitDict?: CompositionEventInit): CompositionEvent; -} - -interface Console { - assert(test?: boolean, message?: string, ...optionalParams: any[]): void; - clear(): void; - count(countTitle?: string): void; - debug(message?: string, ...optionalParams: any[]): void; - dir(value?: any, ...optionalParams: any[]): void; - dirxml(value: any): void; - error(message?: any, ...optionalParams: any[]): void; - group(groupTitle?: string): void; - groupCollapsed(groupTitle?: string): void; - groupEnd(): void; - info(message?: any, ...optionalParams: any[]): void; - log(message?: any, ...optionalParams: any[]): void; - msIsIndependentlyComposed(element: Element): boolean; - profile(reportName?: string): void; - profileEnd(): void; - select(element: Element): void; - time(timerName?: string): void; - timeEnd(timerName?: string): void; - trace(): void; - warn(message?: any, ...optionalParams: any[]): void; -} - -declare var Console: { - prototype: Console; - new(): Console; -} - -interface ConvolverNode extends AudioNode { - buffer: AudioBuffer; - normalize: boolean; -} - -declare var ConvolverNode: { - prototype: ConvolverNode; - new(): ConvolverNode; -} - -interface Coordinates { - accuracy: number; - altitude: number; - altitudeAccuracy: number; - heading: number; - latitude: number; - longitude: number; - speed: number; -} - -declare var Coordinates: { - prototype: Coordinates; - new(): Coordinates; -} - -interface Crypto extends Object, RandomSource { - subtle: SubtleCrypto; -} - -declare var Crypto: { - prototype: Crypto; - new(): Crypto; -} - -interface CryptoKey { - algorithm: KeyAlgorithm; - extractable: boolean; - type: string; - usages: string[]; -} - -declare var CryptoKey: { - prototype: CryptoKey; - new(): CryptoKey; -} - -interface CryptoKeyPair { - privateKey: CryptoKey; - publicKey: CryptoKey; -} - -declare var CryptoKeyPair: { - prototype: CryptoKeyPair; - new(): CryptoKeyPair; -} - -interface CustomEvent extends Event { - detail: any; - initCustomEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, detailArg: any): void; -} - -declare var CustomEvent: { - prototype: CustomEvent; - new(typeArg: string, eventInitDict?: CustomEventInit): CustomEvent; -} - -interface DOMError { - name: string; - toString(): string; -} - -declare var DOMError: { - prototype: DOMError; - new(): DOMError; -} - -interface DOMException { - code: number; - message: string; - name: string; - toString(): string; - ABORT_ERR: number; - DATA_CLONE_ERR: number; - DOMSTRING_SIZE_ERR: number; - HIERARCHY_REQUEST_ERR: number; - INDEX_SIZE_ERR: number; - INUSE_ATTRIBUTE_ERR: number; - INVALID_ACCESS_ERR: number; - INVALID_CHARACTER_ERR: number; - INVALID_MODIFICATION_ERR: number; - INVALID_NODE_TYPE_ERR: number; - INVALID_STATE_ERR: number; - NAMESPACE_ERR: number; - NETWORK_ERR: number; - NOT_FOUND_ERR: number; - NOT_SUPPORTED_ERR: number; - NO_DATA_ALLOWED_ERR: number; - NO_MODIFICATION_ALLOWED_ERR: number; - PARSE_ERR: number; - QUOTA_EXCEEDED_ERR: number; - SECURITY_ERR: number; - SERIALIZE_ERR: number; - SYNTAX_ERR: number; - TIMEOUT_ERR: number; - TYPE_MISMATCH_ERR: number; - URL_MISMATCH_ERR: number; - VALIDATION_ERR: number; - WRONG_DOCUMENT_ERR: number; -} - -declare var DOMException: { - prototype: DOMException; - new(): DOMException; - ABORT_ERR: number; - DATA_CLONE_ERR: number; - DOMSTRING_SIZE_ERR: number; - HIERARCHY_REQUEST_ERR: number; - INDEX_SIZE_ERR: number; - INUSE_ATTRIBUTE_ERR: number; - INVALID_ACCESS_ERR: number; - INVALID_CHARACTER_ERR: number; - INVALID_MODIFICATION_ERR: number; - INVALID_NODE_TYPE_ERR: number; - INVALID_STATE_ERR: number; - NAMESPACE_ERR: number; - NETWORK_ERR: number; - NOT_FOUND_ERR: number; - NOT_SUPPORTED_ERR: number; - NO_DATA_ALLOWED_ERR: number; - NO_MODIFICATION_ALLOWED_ERR: number; - PARSE_ERR: number; - QUOTA_EXCEEDED_ERR: number; - SECURITY_ERR: number; - SERIALIZE_ERR: number; - SYNTAX_ERR: number; - TIMEOUT_ERR: number; - TYPE_MISMATCH_ERR: number; - URL_MISMATCH_ERR: number; - VALIDATION_ERR: number; - WRONG_DOCUMENT_ERR: number; -} - -interface DOMImplementation { - createDocument(namespaceURI: string, qualifiedName: string, doctype: DocumentType): Document; - createDocumentType(qualifiedName: string, publicId: string, systemId: string): DocumentType; - createHTMLDocument(title: string): Document; - hasFeature(feature: string, version: string): boolean; -} - -declare var DOMImplementation: { - prototype: DOMImplementation; - new(): DOMImplementation; -} - -interface DOMParser { - parseFromString(source: string, mimeType: string): Document; -} - -declare var DOMParser: { - prototype: DOMParser; - new(): DOMParser; -} - -interface DOMSettableTokenList extends DOMTokenList { - value: string; -} - -declare var DOMSettableTokenList: { - prototype: DOMSettableTokenList; - new(): DOMSettableTokenList; -} - -interface DOMStringList { - length: number; - contains(str: string): boolean; - item(index: number): string; - [index: number]: string; -} - -declare var DOMStringList: { - prototype: DOMStringList; - new(): DOMStringList; -} - -interface DOMStringMap { - [name: string]: string; -} - -declare var DOMStringMap: { - prototype: DOMStringMap; - new(): DOMStringMap; -} - -interface DOMTokenList { - length: number; - add(...token: string[]): void; - contains(token: string): boolean; - item(index: number): string; - remove(...token: string[]): void; - toString(): string; - toggle(token: string, force?: boolean): boolean; - [index: number]: string; -} - -declare var DOMTokenList: { - prototype: DOMTokenList; - new(): DOMTokenList; -} - -interface DataCue extends TextTrackCue { - data: ArrayBuffer; -} - -declare var DataCue: { - prototype: DataCue; - new(): DataCue; -} - -interface DataTransfer { - dropEffect: string; - effectAllowed: string; - files: FileList; - items: DataTransferItemList; - types: DOMStringList; - clearData(format?: string): boolean; - getData(format: string): string; - setData(format: string, data: string): boolean; -} - -declare var DataTransfer: { - prototype: DataTransfer; - new(): DataTransfer; -} - -interface DataTransferItem { - kind: string; - type: string; - getAsFile(): File; - getAsString(_callback: FunctionStringCallback): void; -} - -declare var DataTransferItem: { - prototype: DataTransferItem; - new(): DataTransferItem; -} - -interface DataTransferItemList { - length: number; - add(data: File): DataTransferItem; - clear(): void; - item(index: number): File; - remove(index: number): void; - [index: number]: File; -} - -declare var DataTransferItemList: { - prototype: DataTransferItemList; - new(): DataTransferItemList; -} - -interface DeferredPermissionRequest { - id: number; - type: string; - uri: string; - allow(): void; - deny(): void; -} - -declare var DeferredPermissionRequest: { - prototype: DeferredPermissionRequest; - new(): DeferredPermissionRequest; -} - -interface DelayNode extends AudioNode { - delayTime: AudioParam; -} - -declare var DelayNode: { - prototype: DelayNode; - new(): DelayNode; -} - -interface DeviceAcceleration { - x: number; - y: number; - z: number; -} - -declare var DeviceAcceleration: { - prototype: DeviceAcceleration; - new(): DeviceAcceleration; -} - -interface DeviceMotionEvent extends Event { - acceleration: DeviceAcceleration; - accelerationIncludingGravity: DeviceAcceleration; - interval: number; - rotationRate: DeviceRotationRate; - initDeviceMotionEvent(type: string, bubbles: boolean, cancelable: boolean, acceleration: DeviceAccelerationDict, accelerationIncludingGravity: DeviceAccelerationDict, rotationRate: DeviceRotationRateDict, interval: number): void; -} - -declare var DeviceMotionEvent: { - prototype: DeviceMotionEvent; - new(): DeviceMotionEvent; -} - -interface DeviceOrientationEvent extends Event { - absolute: boolean; - alpha: number; - beta: number; - gamma: number; - initDeviceOrientationEvent(type: string, bubbles: boolean, cancelable: boolean, alpha: number, beta: number, gamma: number, absolute: boolean): void; -} - -declare var DeviceOrientationEvent: { - prototype: DeviceOrientationEvent; - new(): DeviceOrientationEvent; -} - -interface DeviceRotationRate { - alpha: number; - beta: number; - gamma: number; -} - -declare var DeviceRotationRate: { - prototype: DeviceRotationRate; - new(): DeviceRotationRate; -} - -interface Document extends Node, GlobalEventHandlers, NodeSelector, DocumentEvent { - /** - * Sets or gets the URL for the current document. - */ - URL: string; - /** - * Gets the URL for the document, stripped of any character encoding. - */ - URLUnencoded: string; - /** - * Gets the object that has the focus when the parent document has focus. - */ - activeElement: Element; - /** - * Sets or gets the color of all active links in the document. - */ - alinkColor: string; - /** - * Returns a reference to the collection of elements contained by the object. - */ - all: HTMLCollection; - /** - * Retrieves a collection of all a objects that have a name and/or id property. Objects in this collection are in HTML source order. - */ - anchors: HTMLCollection; - /** - * Retrieves a collection of all applet objects in the document. - */ - applets: HTMLCollection; - /** - * Deprecated. Sets or retrieves a value that indicates the background color behind the object. - */ - bgColor: string; - /** - * Specifies the beginning and end of the document body. - */ - body: HTMLElement; - characterSet: string; - /** - * Gets or sets the character set used to encode the object. - */ - charset: string; - /** - * Gets a value that indicates whether standards-compliant mode is switched on for the object. - */ - compatMode: string; - cookie: string; - /** - * Gets the default character set from the current regional language settings. - */ - defaultCharset: string; - defaultView: Window; - /** - * Sets or gets a value that indicates whether the document can be edited. - */ - designMode: string; - /** - * Sets or retrieves a value that indicates the reading order of the object. - */ - dir: string; - /** - * Gets an object representing the document type declaration associated with the current document. - */ - doctype: DocumentType; - /** - * Gets a reference to the root node of the document. - */ - documentElement: HTMLElement; - /** - * Sets or gets the security domain of the document. - */ - domain: string; - /** - * Retrieves a collection of all embed objects in the document. - */ - embeds: HTMLCollection; - /** - * Sets or gets the foreground (text) color of the document. - */ - fgColor: string; - /** - * Retrieves a collection, in source order, of all form objects in the document. - */ - forms: HTMLCollection; - fullscreenElement: Element; - fullscreenEnabled: boolean; - head: HTMLHeadElement; - hidden: boolean; - /** - * Retrieves a collection, in source order, of img objects in the document. - */ - images: HTMLCollection; - /** - * Gets the implementation object of the current document. - */ - implementation: DOMImplementation; - /** - * Returns the character encoding used to create the webpage that is loaded into the document object. - */ - inputEncoding: string; - /** - * Gets the date that the page was last modified, if the page supplies one. - */ - lastModified: string; - /** - * Sets or gets the color of the document links. - */ - linkColor: string; - /** - * Retrieves a collection of all a objects that specify the href property and all area objects in the document. - */ - links: HTMLCollection; - /** - * Contains information about the current URL. - */ - location: Location; - media: string; - msCSSOMElementFloatMetrics: boolean; - msCapsLockWarningOff: boolean; - msHidden: boolean; - msVisibilityState: string; - /** - * Fires when the user aborts the download. - * @param ev The event. - */ - onabort: (ev: Event) => any; - /** - * Fires when the object is set as the active element. - * @param ev The event. - */ - onactivate: (ev: UIEvent) => any; - /** - * Fires immediately before the object is set as the active element. - * @param ev The event. - */ - onbeforeactivate: (ev: UIEvent) => any; - /** - * Fires immediately before the activeElement is changed from the current object to another object in the parent document. - * @param ev The event. - */ - onbeforedeactivate: (ev: UIEvent) => any; - /** - * Fires when the object loses the input focus. - * @param ev The focus event. - */ - onblur: (ev: FocusEvent) => any; - /** - * Occurs when playback is possible, but would require further buffering. - * @param ev The event. - */ - oncanplay: (ev: Event) => any; - oncanplaythrough: (ev: Event) => any; - /** - * Fires when the contents of the object or selection have changed. - * @param ev The event. - */ - onchange: (ev: Event) => any; - /** - * Fires when the user clicks the left mouse button on the object - * @param ev The mouse event. - */ - onclick: (ev: MouseEvent) => any; - /** - * Fires when the user clicks the right mouse button in the client area, opening the context menu. - * @param ev The mouse event. - */ - oncontextmenu: (ev: PointerEvent) => any; - /** - * Fires when the user double-clicks the object. - * @param ev The mouse event. - */ - ondblclick: (ev: MouseEvent) => any; - /** - * Fires when the activeElement is changed from the current object to another object in the parent document. - * @param ev The UI Event - */ - ondeactivate: (ev: UIEvent) => any; - /** - * Fires on the source object continuously during a drag operation. - * @param ev The event. - */ - ondrag: (ev: DragEvent) => any; - /** - * Fires on the source object when the user releases the mouse at the close of a drag operation. - * @param ev The event. - */ - ondragend: (ev: DragEvent) => any; - /** - * Fires on the target element when the user drags the object to a valid drop target. - * @param ev The drag event. - */ - ondragenter: (ev: DragEvent) => any; - /** - * Fires on the target object when the user moves the mouse out of a valid drop target during a drag operation. - * @param ev The drag event. - */ - ondragleave: (ev: DragEvent) => any; - /** - * Fires on the target element continuously while the user drags the object over a valid drop target. - * @param ev The event. - */ - ondragover: (ev: DragEvent) => any; - /** - * Fires on the source object when the user starts to drag a text selection or selected object. - * @param ev The event. - */ - ondragstart: (ev: DragEvent) => any; - ondrop: (ev: DragEvent) => any; - /** - * Occurs when the duration attribute is updated. - * @param ev The event. - */ - ondurationchange: (ev: Event) => any; - /** - * Occurs when the media element is reset to its initial state. - * @param ev The event. - */ - onemptied: (ev: Event) => any; - /** - * Occurs when the end of playback is reached. - * @param ev The event - */ - onended: (ev: Event) => any; - /** - * Fires when an error occurs during object loading. - * @param ev The event. - */ - onerror: (ev: Event) => any; - /** - * Fires when the object receives focus. - * @param ev The event. - */ - onfocus: (ev: FocusEvent) => any; - onfullscreenchange: (ev: Event) => any; - onfullscreenerror: (ev: Event) => any; - oninput: (ev: Event) => any; - /** - * Fires when the user presses a key. - * @param ev The keyboard event - */ - onkeydown: (ev: KeyboardEvent) => any; - /** - * Fires when the user presses an alphanumeric key. - * @param ev The event. - */ - onkeypress: (ev: KeyboardEvent) => any; - /** - * Fires when the user releases a key. - * @param ev The keyboard event - */ - onkeyup: (ev: KeyboardEvent) => any; - /** - * Fires immediately after the browser loads the object. - * @param ev The event. - */ - onload: (ev: Event) => any; - /** - * Occurs when media data is loaded at the current playback position. - * @param ev The event. - */ - onloadeddata: (ev: Event) => any; - /** - * Occurs when the duration and dimensions of the media have been determined. - * @param ev The event. - */ - onloadedmetadata: (ev: Event) => any; - /** - * Occurs when Internet Explorer begins looking for media data. - * @param ev The event. - */ - onloadstart: (ev: Event) => any; - /** - * Fires when the user clicks the object with either mouse button. - * @param ev The mouse event. - */ - onmousedown: (ev: MouseEvent) => any; - /** - * Fires when the user moves the mouse over the object. - * @param ev The mouse event. - */ - onmousemove: (ev: MouseEvent) => any; - /** - * Fires when the user moves the mouse pointer outside the boundaries of the object. - * @param ev The mouse event. - */ - onmouseout: (ev: MouseEvent) => any; - /** - * Fires when the user moves the mouse pointer into the object. - * @param ev The mouse event. - */ - onmouseover: (ev: MouseEvent) => any; - /** - * Fires when the user releases a mouse button while the mouse is over the object. - * @param ev The mouse event. - */ - onmouseup: (ev: MouseEvent) => any; - /** - * Fires when the wheel button is rotated. - * @param ev The mouse event - */ - onmousewheel: (ev: MouseWheelEvent) => any; - onmscontentzoom: (ev: UIEvent) => any; - onmsgesturechange: (ev: MSGestureEvent) => any; - onmsgesturedoubletap: (ev: MSGestureEvent) => any; - onmsgestureend: (ev: MSGestureEvent) => any; - onmsgesturehold: (ev: MSGestureEvent) => any; - onmsgesturestart: (ev: MSGestureEvent) => any; - onmsgesturetap: (ev: MSGestureEvent) => any; - onmsinertiastart: (ev: MSGestureEvent) => any; - onmsmanipulationstatechanged: (ev: MSManipulationEvent) => any; - onmspointercancel: (ev: MSPointerEvent) => any; - onmspointerdown: (ev: MSPointerEvent) => any; - onmspointerenter: (ev: MSPointerEvent) => any; - onmspointerleave: (ev: MSPointerEvent) => any; - onmspointermove: (ev: MSPointerEvent) => any; - onmspointerout: (ev: MSPointerEvent) => any; - onmspointerover: (ev: MSPointerEvent) => any; - onmspointerup: (ev: MSPointerEvent) => any; - /** - * Occurs when an item is removed from a Jump List of a webpage running in Site Mode. - * @param ev The event. - */ - onmssitemodejumplistitemremoved: (ev: MSSiteModeEvent) => any; - /** - * Occurs when a user clicks a button in a Thumbnail Toolbar of a webpage running in Site Mode. - * @param ev The event. - */ - onmsthumbnailclick: (ev: MSSiteModeEvent) => any; - /** - * Occurs when playback is paused. - * @param ev The event. - */ - onpause: (ev: Event) => any; - /** - * Occurs when the play method is requested. - * @param ev The event. - */ - onplay: (ev: Event) => any; - /** - * Occurs when the audio or video has started playing. - * @param ev The event. - */ - onplaying: (ev: Event) => any; - onpointerlockchange: (ev: Event) => any; - onpointerlockerror: (ev: Event) => any; - /** - * Occurs to indicate progress while downloading media data. - * @param ev The event. - */ - onprogress: (ev: ProgressEvent) => any; - /** - * Occurs when the playback rate is increased or decreased. - * @param ev The event. - */ - onratechange: (ev: Event) => any; - /** - * Fires when the state of the object has changed. - * @param ev The event - */ - onreadystatechange: (ev: ProgressEvent) => any; - /** - * Fires when the user resets a form. - * @param ev The event. - */ - onreset: (ev: Event) => any; - /** - * Fires when the user repositions the scroll box in the scroll bar on the object. - * @param ev The event. - */ - onscroll: (ev: UIEvent) => any; - /** - * Occurs when the seek operation ends. - * @param ev The event. - */ - onseeked: (ev: Event) => any; - /** - * Occurs when the current playback position is moved. - * @param ev The event. - */ - onseeking: (ev: Event) => any; - /** - * Fires when the current selection changes. - * @param ev The event. - */ - onselect: (ev: UIEvent) => any; - onselectstart: (ev: Event) => any; - /** - * Occurs when the download has stopped. - * @param ev The event. - */ - onstalled: (ev: Event) => any; - /** - * Fires when the user clicks the Stop button or leaves the Web page. - * @param ev The event. - */ - onstop: (ev: Event) => any; - onsubmit: (ev: Event) => any; - /** - * Occurs if the load operation has been intentionally halted. - * @param ev The event. - */ - onsuspend: (ev: Event) => any; - /** - * Occurs to indicate the current playback position. - * @param ev The event. - */ - ontimeupdate: (ev: Event) => any; - ontouchcancel: (ev: TouchEvent) => any; - ontouchend: (ev: TouchEvent) => any; - ontouchmove: (ev: TouchEvent) => any; - ontouchstart: (ev: TouchEvent) => any; - /** - * Occurs when the volume is changed, or playback is muted or unmuted. - * @param ev The event. - */ - onvolumechange: (ev: Event) => any; - /** - * Occurs when playback stops because the next frame of a video resource is not available. - * @param ev The event. - */ - onwaiting: (ev: Event) => any; - onwebkitfullscreenchange: (ev: Event) => any; - onwebkitfullscreenerror: (ev: Event) => any; - plugins: HTMLCollection; - pointerLockElement: Element; - /** - * Retrieves a value that indicates the current state of the object. - */ - readyState: string; - /** - * Gets the URL of the location that referred the user to the current page. - */ - referrer: string; - /** - * Gets the root svg element in the document hierarchy. - */ - rootElement: SVGSVGElement; - /** - * Retrieves a collection of all script objects in the document. - */ - scripts: HTMLCollection; - security: string; - /** - * Retrieves a collection of styleSheet objects representing the style sheets that correspond to each instance of a link or style object in the document. - */ - styleSheets: StyleSheetList; - /** - * Contains the title of the document. - */ - title: string; - visibilityState: string; - /** - * Sets or gets the color of the links that the user has visited. - */ - vlinkColor: string; - webkitCurrentFullScreenElement: Element; - webkitFullscreenElement: Element; - webkitFullscreenEnabled: boolean; - webkitIsFullScreen: boolean; - xmlEncoding: string; - xmlStandalone: boolean; - /** - * Gets or sets the version attribute specified in the declaration of an XML document. - */ - xmlVersion: string; - adoptNode(source: Node): Node; - captureEvents(): void; - clear(): void; - /** - * Closes an output stream and forces the sent data to display. - */ - close(): void; - /** - * Creates an attribute object with a specified name. - * @param name String that sets the attribute object's name. - */ - createAttribute(name: string): Attr; - createAttributeNS(namespaceURI: string, qualifiedName: string): Attr; - createCDATASection(data: string): CDATASection; - /** - * Creates a comment object with the specified data. - * @param data Sets the comment object's data. - */ - createComment(data: string): Comment; - /** - * Creates a new document. - */ - createDocumentFragment(): DocumentFragment; - /** - * Creates an instance of the element for the specified tag. - * @param tagName The name of an element. - */ - createElement(tagName: "a"): HTMLAnchorElement; - createElement(tagName: "abbr"): HTMLPhraseElement; - createElement(tagName: "acronym"): HTMLPhraseElement; - createElement(tagName: "address"): HTMLBlockElement; - createElement(tagName: "applet"): HTMLAppletElement; - createElement(tagName: "area"): HTMLAreaElement; - createElement(tagName: "audio"): HTMLAudioElement; - createElement(tagName: "b"): HTMLPhraseElement; - createElement(tagName: "base"): HTMLBaseElement; - createElement(tagName: "basefont"): HTMLBaseFontElement; - createElement(tagName: "bdo"): HTMLPhraseElement; - createElement(tagName: "big"): HTMLPhraseElement; - createElement(tagName: "blockquote"): HTMLBlockElement; - createElement(tagName: "body"): HTMLBodyElement; - createElement(tagName: "br"): HTMLBRElement; - createElement(tagName: "button"): HTMLButtonElement; - createElement(tagName: "canvas"): HTMLCanvasElement; - createElement(tagName: "caption"): HTMLTableCaptionElement; - createElement(tagName: "center"): HTMLBlockElement; - createElement(tagName: "cite"): HTMLPhraseElement; - createElement(tagName: "code"): HTMLPhraseElement; - createElement(tagName: "col"): HTMLTableColElement; - createElement(tagName: "colgroup"): HTMLTableColElement; - createElement(tagName: "datalist"): HTMLDataListElement; - createElement(tagName: "dd"): HTMLDDElement; - createElement(tagName: "del"): HTMLModElement; - createElement(tagName: "dfn"): HTMLPhraseElement; - createElement(tagName: "dir"): HTMLDirectoryElement; - createElement(tagName: "div"): HTMLDivElement; - createElement(tagName: "dl"): HTMLDListElement; - createElement(tagName: "dt"): HTMLDTElement; - createElement(tagName: "em"): HTMLPhraseElement; - createElement(tagName: "embed"): HTMLEmbedElement; - createElement(tagName: "fieldset"): HTMLFieldSetElement; - createElement(tagName: "font"): HTMLFontElement; - createElement(tagName: "form"): HTMLFormElement; - createElement(tagName: "frame"): HTMLFrameElement; - createElement(tagName: "frameset"): HTMLFrameSetElement; - createElement(tagName: "h1"): HTMLHeadingElement; - createElement(tagName: "h2"): HTMLHeadingElement; - createElement(tagName: "h3"): HTMLHeadingElement; - createElement(tagName: "h4"): HTMLHeadingElement; - createElement(tagName: "h5"): HTMLHeadingElement; - createElement(tagName: "h6"): HTMLHeadingElement; - createElement(tagName: "head"): HTMLHeadElement; - createElement(tagName: "hr"): HTMLHRElement; - createElement(tagName: "html"): HTMLHtmlElement; - createElement(tagName: "i"): HTMLPhraseElement; - createElement(tagName: "iframe"): HTMLIFrameElement; - createElement(tagName: "img"): HTMLImageElement; - createElement(tagName: "input"): HTMLInputElement; - createElement(tagName: "ins"): HTMLModElement; - createElement(tagName: "isindex"): HTMLIsIndexElement; - createElement(tagName: "kbd"): HTMLPhraseElement; - createElement(tagName: "keygen"): HTMLBlockElement; - createElement(tagName: "label"): HTMLLabelElement; - createElement(tagName: "legend"): HTMLLegendElement; - createElement(tagName: "li"): HTMLLIElement; - createElement(tagName: "link"): HTMLLinkElement; - createElement(tagName: "listing"): HTMLBlockElement; - createElement(tagName: "map"): HTMLMapElement; - createElement(tagName: "marquee"): HTMLMarqueeElement; - createElement(tagName: "menu"): HTMLMenuElement; - createElement(tagName: "meta"): HTMLMetaElement; - createElement(tagName: "nextid"): HTMLNextIdElement; - createElement(tagName: "nobr"): HTMLPhraseElement; - createElement(tagName: "object"): HTMLObjectElement; - createElement(tagName: "ol"): HTMLOListElement; - createElement(tagName: "optgroup"): HTMLOptGroupElement; - createElement(tagName: "option"): HTMLOptionElement; - createElement(tagName: "p"): HTMLParagraphElement; - createElement(tagName: "param"): HTMLParamElement; - createElement(tagName: "plaintext"): HTMLBlockElement; - createElement(tagName: "pre"): HTMLPreElement; - createElement(tagName: "progress"): HTMLProgressElement; - createElement(tagName: "q"): HTMLQuoteElement; - createElement(tagName: "rt"): HTMLPhraseElement; - createElement(tagName: "ruby"): HTMLPhraseElement; - createElement(tagName: "s"): HTMLPhraseElement; - createElement(tagName: "samp"): HTMLPhraseElement; - createElement(tagName: "script"): HTMLScriptElement; - createElement(tagName: "select"): HTMLSelectElement; - createElement(tagName: "small"): HTMLPhraseElement; - createElement(tagName: "source"): HTMLSourceElement; - createElement(tagName: "span"): HTMLSpanElement; - createElement(tagName: "strike"): HTMLPhraseElement; - createElement(tagName: "strong"): HTMLPhraseElement; - createElement(tagName: "style"): HTMLStyleElement; - createElement(tagName: "sub"): HTMLPhraseElement; - createElement(tagName: "sup"): HTMLPhraseElement; - createElement(tagName: "table"): HTMLTableElement; - createElement(tagName: "tbody"): HTMLTableSectionElement; - createElement(tagName: "td"): HTMLTableDataCellElement; - createElement(tagName: "textarea"): HTMLTextAreaElement; - createElement(tagName: "tfoot"): HTMLTableSectionElement; - createElement(tagName: "th"): HTMLTableHeaderCellElement; - createElement(tagName: "thead"): HTMLTableSectionElement; - createElement(tagName: "title"): HTMLTitleElement; - createElement(tagName: "tr"): HTMLTableRowElement; - createElement(tagName: "track"): HTMLTrackElement; - createElement(tagName: "tt"): HTMLPhraseElement; - createElement(tagName: "u"): HTMLPhraseElement; - createElement(tagName: "ul"): HTMLUListElement; - createElement(tagName: "var"): HTMLPhraseElement; - createElement(tagName: "video"): HTMLVideoElement; - createElement(tagName: "x-ms-webview"): MSHTMLWebViewElement; - createElement(tagName: "xmp"): HTMLBlockElement; - createElement(tagName: string): HTMLElement; - createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "a"): SVGAElement - createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "circle"): SVGCircleElement - createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "clipPath"): SVGClipPathElement - createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "componentTransferFunction"): SVGComponentTransferFunctionElement - createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "defs"): SVGDefsElement - createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "desc"): SVGDescElement - createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "ellipse"): SVGEllipseElement - createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feBlend"): SVGFEBlendElement - createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feColorMatrix"): SVGFEColorMatrixElement - createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feComponentTransfer"): SVGFEComponentTransferElement - createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feComposite"): SVGFECompositeElement - createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feConvolveMatrix"): SVGFEConvolveMatrixElement - createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feDiffuseLighting"): SVGFEDiffuseLightingElement - createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feDisplacementMap"): SVGFEDisplacementMapElement - createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feDistantLight"): SVGFEDistantLightElement - createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feFlood"): SVGFEFloodElement - createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feFuncA"): SVGFEFuncAElement - createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feFuncB"): SVGFEFuncBElement - createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feFuncG"): SVGFEFuncGElement - createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feFuncR"): SVGFEFuncRElement - createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feGaussianBlur"): SVGFEGaussianBlurElement - createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feImage"): SVGFEImageElement - createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feMerge"): SVGFEMergeElement - createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feMergeNode"): SVGFEMergeNodeElement - createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feMorphology"): SVGFEMorphologyElement - createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feOffset"): SVGFEOffsetElement - createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "fePointLight"): SVGFEPointLightElement - createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feSpecularLighting"): SVGFESpecularLightingElement - createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feSpotLight"): SVGFESpotLightElement - createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feTile"): SVGFETileElement - createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feTurbulence"): SVGFETurbulenceElement - createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "filter"): SVGFilterElement - createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "foreignObject"): SVGForeignObjectElement - createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "g"): SVGGElement - createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "image"): SVGImageElement - createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "gradient"): SVGGradientElement - createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "line"): SVGLineElement - createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "linearGradient"): SVGLinearGradientElement - createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "marker"): SVGMarkerElement - createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "mask"): SVGMaskElement - createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "path"): SVGPathElement - createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "metadata"): SVGMetadataElement - createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "pattern"): SVGPatternElement - createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "polygon"): SVGPolygonElement - createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "polyline"): SVGPolylineElement - createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "radialGradient"): SVGRadialGradientElement - createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "rect"): SVGRectElement - createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "svg"): SVGSVGElement - createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "script"): SVGScriptElement - createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "stop"): SVGStopElement - createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "style"): SVGStyleElement - createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "switch"): SVGSwitchElement - createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "symbol"): SVGSymbolElement - createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "tspan"): SVGTSpanElement - createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "textContent"): SVGTextContentElement - createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "text"): SVGTextElement - createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "textPath"): SVGTextPathElement - createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "textPositioning"): SVGTextPositioningElement - createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "title"): SVGTitleElement - createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "use"): SVGUseElement - createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "view"): SVGViewElement - createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: string): SVGElement - createElementNS(namespaceURI: string, qualifiedName: string): Element; - createExpression(expression: string, resolver: XPathNSResolver): XPathExpression; - createNSResolver(nodeResolver: Node): XPathNSResolver; - /** - * Creates a NodeIterator object that you can use to traverse filtered lists of nodes or elements in a document. - * @param root The root element or node to start traversing on. - * @param whatToShow The type of nodes or elements to appear in the node list - * @param filter A custom NodeFilter function to use. For more information, see filter. Use null for no filter. - * @param entityReferenceExpansion A flag that specifies whether entity reference nodes are expanded. - */ - createNodeIterator(root: Node, whatToShow?: number, filter?: NodeFilter, entityReferenceExpansion?: boolean): NodeIterator; - createProcessingInstruction(target: string, data: string): ProcessingInstruction; - /** - * Returns an empty range object that has both of its boundary points positioned at the beginning of the document. - */ - createRange(): Range; - /** - * Creates a text string from the specified value. - * @param data String that specifies the nodeValue property of the text node. - */ - createTextNode(data: string): Text; - createTouch(view: any, target: EventTarget, identifier: number, pageX: number, pageY: number, screenX: number, screenY: number): Touch; - createTouchList(...touches: Touch[]): TouchList; - /** - * Creates a TreeWalker object that you can use to traverse filtered lists of nodes or elements in a document. - * @param root The root element or node to start traversing on. - * @param whatToShow The type of nodes or elements to appear in the node list. For more information, see whatToShow. - * @param filter A custom NodeFilter function to use. - * @param entityReferenceExpansion A flag that specifies whether entity reference nodes are expanded. - */ - createTreeWalker(root: Node, whatToShow?: number, filter?: NodeFilter, entityReferenceExpansion?: boolean): TreeWalker; - /** - * Returns the element for the specified x coordinate and the specified y coordinate. - * @param x The x-offset - * @param y The y-offset - */ - elementFromPoint(x: number, y: number): Element; - evaluate(expression: string, contextNode: Node, resolver: XPathNSResolver, type: number, result: XPathResult): XPathResult; - /** - * Executes a command on the current document, current selection, or the given range. - * @param commandId String that specifies the command to execute. This command can be any of the command identifiers that can be executed in script. - * @param showUI Display the user interface, defaults to false. - * @param value Value to assign. - */ - execCommand(commandId: string, showUI?: boolean, value?: any): boolean; - /** - * Displays help information for the given command identifier. - * @param commandId Displays help information for the given command identifier. - */ - execCommandShowHelp(commandId: string): boolean; - exitFullscreen(): void; - exitPointerLock(): void; - /** - * Causes the element to receive the focus and executes the code specified by the onfocus event. - */ - focus(): void; - /** - * Returns a reference to the first object with the specified value of the ID or NAME attribute. - * @param elementId String that specifies the ID value. Case-insensitive. - */ - getElementById(elementId: string): HTMLElement; - getElementsByClassName(classNames: string): NodeListOf; - /** - * Gets a collection of objects based on the value of the NAME or ID attribute. - * @param elementName Gets a collection of objects based on the value of the NAME or ID attribute. - */ - getElementsByName(elementName: string): NodeListOf; - /** - * Retrieves a collection of objects based on the specified element name. - * @param name Specifies the name of an element. - */ - getElementsByTagName(tagname: "a"): NodeListOf; - getElementsByTagName(tagname: "abbr"): NodeListOf; - getElementsByTagName(tagname: "acronym"): NodeListOf; - getElementsByTagName(tagname: "address"): NodeListOf; - getElementsByTagName(tagname: "applet"): NodeListOf; - getElementsByTagName(tagname: "area"): NodeListOf; - getElementsByTagName(tagname: "article"): NodeListOf; - getElementsByTagName(tagname: "aside"): NodeListOf; - getElementsByTagName(tagname: "audio"): NodeListOf; - getElementsByTagName(tagname: "b"): NodeListOf; - getElementsByTagName(tagname: "base"): NodeListOf; - getElementsByTagName(tagname: "basefont"): NodeListOf; - getElementsByTagName(tagname: "bdo"): NodeListOf; - getElementsByTagName(tagname: "big"): NodeListOf; - getElementsByTagName(tagname: "blockquote"): NodeListOf; - getElementsByTagName(tagname: "body"): NodeListOf; - getElementsByTagName(tagname: "br"): NodeListOf; - getElementsByTagName(tagname: "button"): NodeListOf; - getElementsByTagName(tagname: "canvas"): NodeListOf; - getElementsByTagName(tagname: "caption"): NodeListOf; - getElementsByTagName(tagname: "center"): NodeListOf; - getElementsByTagName(tagname: "circle"): NodeListOf; - getElementsByTagName(tagname: "cite"): NodeListOf; - getElementsByTagName(tagname: "clippath"): NodeListOf; - getElementsByTagName(tagname: "code"): NodeListOf; - getElementsByTagName(tagname: "col"): NodeListOf; - getElementsByTagName(tagname: "colgroup"): NodeListOf; - getElementsByTagName(tagname: "datalist"): NodeListOf; - getElementsByTagName(tagname: "dd"): NodeListOf; - getElementsByTagName(tagname: "defs"): NodeListOf; - getElementsByTagName(tagname: "del"): NodeListOf; - getElementsByTagName(tagname: "desc"): NodeListOf; - getElementsByTagName(tagname: "dfn"): NodeListOf; - getElementsByTagName(tagname: "dir"): NodeListOf; - getElementsByTagName(tagname: "div"): NodeListOf; - getElementsByTagName(tagname: "dl"): NodeListOf; - getElementsByTagName(tagname: "dt"): NodeListOf; - getElementsByTagName(tagname: "ellipse"): NodeListOf; - getElementsByTagName(tagname: "em"): NodeListOf; - getElementsByTagName(tagname: "embed"): NodeListOf; - getElementsByTagName(tagname: "feblend"): NodeListOf; - getElementsByTagName(tagname: "fecolormatrix"): NodeListOf; - getElementsByTagName(tagname: "fecomponenttransfer"): NodeListOf; - getElementsByTagName(tagname: "fecomposite"): NodeListOf; - getElementsByTagName(tagname: "feconvolvematrix"): NodeListOf; - getElementsByTagName(tagname: "fediffuselighting"): NodeListOf; - getElementsByTagName(tagname: "fedisplacementmap"): NodeListOf; - getElementsByTagName(tagname: "fedistantlight"): NodeListOf; - getElementsByTagName(tagname: "feflood"): NodeListOf; - getElementsByTagName(tagname: "fefunca"): NodeListOf; - getElementsByTagName(tagname: "fefuncb"): NodeListOf; - getElementsByTagName(tagname: "fefuncg"): NodeListOf; - getElementsByTagName(tagname: "fefuncr"): NodeListOf; - getElementsByTagName(tagname: "fegaussianblur"): NodeListOf; - getElementsByTagName(tagname: "feimage"): NodeListOf; - getElementsByTagName(tagname: "femerge"): NodeListOf; - getElementsByTagName(tagname: "femergenode"): NodeListOf; - getElementsByTagName(tagname: "femorphology"): NodeListOf; - getElementsByTagName(tagname: "feoffset"): NodeListOf; - getElementsByTagName(tagname: "fepointlight"): NodeListOf; - getElementsByTagName(tagname: "fespecularlighting"): NodeListOf; - getElementsByTagName(tagname: "fespotlight"): NodeListOf; - getElementsByTagName(tagname: "fetile"): NodeListOf; - getElementsByTagName(tagname: "feturbulence"): NodeListOf; - getElementsByTagName(tagname: "fieldset"): NodeListOf; - getElementsByTagName(tagname: "figcaption"): NodeListOf; - getElementsByTagName(tagname: "figure"): NodeListOf; - getElementsByTagName(tagname: "filter"): NodeListOf; - getElementsByTagName(tagname: "font"): NodeListOf; - getElementsByTagName(tagname: "footer"): NodeListOf; - getElementsByTagName(tagname: "foreignobject"): NodeListOf; - getElementsByTagName(tagname: "form"): NodeListOf; - getElementsByTagName(tagname: "frame"): NodeListOf; - getElementsByTagName(tagname: "frameset"): NodeListOf; - getElementsByTagName(tagname: "g"): NodeListOf; - getElementsByTagName(tagname: "h1"): NodeListOf; - getElementsByTagName(tagname: "h2"): NodeListOf; - getElementsByTagName(tagname: "h3"): NodeListOf; - getElementsByTagName(tagname: "h4"): NodeListOf; - getElementsByTagName(tagname: "h5"): NodeListOf; - getElementsByTagName(tagname: "h6"): NodeListOf; - getElementsByTagName(tagname: "head"): NodeListOf; - getElementsByTagName(tagname: "header"): NodeListOf; - getElementsByTagName(tagname: "hgroup"): NodeListOf; - getElementsByTagName(tagname: "hr"): NodeListOf; - getElementsByTagName(tagname: "html"): NodeListOf; - getElementsByTagName(tagname: "i"): NodeListOf; - getElementsByTagName(tagname: "iframe"): NodeListOf; - getElementsByTagName(tagname: "image"): NodeListOf; - getElementsByTagName(tagname: "img"): NodeListOf; - getElementsByTagName(tagname: "input"): NodeListOf; - getElementsByTagName(tagname: "ins"): NodeListOf; - getElementsByTagName(tagname: "isindex"): NodeListOf; - getElementsByTagName(tagname: "kbd"): NodeListOf; - getElementsByTagName(tagname: "keygen"): NodeListOf; - getElementsByTagName(tagname: "label"): NodeListOf; - getElementsByTagName(tagname: "legend"): NodeListOf; - getElementsByTagName(tagname: "li"): NodeListOf; - getElementsByTagName(tagname: "line"): NodeListOf; - getElementsByTagName(tagname: "lineargradient"): NodeListOf; - getElementsByTagName(tagname: "link"): NodeListOf; - getElementsByTagName(tagname: "listing"): NodeListOf; - getElementsByTagName(tagname: "map"): NodeListOf; - getElementsByTagName(tagname: "mark"): NodeListOf; - getElementsByTagName(tagname: "marker"): NodeListOf; - getElementsByTagName(tagname: "marquee"): NodeListOf; - getElementsByTagName(tagname: "mask"): NodeListOf; - getElementsByTagName(tagname: "menu"): NodeListOf; - getElementsByTagName(tagname: "meta"): NodeListOf; - getElementsByTagName(tagname: "metadata"): NodeListOf; - getElementsByTagName(tagname: "nav"): NodeListOf; - getElementsByTagName(tagname: "nextid"): NodeListOf; - getElementsByTagName(tagname: "nobr"): NodeListOf; - getElementsByTagName(tagname: "noframes"): NodeListOf; - getElementsByTagName(tagname: "noscript"): NodeListOf; - getElementsByTagName(tagname: "object"): NodeListOf; - getElementsByTagName(tagname: "ol"): NodeListOf; - getElementsByTagName(tagname: "optgroup"): NodeListOf; - getElementsByTagName(tagname: "option"): NodeListOf; - getElementsByTagName(tagname: "p"): NodeListOf; - getElementsByTagName(tagname: "param"): NodeListOf; - getElementsByTagName(tagname: "path"): NodeListOf; - getElementsByTagName(tagname: "pattern"): NodeListOf; - getElementsByTagName(tagname: "plaintext"): NodeListOf; - getElementsByTagName(tagname: "polygon"): NodeListOf; - getElementsByTagName(tagname: "polyline"): NodeListOf; - getElementsByTagName(tagname: "pre"): NodeListOf; - getElementsByTagName(tagname: "progress"): NodeListOf; - getElementsByTagName(tagname: "q"): NodeListOf; - getElementsByTagName(tagname: "radialgradient"): NodeListOf; - getElementsByTagName(tagname: "rect"): NodeListOf; - getElementsByTagName(tagname: "rt"): NodeListOf; - getElementsByTagName(tagname: "ruby"): NodeListOf; - getElementsByTagName(tagname: "s"): NodeListOf; - getElementsByTagName(tagname: "samp"): NodeListOf; - getElementsByTagName(tagname: "script"): NodeListOf; - getElementsByTagName(tagname: "section"): NodeListOf; - getElementsByTagName(tagname: "select"): NodeListOf; - getElementsByTagName(tagname: "small"): NodeListOf; - getElementsByTagName(tagname: "source"): NodeListOf; - getElementsByTagName(tagname: "span"): NodeListOf; - getElementsByTagName(tagname: "stop"): NodeListOf; - getElementsByTagName(tagname: "strike"): NodeListOf; - getElementsByTagName(tagname: "strong"): NodeListOf; - getElementsByTagName(tagname: "style"): NodeListOf; - getElementsByTagName(tagname: "sub"): NodeListOf; - getElementsByTagName(tagname: "sup"): NodeListOf; - getElementsByTagName(tagname: "svg"): NodeListOf; - getElementsByTagName(tagname: "switch"): NodeListOf; - getElementsByTagName(tagname: "symbol"): NodeListOf; - getElementsByTagName(tagname: "table"): NodeListOf; - getElementsByTagName(tagname: "tbody"): NodeListOf; - getElementsByTagName(tagname: "td"): NodeListOf; - getElementsByTagName(tagname: "text"): NodeListOf; - getElementsByTagName(tagname: "textpath"): NodeListOf; - getElementsByTagName(tagname: "textarea"): NodeListOf; - getElementsByTagName(tagname: "tfoot"): NodeListOf; - getElementsByTagName(tagname: "th"): NodeListOf; - getElementsByTagName(tagname: "thead"): NodeListOf; - getElementsByTagName(tagname: "title"): NodeListOf; - getElementsByTagName(tagname: "tr"): NodeListOf; - getElementsByTagName(tagname: "track"): NodeListOf; - getElementsByTagName(tagname: "tspan"): NodeListOf; - getElementsByTagName(tagname: "tt"): NodeListOf; - getElementsByTagName(tagname: "u"): NodeListOf; - getElementsByTagName(tagname: "ul"): NodeListOf; - getElementsByTagName(tagname: "use"): NodeListOf; - getElementsByTagName(tagname: "var"): NodeListOf; - getElementsByTagName(tagname: "video"): NodeListOf; - getElementsByTagName(tagname: "view"): NodeListOf; - getElementsByTagName(tagname: "wbr"): NodeListOf; - getElementsByTagName(tagname: "x-ms-webview"): NodeListOf; - getElementsByTagName(tagname: "xmp"): NodeListOf; - getElementsByTagName(tagname: string): NodeListOf; - getElementsByTagNameNS(namespaceURI: string, localName: string): NodeListOf; - /** - * Returns an object representing the current selection of the document that is loaded into the object displaying a webpage. - */ - getSelection(): Selection; - /** - * Gets a value indicating whether the object currently has focus. - */ - hasFocus(): boolean; - importNode(importedNode: Node, deep: boolean): Node; - msElementsFromPoint(x: number, y: number): NodeList; - msElementsFromRect(left: number, top: number, width: number, height: number): NodeList; - /** - * Opens a new window and loads a document specified by a given URL. Also, opens a new window that uses the url parameter and the name parameter to collect the output of the write method and the writeln method. - * @param url Specifies a MIME type for the document. - * @param name Specifies the name of the window. This name is used as the value for the TARGET attribute on a form or an anchor element. - * @param features Contains a list of items separated by commas. Each item consists of an option and a value, separated by an equals sign (for example, "fullscreen=yes, toolbar=yes"). The following values are supported. - * @param replace Specifies whether the existing entry for the document is replaced in the history list. - */ - open(url?: string, name?: string, features?: string, replace?: boolean): Document; - /** - * Returns a Boolean value that indicates whether a specified command can be successfully executed using execCommand, given the current state of the document. - * @param commandId Specifies a command identifier. - */ - queryCommandEnabled(commandId: string): boolean; - /** - * Returns a Boolean value that indicates whether the specified command is in the indeterminate state. - * @param commandId String that specifies a command identifier. - */ - queryCommandIndeterm(commandId: string): boolean; - /** - * Returns a Boolean value that indicates the current state of the command. - * @param commandId String that specifies a command identifier. - */ - queryCommandState(commandId: string): boolean; - /** - * Returns a Boolean value that indicates whether the current command is supported on the current range. - * @param commandId Specifies a command identifier. - */ - queryCommandSupported(commandId: string): boolean; - /** - * Retrieves the string associated with a command. - * @param commandId String that contains the identifier of a command. This can be any command identifier given in the list of Command Identifiers. - */ - queryCommandText(commandId: string): string; - /** - * Returns the current value of the document, range, or current selection for the given command. - * @param commandId String that specifies a command identifier. - */ - queryCommandValue(commandId: string): string; - releaseEvents(): void; - /** - * Allows updating the print settings for the page. - */ - updateSettings(): void; - webkitCancelFullScreen(): void; - webkitExitFullscreen(): void; - /** - * Writes one or more HTML expressions to a document in the specified window. - * @param content Specifies the text and HTML tags to write. - */ - write(...content: string[]): void; - /** - * Writes one or more HTML expressions, followed by a carriage return, to a document in the specified window. - * @param content The text and HTML tags to write. - */ - writeln(...content: string[]): void; - addEventListener(type: "MSContentZoom", listener: (ev: UIEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSGestureChange", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSGestureDoubleTap", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSGestureEnd", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSGestureHold", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSGestureStart", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSGestureTap", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSInertiaStart", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSManipulationStateChanged", listener: (ev: MSManipulationEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSPointerCancel", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSPointerDown", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSPointerEnter", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSPointerLeave", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSPointerMove", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSPointerOut", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSPointerOver", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSPointerUp", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "abort", listener: (ev: UIEvent) => any, useCapture?: boolean): void; - addEventListener(type: "activate", listener: (ev: UIEvent) => any, useCapture?: boolean): void; - addEventListener(type: "beforeactivate", listener: (ev: UIEvent) => any, useCapture?: boolean): void; - addEventListener(type: "beforedeactivate", listener: (ev: UIEvent) => any, useCapture?: boolean): void; - addEventListener(type: "blur", listener: (ev: FocusEvent) => any, useCapture?: boolean): void; - addEventListener(type: "canplay", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "canplaythrough", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "change", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "click", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; - addEventListener(type: "contextmenu", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "dblclick", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; - addEventListener(type: "deactivate", listener: (ev: UIEvent) => any, useCapture?: boolean): void; - addEventListener(type: "drag", listener: (ev: DragEvent) => any, useCapture?: boolean): void; - addEventListener(type: "dragend", listener: (ev: DragEvent) => any, useCapture?: boolean): void; - addEventListener(type: "dragenter", listener: (ev: DragEvent) => any, useCapture?: boolean): void; - addEventListener(type: "dragleave", listener: (ev: DragEvent) => any, useCapture?: boolean): void; - addEventListener(type: "dragover", listener: (ev: DragEvent) => any, useCapture?: boolean): void; - addEventListener(type: "dragstart", listener: (ev: DragEvent) => any, useCapture?: boolean): void; - addEventListener(type: "drop", listener: (ev: DragEvent) => any, useCapture?: boolean): void; - addEventListener(type: "durationchange", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "emptied", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "ended", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "error", listener: (ev: ErrorEvent) => any, useCapture?: boolean): void; - addEventListener(type: "focus", listener: (ev: FocusEvent) => any, useCapture?: boolean): void; - addEventListener(type: "fullscreenchange", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "fullscreenerror", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "input", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "keydown", listener: (ev: KeyboardEvent) => any, useCapture?: boolean): void; - addEventListener(type: "keypress", listener: (ev: KeyboardEvent) => any, useCapture?: boolean): void; - addEventListener(type: "keyup", listener: (ev: KeyboardEvent) => any, useCapture?: boolean): void; - addEventListener(type: "load", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "loadeddata", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "loadedmetadata", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "loadstart", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "mousedown", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; - addEventListener(type: "mousemove", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; - addEventListener(type: "mouseout", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; - addEventListener(type: "mouseover", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; - addEventListener(type: "mouseup", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; - addEventListener(type: "mousewheel", listener: (ev: MouseWheelEvent) => any, useCapture?: boolean): void; - addEventListener(type: "mssitemodejumplistitemremoved", listener: (ev: MSSiteModeEvent) => any, useCapture?: boolean): void; - addEventListener(type: "msthumbnailclick", listener: (ev: MSSiteModeEvent) => any, useCapture?: boolean): void; - addEventListener(type: "pause", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "play", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "playing", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "pointercancel", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "pointerdown", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "pointerenter", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "pointerleave", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "pointerlockchange", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "pointerlockerror", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "pointermove", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "pointerout", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "pointerover", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "pointerup", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "progress", listener: (ev: ProgressEvent) => any, useCapture?: boolean): void; - addEventListener(type: "ratechange", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "readystatechange", listener: (ev: ProgressEvent) => any, useCapture?: boolean): void; - addEventListener(type: "reset", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "scroll", listener: (ev: UIEvent) => any, useCapture?: boolean): void; - addEventListener(type: "seeked", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "seeking", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "select", listener: (ev: UIEvent) => any, useCapture?: boolean): void; - addEventListener(type: "selectstart", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "stalled", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "stop", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "submit", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "suspend", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "timeupdate", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "touchcancel", listener: (ev: TouchEvent) => any, useCapture?: boolean): void; - addEventListener(type: "touchend", listener: (ev: TouchEvent) => any, useCapture?: boolean): void; - addEventListener(type: "touchmove", listener: (ev: TouchEvent) => any, useCapture?: boolean): void; - addEventListener(type: "touchstart", listener: (ev: TouchEvent) => any, useCapture?: boolean): void; - addEventListener(type: "volumechange", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "waiting", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "webkitfullscreenchange", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "webkitfullscreenerror", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "wheel", listener: (ev: WheelEvent) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; -} - -declare var Document: { - prototype: Document; - new(): Document; -} - -interface DocumentFragment extends Node, NodeSelector { - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; -} - -declare var DocumentFragment: { - prototype: DocumentFragment; - new(): DocumentFragment; -} - -interface DocumentType extends Node, ChildNode { - entities: NamedNodeMap; - internalSubset: string; - name: string; - notations: NamedNodeMap; - publicId: string; - systemId: string; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; -} - -declare var DocumentType: { - prototype: DocumentType; - new(): DocumentType; -} - -interface DragEvent extends MouseEvent { - dataTransfer: DataTransfer; - initDragEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, viewArg: Window, detailArg: number, screenXArg: number, screenYArg: number, clientXArg: number, clientYArg: number, ctrlKeyArg: boolean, altKeyArg: boolean, shiftKeyArg: boolean, metaKeyArg: boolean, buttonArg: number, relatedTargetArg: EventTarget, dataTransferArg: DataTransfer): void; - msConvertURL(file: File, targetType: string, targetURL?: string): void; -} - -declare var DragEvent: { - prototype: DragEvent; - new(): DragEvent; -} - -interface DynamicsCompressorNode extends AudioNode { - attack: AudioParam; - knee: AudioParam; - ratio: AudioParam; - reduction: AudioParam; - release: AudioParam; - threshold: AudioParam; -} - -declare var DynamicsCompressorNode: { - prototype: DynamicsCompressorNode; - new(): DynamicsCompressorNode; -} - -interface EXT_texture_filter_anisotropic { - MAX_TEXTURE_MAX_ANISOTROPY_EXT: number; - TEXTURE_MAX_ANISOTROPY_EXT: number; -} - -declare var EXT_texture_filter_anisotropic: { - prototype: EXT_texture_filter_anisotropic; - new(): EXT_texture_filter_anisotropic; - MAX_TEXTURE_MAX_ANISOTROPY_EXT: number; - TEXTURE_MAX_ANISOTROPY_EXT: number; -} - -interface Element extends Node, GlobalEventHandlers, ElementTraversal, NodeSelector, ChildNode { - classList: DOMTokenList; - clientHeight: number; - clientLeft: number; - clientTop: number; - clientWidth: number; - msContentZoomFactor: number; - msRegionOverflow: string; - onariarequest: (ev: AriaRequestEvent) => any; - oncommand: (ev: CommandEvent) => any; - ongotpointercapture: (ev: PointerEvent) => any; - onlostpointercapture: (ev: PointerEvent) => any; - onmsgesturechange: (ev: MSGestureEvent) => any; - onmsgesturedoubletap: (ev: MSGestureEvent) => any; - onmsgestureend: (ev: MSGestureEvent) => any; - onmsgesturehold: (ev: MSGestureEvent) => any; - onmsgesturestart: (ev: MSGestureEvent) => any; - onmsgesturetap: (ev: MSGestureEvent) => any; - onmsgotpointercapture: (ev: MSPointerEvent) => any; - onmsinertiastart: (ev: MSGestureEvent) => any; - onmslostpointercapture: (ev: MSPointerEvent) => any; - onmspointercancel: (ev: MSPointerEvent) => any; - onmspointerdown: (ev: MSPointerEvent) => any; - onmspointerenter: (ev: MSPointerEvent) => any; - onmspointerleave: (ev: MSPointerEvent) => any; - onmspointermove: (ev: MSPointerEvent) => any; - onmspointerout: (ev: MSPointerEvent) => any; - onmspointerover: (ev: MSPointerEvent) => any; - onmspointerup: (ev: MSPointerEvent) => any; - ontouchcancel: (ev: TouchEvent) => any; - ontouchend: (ev: TouchEvent) => any; - ontouchmove: (ev: TouchEvent) => any; - ontouchstart: (ev: TouchEvent) => any; - onwebkitfullscreenchange: (ev: Event) => any; - onwebkitfullscreenerror: (ev: Event) => any; - scrollHeight: number; - scrollLeft: number; - scrollTop: number; - scrollWidth: number; - tagName: string; - id: string; - className: string; - getAttribute(name?: string): string; - getAttributeNS(namespaceURI: string, localName: string): string; - getAttributeNode(name: string): Attr; - getAttributeNodeNS(namespaceURI: string, localName: string): Attr; - getBoundingClientRect(): ClientRect; - getClientRects(): ClientRectList; - getElementsByTagName(name: "a"): NodeListOf; - getElementsByTagName(name: "abbr"): NodeListOf; - getElementsByTagName(name: "acronym"): NodeListOf; - getElementsByTagName(name: "address"): NodeListOf; - getElementsByTagName(name: "applet"): NodeListOf; - getElementsByTagName(name: "area"): NodeListOf; - getElementsByTagName(name: "article"): NodeListOf; - getElementsByTagName(name: "aside"): NodeListOf; - getElementsByTagName(name: "audio"): NodeListOf; - getElementsByTagName(name: "b"): NodeListOf; - getElementsByTagName(name: "base"): NodeListOf; - getElementsByTagName(name: "basefont"): NodeListOf; - getElementsByTagName(name: "bdo"): NodeListOf; - getElementsByTagName(name: "big"): NodeListOf; - getElementsByTagName(name: "blockquote"): NodeListOf; - getElementsByTagName(name: "body"): NodeListOf; - getElementsByTagName(name: "br"): NodeListOf; - getElementsByTagName(name: "button"): NodeListOf; - getElementsByTagName(name: "canvas"): NodeListOf; - getElementsByTagName(name: "caption"): NodeListOf; - getElementsByTagName(name: "center"): NodeListOf; - getElementsByTagName(name: "circle"): NodeListOf; - getElementsByTagName(name: "cite"): NodeListOf; - getElementsByTagName(name: "clippath"): NodeListOf; - getElementsByTagName(name: "code"): NodeListOf; - getElementsByTagName(name: "col"): NodeListOf; - getElementsByTagName(name: "colgroup"): NodeListOf; - getElementsByTagName(name: "datalist"): NodeListOf; - getElementsByTagName(name: "dd"): NodeListOf; - getElementsByTagName(name: "defs"): NodeListOf; - getElementsByTagName(name: "del"): NodeListOf; - getElementsByTagName(name: "desc"): NodeListOf; - getElementsByTagName(name: "dfn"): NodeListOf; - getElementsByTagName(name: "dir"): NodeListOf; - getElementsByTagName(name: "div"): NodeListOf; - getElementsByTagName(name: "dl"): NodeListOf; - getElementsByTagName(name: "dt"): NodeListOf; - getElementsByTagName(name: "ellipse"): NodeListOf; - getElementsByTagName(name: "em"): NodeListOf; - getElementsByTagName(name: "embed"): NodeListOf; - getElementsByTagName(name: "feblend"): NodeListOf; - getElementsByTagName(name: "fecolormatrix"): NodeListOf; - getElementsByTagName(name: "fecomponenttransfer"): NodeListOf; - getElementsByTagName(name: "fecomposite"): NodeListOf; - getElementsByTagName(name: "feconvolvematrix"): NodeListOf; - getElementsByTagName(name: "fediffuselighting"): NodeListOf; - getElementsByTagName(name: "fedisplacementmap"): NodeListOf; - getElementsByTagName(name: "fedistantlight"): NodeListOf; - getElementsByTagName(name: "feflood"): NodeListOf; - getElementsByTagName(name: "fefunca"): NodeListOf; - getElementsByTagName(name: "fefuncb"): NodeListOf; - getElementsByTagName(name: "fefuncg"): NodeListOf; - getElementsByTagName(name: "fefuncr"): NodeListOf; - getElementsByTagName(name: "fegaussianblur"): NodeListOf; - getElementsByTagName(name: "feimage"): NodeListOf; - getElementsByTagName(name: "femerge"): NodeListOf; - getElementsByTagName(name: "femergenode"): NodeListOf; - getElementsByTagName(name: "femorphology"): NodeListOf; - getElementsByTagName(name: "feoffset"): NodeListOf; - getElementsByTagName(name: "fepointlight"): NodeListOf; - getElementsByTagName(name: "fespecularlighting"): NodeListOf; - getElementsByTagName(name: "fespotlight"): NodeListOf; - getElementsByTagName(name: "fetile"): NodeListOf; - getElementsByTagName(name: "feturbulence"): NodeListOf; - getElementsByTagName(name: "fieldset"): NodeListOf; - getElementsByTagName(name: "figcaption"): NodeListOf; - getElementsByTagName(name: "figure"): NodeListOf; - getElementsByTagName(name: "filter"): NodeListOf; - getElementsByTagName(name: "font"): NodeListOf; - getElementsByTagName(name: "footer"): NodeListOf; - getElementsByTagName(name: "foreignobject"): NodeListOf; - getElementsByTagName(name: "form"): NodeListOf; - getElementsByTagName(name: "frame"): NodeListOf; - getElementsByTagName(name: "frameset"): NodeListOf; - getElementsByTagName(name: "g"): NodeListOf; - getElementsByTagName(name: "h1"): NodeListOf; - getElementsByTagName(name: "h2"): NodeListOf; - getElementsByTagName(name: "h3"): NodeListOf; - getElementsByTagName(name: "h4"): NodeListOf; - getElementsByTagName(name: "h5"): NodeListOf; - getElementsByTagName(name: "h6"): NodeListOf; - getElementsByTagName(name: "head"): NodeListOf; - getElementsByTagName(name: "header"): NodeListOf; - getElementsByTagName(name: "hgroup"): NodeListOf; - getElementsByTagName(name: "hr"): NodeListOf; - getElementsByTagName(name: "html"): NodeListOf; - getElementsByTagName(name: "i"): NodeListOf; - getElementsByTagName(name: "iframe"): NodeListOf; - getElementsByTagName(name: "image"): NodeListOf; - getElementsByTagName(name: "img"): NodeListOf; - getElementsByTagName(name: "input"): NodeListOf; - getElementsByTagName(name: "ins"): NodeListOf; - getElementsByTagName(name: "isindex"): NodeListOf; - getElementsByTagName(name: "kbd"): NodeListOf; - getElementsByTagName(name: "keygen"): NodeListOf; - getElementsByTagName(name: "label"): NodeListOf; - getElementsByTagName(name: "legend"): NodeListOf; - getElementsByTagName(name: "li"): NodeListOf; - getElementsByTagName(name: "line"): NodeListOf; - getElementsByTagName(name: "lineargradient"): NodeListOf; - getElementsByTagName(name: "link"): NodeListOf; - getElementsByTagName(name: "listing"): NodeListOf; - getElementsByTagName(name: "map"): NodeListOf; - getElementsByTagName(name: "mark"): NodeListOf; - getElementsByTagName(name: "marker"): NodeListOf; - getElementsByTagName(name: "marquee"): NodeListOf; - getElementsByTagName(name: "mask"): NodeListOf; - getElementsByTagName(name: "menu"): NodeListOf; - getElementsByTagName(name: "meta"): NodeListOf; - getElementsByTagName(name: "metadata"): NodeListOf; - getElementsByTagName(name: "nav"): NodeListOf; - getElementsByTagName(name: "nextid"): NodeListOf; - getElementsByTagName(name: "nobr"): NodeListOf; - getElementsByTagName(name: "noframes"): NodeListOf; - getElementsByTagName(name: "noscript"): NodeListOf; - getElementsByTagName(name: "object"): NodeListOf; - getElementsByTagName(name: "ol"): NodeListOf; - getElementsByTagName(name: "optgroup"): NodeListOf; - getElementsByTagName(name: "option"): NodeListOf; - getElementsByTagName(name: "p"): NodeListOf; - getElementsByTagName(name: "param"): NodeListOf; - getElementsByTagName(name: "path"): NodeListOf; - getElementsByTagName(name: "pattern"): NodeListOf; - getElementsByTagName(name: "plaintext"): NodeListOf; - getElementsByTagName(name: "polygon"): NodeListOf; - getElementsByTagName(name: "polyline"): NodeListOf; - getElementsByTagName(name: "pre"): NodeListOf; - getElementsByTagName(name: "progress"): NodeListOf; - getElementsByTagName(name: "q"): NodeListOf; - getElementsByTagName(name: "radialgradient"): NodeListOf; - getElementsByTagName(name: "rect"): NodeListOf; - getElementsByTagName(name: "rt"): NodeListOf; - getElementsByTagName(name: "ruby"): NodeListOf; - getElementsByTagName(name: "s"): NodeListOf; - getElementsByTagName(name: "samp"): NodeListOf; - getElementsByTagName(name: "script"): NodeListOf; - getElementsByTagName(name: "section"): NodeListOf; - getElementsByTagName(name: "select"): NodeListOf; - getElementsByTagName(name: "small"): NodeListOf; - getElementsByTagName(name: "source"): NodeListOf; - getElementsByTagName(name: "span"): NodeListOf; - getElementsByTagName(name: "stop"): NodeListOf; - getElementsByTagName(name: "strike"): NodeListOf; - getElementsByTagName(name: "strong"): NodeListOf; - getElementsByTagName(name: "style"): NodeListOf; - getElementsByTagName(name: "sub"): NodeListOf; - getElementsByTagName(name: "sup"): NodeListOf; - getElementsByTagName(name: "svg"): NodeListOf; - getElementsByTagName(name: "switch"): NodeListOf; - getElementsByTagName(name: "symbol"): NodeListOf; - getElementsByTagName(name: "table"): NodeListOf; - getElementsByTagName(name: "tbody"): NodeListOf; - getElementsByTagName(name: "td"): NodeListOf; - getElementsByTagName(name: "text"): NodeListOf; - getElementsByTagName(name: "textpath"): NodeListOf; - getElementsByTagName(name: "textarea"): NodeListOf; - getElementsByTagName(name: "tfoot"): NodeListOf; - getElementsByTagName(name: "th"): NodeListOf; - getElementsByTagName(name: "thead"): NodeListOf; - getElementsByTagName(name: "title"): NodeListOf; - getElementsByTagName(name: "tr"): NodeListOf; - getElementsByTagName(name: "track"): NodeListOf; - getElementsByTagName(name: "tspan"): NodeListOf; - getElementsByTagName(name: "tt"): NodeListOf; - getElementsByTagName(name: "u"): NodeListOf; - getElementsByTagName(name: "ul"): NodeListOf; - getElementsByTagName(name: "use"): NodeListOf; - getElementsByTagName(name: "var"): NodeListOf; - getElementsByTagName(name: "video"): NodeListOf; - getElementsByTagName(name: "view"): NodeListOf; - getElementsByTagName(name: "wbr"): NodeListOf; - getElementsByTagName(name: "x-ms-webview"): NodeListOf; - getElementsByTagName(name: "xmp"): NodeListOf; - getElementsByTagName(name: string): NodeListOf; - getElementsByTagNameNS(namespaceURI: string, localName: string): NodeListOf; - hasAttribute(name: string): boolean; - hasAttributeNS(namespaceURI: string, localName: string): boolean; - msGetRegionContent(): MSRangeCollection; - msGetUntransformedBounds(): ClientRect; - msMatchesSelector(selectors: string): boolean; - msReleasePointerCapture(pointerId: number): void; - msSetPointerCapture(pointerId: number): void; - msZoomTo(args: MsZoomToOptions): void; - releasePointerCapture(pointerId: number): void; - removeAttribute(name?: string): void; - removeAttributeNS(namespaceURI: string, localName: string): void; - removeAttributeNode(oldAttr: Attr): Attr; - requestFullscreen(): void; - requestPointerLock(): void; - setAttribute(name?: string, value?: string): void; - setAttributeNS(namespaceURI: string, qualifiedName: string, value: string): void; - setAttributeNode(newAttr: Attr): Attr; - setAttributeNodeNS(newAttr: Attr): Attr; - setPointerCapture(pointerId: number): void; - webkitMatchesSelector(selectors: string): boolean; - webkitRequestFullScreen(): void; - webkitRequestFullscreen(): void; - getElementsByClassName(classNames: string): NodeListOf; - addEventListener(type: "MSGestureChange", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSGestureDoubleTap", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSGestureEnd", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSGestureHold", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSGestureStart", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSGestureTap", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSGotPointerCapture", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSInertiaStart", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSLostPointerCapture", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSPointerCancel", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSPointerDown", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSPointerEnter", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSPointerLeave", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSPointerMove", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSPointerOut", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSPointerOver", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSPointerUp", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "ariarequest", listener: (ev: AriaRequestEvent) => any, useCapture?: boolean): void; - addEventListener(type: "command", listener: (ev: CommandEvent) => any, useCapture?: boolean): void; - addEventListener(type: "gotpointercapture", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "lostpointercapture", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "pointercancel", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "pointerdown", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "pointerenter", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "pointerleave", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "pointermove", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "pointerout", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "pointerover", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "pointerup", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "touchcancel", listener: (ev: TouchEvent) => any, useCapture?: boolean): void; - addEventListener(type: "touchend", listener: (ev: TouchEvent) => any, useCapture?: boolean): void; - addEventListener(type: "touchmove", listener: (ev: TouchEvent) => any, useCapture?: boolean): void; - addEventListener(type: "touchstart", listener: (ev: TouchEvent) => any, useCapture?: boolean): void; - addEventListener(type: "webkitfullscreenchange", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "webkitfullscreenerror", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "wheel", listener: (ev: WheelEvent) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; -} - -declare var Element: { - prototype: Element; - new(): Element; -} - -interface ErrorEvent extends Event { - colno: number; - error: any; - filename: string; - lineno: number; - message: string; - initErrorEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, messageArg: string, filenameArg: string, linenoArg: number): void; -} - -declare var ErrorEvent: { - prototype: ErrorEvent; - new(): ErrorEvent; -} - -interface Event { - bubbles: boolean; - cancelBubble: boolean; - cancelable: boolean; - currentTarget: EventTarget; - defaultPrevented: boolean; - eventPhase: number; - isTrusted: boolean; - returnValue: boolean; - srcElement: Element; - target: EventTarget; - timeStamp: number; - type: string; - initEvent(eventTypeArg: string, canBubbleArg: boolean, cancelableArg: boolean): void; - preventDefault(): void; - stopImmediatePropagation(): void; - stopPropagation(): void; - AT_TARGET: number; - BUBBLING_PHASE: number; - CAPTURING_PHASE: number; -} - -declare var Event: { - prototype: Event; - new(type: string, eventInitDict?: EventInit): Event; - AT_TARGET: number; - BUBBLING_PHASE: number; - CAPTURING_PHASE: number; -} - -interface EventTarget { - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; - dispatchEvent(evt: Event): boolean; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; -} - -declare var EventTarget: { - prototype: EventTarget; - new(): EventTarget; -} - -interface External { -} - -declare var External: { - prototype: External; - new(): External; -} - -interface File extends Blob { - lastModifiedDate: any; - name: string; -} - -declare var File: { - prototype: File; - new (parts: (ArrayBuffer | ArrayBufferView | Blob | string)[], filename: string, properties?: FilePropertyBag): File; -} - -interface FileList { - length: number; - item(index: number): File; - [index: number]: File; -} - -declare var FileList: { - prototype: FileList; - new(): FileList; -} - -interface FileReader extends EventTarget, MSBaseReader { - error: DOMError; - readAsArrayBuffer(blob: Blob): void; - readAsBinaryString(blob: Blob): void; - readAsDataURL(blob: Blob): void; - readAsText(blob: Blob, encoding?: string): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; -} - -declare var FileReader: { - prototype: FileReader; - new(): FileReader; -} - -interface FocusEvent extends UIEvent { - relatedTarget: EventTarget; - initFocusEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, viewArg: Window, detailArg: number, relatedTargetArg: EventTarget): void; -} - -declare var FocusEvent: { - prototype: FocusEvent; - new(typeArg: string, eventInitDict?: FocusEventInit): FocusEvent; -} - -interface FormData { - append(name: any, value: any, blobName?: string): void; -} - -declare var FormData: { - prototype: FormData; - new (form?: HTMLFormElement): FormData; -} - -interface GainNode extends AudioNode { - gain: AudioParam; -} - -declare var GainNode: { - prototype: GainNode; - new(): GainNode; -} - -interface Gamepad { - axes: number[]; - buttons: GamepadButton[]; - connected: boolean; - id: string; - index: number; - mapping: string; - timestamp: number; -} - -declare var Gamepad: { - prototype: Gamepad; - new(): Gamepad; -} - -interface GamepadButton { - pressed: boolean; - value: number; -} - -declare var GamepadButton: { - prototype: GamepadButton; - new(): GamepadButton; -} - -interface GamepadEvent extends Event { - gamepad: Gamepad; -} - -declare var GamepadEvent: { - prototype: GamepadEvent; - new(): GamepadEvent; -} - -interface Geolocation { - clearWatch(watchId: number): void; - getCurrentPosition(successCallback: PositionCallback, errorCallback?: PositionErrorCallback, options?: PositionOptions): void; - watchPosition(successCallback: PositionCallback, errorCallback?: PositionErrorCallback, options?: PositionOptions): number; -} - -declare var Geolocation: { - prototype: Geolocation; - new(): Geolocation; -} - -interface HTMLAllCollection extends HTMLCollection { - namedItem(name: string): Element; -} - -declare var HTMLAllCollection: { - prototype: HTMLAllCollection; - new(): HTMLAllCollection; -} - -interface HTMLAnchorElement extends HTMLElement { - Methods: string; - /** - * Sets or retrieves the character set used to encode the object. - */ - charset: string; - /** - * Sets or retrieves the coordinates of the object. - */ - coords: string; - /** - * Contains the anchor portion of the URL including the hash sign (#). - */ - hash: string; - /** - * Contains the hostname and port values of the URL. - */ - host: string; - /** - * Contains the hostname of a URL. - */ - hostname: string; - /** - * Sets or retrieves a destination URL or an anchor point. - */ - href: string; - /** - * Sets or retrieves the language code of the object. - */ - hreflang: string; - mimeType: string; - /** - * Sets or retrieves the shape of the object. - */ - name: string; - nameProp: string; - /** - * Contains the pathname of the URL. - */ - pathname: string; - /** - * Sets or retrieves the port number associated with a URL. - */ - port: string; - /** - * Contains the protocol of the URL. - */ - protocol: string; - protocolLong: string; - /** - * Sets or retrieves the relationship between the object and the destination of the link. - */ - rel: string; - /** - * Sets or retrieves the relationship between the object and the destination of the link. - */ - rev: string; - /** - * Sets or retrieves the substring of the href property that follows the question mark. - */ - search: string; - /** - * Sets or retrieves the shape of the object. - */ - shape: string; - /** - * Sets or retrieves the window or frame at which to target content. - */ - target: string; - /** - * Retrieves or sets the text of the object as a string. - */ - text: string; - type: string; - urn: string; - /** - * Returns a string representation of an object. - */ - toString(): string; -} - -declare var HTMLAnchorElement: { - prototype: HTMLAnchorElement; - new(): HTMLAnchorElement; -} - -interface HTMLAppletElement extends HTMLElement { - /** - * Retrieves a string of the URL where the object tag can be found. This is often the href of the document that the object is in, or the value set by a base element. - */ - BaseHref: string; - align: string; - /** - * Sets or retrieves a text alternative to the graphic. - */ - alt: string; - /** - * Gets or sets the optional alternative HTML script to execute if the object fails to load. - */ - altHtml: string; - /** - * Sets or retrieves a character string that can be used to implement your own archive functionality for the object. - */ - archive: string; - border: string; - code: string; - /** - * Sets or retrieves the URL of the component. - */ - codeBase: string; - /** - * Sets or retrieves the Internet media type for the code associated with the object. - */ - codeType: string; - /** - * Address of a pointer to the document this page or frame contains. If there is no document, then null will be returned. - */ - contentDocument: Document; - /** - * Sets or retrieves the URL that references the data of the object. - */ - data: string; - /** - * Sets or retrieves a character string that can be used to implement your own declare functionality for the object. - */ - declare: boolean; - form: HTMLFormElement; - /** - * Sets or retrieves the height of the object. - */ - height: string; - hspace: number; - /** - * Sets or retrieves the shape of the object. - */ - name: string; - object: string; - /** - * Sets or retrieves a message to be displayed while an object is loading. - */ - standby: string; - /** - * Returns the content type of the object. - */ - type: string; - /** - * Sets or retrieves the URL, often with a bookmark extension (#name), to use as a client-side image map. - */ - useMap: string; - vspace: number; - width: number; -} - -declare var HTMLAppletElement: { - prototype: HTMLAppletElement; - new(): HTMLAppletElement; -} - -interface HTMLAreaElement extends HTMLElement { - /** - * Sets or retrieves a text alternative to the graphic. - */ - alt: string; - /** - * Sets or retrieves the coordinates of the object. - */ - coords: string; - /** - * Sets or retrieves the subsection of the href property that follows the number sign (#). - */ - hash: string; - /** - * Sets or retrieves the hostname and port number of the location or URL. - */ - host: string; - /** - * Sets or retrieves the host name part of the location or URL. - */ - hostname: string; - /** - * Sets or retrieves a destination URL or an anchor point. - */ - href: string; - /** - * Sets or gets whether clicks in this region cause action. - */ - noHref: boolean; - /** - * Sets or retrieves the file name or path specified by the object. - */ - pathname: string; - /** - * Sets or retrieves the port number associated with a URL. - */ - port: string; - /** - * Sets or retrieves the protocol portion of a URL. - */ - protocol: string; - rel: string; - /** - * Sets or retrieves the substring of the href property that follows the question mark. - */ - search: string; - /** - * Sets or retrieves the shape of the object. - */ - shape: string; - /** - * Sets or retrieves the window or frame at which to target content. - */ - target: string; - /** - * Returns a string representation of an object. - */ - toString(): string; -} - -declare var HTMLAreaElement: { - prototype: HTMLAreaElement; - new(): HTMLAreaElement; -} - -interface HTMLAreasCollection extends HTMLCollection { - /** - * Adds an element to the areas, controlRange, or options collection. - */ - add(element: HTMLElement, before?: HTMLElement | number): void; - /** - * Removes an element from the collection. - */ - remove(index?: number): void; -} - -declare var HTMLAreasCollection: { - prototype: HTMLAreasCollection; - new(): HTMLAreasCollection; -} - -interface HTMLAudioElement extends HTMLMediaElement { -} - -declare var HTMLAudioElement: { - prototype: HTMLAudioElement; - new(): HTMLAudioElement; -} - -interface HTMLBRElement extends HTMLElement { - /** - * Sets or retrieves the side on which floating objects are not to be positioned when any IHTMLBlockElement is inserted into the document. - */ - clear: string; -} - -declare var HTMLBRElement: { - prototype: HTMLBRElement; - new(): HTMLBRElement; -} - -interface HTMLBaseElement extends HTMLElement { - /** - * Gets or sets the baseline URL on which relative links are based. - */ - href: string; - /** - * Sets or retrieves the window or frame at which to target content. - */ - target: string; -} - -declare var HTMLBaseElement: { - prototype: HTMLBaseElement; - new(): HTMLBaseElement; -} - -interface HTMLBaseFontElement extends HTMLElement, DOML2DeprecatedColorProperty { - /** - * Sets or retrieves the current typeface family. - */ - face: string; - /** - * Sets or retrieves the font size of the object. - */ - size: number; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; -} - -declare var HTMLBaseFontElement: { - prototype: HTMLBaseFontElement; - new(): HTMLBaseFontElement; -} - -interface HTMLBlockElement extends HTMLElement { - /** - * Sets or retrieves reference information about the object. - */ - cite: string; - clear: string; - /** - * Sets or retrieves the width of the object. - */ - width: number; -} - -declare var HTMLBlockElement: { - prototype: HTMLBlockElement; - new(): HTMLBlockElement; -} - -interface HTMLBodyElement extends HTMLElement { - aLink: any; - background: string; - bgColor: any; - bgProperties: string; - link: any; - noWrap: boolean; - onafterprint: (ev: Event) => any; - onbeforeprint: (ev: Event) => any; - onbeforeunload: (ev: BeforeUnloadEvent) => any; - onblur: (ev: FocusEvent) => any; - onerror: (ev: Event) => any; - onfocus: (ev: FocusEvent) => any; - onhashchange: (ev: HashChangeEvent) => any; - onload: (ev: Event) => any; - onmessage: (ev: MessageEvent) => any; - onoffline: (ev: Event) => any; - ononline: (ev: Event) => any; - onorientationchange: (ev: Event) => any; - onpagehide: (ev: PageTransitionEvent) => any; - onpageshow: (ev: PageTransitionEvent) => any; - onpopstate: (ev: PopStateEvent) => any; - onresize: (ev: UIEvent) => any; - onstorage: (ev: StorageEvent) => any; - onunload: (ev: Event) => any; - text: any; - vLink: any; - createTextRange(): TextRange; - addEventListener(type: "MSContentZoom", listener: (ev: UIEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSGestureChange", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSGestureDoubleTap", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSGestureEnd", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSGestureHold", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSGestureStart", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSGestureTap", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSGotPointerCapture", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSInertiaStart", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSLostPointerCapture", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSManipulationStateChanged", listener: (ev: MSManipulationEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSPointerCancel", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSPointerDown", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSPointerEnter", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSPointerLeave", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSPointerMove", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSPointerOut", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSPointerOver", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSPointerUp", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "abort", listener: (ev: UIEvent) => any, useCapture?: boolean): void; - addEventListener(type: "activate", listener: (ev: UIEvent) => any, useCapture?: boolean): void; - addEventListener(type: "afterprint", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "ariarequest", listener: (ev: AriaRequestEvent) => any, useCapture?: boolean): void; - addEventListener(type: "beforeactivate", listener: (ev: UIEvent) => any, useCapture?: boolean): void; - addEventListener(type: "beforecopy", listener: (ev: DragEvent) => any, useCapture?: boolean): void; - addEventListener(type: "beforecut", listener: (ev: DragEvent) => any, useCapture?: boolean): void; - addEventListener(type: "beforedeactivate", listener: (ev: UIEvent) => any, useCapture?: boolean): void; - addEventListener(type: "beforepaste", listener: (ev: DragEvent) => any, useCapture?: boolean): void; - addEventListener(type: "beforeprint", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "beforeunload", listener: (ev: BeforeUnloadEvent) => any, useCapture?: boolean): void; - addEventListener(type: "blur", listener: (ev: FocusEvent) => any, useCapture?: boolean): void; - addEventListener(type: "blur", listener: (ev: FocusEvent) => any, useCapture?: boolean): void; - addEventListener(type: "canplay", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "canplaythrough", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "change", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "click", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; - addEventListener(type: "command", listener: (ev: CommandEvent) => any, useCapture?: boolean): void; - addEventListener(type: "contextmenu", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "copy", listener: (ev: DragEvent) => any, useCapture?: boolean): void; - addEventListener(type: "cuechange", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "cut", listener: (ev: DragEvent) => any, useCapture?: boolean): void; - addEventListener(type: "dblclick", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; - addEventListener(type: "deactivate", listener: (ev: UIEvent) => any, useCapture?: boolean): void; - addEventListener(type: "drag", listener: (ev: DragEvent) => any, useCapture?: boolean): void; - addEventListener(type: "dragend", listener: (ev: DragEvent) => any, useCapture?: boolean): void; - addEventListener(type: "dragenter", listener: (ev: DragEvent) => any, useCapture?: boolean): void; - addEventListener(type: "dragleave", listener: (ev: DragEvent) => any, useCapture?: boolean): void; - addEventListener(type: "dragover", listener: (ev: DragEvent) => any, useCapture?: boolean): void; - addEventListener(type: "dragstart", listener: (ev: DragEvent) => any, useCapture?: boolean): void; - addEventListener(type: "drop", listener: (ev: DragEvent) => any, useCapture?: boolean): void; - addEventListener(type: "durationchange", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "emptied", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "ended", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "error", listener: (ev: ErrorEvent) => any, useCapture?: boolean): void; - addEventListener(type: "error", listener: (ev: ErrorEvent) => any, useCapture?: boolean): void; - addEventListener(type: "focus", listener: (ev: FocusEvent) => any, useCapture?: boolean): void; - addEventListener(type: "focus", listener: (ev: FocusEvent) => any, useCapture?: boolean): void; - addEventListener(type: "gotpointercapture", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "hashchange", listener: (ev: HashChangeEvent) => any, useCapture?: boolean): void; - addEventListener(type: "input", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "keydown", listener: (ev: KeyboardEvent) => any, useCapture?: boolean): void; - addEventListener(type: "keypress", listener: (ev: KeyboardEvent) => any, useCapture?: boolean): void; - addEventListener(type: "keyup", listener: (ev: KeyboardEvent) => any, useCapture?: boolean): void; - addEventListener(type: "load", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "load", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "loadeddata", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "loadedmetadata", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "loadstart", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "lostpointercapture", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "message", listener: (ev: MessageEvent) => any, useCapture?: boolean): void; - addEventListener(type: "mousedown", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; - addEventListener(type: "mouseenter", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; - addEventListener(type: "mouseleave", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; - addEventListener(type: "mousemove", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; - addEventListener(type: "mouseout", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; - addEventListener(type: "mouseover", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; - addEventListener(type: "mouseup", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; - addEventListener(type: "mousewheel", listener: (ev: MouseWheelEvent) => any, useCapture?: boolean): void; - addEventListener(type: "offline", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "online", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "orientationchange", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "pagehide", listener: (ev: PageTransitionEvent) => any, useCapture?: boolean): void; - addEventListener(type: "pageshow", listener: (ev: PageTransitionEvent) => any, useCapture?: boolean): void; - addEventListener(type: "paste", listener: (ev: DragEvent) => any, useCapture?: boolean): void; - addEventListener(type: "pause", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "play", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "playing", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "pointercancel", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "pointerdown", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "pointerenter", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "pointerleave", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "pointermove", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "pointerout", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "pointerover", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "pointerup", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "popstate", listener: (ev: PopStateEvent) => any, useCapture?: boolean): void; - addEventListener(type: "progress", listener: (ev: ProgressEvent) => any, useCapture?: boolean): void; - addEventListener(type: "ratechange", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "reset", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "resize", listener: (ev: UIEvent) => any, useCapture?: boolean): void; - addEventListener(type: "scroll", listener: (ev: UIEvent) => any, useCapture?: boolean): void; - addEventListener(type: "seeked", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "seeking", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "select", listener: (ev: UIEvent) => any, useCapture?: boolean): void; - addEventListener(type: "selectstart", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "stalled", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "storage", listener: (ev: StorageEvent) => any, useCapture?: boolean): void; - addEventListener(type: "submit", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "suspend", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "timeupdate", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "touchcancel", listener: (ev: TouchEvent) => any, useCapture?: boolean): void; - addEventListener(type: "touchend", listener: (ev: TouchEvent) => any, useCapture?: boolean): void; - addEventListener(type: "touchmove", listener: (ev: TouchEvent) => any, useCapture?: boolean): void; - addEventListener(type: "touchstart", listener: (ev: TouchEvent) => any, useCapture?: boolean): void; - addEventListener(type: "unload", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "volumechange", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "waiting", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "webkitfullscreenchange", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "webkitfullscreenerror", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "wheel", listener: (ev: WheelEvent) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; -} - -declare var HTMLBodyElement: { - prototype: HTMLBodyElement; - new(): HTMLBodyElement; -} - -interface HTMLButtonElement extends HTMLElement { - /** - * Provides a way to direct a user to a specific field when a document loads. This can provide both direction and convenience for a user, reducing the need to click or tab to a field when a page opens. This attribute is true when present on an element, and false when missing. - */ - autofocus: boolean; - disabled: boolean; - /** - * Retrieves a reference to the form that the object is embedded in. - */ - form: HTMLFormElement; - /** - * Overrides the action attribute (where the data on a form is sent) on the parent form element. - */ - formAction: string; - /** - * Used to override the encoding (formEnctype attribute) specified on the form element. - */ - formEnctype: string; - /** - * Overrides the submit method attribute previously specified on a form element. - */ - formMethod: string; - /** - * Overrides any validation or required attributes on a form or form elements to allow it to be submitted without validation. This can be used to create a "save draft"-type submit option. - */ - formNoValidate: string; - /** - * Overrides the target attribute on a form element. - */ - formTarget: string; - /** - * Sets or retrieves the name of the object. - */ - name: string; - status: any; - /** - * Gets the classification and default behavior of the button. - */ - type: string; - /** - * Returns the error message that would be displayed if the user submits the form, or an empty string if no error message. It also triggers the standard error message, such as "this is a required field". The result is that the user sees validation messages without actually submitting. - */ - validationMessage: string; - /** - * Returns a ValidityState object that represents the validity states of an element. - */ - validity: ValidityState; - /** - * Sets or retrieves the default or selected value of the control. - */ - value: string; - /** - * Returns whether an element will successfully validate based on forms validation rules and constraints. - */ - willValidate: boolean; - /** - * Returns whether a form will validate when it is submitted, without having to submit it. - */ - checkValidity(): boolean; - /** - * Creates a TextRange object for the element. - */ - createTextRange(): TextRange; - /** - * Sets a custom error message that is displayed when a form is submitted. - * @param error Sets a custom error message that is displayed when a form is submitted. - */ - setCustomValidity(error: string): void; -} - -declare var HTMLButtonElement: { - prototype: HTMLButtonElement; - new(): HTMLButtonElement; -} - -interface HTMLCanvasElement extends HTMLElement { - /** - * Gets or sets the height of a canvas element on a document. - */ - height: number; - /** - * Gets or sets the width of a canvas element on a document. - */ - width: number; - /** - * Returns an object that provides methods and properties for drawing and manipulating images and graphics on a canvas element in a document. A context object includes information about colors, line widths, fonts, and other graphic parameters that can be drawn on a canvas. - * @param contextId The identifier (ID) of the type of canvas to create. Internet Explorer 9 and Internet Explorer 10 support only a 2-D context using canvas.getContext("2d"); IE11 Preview also supports 3-D or WebGL context using canvas.getContext("experimental-webgl"); - */ - getContext(contextId: "2d"): CanvasRenderingContext2D; - getContext(contextId: "experimental-webgl"): WebGLRenderingContext; - getContext(contextId: string, ...args: any[]): CanvasRenderingContext2D | WebGLRenderingContext; - /** - * Returns a blob object encoded as a Portable Network Graphics (PNG) format from a canvas image or drawing. - */ - msToBlob(): Blob; - /** - * Returns the content of the current canvas as an image that you can use as a source for another canvas or an HTML element. - * @param type The standard MIME type for the image format to return. If you do not specify this parameter, the default value is a PNG format image. - */ - toDataURL(type?: string, ...args: any[]): string; -} - -declare var HTMLCanvasElement: { - prototype: HTMLCanvasElement; - new(): HTMLCanvasElement; -} - -interface HTMLCollection { - /** - * Sets or retrieves the number of objects in a collection. - */ - length: number; - /** - * Retrieves an object from various collections. - */ - item(nameOrIndex?: any, optionalIndex?: any): Element; - /** - * Retrieves a select object or an object from an options collection. - */ - namedItem(name: string): Element; - [index: number]: Element; -} - -declare var HTMLCollection: { - prototype: HTMLCollection; - new(): HTMLCollection; -} - -interface HTMLDDElement extends HTMLElement { - /** - * Sets or retrieves whether the browser automatically performs wordwrap. - */ - noWrap: boolean; -} - -declare var HTMLDDElement: { - prototype: HTMLDDElement; - new(): HTMLDDElement; -} - -interface HTMLDListElement extends HTMLElement { - compact: boolean; -} - -declare var HTMLDListElement: { - prototype: HTMLDListElement; - new(): HTMLDListElement; -} - -interface HTMLDTElement extends HTMLElement { - /** - * Sets or retrieves whether the browser automatically performs wordwrap. - */ - noWrap: boolean; -} - -declare var HTMLDTElement: { - prototype: HTMLDTElement; - new(): HTMLDTElement; -} - -interface HTMLDataListElement extends HTMLElement { - options: HTMLCollection; -} - -declare var HTMLDataListElement: { - prototype: HTMLDataListElement; - new(): HTMLDataListElement; -} - -interface HTMLDirectoryElement extends HTMLElement { - compact: boolean; -} - -declare var HTMLDirectoryElement: { - prototype: HTMLDirectoryElement; - new(): HTMLDirectoryElement; -} - -interface HTMLDivElement extends HTMLElement { - /** - * Sets or retrieves how the object is aligned with adjacent text. - */ - align: string; - /** - * Sets or retrieves whether the browser automatically performs wordwrap. - */ - noWrap: boolean; -} - -declare var HTMLDivElement: { - prototype: HTMLDivElement; - new(): HTMLDivElement; -} - -interface HTMLDocument extends Document { -} - -declare var HTMLDocument: { - prototype: HTMLDocument; - new(): HTMLDocument; -} - -interface HTMLElement extends Element { - accessKey: string; - children: HTMLCollection; - contentEditable: string; - dataset: DOMStringMap; - dir: string; - draggable: boolean; - hidden: boolean; - hideFocus: boolean; - innerHTML: string; - innerText: string; - isContentEditable: boolean; - lang: string; - offsetHeight: number; - offsetLeft: number; - offsetParent: Element; - offsetTop: number; - offsetWidth: number; - onabort: (ev: Event) => any; - onactivate: (ev: UIEvent) => any; - onbeforeactivate: (ev: UIEvent) => any; - onbeforecopy: (ev: DragEvent) => any; - onbeforecut: (ev: DragEvent) => any; - onbeforedeactivate: (ev: UIEvent) => any; - onbeforepaste: (ev: DragEvent) => any; - onblur: (ev: FocusEvent) => any; - oncanplay: (ev: Event) => any; - oncanplaythrough: (ev: Event) => any; - onchange: (ev: Event) => any; - onclick: (ev: MouseEvent) => any; - oncontextmenu: (ev: PointerEvent) => any; - oncopy: (ev: DragEvent) => any; - oncuechange: (ev: Event) => any; - oncut: (ev: DragEvent) => any; - ondblclick: (ev: MouseEvent) => any; - ondeactivate: (ev: UIEvent) => any; - ondrag: (ev: DragEvent) => any; - ondragend: (ev: DragEvent) => any; - ondragenter: (ev: DragEvent) => any; - ondragleave: (ev: DragEvent) => any; - ondragover: (ev: DragEvent) => any; - ondragstart: (ev: DragEvent) => any; - ondrop: (ev: DragEvent) => any; - ondurationchange: (ev: Event) => any; - onemptied: (ev: Event) => any; - onended: (ev: Event) => any; - onerror: (ev: Event) => any; - onfocus: (ev: FocusEvent) => any; - oninput: (ev: Event) => any; - onkeydown: (ev: KeyboardEvent) => any; - onkeypress: (ev: KeyboardEvent) => any; - onkeyup: (ev: KeyboardEvent) => any; - onload: (ev: Event) => any; - onloadeddata: (ev: Event) => any; - onloadedmetadata: (ev: Event) => any; - onloadstart: (ev: Event) => any; - onmousedown: (ev: MouseEvent) => any; - onmouseenter: (ev: MouseEvent) => any; - onmouseleave: (ev: MouseEvent) => any; - onmousemove: (ev: MouseEvent) => any; - onmouseout: (ev: MouseEvent) => any; - onmouseover: (ev: MouseEvent) => any; - onmouseup: (ev: MouseEvent) => any; - onmousewheel: (ev: MouseWheelEvent) => any; - onmscontentzoom: (ev: UIEvent) => any; - onmsmanipulationstatechanged: (ev: MSManipulationEvent) => any; - onpaste: (ev: DragEvent) => any; - onpause: (ev: Event) => any; - onplay: (ev: Event) => any; - onplaying: (ev: Event) => any; - onprogress: (ev: ProgressEvent) => any; - onratechange: (ev: Event) => any; - onreset: (ev: Event) => any; - onscroll: (ev: UIEvent) => any; - onseeked: (ev: Event) => any; - onseeking: (ev: Event) => any; - onselect: (ev: UIEvent) => any; - onselectstart: (ev: Event) => any; - onstalled: (ev: Event) => any; - onsubmit: (ev: Event) => any; - onsuspend: (ev: Event) => any; - ontimeupdate: (ev: Event) => any; - onvolumechange: (ev: Event) => any; - onwaiting: (ev: Event) => any; - outerHTML: string; - outerText: string; - spellcheck: boolean; - style: CSSStyleDeclaration; - tabIndex: number; - title: string; - blur(): void; - click(): void; - contains(child: HTMLElement): boolean; - dragDrop(): boolean; - focus(): void; - insertAdjacentElement(position: string, insertedElement: Element): Element; - insertAdjacentHTML(where: string, html: string): void; - insertAdjacentText(where: string, text: string): void; - msGetInputContext(): MSInputMethodContext; - scrollIntoView(top?: boolean): void; - setActive(): void; - addEventListener(type: "MSContentZoom", listener: (ev: UIEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSGestureChange", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSGestureDoubleTap", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSGestureEnd", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSGestureHold", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSGestureStart", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSGestureTap", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSGotPointerCapture", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSInertiaStart", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSLostPointerCapture", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSManipulationStateChanged", listener: (ev: MSManipulationEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSPointerCancel", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSPointerDown", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSPointerEnter", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSPointerLeave", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSPointerMove", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSPointerOut", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSPointerOver", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSPointerUp", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "abort", listener: (ev: UIEvent) => any, useCapture?: boolean): void; - addEventListener(type: "activate", listener: (ev: UIEvent) => any, useCapture?: boolean): void; - addEventListener(type: "ariarequest", listener: (ev: AriaRequestEvent) => any, useCapture?: boolean): void; - addEventListener(type: "beforeactivate", listener: (ev: UIEvent) => any, useCapture?: boolean): void; - addEventListener(type: "beforecopy", listener: (ev: DragEvent) => any, useCapture?: boolean): void; - addEventListener(type: "beforecut", listener: (ev: DragEvent) => any, useCapture?: boolean): void; - addEventListener(type: "beforedeactivate", listener: (ev: UIEvent) => any, useCapture?: boolean): void; - addEventListener(type: "beforepaste", listener: (ev: DragEvent) => any, useCapture?: boolean): void; - addEventListener(type: "blur", listener: (ev: FocusEvent) => any, useCapture?: boolean): void; - addEventListener(type: "canplay", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "canplaythrough", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "change", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "click", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; - addEventListener(type: "command", listener: (ev: CommandEvent) => any, useCapture?: boolean): void; - addEventListener(type: "contextmenu", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "copy", listener: (ev: DragEvent) => any, useCapture?: boolean): void; - addEventListener(type: "cuechange", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "cut", listener: (ev: DragEvent) => any, useCapture?: boolean): void; - addEventListener(type: "dblclick", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; - addEventListener(type: "deactivate", listener: (ev: UIEvent) => any, useCapture?: boolean): void; - addEventListener(type: "drag", listener: (ev: DragEvent) => any, useCapture?: boolean): void; - addEventListener(type: "dragend", listener: (ev: DragEvent) => any, useCapture?: boolean): void; - addEventListener(type: "dragenter", listener: (ev: DragEvent) => any, useCapture?: boolean): void; - addEventListener(type: "dragleave", listener: (ev: DragEvent) => any, useCapture?: boolean): void; - addEventListener(type: "dragover", listener: (ev: DragEvent) => any, useCapture?: boolean): void; - addEventListener(type: "dragstart", listener: (ev: DragEvent) => any, useCapture?: boolean): void; - addEventListener(type: "drop", listener: (ev: DragEvent) => any, useCapture?: boolean): void; - addEventListener(type: "durationchange", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "emptied", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "ended", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "error", listener: (ev: ErrorEvent) => any, useCapture?: boolean): void; - addEventListener(type: "focus", listener: (ev: FocusEvent) => any, useCapture?: boolean): void; - addEventListener(type: "gotpointercapture", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "input", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "keydown", listener: (ev: KeyboardEvent) => any, useCapture?: boolean): void; - addEventListener(type: "keypress", listener: (ev: KeyboardEvent) => any, useCapture?: boolean): void; - addEventListener(type: "keyup", listener: (ev: KeyboardEvent) => any, useCapture?: boolean): void; - addEventListener(type: "load", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "loadeddata", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "loadedmetadata", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "loadstart", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "lostpointercapture", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "mousedown", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; - addEventListener(type: "mouseenter", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; - addEventListener(type: "mouseleave", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; - addEventListener(type: "mousemove", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; - addEventListener(type: "mouseout", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; - addEventListener(type: "mouseover", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; - addEventListener(type: "mouseup", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; - addEventListener(type: "mousewheel", listener: (ev: MouseWheelEvent) => any, useCapture?: boolean): void; - addEventListener(type: "paste", listener: (ev: DragEvent) => any, useCapture?: boolean): void; - addEventListener(type: "pause", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "play", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "playing", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "pointercancel", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "pointerdown", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "pointerenter", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "pointerleave", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "pointermove", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "pointerout", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "pointerover", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "pointerup", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "progress", listener: (ev: ProgressEvent) => any, useCapture?: boolean): void; - addEventListener(type: "ratechange", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "reset", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "scroll", listener: (ev: UIEvent) => any, useCapture?: boolean): void; - addEventListener(type: "seeked", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "seeking", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "select", listener: (ev: UIEvent) => any, useCapture?: boolean): void; - addEventListener(type: "selectstart", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "stalled", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "submit", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "suspend", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "timeupdate", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "touchcancel", listener: (ev: TouchEvent) => any, useCapture?: boolean): void; - addEventListener(type: "touchend", listener: (ev: TouchEvent) => any, useCapture?: boolean): void; - addEventListener(type: "touchmove", listener: (ev: TouchEvent) => any, useCapture?: boolean): void; - addEventListener(type: "touchstart", listener: (ev: TouchEvent) => any, useCapture?: boolean): void; - addEventListener(type: "volumechange", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "waiting", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "webkitfullscreenchange", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "webkitfullscreenerror", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "wheel", listener: (ev: WheelEvent) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; -} - -declare var HTMLElement: { - prototype: HTMLElement; - new(): HTMLElement; -} - -interface HTMLEmbedElement extends HTMLElement, GetSVGDocument { - /** - * Sets or retrieves the height of the object. - */ - height: string; - hidden: any; - /** - * Gets or sets whether the DLNA PlayTo device is available. - */ - msPlayToDisabled: boolean; - /** - * Gets or sets the path to the preferred media source. This enables the Play To target device to stream the media content, which can be DRM protected, from a different location, such as a cloud media server. - */ - msPlayToPreferredSourceUri: string; - /** - * Gets or sets the primary DLNA PlayTo device. - */ - msPlayToPrimary: boolean; - /** - * Gets the source associated with the media element for use by the PlayToManager. - */ - msPlayToSource: any; - /** - * Sets or retrieves the name of the object. - */ - name: string; - /** - * Retrieves the palette used for the embedded document. - */ - palette: string; - /** - * Retrieves the URL of the plug-in used to view an embedded document. - */ - pluginspage: string; - readyState: string; - /** - * Sets or retrieves a URL to be loaded by the object. - */ - src: string; - /** - * Sets or retrieves the height and width units of the embed object. - */ - units: string; - /** - * Sets or retrieves the width of the object. - */ - width: string; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; -} - -declare var HTMLEmbedElement: { - prototype: HTMLEmbedElement; - new(): HTMLEmbedElement; -} - -interface HTMLFieldSetElement extends HTMLElement { - /** - * Sets or retrieves how the object is aligned with adjacent text. - */ - align: string; - disabled: boolean; - /** - * Retrieves a reference to the form that the object is embedded in. - */ - form: HTMLFormElement; - /** - * Returns the error message that would be displayed if the user submits the form, or an empty string if no error message. It also triggers the standard error message, such as "this is a required field". The result is that the user sees validation messages without actually submitting. - */ - validationMessage: string; - /** - * Returns a ValidityState object that represents the validity states of an element. - */ - validity: ValidityState; - /** - * Returns whether an element will successfully validate based on forms validation rules and constraints. - */ - willValidate: boolean; - /** - * Returns whether a form will validate when it is submitted, without having to submit it. - */ - checkValidity(): boolean; - /** - * Sets a custom error message that is displayed when a form is submitted. - * @param error Sets a custom error message that is displayed when a form is submitted. - */ - setCustomValidity(error: string): void; -} - -declare var HTMLFieldSetElement: { - prototype: HTMLFieldSetElement; - new(): HTMLFieldSetElement; -} - -interface HTMLFontElement extends HTMLElement, DOML2DeprecatedColorProperty, DOML2DeprecatedSizeProperty { - /** - * Sets or retrieves the current typeface family. - */ - face: string; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; -} - -declare var HTMLFontElement: { - prototype: HTMLFontElement; - new(): HTMLFontElement; -} - -interface HTMLFormElement extends HTMLElement { - /** - * Sets or retrieves a list of character encodings for input data that must be accepted by the server processing the form. - */ - acceptCharset: string; - /** - * Sets or retrieves the URL to which the form content is sent for processing. - */ - action: string; - /** - * Specifies whether autocomplete is applied to an editable text field. - */ - autocomplete: string; - /** - * Retrieves a collection, in source order, of all controls in a given form. - */ - elements: HTMLCollection; - /** - * Sets or retrieves the MIME encoding for the form. - */ - encoding: string; - /** - * Sets or retrieves the encoding type for the form. - */ - enctype: string; - /** - * Sets or retrieves the number of objects in a collection. - */ - length: number; - /** - * Sets or retrieves how to send the form data to the server. - */ - method: string; - /** - * Sets or retrieves the name of the object. - */ - name: string; - /** - * Designates a form that is not validated when submitted. - */ - noValidate: boolean; - /** - * Sets or retrieves the window or frame at which to target content. - */ - target: string; - /** - * Returns whether a form will validate when it is submitted, without having to submit it. - */ - checkValidity(): boolean; - /** - * Retrieves a form object or an object from an elements collection. - * @param name Variant of type Number or String that specifies the object or collection to retrieve. If this parameter is a Number, it is the zero-based index of the object. If this parameter is a string, all objects with matching name or id properties are retrieved, and a collection is returned if more than one match is made. - * @param index Variant of type Number that specifies the zero-based index of the object to retrieve when a collection is returned. - */ - item(name?: any, index?: any): any; - /** - * Retrieves a form object or an object from an elements collection. - */ - namedItem(name: string): any; - /** - * Fires when the user resets a form. - */ - reset(): void; - /** - * Fires when a FORM is about to be submitted. - */ - submit(): void; - [name: string]: any; -} - -declare var HTMLFormElement: { - prototype: HTMLFormElement; - new(): HTMLFormElement; -} - -interface HTMLFrameElement extends HTMLElement, GetSVGDocument { - /** - * Specifies the properties of a border drawn around an object. - */ - border: string; - /** - * Sets or retrieves the border color of the object. - */ - borderColor: any; - /** - * Retrieves the document object of the page or frame. - */ - contentDocument: Document; - /** - * Retrieves the object of the specified. - */ - contentWindow: Window; - /** - * Sets or retrieves whether to display a border for the frame. - */ - frameBorder: string; - /** - * Sets or retrieves the amount of additional space between the frames. - */ - frameSpacing: any; - /** - * Sets or retrieves the height of the object. - */ - height: string | number; - /** - * Sets or retrieves a URI to a long description of the object. - */ - longDesc: string; - /** - * Sets or retrieves the top and bottom margin heights before displaying the text in a frame. - */ - marginHeight: string; - /** - * Sets or retrieves the left and right margin widths before displaying the text in a frame. - */ - marginWidth: string; - /** - * Sets or retrieves the frame name. - */ - name: string; - /** - * Sets or retrieves whether the user can resize the frame. - */ - noResize: boolean; - /** - * Raised when the object has been completely received from the server. - */ - onload: (ev: Event) => any; - /** - * Sets or retrieves whether the frame can be scrolled. - */ - scrolling: string; - /** - * Sets the value indicating whether the source file of a frame or iframe has specific security restrictions applied. - */ - security: any; - /** - * Sets or retrieves a URL to be loaded by the object. - */ - src: string; - /** - * Sets or retrieves the width of the object. - */ - width: string | number; - addEventListener(type: "MSContentZoom", listener: (ev: UIEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSGestureChange", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSGestureDoubleTap", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSGestureEnd", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSGestureHold", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSGestureStart", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSGestureTap", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSGotPointerCapture", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSInertiaStart", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSLostPointerCapture", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSManipulationStateChanged", listener: (ev: MSManipulationEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSPointerCancel", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSPointerDown", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSPointerEnter", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSPointerLeave", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSPointerMove", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSPointerOut", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSPointerOver", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSPointerUp", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "abort", listener: (ev: UIEvent) => any, useCapture?: boolean): void; - addEventListener(type: "activate", listener: (ev: UIEvent) => any, useCapture?: boolean): void; - addEventListener(type: "ariarequest", listener: (ev: AriaRequestEvent) => any, useCapture?: boolean): void; - addEventListener(type: "beforeactivate", listener: (ev: UIEvent) => any, useCapture?: boolean): void; - addEventListener(type: "beforecopy", listener: (ev: DragEvent) => any, useCapture?: boolean): void; - addEventListener(type: "beforecut", listener: (ev: DragEvent) => any, useCapture?: boolean): void; - addEventListener(type: "beforedeactivate", listener: (ev: UIEvent) => any, useCapture?: boolean): void; - addEventListener(type: "beforepaste", listener: (ev: DragEvent) => any, useCapture?: boolean): void; - addEventListener(type: "blur", listener: (ev: FocusEvent) => any, useCapture?: boolean): void; - addEventListener(type: "canplay", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "canplaythrough", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "change", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "click", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; - addEventListener(type: "command", listener: (ev: CommandEvent) => any, useCapture?: boolean): void; - addEventListener(type: "contextmenu", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "copy", listener: (ev: DragEvent) => any, useCapture?: boolean): void; - addEventListener(type: "cuechange", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "cut", listener: (ev: DragEvent) => any, useCapture?: boolean): void; - addEventListener(type: "dblclick", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; - addEventListener(type: "deactivate", listener: (ev: UIEvent) => any, useCapture?: boolean): void; - addEventListener(type: "drag", listener: (ev: DragEvent) => any, useCapture?: boolean): void; - addEventListener(type: "dragend", listener: (ev: DragEvent) => any, useCapture?: boolean): void; - addEventListener(type: "dragenter", listener: (ev: DragEvent) => any, useCapture?: boolean): void; - addEventListener(type: "dragleave", listener: (ev: DragEvent) => any, useCapture?: boolean): void; - addEventListener(type: "dragover", listener: (ev: DragEvent) => any, useCapture?: boolean): void; - addEventListener(type: "dragstart", listener: (ev: DragEvent) => any, useCapture?: boolean): void; - addEventListener(type: "drop", listener: (ev: DragEvent) => any, useCapture?: boolean): void; - addEventListener(type: "durationchange", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "emptied", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "ended", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "error", listener: (ev: ErrorEvent) => any, useCapture?: boolean): void; - addEventListener(type: "focus", listener: (ev: FocusEvent) => any, useCapture?: boolean): void; - addEventListener(type: "gotpointercapture", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "input", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "keydown", listener: (ev: KeyboardEvent) => any, useCapture?: boolean): void; - addEventListener(type: "keypress", listener: (ev: KeyboardEvent) => any, useCapture?: boolean): void; - addEventListener(type: "keyup", listener: (ev: KeyboardEvent) => any, useCapture?: boolean): void; - addEventListener(type: "load", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "load", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "loadeddata", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "loadedmetadata", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "loadstart", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "lostpointercapture", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "mousedown", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; - addEventListener(type: "mouseenter", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; - addEventListener(type: "mouseleave", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; - addEventListener(type: "mousemove", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; - addEventListener(type: "mouseout", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; - addEventListener(type: "mouseover", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; - addEventListener(type: "mouseup", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; - addEventListener(type: "mousewheel", listener: (ev: MouseWheelEvent) => any, useCapture?: boolean): void; - addEventListener(type: "paste", listener: (ev: DragEvent) => any, useCapture?: boolean): void; - addEventListener(type: "pause", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "play", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "playing", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "pointercancel", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "pointerdown", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "pointerenter", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "pointerleave", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "pointermove", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "pointerout", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "pointerover", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "pointerup", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "progress", listener: (ev: ProgressEvent) => any, useCapture?: boolean): void; - addEventListener(type: "ratechange", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "reset", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "scroll", listener: (ev: UIEvent) => any, useCapture?: boolean): void; - addEventListener(type: "seeked", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "seeking", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "select", listener: (ev: UIEvent) => any, useCapture?: boolean): void; - addEventListener(type: "selectstart", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "stalled", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "submit", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "suspend", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "timeupdate", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "touchcancel", listener: (ev: TouchEvent) => any, useCapture?: boolean): void; - addEventListener(type: "touchend", listener: (ev: TouchEvent) => any, useCapture?: boolean): void; - addEventListener(type: "touchmove", listener: (ev: TouchEvent) => any, useCapture?: boolean): void; - addEventListener(type: "touchstart", listener: (ev: TouchEvent) => any, useCapture?: boolean): void; - addEventListener(type: "volumechange", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "waiting", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "webkitfullscreenchange", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "webkitfullscreenerror", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "wheel", listener: (ev: WheelEvent) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; -} - -declare var HTMLFrameElement: { - prototype: HTMLFrameElement; - new(): HTMLFrameElement; -} - -interface HTMLFrameSetElement extends HTMLElement { - border: string; - /** - * Sets or retrieves the border color of the object. - */ - borderColor: any; - /** - * Sets or retrieves the frame widths of the object. - */ - cols: string; - /** - * Sets or retrieves whether to display a border for the frame. - */ - frameBorder: string; - /** - * Sets or retrieves the amount of additional space between the frames. - */ - frameSpacing: any; - name: string; - onafterprint: (ev: Event) => any; - onbeforeprint: (ev: Event) => any; - onbeforeunload: (ev: BeforeUnloadEvent) => any; - /** - * Fires when the object loses the input focus. - */ - onblur: (ev: FocusEvent) => any; - onerror: (ev: Event) => any; - /** - * Fires when the object receives focus. - */ - onfocus: (ev: FocusEvent) => any; - onhashchange: (ev: HashChangeEvent) => any; - onload: (ev: Event) => any; - onmessage: (ev: MessageEvent) => any; - onoffline: (ev: Event) => any; - ononline: (ev: Event) => any; - onorientationchange: (ev: Event) => any; - onpagehide: (ev: PageTransitionEvent) => any; - onpageshow: (ev: PageTransitionEvent) => any; - onresize: (ev: UIEvent) => any; - onstorage: (ev: StorageEvent) => any; - onunload: (ev: Event) => any; - /** - * Sets or retrieves the frame heights of the object. - */ - rows: string; - addEventListener(type: "MSContentZoom", listener: (ev: UIEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSGestureChange", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSGestureDoubleTap", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSGestureEnd", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSGestureHold", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSGestureStart", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSGestureTap", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSGotPointerCapture", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSInertiaStart", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSLostPointerCapture", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSManipulationStateChanged", listener: (ev: MSManipulationEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSPointerCancel", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSPointerDown", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSPointerEnter", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSPointerLeave", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSPointerMove", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSPointerOut", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSPointerOver", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSPointerUp", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "abort", listener: (ev: UIEvent) => any, useCapture?: boolean): void; - addEventListener(type: "activate", listener: (ev: UIEvent) => any, useCapture?: boolean): void; - addEventListener(type: "ariarequest", listener: (ev: AriaRequestEvent) => any, useCapture?: boolean): void; - addEventListener(type: "beforeactivate", listener: (ev: UIEvent) => any, useCapture?: boolean): void; - addEventListener(type: "beforecopy", listener: (ev: DragEvent) => any, useCapture?: boolean): void; - addEventListener(type: "beforecut", listener: (ev: DragEvent) => any, useCapture?: boolean): void; - addEventListener(type: "beforedeactivate", listener: (ev: UIEvent) => any, useCapture?: boolean): void; - addEventListener(type: "beforepaste", listener: (ev: DragEvent) => any, useCapture?: boolean): void; - addEventListener(type: "beforeprint", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "beforeunload", listener: (ev: BeforeUnloadEvent) => any, useCapture?: boolean): void; - addEventListener(type: "blur", listener: (ev: FocusEvent) => any, useCapture?: boolean): void; - addEventListener(type: "blur", listener: (ev: FocusEvent) => any, useCapture?: boolean): void; - addEventListener(type: "canplay", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "canplaythrough", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "change", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "click", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; - addEventListener(type: "command", listener: (ev: CommandEvent) => any, useCapture?: boolean): void; - addEventListener(type: "contextmenu", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "copy", listener: (ev: DragEvent) => any, useCapture?: boolean): void; - addEventListener(type: "cuechange", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "cut", listener: (ev: DragEvent) => any, useCapture?: boolean): void; - addEventListener(type: "dblclick", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; - addEventListener(type: "deactivate", listener: (ev: UIEvent) => any, useCapture?: boolean): void; - addEventListener(type: "drag", listener: (ev: DragEvent) => any, useCapture?: boolean): void; - addEventListener(type: "dragend", listener: (ev: DragEvent) => any, useCapture?: boolean): void; - addEventListener(type: "dragenter", listener: (ev: DragEvent) => any, useCapture?: boolean): void; - addEventListener(type: "dragleave", listener: (ev: DragEvent) => any, useCapture?: boolean): void; - addEventListener(type: "dragover", listener: (ev: DragEvent) => any, useCapture?: boolean): void; - addEventListener(type: "dragstart", listener: (ev: DragEvent) => any, useCapture?: boolean): void; - addEventListener(type: "drop", listener: (ev: DragEvent) => any, useCapture?: boolean): void; - addEventListener(type: "durationchange", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "emptied", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "ended", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "error", listener: (ev: ErrorEvent) => any, useCapture?: boolean): void; - addEventListener(type: "error", listener: (ev: ErrorEvent) => any, useCapture?: boolean): void; - addEventListener(type: "focus", listener: (ev: FocusEvent) => any, useCapture?: boolean): void; - addEventListener(type: "focus", listener: (ev: FocusEvent) => any, useCapture?: boolean): void; - addEventListener(type: "gotpointercapture", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "hashchange", listener: (ev: HashChangeEvent) => any, useCapture?: boolean): void; - addEventListener(type: "input", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "keydown", listener: (ev: KeyboardEvent) => any, useCapture?: boolean): void; - addEventListener(type: "keypress", listener: (ev: KeyboardEvent) => any, useCapture?: boolean): void; - addEventListener(type: "keyup", listener: (ev: KeyboardEvent) => any, useCapture?: boolean): void; - addEventListener(type: "load", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "load", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "loadeddata", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "loadedmetadata", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "loadstart", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "lostpointercapture", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "message", listener: (ev: MessageEvent) => any, useCapture?: boolean): void; - addEventListener(type: "mousedown", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; - addEventListener(type: "mouseenter", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; - addEventListener(type: "mouseleave", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; - addEventListener(type: "mousemove", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; - addEventListener(type: "mouseout", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; - addEventListener(type: "mouseover", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; - addEventListener(type: "mouseup", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; - addEventListener(type: "mousewheel", listener: (ev: MouseWheelEvent) => any, useCapture?: boolean): void; - addEventListener(type: "offline", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "online", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "orientationchange", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "pagehide", listener: (ev: PageTransitionEvent) => any, useCapture?: boolean): void; - addEventListener(type: "pageshow", listener: (ev: PageTransitionEvent) => any, useCapture?: boolean): void; - addEventListener(type: "paste", listener: (ev: DragEvent) => any, useCapture?: boolean): void; - addEventListener(type: "pause", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "play", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "playing", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "pointercancel", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "pointerdown", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "pointerenter", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "pointerleave", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "pointermove", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "pointerout", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "pointerover", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "pointerup", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "progress", listener: (ev: ProgressEvent) => any, useCapture?: boolean): void; - addEventListener(type: "ratechange", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "reset", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "resize", listener: (ev: UIEvent) => any, useCapture?: boolean): void; - addEventListener(type: "scroll", listener: (ev: UIEvent) => any, useCapture?: boolean): void; - addEventListener(type: "seeked", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "seeking", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "select", listener: (ev: UIEvent) => any, useCapture?: boolean): void; - addEventListener(type: "selectstart", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "stalled", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "storage", listener: (ev: StorageEvent) => any, useCapture?: boolean): void; - addEventListener(type: "submit", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "suspend", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "timeupdate", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "touchcancel", listener: (ev: TouchEvent) => any, useCapture?: boolean): void; - addEventListener(type: "touchend", listener: (ev: TouchEvent) => any, useCapture?: boolean): void; - addEventListener(type: "touchmove", listener: (ev: TouchEvent) => any, useCapture?: boolean): void; - addEventListener(type: "touchstart", listener: (ev: TouchEvent) => any, useCapture?: boolean): void; - addEventListener(type: "unload", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "volumechange", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "waiting", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "webkitfullscreenchange", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "webkitfullscreenerror", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "wheel", listener: (ev: WheelEvent) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; -} - -declare var HTMLFrameSetElement: { - prototype: HTMLFrameSetElement; - new(): HTMLFrameSetElement; -} - -interface HTMLHRElement extends HTMLElement, DOML2DeprecatedColorProperty, DOML2DeprecatedSizeProperty { - /** - * Sets or retrieves how the object is aligned with adjacent text. - */ - align: string; - /** - * Sets or retrieves whether the horizontal rule is drawn with 3-D shading. - */ - noShade: boolean; - /** - * Sets or retrieves the width of the object. - */ - width: number; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; -} - -declare var HTMLHRElement: { - prototype: HTMLHRElement; - new(): HTMLHRElement; -} - -interface HTMLHeadElement extends HTMLElement { - profile: string; -} - -declare var HTMLHeadElement: { - prototype: HTMLHeadElement; - new(): HTMLHeadElement; -} - -interface HTMLHeadingElement extends HTMLElement { - /** - * Sets or retrieves a value that indicates the table alignment. - */ - align: string; - clear: string; -} - -declare var HTMLHeadingElement: { - prototype: HTMLHeadingElement; - new(): HTMLHeadingElement; -} - -interface HTMLHtmlElement extends HTMLElement { - /** - * Sets or retrieves the DTD version that governs the current document. - */ - version: string; -} - -declare var HTMLHtmlElement: { - prototype: HTMLHtmlElement; - new(): HTMLHtmlElement; -} - -interface HTMLIFrameElement extends HTMLElement, GetSVGDocument { - /** - * Sets or retrieves how the object is aligned with adjacent text. - */ - align: string; - allowFullscreen: boolean; - /** - * Specifies the properties of a border drawn around an object. - */ - border: string; - /** - * Retrieves the document object of the page or frame. - */ - contentDocument: Document; - /** - * Retrieves the object of the specified. - */ - contentWindow: Window; - /** - * Sets or retrieves whether to display a border for the frame. - */ - frameBorder: string; - /** - * Sets or retrieves the amount of additional space between the frames. - */ - frameSpacing: any; - /** - * Sets or retrieves the height of the object. - */ - height: string; - /** - * Sets or retrieves the horizontal margin for the object. - */ - hspace: number; - /** - * Sets or retrieves a URI to a long description of the object. - */ - longDesc: string; - /** - * Sets or retrieves the top and bottom margin heights before displaying the text in a frame. - */ - marginHeight: string; - /** - * Sets or retrieves the left and right margin widths before displaying the text in a frame. - */ - marginWidth: string; - /** - * Sets or retrieves the frame name. - */ - name: string; - /** - * Sets or retrieves whether the user can resize the frame. - */ - noResize: boolean; - /** - * Raised when the object has been completely received from the server. - */ - onload: (ev: Event) => any; - sandbox: DOMSettableTokenList; - /** - * Sets or retrieves whether the frame can be scrolled. - */ - scrolling: string; - /** - * Sets the value indicating whether the source file of a frame or iframe has specific security restrictions applied. - */ - security: any; - /** - * Sets or retrieves a URL to be loaded by the object. - */ - src: string; - /** - * Sets or retrieves the vertical margin for the object. - */ - vspace: number; - /** - * Sets or retrieves the width of the object. - */ - width: string; - addEventListener(type: "MSContentZoom", listener: (ev: UIEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSGestureChange", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSGestureDoubleTap", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSGestureEnd", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSGestureHold", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSGestureStart", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSGestureTap", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSGotPointerCapture", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSInertiaStart", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSLostPointerCapture", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSManipulationStateChanged", listener: (ev: MSManipulationEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSPointerCancel", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSPointerDown", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSPointerEnter", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSPointerLeave", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSPointerMove", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSPointerOut", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSPointerOver", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSPointerUp", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "abort", listener: (ev: UIEvent) => any, useCapture?: boolean): void; - addEventListener(type: "activate", listener: (ev: UIEvent) => any, useCapture?: boolean): void; - addEventListener(type: "ariarequest", listener: (ev: AriaRequestEvent) => any, useCapture?: boolean): void; - addEventListener(type: "beforeactivate", listener: (ev: UIEvent) => any, useCapture?: boolean): void; - addEventListener(type: "beforecopy", listener: (ev: DragEvent) => any, useCapture?: boolean): void; - addEventListener(type: "beforecut", listener: (ev: DragEvent) => any, useCapture?: boolean): void; - addEventListener(type: "beforedeactivate", listener: (ev: UIEvent) => any, useCapture?: boolean): void; - addEventListener(type: "beforepaste", listener: (ev: DragEvent) => any, useCapture?: boolean): void; - addEventListener(type: "blur", listener: (ev: FocusEvent) => any, useCapture?: boolean): void; - addEventListener(type: "canplay", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "canplaythrough", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "change", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "click", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; - addEventListener(type: "command", listener: (ev: CommandEvent) => any, useCapture?: boolean): void; - addEventListener(type: "contextmenu", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "copy", listener: (ev: DragEvent) => any, useCapture?: boolean): void; - addEventListener(type: "cuechange", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "cut", listener: (ev: DragEvent) => any, useCapture?: boolean): void; - addEventListener(type: "dblclick", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; - addEventListener(type: "deactivate", listener: (ev: UIEvent) => any, useCapture?: boolean): void; - addEventListener(type: "drag", listener: (ev: DragEvent) => any, useCapture?: boolean): void; - addEventListener(type: "dragend", listener: (ev: DragEvent) => any, useCapture?: boolean): void; - addEventListener(type: "dragenter", listener: (ev: DragEvent) => any, useCapture?: boolean): void; - addEventListener(type: "dragleave", listener: (ev: DragEvent) => any, useCapture?: boolean): void; - addEventListener(type: "dragover", listener: (ev: DragEvent) => any, useCapture?: boolean): void; - addEventListener(type: "dragstart", listener: (ev: DragEvent) => any, useCapture?: boolean): void; - addEventListener(type: "drop", listener: (ev: DragEvent) => any, useCapture?: boolean): void; - addEventListener(type: "durationchange", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "emptied", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "ended", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "error", listener: (ev: ErrorEvent) => any, useCapture?: boolean): void; - addEventListener(type: "focus", listener: (ev: FocusEvent) => any, useCapture?: boolean): void; - addEventListener(type: "gotpointercapture", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "input", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "keydown", listener: (ev: KeyboardEvent) => any, useCapture?: boolean): void; - addEventListener(type: "keypress", listener: (ev: KeyboardEvent) => any, useCapture?: boolean): void; - addEventListener(type: "keyup", listener: (ev: KeyboardEvent) => any, useCapture?: boolean): void; - addEventListener(type: "load", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "load", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "loadeddata", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "loadedmetadata", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "loadstart", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "lostpointercapture", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "mousedown", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; - addEventListener(type: "mouseenter", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; - addEventListener(type: "mouseleave", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; - addEventListener(type: "mousemove", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; - addEventListener(type: "mouseout", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; - addEventListener(type: "mouseover", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; - addEventListener(type: "mouseup", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; - addEventListener(type: "mousewheel", listener: (ev: MouseWheelEvent) => any, useCapture?: boolean): void; - addEventListener(type: "paste", listener: (ev: DragEvent) => any, useCapture?: boolean): void; - addEventListener(type: "pause", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "play", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "playing", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "pointercancel", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "pointerdown", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "pointerenter", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "pointerleave", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "pointermove", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "pointerout", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "pointerover", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "pointerup", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "progress", listener: (ev: ProgressEvent) => any, useCapture?: boolean): void; - addEventListener(type: "ratechange", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "reset", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "scroll", listener: (ev: UIEvent) => any, useCapture?: boolean): void; - addEventListener(type: "seeked", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "seeking", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "select", listener: (ev: UIEvent) => any, useCapture?: boolean): void; - addEventListener(type: "selectstart", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "stalled", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "submit", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "suspend", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "timeupdate", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "touchcancel", listener: (ev: TouchEvent) => any, useCapture?: boolean): void; - addEventListener(type: "touchend", listener: (ev: TouchEvent) => any, useCapture?: boolean): void; - addEventListener(type: "touchmove", listener: (ev: TouchEvent) => any, useCapture?: boolean): void; - addEventListener(type: "touchstart", listener: (ev: TouchEvent) => any, useCapture?: boolean): void; - addEventListener(type: "volumechange", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "waiting", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "webkitfullscreenchange", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "webkitfullscreenerror", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "wheel", listener: (ev: WheelEvent) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; -} - -declare var HTMLIFrameElement: { - prototype: HTMLIFrameElement; - new(): HTMLIFrameElement; -} - -interface HTMLImageElement extends HTMLElement { - /** - * Sets or retrieves how the object is aligned with adjacent text. - */ - align: string; - /** - * Sets or retrieves a text alternative to the graphic. - */ - alt: string; - /** - * Specifies the properties of a border drawn around an object. - */ - border: string; - /** - * Retrieves whether the object is fully loaded. - */ - complete: boolean; - crossOrigin: string; - currentSrc: string; - /** - * Sets or retrieves the height of the object. - */ - height: number; - /** - * Sets or retrieves the width of the border to draw around the object. - */ - hspace: number; - /** - * Sets or retrieves whether the image is a server-side image map. - */ - isMap: boolean; - /** - * Sets or retrieves a Uniform Resource Identifier (URI) to a long description of the object. - */ - longDesc: string; - /** - * Gets or sets whether the DLNA PlayTo device is available. - */ - msPlayToDisabled: boolean; - msPlayToPreferredSourceUri: string; - /** - * Gets or sets the primary DLNA PlayTo device. - */ - msPlayToPrimary: boolean; - /** - * Gets the source associated with the media element for use by the PlayToManager. - */ - msPlayToSource: any; - /** - * Sets or retrieves the name of the object. - */ - name: string; - /** - * The original height of the image resource before sizing. - */ - naturalHeight: number; - /** - * The original width of the image resource before sizing. - */ - naturalWidth: number; - /** - * The address or URL of the a media resource that is to be considered. - */ - src: string; - srcset: string; - /** - * Sets or retrieves the URL, often with a bookmark extension (#name), to use as a client-side image map. - */ - useMap: string; - /** - * Sets or retrieves the vertical margin for the object. - */ - vspace: number; - /** - * Sets or retrieves the width of the object. - */ - width: number; - x: number; - y: number; - msGetAsCastingSource(): any; -} - -declare var HTMLImageElement: { - prototype: HTMLImageElement; - new(): HTMLImageElement; - create(): HTMLImageElement; -} - -interface HTMLInputElement extends HTMLElement { - /** - * Sets or retrieves a comma-separated list of content types. - */ - accept: string; - /** - * Sets or retrieves how the object is aligned with adjacent text. - */ - align: string; - /** - * Sets or retrieves a text alternative to the graphic. - */ - alt: string; - /** - * Specifies whether autocomplete is applied to an editable text field. - */ - autocomplete: string; - /** - * Provides a way to direct a user to a specific field when a document loads. This can provide both direction and convenience for a user, reducing the need to click or tab to a field when a page opens. This attribute is true when present on an element, and false when missing. - */ - autofocus: boolean; - /** - * Sets or retrieves the width of the border to draw around the object. - */ - border: string; - /** - * Sets or retrieves the state of the check box or radio button. - */ - checked: boolean; - /** - * Retrieves whether the object is fully loaded. - */ - complete: boolean; - /** - * Sets or retrieves the state of the check box or radio button. - */ - defaultChecked: boolean; - /** - * Sets or retrieves the initial contents of the object. - */ - defaultValue: string; - disabled: boolean; - /** - * Returns a FileList object on a file type input object. - */ - files: FileList; - /** - * Retrieves a reference to the form that the object is embedded in. - */ - form: HTMLFormElement; - /** - * Overrides the action attribute (where the data on a form is sent) on the parent form element. - */ - formAction: string; - /** - * Used to override the encoding (formEnctype attribute) specified on the form element. - */ - formEnctype: string; - /** - * Overrides the submit method attribute previously specified on a form element. - */ - formMethod: string; - /** - * Overrides any validation or required attributes on a form or form elements to allow it to be submitted without validation. This can be used to create a "save draft"-type submit option. - */ - formNoValidate: string; - /** - * Overrides the target attribute on a form element. - */ - formTarget: string; - /** - * Sets or retrieves the height of the object. - */ - height: string; - /** - * Sets or retrieves the width of the border to draw around the object. - */ - hspace: number; - indeterminate: boolean; - /** - * Specifies the ID of a pre-defined datalist of options for an input element. - */ - list: HTMLElement; - /** - * Defines the maximum acceptable value for an input element with type="number".When used with the min and step attributes, lets you control the range and increment (such as only even numbers) that the user can enter into an input field. - */ - max: string; - /** - * Sets or retrieves the maximum number of characters that the user can enter in a text control. - */ - maxLength: number; - /** - * Defines the minimum acceptable value for an input element with type="number". When used with the max and step attributes, lets you control the range and increment (such as even numbers only) that the user can enter into an input field. - */ - min: string; - /** - * Sets or retrieves the Boolean value indicating whether multiple items can be selected from a list. - */ - multiple: boolean; - /** - * Sets or retrieves the name of the object. - */ - name: string; - /** - * Gets or sets a string containing a regular expression that the user's input must match. - */ - pattern: string; - /** - * Gets or sets a text string that is displayed in an input field as a hint or prompt to users as the format or type of information they need to enter.The text appears in an input field until the user puts focus on the field. - */ - placeholder: string; - readOnly: boolean; - /** - * When present, marks an element that can't be submitted without a value. - */ - required: boolean; - /** - * Gets or sets the end position or offset of a text selection. - */ - selectionEnd: number; - /** - * Gets or sets the starting position or offset of a text selection. - */ - selectionStart: number; - size: number; - /** - * The address or URL of the a media resource that is to be considered. - */ - src: string; - status: boolean; - /** - * Defines an increment or jump between values that you want to allow the user to enter. When used with the max and min attributes, lets you control the range and increment (for example, allow only even numbers) that the user can enter into an input field. - */ - step: string; - /** - * Returns the content type of the object. - */ - type: string; - /** - * Sets or retrieves the URL, often with a bookmark extension (#name), to use as a client-side image map. - */ - useMap: string; - /** - * Returns the error message that would be displayed if the user submits the form, or an empty string if no error message. It also triggers the standard error message, such as "this is a required field". The result is that the user sees validation messages without actually submitting. - */ - validationMessage: string; - /** - * Returns a ValidityState object that represents the validity states of an element. - */ - validity: ValidityState; - /** - * Returns the value of the data at the cursor's current position. - */ - value: string; - valueAsDate: Date; - /** - * Returns the input field value as a number. - */ - valueAsNumber: number; - /** - * Sets or retrieves the vertical margin for the object. - */ - vspace: number; - /** - * Sets or retrieves the width of the object. - */ - width: string; - /** - * Returns whether an element will successfully validate based on forms validation rules and constraints. - */ - willValidate: boolean; - /** - * Returns whether a form will validate when it is submitted, without having to submit it. - */ - checkValidity(): boolean; - /** - * Creates a TextRange object for the element. - */ - createTextRange(): TextRange; - /** - * Makes the selection equal to the current object. - */ - select(): void; - /** - * Sets a custom error message that is displayed when a form is submitted. - * @param error Sets a custom error message that is displayed when a form is submitted. - */ - setCustomValidity(error: string): void; - /** - * Sets the start and end positions of a selection in a text field. - * @param start The offset into the text field for the start of the selection. - * @param end The offset into the text field for the end of the selection. - */ - setSelectionRange(start: number, end: number): void; - /** - * Decrements a range input control's value by the value given by the Step attribute. If the optional parameter is used, it will decrement the input control's step value multiplied by the parameter's value. - * @param n Value to decrement the value by. - */ - stepDown(n?: number): void; - /** - * Increments a range input control's value by the value given by the Step attribute. If the optional parameter is used, will increment the input control's value by that value. - * @param n Value to increment the value by. - */ - stepUp(n?: number): void; -} - -declare var HTMLInputElement: { - prototype: HTMLInputElement; - new(): HTMLInputElement; -} - -interface HTMLIsIndexElement extends HTMLElement { - /** - * Sets or retrieves the URL to which the form content is sent for processing. - */ - action: string; - /** - * Retrieves a reference to the form that the object is embedded in. - */ - form: HTMLFormElement; - prompt: string; -} - -declare var HTMLIsIndexElement: { - prototype: HTMLIsIndexElement; - new(): HTMLIsIndexElement; -} - -interface HTMLLIElement extends HTMLElement { - type: string; - /** - * Sets or retrieves the value of a list item. - */ - value: number; -} - -declare var HTMLLIElement: { - prototype: HTMLLIElement; - new(): HTMLLIElement; -} - -interface HTMLLabelElement extends HTMLElement { - /** - * Retrieves a reference to the form that the object is embedded in. - */ - form: HTMLFormElement; - /** - * Sets or retrieves the object to which the given label object is assigned. - */ - htmlFor: string; -} - -declare var HTMLLabelElement: { - prototype: HTMLLabelElement; - new(): HTMLLabelElement; -} - -interface HTMLLegendElement extends HTMLElement { - /** - * Retrieves a reference to the form that the object is embedded in. - */ - align: string; - /** - * Retrieves a reference to the form that the object is embedded in. - */ - form: HTMLFormElement; -} - -declare var HTMLLegendElement: { - prototype: HTMLLegendElement; - new(): HTMLLegendElement; -} - -interface HTMLLinkElement extends HTMLElement, LinkStyle { - /** - * Sets or retrieves the character set used to encode the object. - */ - charset: string; - disabled: boolean; - /** - * Sets or retrieves a destination URL or an anchor point. - */ - href: string; - /** - * Sets or retrieves the language code of the object. - */ - hreflang: string; - /** - * Sets or retrieves the media type. - */ - media: string; - /** - * Sets or retrieves the relationship between the object and the destination of the link. - */ - rel: string; - /** - * Sets or retrieves the relationship between the object and the destination of the link. - */ - rev: string; - /** - * Sets or retrieves the window or frame at which to target content. - */ - target: string; - /** - * Sets or retrieves the MIME type of the object. - */ - type: string; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; -} - -declare var HTMLLinkElement: { - prototype: HTMLLinkElement; - new(): HTMLLinkElement; -} - -interface HTMLMapElement extends HTMLElement { - /** - * Retrieves a collection of the area objects defined for the given map object. - */ - areas: HTMLAreasCollection; - /** - * Sets or retrieves the name of the object. - */ - name: string; -} - -declare var HTMLMapElement: { - prototype: HTMLMapElement; - new(): HTMLMapElement; -} - -interface HTMLMarqueeElement extends HTMLElement { - behavior: string; - bgColor: any; - direction: string; - height: string; - hspace: number; - loop: number; - onbounce: (ev: Event) => any; - onfinish: (ev: Event) => any; - onstart: (ev: Event) => any; - scrollAmount: number; - scrollDelay: number; - trueSpeed: boolean; - vspace: number; - width: string; - start(): void; - stop(): void; - addEventListener(type: "MSContentZoom", listener: (ev: UIEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSGestureChange", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSGestureDoubleTap", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSGestureEnd", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSGestureHold", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSGestureStart", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSGestureTap", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSGotPointerCapture", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSInertiaStart", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSLostPointerCapture", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSManipulationStateChanged", listener: (ev: MSManipulationEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSPointerCancel", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSPointerDown", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSPointerEnter", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSPointerLeave", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSPointerMove", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSPointerOut", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSPointerOver", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSPointerUp", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "abort", listener: (ev: UIEvent) => any, useCapture?: boolean): void; - addEventListener(type: "activate", listener: (ev: UIEvent) => any, useCapture?: boolean): void; - addEventListener(type: "ariarequest", listener: (ev: AriaRequestEvent) => any, useCapture?: boolean): void; - addEventListener(type: "beforeactivate", listener: (ev: UIEvent) => any, useCapture?: boolean): void; - addEventListener(type: "beforecopy", listener: (ev: DragEvent) => any, useCapture?: boolean): void; - addEventListener(type: "beforecut", listener: (ev: DragEvent) => any, useCapture?: boolean): void; - addEventListener(type: "beforedeactivate", listener: (ev: UIEvent) => any, useCapture?: boolean): void; - addEventListener(type: "beforepaste", listener: (ev: DragEvent) => any, useCapture?: boolean): void; - addEventListener(type: "blur", listener: (ev: FocusEvent) => any, useCapture?: boolean): void; - addEventListener(type: "bounce", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "canplay", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "canplaythrough", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "change", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "click", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; - addEventListener(type: "command", listener: (ev: CommandEvent) => any, useCapture?: boolean): void; - addEventListener(type: "contextmenu", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "copy", listener: (ev: DragEvent) => any, useCapture?: boolean): void; - addEventListener(type: "cuechange", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "cut", listener: (ev: DragEvent) => any, useCapture?: boolean): void; - addEventListener(type: "dblclick", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; - addEventListener(type: "deactivate", listener: (ev: UIEvent) => any, useCapture?: boolean): void; - addEventListener(type: "drag", listener: (ev: DragEvent) => any, useCapture?: boolean): void; - addEventListener(type: "dragend", listener: (ev: DragEvent) => any, useCapture?: boolean): void; - addEventListener(type: "dragenter", listener: (ev: DragEvent) => any, useCapture?: boolean): void; - addEventListener(type: "dragleave", listener: (ev: DragEvent) => any, useCapture?: boolean): void; - addEventListener(type: "dragover", listener: (ev: DragEvent) => any, useCapture?: boolean): void; - addEventListener(type: "dragstart", listener: (ev: DragEvent) => any, useCapture?: boolean): void; - addEventListener(type: "drop", listener: (ev: DragEvent) => any, useCapture?: boolean): void; - addEventListener(type: "durationchange", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "emptied", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "ended", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "error", listener: (ev: ErrorEvent) => any, useCapture?: boolean): void; - addEventListener(type: "finish", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "focus", listener: (ev: FocusEvent) => any, useCapture?: boolean): void; - addEventListener(type: "gotpointercapture", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "input", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "keydown", listener: (ev: KeyboardEvent) => any, useCapture?: boolean): void; - addEventListener(type: "keypress", listener: (ev: KeyboardEvent) => any, useCapture?: boolean): void; - addEventListener(type: "keyup", listener: (ev: KeyboardEvent) => any, useCapture?: boolean): void; - addEventListener(type: "load", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "loadeddata", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "loadedmetadata", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "loadstart", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "lostpointercapture", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "mousedown", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; - addEventListener(type: "mouseenter", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; - addEventListener(type: "mouseleave", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; - addEventListener(type: "mousemove", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; - addEventListener(type: "mouseout", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; - addEventListener(type: "mouseover", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; - addEventListener(type: "mouseup", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; - addEventListener(type: "mousewheel", listener: (ev: MouseWheelEvent) => any, useCapture?: boolean): void; - addEventListener(type: "paste", listener: (ev: DragEvent) => any, useCapture?: boolean): void; - addEventListener(type: "pause", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "play", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "playing", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "pointercancel", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "pointerdown", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "pointerenter", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "pointerleave", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "pointermove", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "pointerout", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "pointerover", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "pointerup", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "progress", listener: (ev: ProgressEvent) => any, useCapture?: boolean): void; - addEventListener(type: "ratechange", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "reset", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "scroll", listener: (ev: UIEvent) => any, useCapture?: boolean): void; - addEventListener(type: "seeked", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "seeking", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "select", listener: (ev: UIEvent) => any, useCapture?: boolean): void; - addEventListener(type: "selectstart", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "stalled", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "start", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "submit", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "suspend", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "timeupdate", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "touchcancel", listener: (ev: TouchEvent) => any, useCapture?: boolean): void; - addEventListener(type: "touchend", listener: (ev: TouchEvent) => any, useCapture?: boolean): void; - addEventListener(type: "touchmove", listener: (ev: TouchEvent) => any, useCapture?: boolean): void; - addEventListener(type: "touchstart", listener: (ev: TouchEvent) => any, useCapture?: boolean): void; - addEventListener(type: "volumechange", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "waiting", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "webkitfullscreenchange", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "webkitfullscreenerror", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "wheel", listener: (ev: WheelEvent) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; -} - -declare var HTMLMarqueeElement: { - prototype: HTMLMarqueeElement; - new(): HTMLMarqueeElement; -} - -interface HTMLMediaElement extends HTMLElement { - /** - * Returns an AudioTrackList object with the audio tracks for a given video element. - */ - audioTracks: AudioTrackList; - /** - * Gets or sets a value that indicates whether to start playing the media automatically. - */ - autoplay: boolean; - /** - * Gets a collection of buffered time ranges. - */ - buffered: TimeRanges; - /** - * Gets or sets a flag that indicates whether the client provides a set of controls for the media (in case the developer does not include controls for the player). - */ - controls: boolean; - /** - * Gets the address or URL of the current media resource that is selected by IHTMLMediaElement. - */ - currentSrc: string; - /** - * Gets or sets the current playback position, in seconds. - */ - currentTime: number; - defaultMuted: boolean; - /** - * Gets or sets the default playback rate when the user is not using fast forward or reverse for a video or audio resource. - */ - defaultPlaybackRate: number; - /** - * Returns the duration in seconds of the current media resource. A NaN value is returned if duration is not available, or Infinity if the media resource is streaming. - */ - duration: number; - /** - * Gets information about whether the playback has ended or not. - */ - ended: boolean; - /** - * Returns an object representing the current error state of the audio or video element. - */ - error: MediaError; - /** - * Gets or sets a flag to specify whether playback should restart after it completes. - */ - loop: boolean; - /** - * Specifies the purpose of the audio or video media, such as background audio or alerts. - */ - msAudioCategory: string; - /** - * Specifies the output device id that the audio will be sent to. - */ - msAudioDeviceType: string; - msGraphicsTrustStatus: MSGraphicsTrust; - /** - * Gets the MSMediaKeys object, which is used for decrypting media data, that is associated with this media element. - */ - msKeys: MSMediaKeys; - /** - * Gets or sets whether the DLNA PlayTo device is available. - */ - msPlayToDisabled: boolean; - /** - * Gets or sets the path to the preferred media source. This enables the Play To target device to stream the media content, which can be DRM protected, from a different location, such as a cloud media server. - */ - msPlayToPreferredSourceUri: string; - /** - * Gets or sets the primary DLNA PlayTo device. - */ - msPlayToPrimary: boolean; - /** - * Gets the source associated with the media element for use by the PlayToManager. - */ - msPlayToSource: any; - /** - * Specifies whether or not to enable low-latency playback on the media element. - */ - msRealTime: boolean; - /** - * Gets or sets a flag that indicates whether the audio (either audio or the audio track on video media) is muted. - */ - muted: boolean; - /** - * Gets the current network activity for the element. - */ - networkState: number; - onmsneedkey: (ev: MSMediaKeyNeededEvent) => any; - /** - * Gets a flag that specifies whether playback is paused. - */ - paused: boolean; - /** - * Gets or sets the current rate of speed for the media resource to play. This speed is expressed as a multiple of the normal speed of the media resource. - */ - playbackRate: number; - /** - * Gets TimeRanges for the current media resource that has been played. - */ - played: TimeRanges; - /** - * Gets or sets the current playback position, in seconds. - */ - preload: string; - readyState: any; - /** - * Returns a TimeRanges object that represents the ranges of the current media resource that can be seeked. - */ - seekable: TimeRanges; - /** - * Gets a flag that indicates whether the the client is currently moving to a new playback position in the media resource. - */ - seeking: boolean; - /** - * The address or URL of the a media resource that is to be considered. - */ - src: string; - textTracks: TextTrackList; - videoTracks: VideoTrackList; - /** - * Gets or sets the volume level for audio portions of the media element. - */ - volume: number; - addTextTrack(kind: string, label?: string, language?: string): TextTrack; - /** - * Returns a string that specifies whether the client can play a given media resource type. - */ - canPlayType(type: string): string; - /** - * Fires immediately after the client loads the object. - */ - load(): void; - /** - * Clears all effects from the media pipeline. - */ - msClearEffects(): void; - msGetAsCastingSource(): any; - /** - * Inserts the specified audio effect into media pipeline. - */ - msInsertAudioEffect(activatableClassId: string, effectRequired: boolean, config?: any): void; - msSetMediaKeys(mediaKeys: MSMediaKeys): void; - /** - * Specifies the media protection manager for a given media pipeline. - */ - msSetMediaProtectionManager(mediaProtectionManager?: any): void; - /** - * Pauses the current playback and sets paused to TRUE. This can be used to test whether the media is playing or paused. You can also use the pause or play events to tell whether the media is playing or not. - */ - pause(): void; - /** - * Loads and starts playback of a media resource. - */ - play(): void; - HAVE_CURRENT_DATA: number; - HAVE_ENOUGH_DATA: number; - HAVE_FUTURE_DATA: number; - HAVE_METADATA: number; - HAVE_NOTHING: number; - NETWORK_EMPTY: number; - NETWORK_IDLE: number; - NETWORK_LOADING: number; - NETWORK_NO_SOURCE: number; - addEventListener(type: "MSContentZoom", listener: (ev: UIEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSGestureChange", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSGestureDoubleTap", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSGestureEnd", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSGestureHold", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSGestureStart", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSGestureTap", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSGotPointerCapture", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSInertiaStart", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSLostPointerCapture", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSManipulationStateChanged", listener: (ev: MSManipulationEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSPointerCancel", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSPointerDown", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSPointerEnter", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSPointerLeave", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSPointerMove", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSPointerOut", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSPointerOver", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSPointerUp", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "abort", listener: (ev: UIEvent) => any, useCapture?: boolean): void; - addEventListener(type: "activate", listener: (ev: UIEvent) => any, useCapture?: boolean): void; - addEventListener(type: "ariarequest", listener: (ev: AriaRequestEvent) => any, useCapture?: boolean): void; - addEventListener(type: "beforeactivate", listener: (ev: UIEvent) => any, useCapture?: boolean): void; - addEventListener(type: "beforecopy", listener: (ev: DragEvent) => any, useCapture?: boolean): void; - addEventListener(type: "beforecut", listener: (ev: DragEvent) => any, useCapture?: boolean): void; - addEventListener(type: "beforedeactivate", listener: (ev: UIEvent) => any, useCapture?: boolean): void; - addEventListener(type: "beforepaste", listener: (ev: DragEvent) => any, useCapture?: boolean): void; - addEventListener(type: "blur", listener: (ev: FocusEvent) => any, useCapture?: boolean): void; - addEventListener(type: "canplay", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "canplaythrough", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "change", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "click", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; - addEventListener(type: "command", listener: (ev: CommandEvent) => any, useCapture?: boolean): void; - addEventListener(type: "contextmenu", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "copy", listener: (ev: DragEvent) => any, useCapture?: boolean): void; - addEventListener(type: "cuechange", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "cut", listener: (ev: DragEvent) => any, useCapture?: boolean): void; - addEventListener(type: "dblclick", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; - addEventListener(type: "deactivate", listener: (ev: UIEvent) => any, useCapture?: boolean): void; - addEventListener(type: "drag", listener: (ev: DragEvent) => any, useCapture?: boolean): void; - addEventListener(type: "dragend", listener: (ev: DragEvent) => any, useCapture?: boolean): void; - addEventListener(type: "dragenter", listener: (ev: DragEvent) => any, useCapture?: boolean): void; - addEventListener(type: "dragleave", listener: (ev: DragEvent) => any, useCapture?: boolean): void; - addEventListener(type: "dragover", listener: (ev: DragEvent) => any, useCapture?: boolean): void; - addEventListener(type: "dragstart", listener: (ev: DragEvent) => any, useCapture?: boolean): void; - addEventListener(type: "drop", listener: (ev: DragEvent) => any, useCapture?: boolean): void; - addEventListener(type: "durationchange", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "emptied", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "ended", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "error", listener: (ev: ErrorEvent) => any, useCapture?: boolean): void; - addEventListener(type: "focus", listener: (ev: FocusEvent) => any, useCapture?: boolean): void; - addEventListener(type: "gotpointercapture", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "input", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "keydown", listener: (ev: KeyboardEvent) => any, useCapture?: boolean): void; - addEventListener(type: "keypress", listener: (ev: KeyboardEvent) => any, useCapture?: boolean): void; - addEventListener(type: "keyup", listener: (ev: KeyboardEvent) => any, useCapture?: boolean): void; - addEventListener(type: "load", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "loadeddata", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "loadedmetadata", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "loadstart", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "lostpointercapture", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "mousedown", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; - addEventListener(type: "mouseenter", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; - addEventListener(type: "mouseleave", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; - addEventListener(type: "mousemove", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; - addEventListener(type: "mouseout", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; - addEventListener(type: "mouseover", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; - addEventListener(type: "mouseup", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; - addEventListener(type: "mousewheel", listener: (ev: MouseWheelEvent) => any, useCapture?: boolean): void; - addEventListener(type: "msneedkey", listener: (ev: MSMediaKeyNeededEvent) => any, useCapture?: boolean): void; - addEventListener(type: "paste", listener: (ev: DragEvent) => any, useCapture?: boolean): void; - addEventListener(type: "pause", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "play", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "playing", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "pointercancel", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "pointerdown", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "pointerenter", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "pointerleave", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "pointermove", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "pointerout", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "pointerover", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "pointerup", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "progress", listener: (ev: ProgressEvent) => any, useCapture?: boolean): void; - addEventListener(type: "ratechange", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "reset", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "scroll", listener: (ev: UIEvent) => any, useCapture?: boolean): void; - addEventListener(type: "seeked", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "seeking", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "select", listener: (ev: UIEvent) => any, useCapture?: boolean): void; - addEventListener(type: "selectstart", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "stalled", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "submit", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "suspend", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "timeupdate", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "touchcancel", listener: (ev: TouchEvent) => any, useCapture?: boolean): void; - addEventListener(type: "touchend", listener: (ev: TouchEvent) => any, useCapture?: boolean): void; - addEventListener(type: "touchmove", listener: (ev: TouchEvent) => any, useCapture?: boolean): void; - addEventListener(type: "touchstart", listener: (ev: TouchEvent) => any, useCapture?: boolean): void; - addEventListener(type: "volumechange", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "waiting", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "webkitfullscreenchange", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "webkitfullscreenerror", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "wheel", listener: (ev: WheelEvent) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; -} - -declare var HTMLMediaElement: { - prototype: HTMLMediaElement; - new(): HTMLMediaElement; - HAVE_CURRENT_DATA: number; - HAVE_ENOUGH_DATA: number; - HAVE_FUTURE_DATA: number; - HAVE_METADATA: number; - HAVE_NOTHING: number; - NETWORK_EMPTY: number; - NETWORK_IDLE: number; - NETWORK_LOADING: number; - NETWORK_NO_SOURCE: number; -} - -interface HTMLMenuElement extends HTMLElement { - compact: boolean; - type: string; -} - -declare var HTMLMenuElement: { - prototype: HTMLMenuElement; - new(): HTMLMenuElement; -} - -interface HTMLMetaElement extends HTMLElement { - /** - * Sets or retrieves the character set used to encode the object. - */ - charset: string; - /** - * Gets or sets meta-information to associate with httpEquiv or name. - */ - content: string; - /** - * Gets or sets information used to bind the value of a content attribute of a meta element to an HTTP response header. - */ - httpEquiv: string; - /** - * Sets or retrieves the value specified in the content attribute of the meta object. - */ - name: string; - /** - * Sets or retrieves a scheme to be used in interpreting the value of a property specified for the object. - */ - scheme: string; - /** - * Sets or retrieves the URL property that will be loaded after the specified time has elapsed. - */ - url: string; -} - -declare var HTMLMetaElement: { - prototype: HTMLMetaElement; - new(): HTMLMetaElement; -} - -interface HTMLModElement extends HTMLElement { - /** - * Sets or retrieves reference information about the object. - */ - cite: string; - /** - * Sets or retrieves the date and time of a modification to the object. - */ - dateTime: string; -} - -declare var HTMLModElement: { - prototype: HTMLModElement; - new(): HTMLModElement; -} - -interface HTMLNextIdElement extends HTMLElement { - n: string; -} - -declare var HTMLNextIdElement: { - prototype: HTMLNextIdElement; - new(): HTMLNextIdElement; -} - -interface HTMLOListElement extends HTMLElement { - compact: boolean; - /** - * The starting number. - */ - start: number; - type: string; -} - -declare var HTMLOListElement: { - prototype: HTMLOListElement; - new(): HTMLOListElement; -} - -interface HTMLObjectElement extends HTMLElement, GetSVGDocument { - /** - * Retrieves a string of the URL where the object tag can be found. This is often the href of the document that the object is in, or the value set by a base element. - */ - BaseHref: string; - align: string; - /** - * Sets or retrieves a text alternative to the graphic. - */ - alt: string; - /** - * Gets or sets the optional alternative HTML script to execute if the object fails to load. - */ - altHtml: string; - /** - * Sets or retrieves a character string that can be used to implement your own archive functionality for the object. - */ - archive: string; - border: string; - /** - * Sets or retrieves the URL of the file containing the compiled Java class. - */ - code: string; - /** - * Sets or retrieves the URL of the component. - */ - codeBase: string; - /** - * Sets or retrieves the Internet media type for the code associated with the object. - */ - codeType: string; - /** - * Retrieves the document object of the page or frame. - */ - contentDocument: Document; - /** - * Sets or retrieves the URL that references the data of the object. - */ - data: string; - declare: boolean; - /** - * Retrieves a reference to the form that the object is embedded in. - */ - form: HTMLFormElement; - /** - * Sets or retrieves the height of the object. - */ - height: string; - hspace: number; - /** - * Gets or sets whether the DLNA PlayTo device is available. - */ - msPlayToDisabled: boolean; - /** - * Gets or sets the path to the preferred media source. This enables the Play To target device to stream the media content, which can be DRM protected, from a different location, such as a cloud media server. - */ - msPlayToPreferredSourceUri: string; - /** - * Gets or sets the primary DLNA PlayTo device. - */ - msPlayToPrimary: boolean; - /** - * Gets the source associated with the media element for use by the PlayToManager. - */ - msPlayToSource: any; - /** - * Sets or retrieves the name of the object. - */ - name: string; - /** - * Retrieves the contained object. - */ - object: any; - readyState: number; - /** - * Sets or retrieves a message to be displayed while an object is loading. - */ - standby: string; - /** - * Sets or retrieves the MIME type of the object. - */ - type: string; - /** - * Sets or retrieves the URL, often with a bookmark extension (#name), to use as a client-side image map. - */ - useMap: string; - /** - * Returns the error message that would be displayed if the user submits the form, or an empty string if no error message. It also triggers the standard error message, such as "this is a required field". The result is that the user sees validation messages without actually submitting. - */ - validationMessage: string; - /** - * Returns a ValidityState object that represents the validity states of an element. - */ - validity: ValidityState; - vspace: number; - /** - * Sets or retrieves the width of the object. - */ - width: string; - /** - * Returns whether an element will successfully validate based on forms validation rules and constraints. - */ - willValidate: boolean; - /** - * Returns whether a form will validate when it is submitted, without having to submit it. - */ - checkValidity(): boolean; - /** - * Sets a custom error message that is displayed when a form is submitted. - * @param error Sets a custom error message that is displayed when a form is submitted. - */ - setCustomValidity(error: string): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; -} - -declare var HTMLObjectElement: { - prototype: HTMLObjectElement; - new(): HTMLObjectElement; -} - -interface HTMLOptGroupElement extends HTMLElement { - /** - * Sets or retrieves the status of an option. - */ - defaultSelected: boolean; - disabled: boolean; - /** - * Retrieves a reference to the form that the object is embedded in. - */ - form: HTMLFormElement; - /** - * Sets or retrieves the ordinal position of an option in a list box. - */ - index: number; - /** - * Sets or retrieves a value that you can use to implement your own label functionality for the object. - */ - label: string; - /** - * Sets or retrieves whether the option in the list box is the default item. - */ - selected: boolean; - /** - * Sets or retrieves the text string specified by the option tag. - */ - text: string; - /** - * Sets or retrieves the value which is returned to the server when the form control is submitted. - */ - value: string; -} - -declare var HTMLOptGroupElement: { - prototype: HTMLOptGroupElement; - new(): HTMLOptGroupElement; -} - -interface HTMLOptionElement extends HTMLElement { - /** - * Sets or retrieves the status of an option. - */ - defaultSelected: boolean; - disabled: boolean; - /** - * Retrieves a reference to the form that the object is embedded in. - */ - form: HTMLFormElement; - /** - * Sets or retrieves the ordinal position of an option in a list box. - */ - index: number; - /** - * Sets or retrieves a value that you can use to implement your own label functionality for the object. - */ - label: string; - /** - * Sets or retrieves whether the option in the list box is the default item. - */ - selected: boolean; - /** - * Sets or retrieves the text string specified by the option tag. - */ - text: string; - /** - * Sets or retrieves the value which is returned to the server when the form control is submitted. - */ - value: string; -} - -declare var HTMLOptionElement: { - prototype: HTMLOptionElement; - new(): HTMLOptionElement; - create(): HTMLOptionElement; -} - -interface HTMLParagraphElement extends HTMLElement { - /** - * Sets or retrieves how the object is aligned with adjacent text. - */ - align: string; - clear: string; -} - -declare var HTMLParagraphElement: { - prototype: HTMLParagraphElement; - new(): HTMLParagraphElement; -} - -interface HTMLParamElement extends HTMLElement { - /** - * Sets or retrieves the name of an input parameter for an element. - */ - name: string; - /** - * Sets or retrieves the content type of the resource designated by the value attribute. - */ - type: string; - /** - * Sets or retrieves the value of an input parameter for an element. - */ - value: string; - /** - * Sets or retrieves the data type of the value attribute. - */ - valueType: string; -} - -declare var HTMLParamElement: { - prototype: HTMLParamElement; - new(): HTMLParamElement; -} - -interface HTMLPhraseElement extends HTMLElement { - /** - * Sets or retrieves reference information about the object. - */ - cite: string; - /** - * Sets or retrieves the date and time of a modification to the object. - */ - dateTime: string; -} - -declare var HTMLPhraseElement: { - prototype: HTMLPhraseElement; - new(): HTMLPhraseElement; -} - -interface HTMLPreElement extends HTMLElement { - /** - * Indicates a citation by rendering text in italic type. - */ - cite: string; - clear: string; - /** - * Sets or gets a value that you can use to implement your own width functionality for the object. - */ - width: number; -} - -declare var HTMLPreElement: { - prototype: HTMLPreElement; - new(): HTMLPreElement; -} - -interface HTMLProgressElement extends HTMLElement { - /** - * Retrieves a reference to the form that the object is embedded in. - */ - form: HTMLFormElement; - /** - * Defines the maximum, or "done" value for a progress element. - */ - max: number; - /** - * Returns the quotient of value/max when the value attribute is set (determinate progress bar), or -1 when the value attribute is missing (indeterminate progress bar). - */ - position: number; - /** - * Sets or gets the current value of a progress element. The value must be a non-negative number between 0 and the max value. - */ - value: number; -} - -declare var HTMLProgressElement: { - prototype: HTMLProgressElement; - new(): HTMLProgressElement; -} - -interface HTMLQuoteElement extends HTMLElement { - /** - * Sets or retrieves reference information about the object. - */ - cite: string; - /** - * Sets or retrieves the date and time of a modification to the object. - */ - dateTime: string; -} - -declare var HTMLQuoteElement: { - prototype: HTMLQuoteElement; - new(): HTMLQuoteElement; -} - -interface HTMLScriptElement extends HTMLElement { - async: boolean; - /** - * Sets or retrieves the character set used to encode the object. - */ - charset: string; - /** - * Sets or retrieves the status of the script. - */ - defer: boolean; - /** - * Sets or retrieves the event for which the script is written. - */ - event: string; - /** - * Sets or retrieves the object that is bound to the event script. - */ - htmlFor: string; - /** - * Retrieves the URL to an external file that contains the source code or data. - */ - src: string; - /** - * Retrieves or sets the text of the object as a string. - */ - text: string; - /** - * Sets or retrieves the MIME type for the associated scripting engine. - */ - type: string; -} - -declare var HTMLScriptElement: { - prototype: HTMLScriptElement; - new(): HTMLScriptElement; -} - -interface HTMLSelectElement extends HTMLElement { - /** - * Provides a way to direct a user to a specific field when a document loads. This can provide both direction and convenience for a user, reducing the need to click or tab to a field when a page opens. This attribute is true when present on an element, and false when missing. - */ - autofocus: boolean; - disabled: boolean; - /** - * Retrieves a reference to the form that the object is embedded in. - */ - form: HTMLFormElement; - /** - * Sets or retrieves the number of objects in a collection. - */ - length: number; - /** - * Sets or retrieves the Boolean value indicating whether multiple items can be selected from a list. - */ - multiple: boolean; - /** - * Sets or retrieves the name of the object. - */ - name: string; - options: HTMLSelectElement; - /** - * When present, marks an element that can't be submitted without a value. - */ - required: boolean; - /** - * Sets or retrieves the index of the selected option in a select object. - */ - selectedIndex: number; - /** - * Sets or retrieves the number of rows in the list box. - */ - size: number; - /** - * Retrieves the type of select control based on the value of the MULTIPLE attribute. - */ - type: string; - /** - * Returns the error message that would be displayed if the user submits the form, or an empty string if no error message. It also triggers the standard error message, such as "this is a required field". The result is that the user sees validation messages without actually submitting. - */ - validationMessage: string; - /** - * Returns a ValidityState object that represents the validity states of an element. - */ - validity: ValidityState; - /** - * Sets or retrieves the value which is returned to the server when the form control is submitted. - */ - value: string; - /** - * Returns whether an element will successfully validate based on forms validation rules and constraints. - */ - willValidate: boolean; - /** - * Adds an element to the areas, controlRange, or options collection. - * @param element Variant of type Number that specifies the index position in the collection where the element is placed. If no value is given, the method places the element at the end of the collection. - * @param before Variant of type Object that specifies an element to insert before, or null to append the object to the collection. - */ - add(element: HTMLElement, before?: HTMLElement | number): void; - /** - * Returns whether a form will validate when it is submitted, without having to submit it. - */ - checkValidity(): boolean; - /** - * Retrieves a select object or an object from an options collection. - * @param name Variant of type Number or String that specifies the object or collection to retrieve. If this parameter is an integer, it is the zero-based index of the object. If this parameter is a string, all objects with matching name or id properties are retrieved, and a collection is returned if more than one match is made. - * @param index Variant of type Number that specifies the zero-based index of the object to retrieve when a collection is returned. - */ - item(name?: any, index?: any): any; - /** - * Retrieves a select object or an object from an options collection. - * @param namedItem A String that specifies the name or id property of the object to retrieve. A collection is returned if more than one match is made. - */ - namedItem(name: string): any; - /** - * Removes an element from the collection. - * @param index Number that specifies the zero-based index of the element to remove from the collection. - */ - remove(index?: number): void; - /** - * Sets a custom error message that is displayed when a form is submitted. - * @param error Sets a custom error message that is displayed when a form is submitted. - */ - setCustomValidity(error: string): void; - [name: string]: any; -} - -declare var HTMLSelectElement: { - prototype: HTMLSelectElement; - new(): HTMLSelectElement; -} - -interface HTMLSourceElement extends HTMLElement { - /** - * Gets or sets the intended media type of the media source. - */ - media: string; - msKeySystem: string; - /** - * The address or URL of the a media resource that is to be considered. - */ - src: string; - /** - * Gets or sets the MIME type of a media resource. - */ - type: string; -} - -declare var HTMLSourceElement: { - prototype: HTMLSourceElement; - new(): HTMLSourceElement; -} - -interface HTMLSpanElement extends HTMLElement { -} - -declare var HTMLSpanElement: { - prototype: HTMLSpanElement; - new(): HTMLSpanElement; -} - -interface HTMLStyleElement extends HTMLElement, LinkStyle { - /** - * Sets or retrieves the media type. - */ - media: string; - /** - * Retrieves the CSS language in which the style sheet is written. - */ - type: string; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; -} - -declare var HTMLStyleElement: { - prototype: HTMLStyleElement; - new(): HTMLStyleElement; -} - -interface HTMLTableCaptionElement extends HTMLElement { - /** - * Sets or retrieves the alignment of the caption or legend. - */ - align: string; - /** - * Sets or retrieves whether the caption appears at the top or bottom of the table. - */ - vAlign: string; -} - -declare var HTMLTableCaptionElement: { - prototype: HTMLTableCaptionElement; - new(): HTMLTableCaptionElement; -} - -interface HTMLTableCellElement extends HTMLElement, HTMLTableAlignment { - /** - * Sets or retrieves abbreviated text for the object. - */ - abbr: string; - /** - * Sets or retrieves how the object is aligned with adjacent text. - */ - align: string; - /** - * Sets or retrieves a comma-delimited list of conceptual categories associated with the object. - */ - axis: string; - bgColor: any; - /** - * Retrieves the position of the object in the cells collection of a row. - */ - cellIndex: number; - /** - * Sets or retrieves the number columns in the table that the object should span. - */ - colSpan: number; - /** - * Sets or retrieves a list of header cells that provide information for the object. - */ - headers: string; - /** - * Sets or retrieves the height of the object. - */ - height: any; - /** - * Sets or retrieves whether the browser automatically performs wordwrap. - */ - noWrap: boolean; - /** - * Sets or retrieves how many rows in a table the cell should span. - */ - rowSpan: number; - /** - * Sets or retrieves the group of cells in a table to which the object's information applies. - */ - scope: string; - /** - * Sets or retrieves the width of the object. - */ - width: string; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; -} - -declare var HTMLTableCellElement: { - prototype: HTMLTableCellElement; - new(): HTMLTableCellElement; -} - -interface HTMLTableColElement extends HTMLElement, HTMLTableAlignment { - /** - * Sets or retrieves the alignment of the object relative to the display or table. - */ - align: string; - /** - * Sets or retrieves the number of columns in the group. - */ - span: number; - /** - * Sets or retrieves the width of the object. - */ - width: any; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; -} - -declare var HTMLTableColElement: { - prototype: HTMLTableColElement; - new(): HTMLTableColElement; -} - -interface HTMLTableDataCellElement extends HTMLTableCellElement { -} - -declare var HTMLTableDataCellElement: { - prototype: HTMLTableDataCellElement; - new(): HTMLTableDataCellElement; -} - -interface HTMLTableElement extends HTMLElement { - /** - * Sets or retrieves a value that indicates the table alignment. - */ - align: string; - bgColor: any; - /** - * Sets or retrieves the width of the border to draw around the object. - */ - border: string; - /** - * Sets or retrieves the border color of the object. - */ - borderColor: any; - /** - * Retrieves the caption object of a table. - */ - caption: HTMLTableCaptionElement; - /** - * Sets or retrieves the amount of space between the border of the cell and the content of the cell. - */ - cellPadding: string; - /** - * Sets or retrieves the amount of space between cells in a table. - */ - cellSpacing: string; - /** - * Sets or retrieves the number of columns in the table. - */ - cols: number; - /** - * Sets or retrieves the way the border frame around the table is displayed. - */ - frame: string; - /** - * Sets or retrieves the height of the object. - */ - height: any; - /** - * Sets or retrieves the number of horizontal rows contained in the object. - */ - rows: HTMLCollection; - /** - * Sets or retrieves which dividing lines (inner borders) are displayed. - */ - rules: string; - /** - * Sets or retrieves a description and/or structure of the object. - */ - summary: string; - /** - * Retrieves a collection of all tBody objects in the table. Objects in this collection are in source order. - */ - tBodies: HTMLCollection; - /** - * Retrieves the tFoot object of the table. - */ - tFoot: HTMLTableSectionElement; - /** - * Retrieves the tHead object of the table. - */ - tHead: HTMLTableSectionElement; - /** - * Sets or retrieves the width of the object. - */ - width: string; - /** - * Creates an empty caption element in the table. - */ - createCaption(): HTMLElement; - /** - * Creates an empty tBody element in the table. - */ - createTBody(): HTMLElement; - /** - * Creates an empty tFoot element in the table. - */ - createTFoot(): HTMLElement; - /** - * Returns the tHead element object if successful, or null otherwise. - */ - createTHead(): HTMLElement; - /** - * Deletes the caption element and its contents from the table. - */ - deleteCaption(): void; - /** - * Removes the specified row (tr) from the element and from the rows collection. - * @param index Number that specifies the zero-based position in the rows collection of the row to remove. - */ - deleteRow(index?: number): void; - /** - * Deletes the tFoot element and its contents from the table. - */ - deleteTFoot(): void; - /** - * Deletes the tHead element and its contents from the table. - */ - deleteTHead(): void; - /** - * Creates a new row (tr) in the table, and adds the row to the rows collection. - * @param index Number that specifies where to insert the row in the rows collection. The default value is -1, which appends the new row to the end of the rows collection. - */ - insertRow(index?: number): HTMLElement; -} - -declare var HTMLTableElement: { - prototype: HTMLTableElement; - new(): HTMLTableElement; -} - -interface HTMLTableHeaderCellElement extends HTMLTableCellElement { - /** - * Sets or retrieves the group of cells in a table to which the object's information applies. - */ - scope: string; -} - -declare var HTMLTableHeaderCellElement: { - prototype: HTMLTableHeaderCellElement; - new(): HTMLTableHeaderCellElement; -} - -interface HTMLTableRowElement extends HTMLElement, HTMLTableAlignment { - /** - * Sets or retrieves how the object is aligned with adjacent text. - */ - align: string; - bgColor: any; - /** - * Retrieves a collection of all cells in the table row. - */ - cells: HTMLCollection; - /** - * Sets or retrieves the height of the object. - */ - height: any; - /** - * Retrieves the position of the object in the rows collection for the table. - */ - rowIndex: number; - /** - * Retrieves the position of the object in the collection. - */ - sectionRowIndex: number; - /** - * Removes the specified cell from the table row, as well as from the cells collection. - * @param index Number that specifies the zero-based position of the cell to remove from the table row. If no value is provided, the last cell in the cells collection is deleted. - */ - deleteCell(index?: number): void; - /** - * Creates a new cell in the table row, and adds the cell to the cells collection. - * @param index Number that specifies where to insert the cell in the tr. The default value is -1, which appends the new cell to the end of the cells collection. - */ - insertCell(index?: number): HTMLElement; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; -} - -declare var HTMLTableRowElement: { - prototype: HTMLTableRowElement; - new(): HTMLTableRowElement; -} - -interface HTMLTableSectionElement extends HTMLElement, HTMLTableAlignment { - /** - * Sets or retrieves a value that indicates the table alignment. - */ - align: string; - /** - * Sets or retrieves the number of horizontal rows contained in the object. - */ - rows: HTMLCollection; - /** - * Removes the specified row (tr) from the element and from the rows collection. - * @param index Number that specifies the zero-based position in the rows collection of the row to remove. - */ - deleteRow(index?: number): void; - /** - * Creates a new row (tr) in the table, and adds the row to the rows collection. - * @param index Number that specifies where to insert the row in the rows collection. The default value is -1, which appends the new row to the end of the rows collection. - */ - insertRow(index?: number): HTMLElement; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; -} - -declare var HTMLTableSectionElement: { - prototype: HTMLTableSectionElement; - new(): HTMLTableSectionElement; -} - -interface HTMLTextAreaElement extends HTMLElement { - /** - * Provides a way to direct a user to a specific field when a document loads. This can provide both direction and convenience for a user, reducing the need to click or tab to a field when a page opens. This attribute is true when present on an element, and false when missing. - */ - autofocus: boolean; - /** - * Sets or retrieves the width of the object. - */ - cols: number; - /** - * Sets or retrieves the initial contents of the object. - */ - defaultValue: string; - disabled: boolean; - /** - * Retrieves a reference to the form that the object is embedded in. - */ - form: HTMLFormElement; - /** - * Sets or retrieves the maximum number of characters that the user can enter in a text control. - */ - maxLength: number; - /** - * Sets or retrieves the name of the object. - */ - name: string; - /** - * Gets or sets a text string that is displayed in an input field as a hint or prompt to users as the format or type of information they need to enter.The text appears in an input field until the user puts focus on the field. - */ - placeholder: string; - /** - * Sets or retrieves the value indicated whether the content of the object is read-only. - */ - readOnly: boolean; - /** - * When present, marks an element that can't be submitted without a value. - */ - required: boolean; - /** - * Sets or retrieves the number of horizontal rows contained in the object. - */ - rows: number; - /** - * Gets or sets the end position or offset of a text selection. - */ - selectionEnd: number; - /** - * Gets or sets the starting position or offset of a text selection. - */ - selectionStart: number; - /** - * Sets or retrieves the value indicating whether the control is selected. - */ - status: any; - /** - * Retrieves the type of control. - */ - type: string; - /** - * Returns the error message that would be displayed if the user submits the form, or an empty string if no error message. It also triggers the standard error message, such as "this is a required field". The result is that the user sees validation messages without actually submitting. - */ - validationMessage: string; - /** - * Returns a ValidityState object that represents the validity states of an element. - */ - validity: ValidityState; - /** - * Retrieves or sets the text in the entry field of the textArea element. - */ - value: string; - /** - * Returns whether an element will successfully validate based on forms validation rules and constraints. - */ - willValidate: boolean; - /** - * Sets or retrieves how to handle wordwrapping in the object. - */ - wrap: string; - /** - * Returns whether a form will validate when it is submitted, without having to submit it. - */ - checkValidity(): boolean; - /** - * Creates a TextRange object for the element. - */ - createTextRange(): TextRange; - /** - * Highlights the input area of a form element. - */ - select(): void; - /** - * Sets a custom error message that is displayed when a form is submitted. - * @param error Sets a custom error message that is displayed when a form is submitted. - */ - setCustomValidity(error: string): void; - /** - * Sets the start and end positions of a selection in a text field. - * @param start The offset into the text field for the start of the selection. - * @param end The offset into the text field for the end of the selection. - */ - setSelectionRange(start: number, end: number): void; -} - -declare var HTMLTextAreaElement: { - prototype: HTMLTextAreaElement; - new(): HTMLTextAreaElement; -} - -interface HTMLTitleElement extends HTMLElement { - /** - * Retrieves or sets the text of the object as a string. - */ - text: string; -} - -declare var HTMLTitleElement: { - prototype: HTMLTitleElement; - new(): HTMLTitleElement; -} - -interface HTMLTrackElement extends HTMLElement { - default: boolean; - kind: string; - label: string; - readyState: number; - src: string; - srclang: string; - track: TextTrack; - ERROR: number; - LOADED: number; - LOADING: number; - NONE: number; -} - -declare var HTMLTrackElement: { - prototype: HTMLTrackElement; - new(): HTMLTrackElement; - ERROR: number; - LOADED: number; - LOADING: number; - NONE: number; -} - -interface HTMLUListElement extends HTMLElement { - compact: boolean; - type: string; -} - -declare var HTMLUListElement: { - prototype: HTMLUListElement; - new(): HTMLUListElement; -} - -interface HTMLUnknownElement extends HTMLElement { -} - -declare var HTMLUnknownElement: { - prototype: HTMLUnknownElement; - new(): HTMLUnknownElement; -} - -interface HTMLVideoElement extends HTMLMediaElement { - /** - * Gets or sets the height of the video element. - */ - height: number; - msHorizontalMirror: boolean; - msIsLayoutOptimalForPlayback: boolean; - msIsStereo3D: boolean; - msStereo3DPackingMode: string; - msStereo3DRenderMode: string; - msZoom: boolean; - onMSVideoFormatChanged: (ev: Event) => any; - onMSVideoFrameStepCompleted: (ev: Event) => any; - onMSVideoOptimalLayoutChanged: (ev: Event) => any; - /** - * Gets or sets a URL of an image to display, for example, like a movie poster. This can be a still frame from the video, or another image if no video data is available. - */ - poster: string; - /** - * Gets the intrinsic height of a video in CSS pixels, or zero if the dimensions are not known. - */ - videoHeight: number; - /** - * Gets the intrinsic width of a video in CSS pixels, or zero if the dimensions are not known. - */ - videoWidth: number; - webkitDisplayingFullscreen: boolean; - webkitSupportsFullscreen: boolean; - /** - * Gets or sets the width of the video element. - */ - width: number; - getVideoPlaybackQuality(): VideoPlaybackQuality; - msFrameStep(forward: boolean): void; - msInsertVideoEffect(activatableClassId: string, effectRequired: boolean, config?: any): void; - msSetVideoRectangle(left: number, top: number, right: number, bottom: number): void; - webkitEnterFullScreen(): void; - webkitEnterFullscreen(): void; - webkitExitFullScreen(): void; - webkitExitFullscreen(): void; - addEventListener(type: "MSContentZoom", listener: (ev: UIEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSGestureChange", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSGestureDoubleTap", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSGestureEnd", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSGestureHold", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSGestureStart", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSGestureTap", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSGotPointerCapture", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSInertiaStart", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSLostPointerCapture", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSManipulationStateChanged", listener: (ev: MSManipulationEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSPointerCancel", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSPointerDown", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSPointerEnter", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSPointerLeave", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSPointerMove", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSPointerOut", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSPointerOver", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSPointerUp", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSVideoFormatChanged", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "MSVideoFrameStepCompleted", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "MSVideoOptimalLayoutChanged", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "abort", listener: (ev: UIEvent) => any, useCapture?: boolean): void; - addEventListener(type: "activate", listener: (ev: UIEvent) => any, useCapture?: boolean): void; - addEventListener(type: "ariarequest", listener: (ev: AriaRequestEvent) => any, useCapture?: boolean): void; - addEventListener(type: "beforeactivate", listener: (ev: UIEvent) => any, useCapture?: boolean): void; - addEventListener(type: "beforecopy", listener: (ev: DragEvent) => any, useCapture?: boolean): void; - addEventListener(type: "beforecut", listener: (ev: DragEvent) => any, useCapture?: boolean): void; - addEventListener(type: "beforedeactivate", listener: (ev: UIEvent) => any, useCapture?: boolean): void; - addEventListener(type: "beforepaste", listener: (ev: DragEvent) => any, useCapture?: boolean): void; - addEventListener(type: "blur", listener: (ev: FocusEvent) => any, useCapture?: boolean): void; - addEventListener(type: "canplay", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "canplaythrough", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "change", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "click", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; - addEventListener(type: "command", listener: (ev: CommandEvent) => any, useCapture?: boolean): void; - addEventListener(type: "contextmenu", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "copy", listener: (ev: DragEvent) => any, useCapture?: boolean): void; - addEventListener(type: "cuechange", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "cut", listener: (ev: DragEvent) => any, useCapture?: boolean): void; - addEventListener(type: "dblclick", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; - addEventListener(type: "deactivate", listener: (ev: UIEvent) => any, useCapture?: boolean): void; - addEventListener(type: "drag", listener: (ev: DragEvent) => any, useCapture?: boolean): void; - addEventListener(type: "dragend", listener: (ev: DragEvent) => any, useCapture?: boolean): void; - addEventListener(type: "dragenter", listener: (ev: DragEvent) => any, useCapture?: boolean): void; - addEventListener(type: "dragleave", listener: (ev: DragEvent) => any, useCapture?: boolean): void; - addEventListener(type: "dragover", listener: (ev: DragEvent) => any, useCapture?: boolean): void; - addEventListener(type: "dragstart", listener: (ev: DragEvent) => any, useCapture?: boolean): void; - addEventListener(type: "drop", listener: (ev: DragEvent) => any, useCapture?: boolean): void; - addEventListener(type: "durationchange", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "emptied", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "ended", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "error", listener: (ev: ErrorEvent) => any, useCapture?: boolean): void; - addEventListener(type: "focus", listener: (ev: FocusEvent) => any, useCapture?: boolean): void; - addEventListener(type: "gotpointercapture", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "input", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "keydown", listener: (ev: KeyboardEvent) => any, useCapture?: boolean): void; - addEventListener(type: "keypress", listener: (ev: KeyboardEvent) => any, useCapture?: boolean): void; - addEventListener(type: "keyup", listener: (ev: KeyboardEvent) => any, useCapture?: boolean): void; - addEventListener(type: "load", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "loadeddata", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "loadedmetadata", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "loadstart", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "lostpointercapture", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "mousedown", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; - addEventListener(type: "mouseenter", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; - addEventListener(type: "mouseleave", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; - addEventListener(type: "mousemove", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; - addEventListener(type: "mouseout", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; - addEventListener(type: "mouseover", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; - addEventListener(type: "mouseup", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; - addEventListener(type: "mousewheel", listener: (ev: MouseWheelEvent) => any, useCapture?: boolean): void; - addEventListener(type: "msneedkey", listener: (ev: MSMediaKeyNeededEvent) => any, useCapture?: boolean): void; - addEventListener(type: "paste", listener: (ev: DragEvent) => any, useCapture?: boolean): void; - addEventListener(type: "pause", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "play", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "playing", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "pointercancel", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "pointerdown", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "pointerenter", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "pointerleave", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "pointermove", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "pointerout", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "pointerover", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "pointerup", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "progress", listener: (ev: ProgressEvent) => any, useCapture?: boolean): void; - addEventListener(type: "ratechange", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "reset", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "scroll", listener: (ev: UIEvent) => any, useCapture?: boolean): void; - addEventListener(type: "seeked", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "seeking", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "select", listener: (ev: UIEvent) => any, useCapture?: boolean): void; - addEventListener(type: "selectstart", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "stalled", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "submit", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "suspend", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "timeupdate", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "touchcancel", listener: (ev: TouchEvent) => any, useCapture?: boolean): void; - addEventListener(type: "touchend", listener: (ev: TouchEvent) => any, useCapture?: boolean): void; - addEventListener(type: "touchmove", listener: (ev: TouchEvent) => any, useCapture?: boolean): void; - addEventListener(type: "touchstart", listener: (ev: TouchEvent) => any, useCapture?: boolean): void; - addEventListener(type: "volumechange", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "waiting", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "webkitfullscreenchange", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "webkitfullscreenerror", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "wheel", listener: (ev: WheelEvent) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; -} - -declare var HTMLVideoElement: { - prototype: HTMLVideoElement; - new(): HTMLVideoElement; -} - -interface HashChangeEvent extends Event { - newURL: string; - oldURL: string; -} - -declare var HashChangeEvent: { - prototype: HashChangeEvent; - new(type: string, eventInitDict?: HashChangeEventInit): HashChangeEvent; -} - -interface History { - length: number; - state: any; - back(distance?: any): void; - forward(distance?: any): void; - go(delta?: any): void; - pushState(statedata: any, title?: string, url?: string): void; - replaceState(statedata: any, title?: string, url?: string): void; -} - -declare var History: { - prototype: History; - new(): History; -} - -interface IDBCursor { - direction: string; - key: any; - primaryKey: any; - source: any; - advance(count: number): void; - continue(key?: any): void; - delete(): IDBRequest; - update(value: any): IDBRequest; - NEXT: string; - NEXT_NO_DUPLICATE: string; - PREV: string; - PREV_NO_DUPLICATE: string; -} - -declare var IDBCursor: { - prototype: IDBCursor; - new(): IDBCursor; - NEXT: string; - NEXT_NO_DUPLICATE: string; - PREV: string; - PREV_NO_DUPLICATE: string; -} - -interface IDBCursorWithValue extends IDBCursor { - value: any; -} - -declare var IDBCursorWithValue: { - prototype: IDBCursorWithValue; - new(): IDBCursorWithValue; -} - -interface IDBDatabase extends EventTarget { - name: string; - objectStoreNames: DOMStringList; - onabort: (ev: Event) => any; - onerror: (ev: Event) => any; - version: string; - close(): void; - createObjectStore(name: string, optionalParameters?: any): IDBObjectStore; - deleteObjectStore(name: string): void; - transaction(storeNames: any, mode?: string): IDBTransaction; - addEventListener(type: "abort", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "error", listener: (ev: ErrorEvent) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; -} - -declare var IDBDatabase: { - prototype: IDBDatabase; - new(): IDBDatabase; -} - -interface IDBFactory { - cmp(first: any, second: any): number; - deleteDatabase(name: string): IDBOpenDBRequest; - open(name: string, version?: number): IDBOpenDBRequest; -} - -declare var IDBFactory: { - prototype: IDBFactory; - new(): IDBFactory; -} - -interface IDBIndex { - keyPath: string; - name: string; - objectStore: IDBObjectStore; - unique: boolean; - count(key?: any): IDBRequest; - get(key: any): IDBRequest; - getKey(key: any): IDBRequest; - openCursor(range?: IDBKeyRange, direction?: string): IDBRequest; - openKeyCursor(range?: IDBKeyRange, direction?: string): IDBRequest; -} - -declare var IDBIndex: { - prototype: IDBIndex; - new(): IDBIndex; -} - -interface IDBKeyRange { - lower: any; - lowerOpen: boolean; - upper: any; - upperOpen: boolean; -} - -declare var IDBKeyRange: { - prototype: IDBKeyRange; - new(): IDBKeyRange; - bound(lower: any, upper: any, lowerOpen?: boolean, upperOpen?: boolean): IDBKeyRange; - lowerBound(bound: any, open?: boolean): IDBKeyRange; - only(value: any): IDBKeyRange; - upperBound(bound: any, open?: boolean): IDBKeyRange; -} - -interface IDBObjectStore { - indexNames: DOMStringList; - keyPath: string; - name: string; - transaction: IDBTransaction; - add(value: any, key?: any): IDBRequest; - clear(): IDBRequest; - count(key?: any): IDBRequest; - createIndex(name: string, keyPath: string, optionalParameters?: any): IDBIndex; - delete(key: any): IDBRequest; - deleteIndex(indexName: string): void; - get(key: any): IDBRequest; - index(name: string): IDBIndex; - openCursor(range?: any, direction?: string): IDBRequest; - put(value: any, key?: any): IDBRequest; -} - -declare var IDBObjectStore: { - prototype: IDBObjectStore; - new(): IDBObjectStore; -} - -interface IDBOpenDBRequest extends IDBRequest { - onblocked: (ev: Event) => any; - onupgradeneeded: (ev: IDBVersionChangeEvent) => any; - addEventListener(type: "blocked", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "error", listener: (ev: ErrorEvent) => any, useCapture?: boolean): void; - addEventListener(type: "success", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "upgradeneeded", listener: (ev: IDBVersionChangeEvent) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; -} - -declare var IDBOpenDBRequest: { - prototype: IDBOpenDBRequest; - new(): IDBOpenDBRequest; -} - -interface IDBRequest extends EventTarget { - error: DOMError; - onerror: (ev: Event) => any; - onsuccess: (ev: Event) => any; - readyState: string; - result: any; - source: any; - transaction: IDBTransaction; - addEventListener(type: "error", listener: (ev: ErrorEvent) => any, useCapture?: boolean): void; - addEventListener(type: "success", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; -} - -declare var IDBRequest: { - prototype: IDBRequest; - new(): IDBRequest; -} - -interface IDBTransaction extends EventTarget { - db: IDBDatabase; - error: DOMError; - mode: string; - onabort: (ev: Event) => any; - oncomplete: (ev: Event) => any; - onerror: (ev: Event) => any; - abort(): void; - objectStore(name: string): IDBObjectStore; - READ_ONLY: string; - READ_WRITE: string; - VERSION_CHANGE: string; - addEventListener(type: "abort", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "complete", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "error", listener: (ev: ErrorEvent) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; -} - -declare var IDBTransaction: { - prototype: IDBTransaction; - new(): IDBTransaction; - READ_ONLY: string; - READ_WRITE: string; - VERSION_CHANGE: string; -} - -interface IDBVersionChangeEvent extends Event { - newVersion: number; - oldVersion: number; -} - -declare var IDBVersionChangeEvent: { - prototype: IDBVersionChangeEvent; - new(): IDBVersionChangeEvent; -} - -interface ImageData { - data: number[]; - height: number; - width: number; -} - -declare var ImageData: { - prototype: ImageData; - new(width: number, height: number): ImageData; - new(array: Uint8ClampedArray, width: number, height: number): ImageData; -} - -interface KeyboardEvent extends UIEvent { - altKey: boolean; - char: string; - charCode: number; - ctrlKey: boolean; - key: string; - keyCode: number; - locale: string; - location: number; - metaKey: boolean; - repeat: boolean; - shiftKey: boolean; - which: number; - getModifierState(keyArg: string): boolean; - initKeyboardEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, viewArg: Window, keyArg: string, locationArg: number, modifiersListArg: string, repeat: boolean, locale: string): void; - DOM_KEY_LOCATION_JOYSTICK: number; - DOM_KEY_LOCATION_LEFT: number; - DOM_KEY_LOCATION_MOBILE: number; - DOM_KEY_LOCATION_NUMPAD: number; - DOM_KEY_LOCATION_RIGHT: number; - DOM_KEY_LOCATION_STANDARD: number; -} - -declare var KeyboardEvent: { - prototype: KeyboardEvent; - new(typeArg: string, eventInitDict?: KeyboardEventInit): KeyboardEvent; - DOM_KEY_LOCATION_JOYSTICK: number; - DOM_KEY_LOCATION_LEFT: number; - DOM_KEY_LOCATION_MOBILE: number; - DOM_KEY_LOCATION_NUMPAD: number; - DOM_KEY_LOCATION_RIGHT: number; - DOM_KEY_LOCATION_STANDARD: number; -} - -interface Location { - hash: string; - host: string; - hostname: string; - href: string; - origin: string; - pathname: string; - port: string; - protocol: string; - search: string; - assign(url: string): void; - reload(forcedReload?: boolean): void; - replace(url: string): void; - toString(): string; -} - -declare var Location: { - prototype: Location; - new(): Location; -} - -interface LongRunningScriptDetectedEvent extends Event { - executionTime: number; - stopPageScriptExecution: boolean; -} - -declare var LongRunningScriptDetectedEvent: { - prototype: LongRunningScriptDetectedEvent; - new(): LongRunningScriptDetectedEvent; -} - -interface MSApp { - clearTemporaryWebDataAsync(): MSAppAsyncOperation; - createBlobFromRandomAccessStream(type: string, seeker: any): Blob; - createDataPackage(object: any): any; - createDataPackageFromSelection(): any; - createFileFromStorageFile(storageFile: any): File; - createStreamFromInputStream(type: string, inputStream: any): MSStream; - execAsyncAtPriority(asynchronousCallback: MSExecAtPriorityFunctionCallback, priority: string, ...args: any[]): void; - execAtPriority(synchronousCallback: MSExecAtPriorityFunctionCallback, priority: string, ...args: any[]): any; - getCurrentPriority(): string; - getHtmlPrintDocumentSourceAsync(htmlDoc: any): any; - getViewId(view: any): any; - isTaskScheduledAtPriorityOrHigher(priority: string): boolean; - pageHandlesAllApplicationActivations(enabled: boolean): void; - suppressSubdownloadCredentialPrompts(suppress: boolean): void; - terminateApp(exceptionObject: any): void; - CURRENT: string; - HIGH: string; - IDLE: string; - NORMAL: string; -} -declare var MSApp: MSApp; - -interface MSAppAsyncOperation extends EventTarget { - error: DOMError; - oncomplete: (ev: Event) => any; - onerror: (ev: Event) => any; - readyState: number; - result: any; - start(): void; - COMPLETED: number; - ERROR: number; - STARTED: number; - addEventListener(type: "complete", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "error", listener: (ev: ErrorEvent) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; -} - -declare var MSAppAsyncOperation: { - prototype: MSAppAsyncOperation; - new(): MSAppAsyncOperation; - COMPLETED: number; - ERROR: number; - STARTED: number; -} - -interface MSBlobBuilder { - append(data: any, endings?: string): void; - getBlob(contentType?: string): Blob; -} - -declare var MSBlobBuilder: { - prototype: MSBlobBuilder; - new(): MSBlobBuilder; -} - -interface MSCSSMatrix { - a: number; - b: number; - c: number; - d: number; - e: number; - f: number; - m11: number; - m12: number; - m13: number; - m14: number; - m21: number; - m22: number; - m23: number; - m24: number; - m31: number; - m32: number; - m33: number; - m34: number; - m41: number; - m42: number; - m43: number; - m44: number; - inverse(): MSCSSMatrix; - multiply(secondMatrix: MSCSSMatrix): MSCSSMatrix; - rotate(angleX: number, angleY?: number, angleZ?: number): MSCSSMatrix; - rotateAxisAngle(x: number, y: number, z: number, angle: number): MSCSSMatrix; - scale(scaleX: number, scaleY?: number, scaleZ?: number): MSCSSMatrix; - setMatrixValue(value: string): void; - skewX(angle: number): MSCSSMatrix; - skewY(angle: number): MSCSSMatrix; - toString(): string; - translate(x: number, y: number, z?: number): MSCSSMatrix; -} - -declare var MSCSSMatrix: { - prototype: MSCSSMatrix; - new(text?: string): MSCSSMatrix; -} - -interface MSGesture { - target: Element; - addPointer(pointerId: number): void; - stop(): void; -} - -declare var MSGesture: { - prototype: MSGesture; - new(): MSGesture; -} - -interface MSGestureEvent extends UIEvent { - clientX: number; - clientY: number; - expansion: number; - gestureObject: any; - hwTimestamp: number; - offsetX: number; - offsetY: number; - rotation: number; - scale: number; - screenX: number; - screenY: number; - translationX: number; - translationY: number; - velocityAngular: number; - velocityExpansion: number; - velocityX: number; - velocityY: number; - initGestureEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, viewArg: Window, detailArg: number, screenXArg: number, screenYArg: number, clientXArg: number, clientYArg: number, offsetXArg: number, offsetYArg: number, translationXArg: number, translationYArg: number, scaleArg: number, expansionArg: number, rotationArg: number, velocityXArg: number, velocityYArg: number, velocityExpansionArg: number, velocityAngularArg: number, hwTimestampArg: number): void; - MSGESTURE_FLAG_BEGIN: number; - MSGESTURE_FLAG_CANCEL: number; - MSGESTURE_FLAG_END: number; - MSGESTURE_FLAG_INERTIA: number; - MSGESTURE_FLAG_NONE: number; -} - -declare var MSGestureEvent: { - prototype: MSGestureEvent; - new(): MSGestureEvent; - MSGESTURE_FLAG_BEGIN: number; - MSGESTURE_FLAG_CANCEL: number; - MSGESTURE_FLAG_END: number; - MSGESTURE_FLAG_INERTIA: number; - MSGESTURE_FLAG_NONE: number; -} - -interface MSGraphicsTrust { - constrictionActive: boolean; - status: string; -} - -declare var MSGraphicsTrust: { - prototype: MSGraphicsTrust; - new(): MSGraphicsTrust; -} - -interface MSHTMLWebViewElement extends HTMLElement { - canGoBack: boolean; - canGoForward: boolean; - containsFullScreenElement: boolean; - documentTitle: string; - height: number; - settings: MSWebViewSettings; - src: string; - width: number; - addWebAllowedObject(name: string, applicationObject: any): void; - buildLocalStreamUri(contentIdentifier: string, relativePath: string): string; - capturePreviewToBlobAsync(): MSWebViewAsyncOperation; - captureSelectedContentToDataPackageAsync(): MSWebViewAsyncOperation; - getDeferredPermissionRequestById(id: number): DeferredPermissionRequest; - getDeferredPermissionRequests(): DeferredPermissionRequest[]; - goBack(): void; - goForward(): void; - invokeScriptAsync(scriptName: string, ...args: any[]): MSWebViewAsyncOperation; - navigate(uri: string): void; - navigateToLocalStreamUri(source: string, streamResolver: any): void; - navigateToString(contents: string): void; - navigateWithHttpRequestMessage(requestMessage: any): void; - refresh(): void; - stop(): void; -} - -declare var MSHTMLWebViewElement: { - prototype: MSHTMLWebViewElement; - new(): MSHTMLWebViewElement; -} - -interface MSInputMethodContext extends EventTarget { - compositionEndOffset: number; - compositionStartOffset: number; - oncandidatewindowhide: (ev: Event) => any; - oncandidatewindowshow: (ev: Event) => any; - oncandidatewindowupdate: (ev: Event) => any; - target: HTMLElement; - getCandidateWindowClientRect(): ClientRect; - getCompositionAlternatives(): string[]; - hasComposition(): boolean; - isCandidateWindowVisible(): boolean; - addEventListener(type: "MSCandidateWindowHide", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "MSCandidateWindowShow", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "MSCandidateWindowUpdate", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; -} - -declare var MSInputMethodContext: { - prototype: MSInputMethodContext; - new(): MSInputMethodContext; -} - -interface MSManipulationEvent extends UIEvent { - currentState: number; - inertiaDestinationX: number; - inertiaDestinationY: number; - lastState: number; - initMSManipulationEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, viewArg: Window, detailArg: number, lastState: number, currentState: number): void; - MS_MANIPULATION_STATE_ACTIVE: number; - MS_MANIPULATION_STATE_CANCELLED: number; - MS_MANIPULATION_STATE_COMMITTED: number; - MS_MANIPULATION_STATE_DRAGGING: number; - MS_MANIPULATION_STATE_INERTIA: number; - MS_MANIPULATION_STATE_PRESELECT: number; - MS_MANIPULATION_STATE_SELECTING: number; - MS_MANIPULATION_STATE_STOPPED: number; -} - -declare var MSManipulationEvent: { - prototype: MSManipulationEvent; - new(): MSManipulationEvent; - MS_MANIPULATION_STATE_ACTIVE: number; - MS_MANIPULATION_STATE_CANCELLED: number; - MS_MANIPULATION_STATE_COMMITTED: number; - MS_MANIPULATION_STATE_DRAGGING: number; - MS_MANIPULATION_STATE_INERTIA: number; - MS_MANIPULATION_STATE_PRESELECT: number; - MS_MANIPULATION_STATE_SELECTING: number; - MS_MANIPULATION_STATE_STOPPED: number; -} - -interface MSMediaKeyError { - code: number; - systemCode: number; - MS_MEDIA_KEYERR_CLIENT: number; - MS_MEDIA_KEYERR_DOMAIN: number; - MS_MEDIA_KEYERR_HARDWARECHANGE: number; - MS_MEDIA_KEYERR_OUTPUT: number; - MS_MEDIA_KEYERR_SERVICE: number; - MS_MEDIA_KEYERR_UNKNOWN: number; -} - -declare var MSMediaKeyError: { - prototype: MSMediaKeyError; - new(): MSMediaKeyError; - MS_MEDIA_KEYERR_CLIENT: number; - MS_MEDIA_KEYERR_DOMAIN: number; - MS_MEDIA_KEYERR_HARDWARECHANGE: number; - MS_MEDIA_KEYERR_OUTPUT: number; - MS_MEDIA_KEYERR_SERVICE: number; - MS_MEDIA_KEYERR_UNKNOWN: number; -} - -interface MSMediaKeyMessageEvent extends Event { - destinationURL: string; - message: Uint8Array; -} - -declare var MSMediaKeyMessageEvent: { - prototype: MSMediaKeyMessageEvent; - new(): MSMediaKeyMessageEvent; -} - -interface MSMediaKeyNeededEvent extends Event { - initData: Uint8Array; -} - -declare var MSMediaKeyNeededEvent: { - prototype: MSMediaKeyNeededEvent; - new(): MSMediaKeyNeededEvent; -} - -interface MSMediaKeySession extends EventTarget { - error: MSMediaKeyError; - keySystem: string; - sessionId: string; - close(): void; - update(key: Uint8Array): void; -} - -declare var MSMediaKeySession: { - prototype: MSMediaKeySession; - new(): MSMediaKeySession; -} - -interface MSMediaKeys { - keySystem: string; - createSession(type: string, initData: Uint8Array, cdmData?: Uint8Array): MSMediaKeySession; -} - -declare var MSMediaKeys: { - prototype: MSMediaKeys; - new(keySystem: string): MSMediaKeys; - isTypeSupported(keySystem: string, type?: string): boolean; -} - -interface MSMimeTypesCollection { - length: number; -} - -declare var MSMimeTypesCollection: { - prototype: MSMimeTypesCollection; - new(): MSMimeTypesCollection; -} - -interface MSPluginsCollection { - length: number; - refresh(reload?: boolean): void; -} - -declare var MSPluginsCollection: { - prototype: MSPluginsCollection; - new(): MSPluginsCollection; -} - -interface MSPointerEvent extends MouseEvent { - currentPoint: any; - height: number; - hwTimestamp: number; - intermediatePoints: any; - isPrimary: boolean; - pointerId: number; - pointerType: any; - pressure: number; - rotation: number; - tiltX: number; - tiltY: number; - width: number; - getCurrentPoint(element: Element): void; - getIntermediatePoints(element: Element): void; - initPointerEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, viewArg: Window, detailArg: number, screenXArg: number, screenYArg: number, clientXArg: number, clientYArg: number, ctrlKeyArg: boolean, altKeyArg: boolean, shiftKeyArg: boolean, metaKeyArg: boolean, buttonArg: number, relatedTargetArg: EventTarget, offsetXArg: number, offsetYArg: number, widthArg: number, heightArg: number, pressure: number, rotation: number, tiltX: number, tiltY: number, pointerIdArg: number, pointerType: any, hwTimestampArg: number, isPrimary: boolean): void; -} - -declare var MSPointerEvent: { - prototype: MSPointerEvent; - new(typeArg: string, eventInitDict?: PointerEventInit): MSPointerEvent; -} - -interface MSRangeCollection { - length: number; - item(index: number): Range; - [index: number]: Range; -} - -declare var MSRangeCollection: { - prototype: MSRangeCollection; - new(): MSRangeCollection; -} - -interface MSSiteModeEvent extends Event { - actionURL: string; - buttonID: number; -} - -declare var MSSiteModeEvent: { - prototype: MSSiteModeEvent; - new(): MSSiteModeEvent; -} - -interface MSStream { - type: string; - msClose(): void; - msDetachStream(): any; -} - -declare var MSStream: { - prototype: MSStream; - new(): MSStream; -} - -interface MSStreamReader extends EventTarget, MSBaseReader { - error: DOMError; - readAsArrayBuffer(stream: MSStream, size?: number): void; - readAsBinaryString(stream: MSStream, size?: number): void; - readAsBlob(stream: MSStream, size?: number): void; - readAsDataURL(stream: MSStream, size?: number): void; - readAsText(stream: MSStream, encoding?: string, size?: number): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; -} - -declare var MSStreamReader: { - prototype: MSStreamReader; - new(): MSStreamReader; -} - -interface MSWebViewAsyncOperation extends EventTarget { - error: DOMError; - oncomplete: (ev: Event) => any; - onerror: (ev: Event) => any; - readyState: number; - result: any; - target: MSHTMLWebViewElement; - type: number; - start(): void; - COMPLETED: number; - ERROR: number; - STARTED: number; - TYPE_CAPTURE_PREVIEW_TO_RANDOM_ACCESS_STREAM: number; - TYPE_CREATE_DATA_PACKAGE_FROM_SELECTION: number; - TYPE_INVOKE_SCRIPT: number; - addEventListener(type: "complete", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "error", listener: (ev: ErrorEvent) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; -} - -declare var MSWebViewAsyncOperation: { - prototype: MSWebViewAsyncOperation; - new(): MSWebViewAsyncOperation; - COMPLETED: number; - ERROR: number; - STARTED: number; - TYPE_CAPTURE_PREVIEW_TO_RANDOM_ACCESS_STREAM: number; - TYPE_CREATE_DATA_PACKAGE_FROM_SELECTION: number; - TYPE_INVOKE_SCRIPT: number; -} - -interface MSWebViewSettings { - isIndexedDBEnabled: boolean; - isJavaScriptEnabled: boolean; -} - -declare var MSWebViewSettings: { - prototype: MSWebViewSettings; - new(): MSWebViewSettings; -} - -interface MediaElementAudioSourceNode extends AudioNode { -} - -declare var MediaElementAudioSourceNode: { - prototype: MediaElementAudioSourceNode; - new(): MediaElementAudioSourceNode; -} - -interface MediaError { - code: number; - msExtendedCode: number; - MEDIA_ERR_ABORTED: number; - MEDIA_ERR_DECODE: number; - MEDIA_ERR_NETWORK: number; - MEDIA_ERR_SRC_NOT_SUPPORTED: number; - MS_MEDIA_ERR_ENCRYPTED: number; -} - -declare var MediaError: { - prototype: MediaError; - new(): MediaError; - MEDIA_ERR_ABORTED: number; - MEDIA_ERR_DECODE: number; - MEDIA_ERR_NETWORK: number; - MEDIA_ERR_SRC_NOT_SUPPORTED: number; - MS_MEDIA_ERR_ENCRYPTED: number; -} - -interface MediaList { - length: number; - mediaText: string; - appendMedium(newMedium: string): void; - deleteMedium(oldMedium: string): void; - item(index: number): string; - toString(): string; - [index: number]: string; -} - -declare var MediaList: { - prototype: MediaList; - new(): MediaList; -} - -interface MediaQueryList { - matches: boolean; - media: string; - addListener(listener: MediaQueryListListener): void; - removeListener(listener: MediaQueryListListener): void; -} - -declare var MediaQueryList: { - prototype: MediaQueryList; - new(): MediaQueryList; -} - -interface MediaSource extends EventTarget { - activeSourceBuffers: SourceBufferList; - duration: number; - readyState: number; - sourceBuffers: SourceBufferList; - addSourceBuffer(type: string): SourceBuffer; - endOfStream(error?: number): void; - removeSourceBuffer(sourceBuffer: SourceBuffer): void; -} - -declare var MediaSource: { - prototype: MediaSource; - new(): MediaSource; - isTypeSupported(type: string): boolean; -} - -interface MessageChannel { - port1: MessagePort; - port2: MessagePort; -} - -declare var MessageChannel: { - prototype: MessageChannel; - new(): MessageChannel; -} - -interface MessageEvent extends Event { - data: any; - origin: string; - ports: any; - source: Window; - initMessageEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, dataArg: any, originArg: string, lastEventIdArg: string, sourceArg: Window): void; -} - -declare var MessageEvent: { - prototype: MessageEvent; - new(type: string, eventInitDict?: MessageEventInit): MessageEvent; -} - -interface MessagePort extends EventTarget { - onmessage: (ev: MessageEvent) => any; - close(): void; - postMessage(message?: any, ports?: any): void; - start(): void; - addEventListener(type: "message", listener: (ev: MessageEvent) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; -} - -declare var MessagePort: { - prototype: MessagePort; - new(): MessagePort; -} - -interface MimeType { - description: string; - enabledPlugin: Plugin; - suffixes: string; - type: string; -} - -declare var MimeType: { - prototype: MimeType; - new(): MimeType; -} - -interface MimeTypeArray { - length: number; - item(index: number): Plugin; - namedItem(type: string): Plugin; - [index: number]: Plugin; -} - -declare var MimeTypeArray: { - prototype: MimeTypeArray; - new(): MimeTypeArray; -} - -interface MouseEvent extends UIEvent { - altKey: boolean; - button: number; - buttons: number; - clientX: number; - clientY: number; - ctrlKey: boolean; - fromElement: Element; - layerX: number; - layerY: number; - metaKey: boolean; - movementX: number; - movementY: number; - offsetX: number; - offsetY: number; - pageX: number; - pageY: number; - relatedTarget: EventTarget; - screenX: number; - screenY: number; - shiftKey: boolean; - toElement: Element; - which: number; - x: number; - y: number; - getModifierState(keyArg: string): boolean; - initMouseEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, viewArg: Window, detailArg: number, screenXArg: number, screenYArg: number, clientXArg: number, clientYArg: number, ctrlKeyArg: boolean, altKeyArg: boolean, shiftKeyArg: boolean, metaKeyArg: boolean, buttonArg: number, relatedTargetArg: EventTarget): void; -} - -declare var MouseEvent: { - prototype: MouseEvent; - new(typeArg: string, eventInitDict?: MouseEventInit): MouseEvent; -} - -interface MouseWheelEvent extends MouseEvent { - wheelDelta: number; - wheelDeltaX: number; - wheelDeltaY: number; - initMouseWheelEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, viewArg: Window, detailArg: number, screenXArg: number, screenYArg: number, clientXArg: number, clientYArg: number, buttonArg: number, relatedTargetArg: EventTarget, modifiersListArg: string, wheelDeltaArg: number): void; -} - -declare var MouseWheelEvent: { - prototype: MouseWheelEvent; - new(): MouseWheelEvent; -} - -interface MutationEvent extends Event { - attrChange: number; - attrName: string; - newValue: string; - prevValue: string; - relatedNode: Node; - initMutationEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, relatedNodeArg: Node, prevValueArg: string, newValueArg: string, attrNameArg: string, attrChangeArg: number): void; - ADDITION: number; - MODIFICATION: number; - REMOVAL: number; -} - -declare var MutationEvent: { - prototype: MutationEvent; - new(): MutationEvent; - ADDITION: number; - MODIFICATION: number; - REMOVAL: number; -} - -interface MutationObserver { - disconnect(): void; - observe(target: Node, options: MutationObserverInit): void; - takeRecords(): MutationRecord[]; -} - -declare var MutationObserver: { - prototype: MutationObserver; - new(callback: MutationCallback): MutationObserver; -} - -interface MutationRecord { - addedNodes: NodeList; - attributeName: string; - attributeNamespace: string; - nextSibling: Node; - oldValue: string; - previousSibling: Node; - removedNodes: NodeList; - target: Node; - type: string; -} - -declare var MutationRecord: { - prototype: MutationRecord; - new(): MutationRecord; -} - -interface NamedNodeMap { - length: number; - getNamedItem(name: string): Attr; - getNamedItemNS(namespaceURI: string, localName: string): Attr; - item(index: number): Attr; - removeNamedItem(name: string): Attr; - removeNamedItemNS(namespaceURI: string, localName: string): Attr; - setNamedItem(arg: Attr): Attr; - setNamedItemNS(arg: Attr): Attr; - [index: number]: Attr; -} - -declare var NamedNodeMap: { - prototype: NamedNodeMap; - new(): NamedNodeMap; -} - -interface NavigationCompletedEvent extends NavigationEvent { - isSuccess: boolean; - webErrorStatus: number; -} - -declare var NavigationCompletedEvent: { - prototype: NavigationCompletedEvent; - new(): NavigationCompletedEvent; -} - -interface NavigationEvent extends Event { - uri: string; -} - -declare var NavigationEvent: { - prototype: NavigationEvent; - new(): NavigationEvent; -} - -interface NavigationEventWithReferrer extends NavigationEvent { - referer: string; -} - -declare var NavigationEventWithReferrer: { - prototype: NavigationEventWithReferrer; - new(): NavigationEventWithReferrer; -} - -interface Navigator extends Object, NavigatorID, NavigatorOnLine, NavigatorContentUtils, NavigatorStorageUtils, NavigatorGeolocation, MSNavigatorDoNotTrack, MSFileSaver { - appCodeName: string; - appMinorVersion: string; - browserLanguage: string; - connectionSpeed: number; - cookieEnabled: boolean; - cpuClass: string; - language: string; - maxTouchPoints: number; - mimeTypes: MSMimeTypesCollection; - msManipulationViewsEnabled: boolean; - msMaxTouchPoints: number; - msPointerEnabled: boolean; - plugins: MSPluginsCollection; - pointerEnabled: boolean; - systemLanguage: string; - userLanguage: string; - webdriver: boolean; - getGamepads(): Gamepad[]; - javaEnabled(): boolean; - msLaunchUri(uri: string, successCallback?: MSLaunchUriCallback, noHandlerCallback?: MSLaunchUriCallback): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; -} - -declare var Navigator: { - prototype: Navigator; - new(): Navigator; -} - -interface Node extends EventTarget { - attributes: NamedNodeMap; - baseURI: string; - childNodes: NodeList; - firstChild: Node; - lastChild: Node; - localName: string; - namespaceURI: string; - nextSibling: Node; - nodeName: string; - nodeType: number; - nodeValue: string; - ownerDocument: Document; - parentElement: HTMLElement; - parentNode: Node; - prefix: string; - previousSibling: Node; - textContent: string; - appendChild(newChild: Node): Node; - cloneNode(deep?: boolean): Node; - compareDocumentPosition(other: Node): number; - hasAttributes(): boolean; - hasChildNodes(): boolean; - insertBefore(newChild: Node, refChild?: Node): Node; - isDefaultNamespace(namespaceURI: string): boolean; - isEqualNode(arg: Node): boolean; - isSameNode(other: Node): boolean; - lookupNamespaceURI(prefix: string): string; - lookupPrefix(namespaceURI: string): string; - normalize(): void; - removeChild(oldChild: Node): Node; - replaceChild(newChild: Node, oldChild: Node): Node; - ATTRIBUTE_NODE: number; - CDATA_SECTION_NODE: number; - COMMENT_NODE: number; - DOCUMENT_FRAGMENT_NODE: number; - DOCUMENT_NODE: number; - DOCUMENT_POSITION_CONTAINED_BY: number; - DOCUMENT_POSITION_CONTAINS: number; - DOCUMENT_POSITION_DISCONNECTED: number; - DOCUMENT_POSITION_FOLLOWING: number; - DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: number; - DOCUMENT_POSITION_PRECEDING: number; - DOCUMENT_TYPE_NODE: number; - ELEMENT_NODE: number; - ENTITY_NODE: number; - ENTITY_REFERENCE_NODE: number; - NOTATION_NODE: number; - PROCESSING_INSTRUCTION_NODE: number; - TEXT_NODE: number; -} - -declare var Node: { - prototype: Node; - new(): Node; - ATTRIBUTE_NODE: number; - CDATA_SECTION_NODE: number; - COMMENT_NODE: number; - DOCUMENT_FRAGMENT_NODE: number; - DOCUMENT_NODE: number; - DOCUMENT_POSITION_CONTAINED_BY: number; - DOCUMENT_POSITION_CONTAINS: number; - DOCUMENT_POSITION_DISCONNECTED: number; - DOCUMENT_POSITION_FOLLOWING: number; - DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: number; - DOCUMENT_POSITION_PRECEDING: number; - DOCUMENT_TYPE_NODE: number; - ELEMENT_NODE: number; - ENTITY_NODE: number; - ENTITY_REFERENCE_NODE: number; - NOTATION_NODE: number; - PROCESSING_INSTRUCTION_NODE: number; - TEXT_NODE: number; -} - -interface NodeFilter { - acceptNode(n: Node): number; -} - -declare var NodeFilter: { - FILTER_ACCEPT: number; - FILTER_REJECT: number; - FILTER_SKIP: number; - SHOW_ALL: number; - SHOW_ATTRIBUTE: number; - SHOW_CDATA_SECTION: number; - SHOW_COMMENT: number; - SHOW_DOCUMENT: number; - SHOW_DOCUMENT_FRAGMENT: number; - SHOW_DOCUMENT_TYPE: number; - SHOW_ELEMENT: number; - SHOW_ENTITY: number; - SHOW_ENTITY_REFERENCE: number; - SHOW_NOTATION: number; - SHOW_PROCESSING_INSTRUCTION: number; - SHOW_TEXT: number; -} - -interface NodeIterator { - expandEntityReferences: boolean; - filter: NodeFilter; - root: Node; - whatToShow: number; - detach(): void; - nextNode(): Node; - previousNode(): Node; -} - -declare var NodeIterator: { - prototype: NodeIterator; - new(): NodeIterator; -} - -interface NodeList { - length: number; - item(index: number): Node; - [index: number]: Node; -} - -declare var NodeList: { - prototype: NodeList; - new(): NodeList; -} - -interface OES_element_index_uint { -} - -declare var OES_element_index_uint: { - prototype: OES_element_index_uint; - new(): OES_element_index_uint; -} - -interface OES_standard_derivatives { - FRAGMENT_SHADER_DERIVATIVE_HINT_OES: number; -} - -declare var OES_standard_derivatives: { - prototype: OES_standard_derivatives; - new(): OES_standard_derivatives; - FRAGMENT_SHADER_DERIVATIVE_HINT_OES: number; -} - -interface OES_texture_float { -} - -declare var OES_texture_float: { - prototype: OES_texture_float; - new(): OES_texture_float; -} - -interface OES_texture_float_linear { -} - -declare var OES_texture_float_linear: { - prototype: OES_texture_float_linear; - new(): OES_texture_float_linear; -} - -interface OfflineAudioCompletionEvent extends Event { - renderedBuffer: AudioBuffer; -} - -declare var OfflineAudioCompletionEvent: { - prototype: OfflineAudioCompletionEvent; - new(): OfflineAudioCompletionEvent; -} - -interface OfflineAudioContext extends AudioContext { - oncomplete: (ev: Event) => any; - startRendering(): void; - addEventListener(type: "complete", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; -} - -declare var OfflineAudioContext: { - prototype: OfflineAudioContext; - new(numberOfChannels: number, length: number, sampleRate: number): OfflineAudioContext; -} - -interface OscillatorNode extends AudioNode { - detune: AudioParam; - frequency: AudioParam; - onended: (ev: Event) => any; - type: string; - setPeriodicWave(periodicWave: PeriodicWave): void; - start(when?: number): void; - stop(when?: number): void; - addEventListener(type: "ended", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; -} - -declare var OscillatorNode: { - prototype: OscillatorNode; - new(): OscillatorNode; -} - -interface PageTransitionEvent extends Event { - persisted: boolean; -} - -declare var PageTransitionEvent: { - prototype: PageTransitionEvent; - new(): PageTransitionEvent; -} - -interface PannerNode extends AudioNode { - coneInnerAngle: number; - coneOuterAngle: number; - coneOuterGain: number; - distanceModel: string; - maxDistance: number; - panningModel: string; - refDistance: number; - rolloffFactor: number; - setOrientation(x: number, y: number, z: number): void; - setPosition(x: number, y: number, z: number): void; - setVelocity(x: number, y: number, z: number): void; -} - -declare var PannerNode: { - prototype: PannerNode; - new(): PannerNode; -} - -interface PerfWidgetExternal { - activeNetworkRequestCount: number; - averageFrameTime: number; - averagePaintTime: number; - extraInformationEnabled: boolean; - independentRenderingEnabled: boolean; - irDisablingContentString: string; - irStatusAvailable: boolean; - maxCpuSpeed: number; - paintRequestsPerSecond: number; - performanceCounter: number; - performanceCounterFrequency: number; - addEventListener(eventType: string, callback: Function): void; - getMemoryUsage(): number; - getProcessCpuUsage(): number; - getRecentCpuUsage(last: number): any; - getRecentFrames(last: number): any; - getRecentMemoryUsage(last: number): any; - getRecentPaintRequests(last: number): any; - removeEventListener(eventType: string, callback: Function): void; - repositionWindow(x: number, y: number): void; - resizeWindow(width: number, height: number): void; -} - -declare var PerfWidgetExternal: { - prototype: PerfWidgetExternal; - new(): PerfWidgetExternal; -} - -interface Performance { - navigation: PerformanceNavigation; - timing: PerformanceTiming; - clearMarks(markName?: string): void; - clearMeasures(measureName?: string): void; - clearResourceTimings(): void; - getEntries(): any; - getEntriesByName(name: string, entryType?: string): any; - getEntriesByType(entryType: string): any; - getMarks(markName?: string): any; - getMeasures(measureName?: string): any; - mark(markName: string): void; - measure(measureName: string, startMarkName?: string, endMarkName?: string): void; - now(): number; - setResourceTimingBufferSize(maxSize: number): void; - toJSON(): any; -} - -declare var Performance: { - prototype: Performance; - new(): Performance; -} - -interface PerformanceEntry { - duration: number; - entryType: string; - name: string; - startTime: number; -} - -declare var PerformanceEntry: { - prototype: PerformanceEntry; - new(): PerformanceEntry; -} - -interface PerformanceMark extends PerformanceEntry { -} - -declare var PerformanceMark: { - prototype: PerformanceMark; - new(): PerformanceMark; -} - -interface PerformanceMeasure extends PerformanceEntry { -} - -declare var PerformanceMeasure: { - prototype: PerformanceMeasure; - new(): PerformanceMeasure; -} - -interface PerformanceNavigation { - redirectCount: number; - type: number; - toJSON(): any; - TYPE_BACK_FORWARD: number; - TYPE_NAVIGATE: number; - TYPE_RELOAD: number; - TYPE_RESERVED: number; -} - -declare var PerformanceNavigation: { - prototype: PerformanceNavigation; - new(): PerformanceNavigation; - TYPE_BACK_FORWARD: number; - TYPE_NAVIGATE: number; - TYPE_RELOAD: number; - TYPE_RESERVED: number; -} - -interface PerformanceNavigationTiming extends PerformanceEntry { - connectEnd: number; - connectStart: number; - domComplete: number; - domContentLoadedEventEnd: number; - domContentLoadedEventStart: number; - domInteractive: number; - domLoading: number; - domainLookupEnd: number; - domainLookupStart: number; - fetchStart: number; - loadEventEnd: number; - loadEventStart: number; - navigationStart: number; - redirectCount: number; - redirectEnd: number; - redirectStart: number; - requestStart: number; - responseEnd: number; - responseStart: number; - type: string; - unloadEventEnd: number; - unloadEventStart: number; -} - -declare var PerformanceNavigationTiming: { - prototype: PerformanceNavigationTiming; - new(): PerformanceNavigationTiming; -} - -interface PerformanceResourceTiming extends PerformanceEntry { - connectEnd: number; - connectStart: number; - domainLookupEnd: number; - domainLookupStart: number; - fetchStart: number; - initiatorType: string; - redirectEnd: number; - redirectStart: number; - requestStart: number; - responseEnd: number; - responseStart: number; -} - -declare var PerformanceResourceTiming: { - prototype: PerformanceResourceTiming; - new(): PerformanceResourceTiming; -} - -interface PerformanceTiming { - connectEnd: number; - connectStart: number; - domComplete: number; - domContentLoadedEventEnd: number; - domContentLoadedEventStart: number; - domInteractive: number; - domLoading: number; - domainLookupEnd: number; - domainLookupStart: number; - fetchStart: number; - loadEventEnd: number; - loadEventStart: number; - msFirstPaint: number; - navigationStart: number; - redirectEnd: number; - redirectStart: number; - requestStart: number; - responseEnd: number; - responseStart: number; - unloadEventEnd: number; - unloadEventStart: number; - toJSON(): any; -} - -declare var PerformanceTiming: { - prototype: PerformanceTiming; - new(): PerformanceTiming; -} - -interface PeriodicWave { -} - -declare var PeriodicWave: { - prototype: PeriodicWave; - new(): PeriodicWave; -} - -interface PermissionRequest extends DeferredPermissionRequest { - state: string; - defer(): void; -} - -declare var PermissionRequest: { - prototype: PermissionRequest; - new(): PermissionRequest; -} - -interface PermissionRequestedEvent extends Event { - permissionRequest: PermissionRequest; -} - -declare var PermissionRequestedEvent: { - prototype: PermissionRequestedEvent; - new(): PermissionRequestedEvent; -} - -interface Plugin { - description: string; - filename: string; - length: number; - name: string; - version: string; - item(index: number): MimeType; - namedItem(type: string): MimeType; - [index: number]: MimeType; -} - -declare var Plugin: { - prototype: Plugin; - new(): Plugin; -} - -interface PluginArray { - length: number; - item(index: number): Plugin; - namedItem(name: string): Plugin; - refresh(reload?: boolean): void; - [index: number]: Plugin; -} - -declare var PluginArray: { - prototype: PluginArray; - new(): PluginArray; -} - -interface PointerEvent extends MouseEvent { - currentPoint: any; - height: number; - hwTimestamp: number; - intermediatePoints: any; - isPrimary: boolean; - pointerId: number; - pointerType: any; - pressure: number; - rotation: number; - tiltX: number; - tiltY: number; - width: number; - getCurrentPoint(element: Element): void; - getIntermediatePoints(element: Element): void; - initPointerEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, viewArg: Window, detailArg: number, screenXArg: number, screenYArg: number, clientXArg: number, clientYArg: number, ctrlKeyArg: boolean, altKeyArg: boolean, shiftKeyArg: boolean, metaKeyArg: boolean, buttonArg: number, relatedTargetArg: EventTarget, offsetXArg: number, offsetYArg: number, widthArg: number, heightArg: number, pressure: number, rotation: number, tiltX: number, tiltY: number, pointerIdArg: number, pointerType: any, hwTimestampArg: number, isPrimary: boolean): void; -} - -declare var PointerEvent: { - prototype: PointerEvent; - new(typeArg: string, eventInitDict?: PointerEventInit): PointerEvent; -} - -interface PopStateEvent extends Event { - state: any; - initPopStateEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, stateArg: any): void; -} - -declare var PopStateEvent: { - prototype: PopStateEvent; - new(): PopStateEvent; -} - -interface Position { - coords: Coordinates; - timestamp: number; -} - -declare var Position: { - prototype: Position; - new(): Position; -} - -interface PositionError { - code: number; - message: string; - toString(): string; - PERMISSION_DENIED: number; - POSITION_UNAVAILABLE: number; - TIMEOUT: number; -} - -declare var PositionError: { - prototype: PositionError; - new(): PositionError; - PERMISSION_DENIED: number; - POSITION_UNAVAILABLE: number; - TIMEOUT: number; -} - -interface ProcessingInstruction extends CharacterData { - target: string; -} - -declare var ProcessingInstruction: { - prototype: ProcessingInstruction; - new(): ProcessingInstruction; -} - -interface ProgressEvent extends Event { - lengthComputable: boolean; - loaded: number; - total: number; - initProgressEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, lengthComputableArg: boolean, loadedArg: number, totalArg: number): void; -} - -declare var ProgressEvent: { - prototype: ProgressEvent; - new(type: string, eventInitDict?: ProgressEventInit): ProgressEvent; -} - -interface Range { - collapsed: boolean; - commonAncestorContainer: Node; - endContainer: Node; - endOffset: number; - startContainer: Node; - startOffset: number; - cloneContents(): DocumentFragment; - cloneRange(): Range; - collapse(toStart: boolean): void; - compareBoundaryPoints(how: number, sourceRange: Range): number; - createContextualFragment(fragment: string): DocumentFragment; - deleteContents(): void; - detach(): void; - expand(Unit: string): boolean; - extractContents(): DocumentFragment; - getBoundingClientRect(): ClientRect; - getClientRects(): ClientRectList; - insertNode(newNode: Node): void; - selectNode(refNode: Node): void; - selectNodeContents(refNode: Node): void; - setEnd(refNode: Node, offset: number): void; - setEndAfter(refNode: Node): void; - setEndBefore(refNode: Node): void; - setStart(refNode: Node, offset: number): void; - setStartAfter(refNode: Node): void; - setStartBefore(refNode: Node): void; - surroundContents(newParent: Node): void; - toString(): string; - END_TO_END: number; - END_TO_START: number; - START_TO_END: number; - START_TO_START: number; -} - -declare var Range: { - prototype: Range; - new(): Range; - END_TO_END: number; - END_TO_START: number; - START_TO_END: number; - START_TO_START: number; -} - -interface SVGAElement extends SVGElement, SVGStylable, SVGTransformable, SVGTests, SVGLangSpace, SVGExternalResourcesRequired, SVGURIReference { - target: SVGAnimatedString; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; -} - -declare var SVGAElement: { - prototype: SVGAElement; - new(): SVGAElement; -} - -interface SVGAngle { - unitType: number; - value: number; - valueAsString: string; - valueInSpecifiedUnits: number; - convertToSpecifiedUnits(unitType: number): void; - newValueSpecifiedUnits(unitType: number, valueInSpecifiedUnits: number): void; - SVG_ANGLETYPE_DEG: number; - SVG_ANGLETYPE_GRAD: number; - SVG_ANGLETYPE_RAD: number; - SVG_ANGLETYPE_UNKNOWN: number; - SVG_ANGLETYPE_UNSPECIFIED: number; -} - -declare var SVGAngle: { - prototype: SVGAngle; - new(): SVGAngle; - SVG_ANGLETYPE_DEG: number; - SVG_ANGLETYPE_GRAD: number; - SVG_ANGLETYPE_RAD: number; - SVG_ANGLETYPE_UNKNOWN: number; - SVG_ANGLETYPE_UNSPECIFIED: number; -} - -interface SVGAnimatedAngle { - animVal: SVGAngle; - baseVal: SVGAngle; -} - -declare var SVGAnimatedAngle: { - prototype: SVGAnimatedAngle; - new(): SVGAnimatedAngle; -} - -interface SVGAnimatedBoolean { - animVal: boolean; - baseVal: boolean; -} - -declare var SVGAnimatedBoolean: { - prototype: SVGAnimatedBoolean; - new(): SVGAnimatedBoolean; -} - -interface SVGAnimatedEnumeration { - animVal: number; - baseVal: number; -} - -declare var SVGAnimatedEnumeration: { - prototype: SVGAnimatedEnumeration; - new(): SVGAnimatedEnumeration; -} - -interface SVGAnimatedInteger { - animVal: number; - baseVal: number; -} - -declare var SVGAnimatedInteger: { - prototype: SVGAnimatedInteger; - new(): SVGAnimatedInteger; -} - -interface SVGAnimatedLength { - animVal: SVGLength; - baseVal: SVGLength; -} - -declare var SVGAnimatedLength: { - prototype: SVGAnimatedLength; - new(): SVGAnimatedLength; -} - -interface SVGAnimatedLengthList { - animVal: SVGLengthList; - baseVal: SVGLengthList; -} - -declare var SVGAnimatedLengthList: { - prototype: SVGAnimatedLengthList; - new(): SVGAnimatedLengthList; -} - -interface SVGAnimatedNumber { - animVal: number; - baseVal: number; -} - -declare var SVGAnimatedNumber: { - prototype: SVGAnimatedNumber; - new(): SVGAnimatedNumber; -} - -interface SVGAnimatedNumberList { - animVal: SVGNumberList; - baseVal: SVGNumberList; -} - -declare var SVGAnimatedNumberList: { - prototype: SVGAnimatedNumberList; - new(): SVGAnimatedNumberList; -} - -interface SVGAnimatedPreserveAspectRatio { - animVal: SVGPreserveAspectRatio; - baseVal: SVGPreserveAspectRatio; -} - -declare var SVGAnimatedPreserveAspectRatio: { - prototype: SVGAnimatedPreserveAspectRatio; - new(): SVGAnimatedPreserveAspectRatio; -} - -interface SVGAnimatedRect { - animVal: SVGRect; - baseVal: SVGRect; -} - -declare var SVGAnimatedRect: { - prototype: SVGAnimatedRect; - new(): SVGAnimatedRect; -} - -interface SVGAnimatedString { - animVal: string; - baseVal: string; -} - -declare var SVGAnimatedString: { - prototype: SVGAnimatedString; - new(): SVGAnimatedString; -} - -interface SVGAnimatedTransformList { - animVal: SVGTransformList; - baseVal: SVGTransformList; -} - -declare var SVGAnimatedTransformList: { - prototype: SVGAnimatedTransformList; - new(): SVGAnimatedTransformList; -} - -interface SVGCircleElement extends SVGElement, SVGStylable, SVGTransformable, SVGTests, SVGLangSpace, SVGExternalResourcesRequired { - cx: SVGAnimatedLength; - cy: SVGAnimatedLength; - r: SVGAnimatedLength; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; -} - -declare var SVGCircleElement: { - prototype: SVGCircleElement; - new(): SVGCircleElement; -} - -interface SVGClipPathElement extends SVGElement, SVGStylable, SVGTransformable, SVGTests, SVGLangSpace, SVGExternalResourcesRequired, SVGUnitTypes { - clipPathUnits: SVGAnimatedEnumeration; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; -} - -declare var SVGClipPathElement: { - prototype: SVGClipPathElement; - new(): SVGClipPathElement; -} - -interface SVGComponentTransferFunctionElement extends SVGElement { - amplitude: SVGAnimatedNumber; - exponent: SVGAnimatedNumber; - intercept: SVGAnimatedNumber; - offset: SVGAnimatedNumber; - slope: SVGAnimatedNumber; - tableValues: SVGAnimatedNumberList; - type: SVGAnimatedEnumeration; - SVG_FECOMPONENTTRANSFER_TYPE_DISCRETE: number; - SVG_FECOMPONENTTRANSFER_TYPE_GAMMA: number; - SVG_FECOMPONENTTRANSFER_TYPE_IDENTITY: number; - SVG_FECOMPONENTTRANSFER_TYPE_LINEAR: number; - SVG_FECOMPONENTTRANSFER_TYPE_TABLE: number; - SVG_FECOMPONENTTRANSFER_TYPE_UNKNOWN: number; -} - -declare var SVGComponentTransferFunctionElement: { - prototype: SVGComponentTransferFunctionElement; - new(): SVGComponentTransferFunctionElement; - SVG_FECOMPONENTTRANSFER_TYPE_DISCRETE: number; - SVG_FECOMPONENTTRANSFER_TYPE_GAMMA: number; - SVG_FECOMPONENTTRANSFER_TYPE_IDENTITY: number; - SVG_FECOMPONENTTRANSFER_TYPE_LINEAR: number; - SVG_FECOMPONENTTRANSFER_TYPE_TABLE: number; - SVG_FECOMPONENTTRANSFER_TYPE_UNKNOWN: number; -} - -interface SVGDefsElement extends SVGElement, SVGStylable, SVGTransformable, SVGTests, SVGLangSpace, SVGExternalResourcesRequired { - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; -} - -declare var SVGDefsElement: { - prototype: SVGDefsElement; - new(): SVGDefsElement; -} - -interface SVGDescElement extends SVGElement, SVGStylable, SVGLangSpace { - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; -} - -declare var SVGDescElement: { - prototype: SVGDescElement; - new(): SVGDescElement; -} - -interface SVGElement extends Element { - id: string; - onclick: (ev: MouseEvent) => any; - ondblclick: (ev: MouseEvent) => any; - onfocusin: (ev: FocusEvent) => any; - onfocusout: (ev: FocusEvent) => any; - onload: (ev: Event) => any; - onmousedown: (ev: MouseEvent) => any; - onmousemove: (ev: MouseEvent) => any; - onmouseout: (ev: MouseEvent) => any; - onmouseover: (ev: MouseEvent) => any; - onmouseup: (ev: MouseEvent) => any; - ownerSVGElement: SVGSVGElement; - viewportElement: SVGElement; - xmlbase: string; - className: any; - addEventListener(type: "MSGestureChange", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSGestureDoubleTap", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSGestureEnd", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSGestureHold", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSGestureStart", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSGestureTap", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSGotPointerCapture", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSInertiaStart", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSLostPointerCapture", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSPointerCancel", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSPointerDown", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSPointerEnter", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSPointerLeave", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSPointerMove", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSPointerOut", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSPointerOver", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSPointerUp", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "ariarequest", listener: (ev: AriaRequestEvent) => any, useCapture?: boolean): void; - addEventListener(type: "click", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; - addEventListener(type: "command", listener: (ev: CommandEvent) => any, useCapture?: boolean): void; - addEventListener(type: "dblclick", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; - addEventListener(type: "focusin", listener: (ev: FocusEvent) => any, useCapture?: boolean): void; - addEventListener(type: "focusout", listener: (ev: FocusEvent) => any, useCapture?: boolean): void; - addEventListener(type: "gotpointercapture", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "load", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "lostpointercapture", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "mousedown", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; - addEventListener(type: "mousemove", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; - addEventListener(type: "mouseout", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; - addEventListener(type: "mouseover", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; - addEventListener(type: "mouseup", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; - addEventListener(type: "pointercancel", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "pointerdown", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "pointerenter", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "pointerleave", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "pointermove", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "pointerout", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "pointerover", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "pointerup", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "touchcancel", listener: (ev: TouchEvent) => any, useCapture?: boolean): void; - addEventListener(type: "touchend", listener: (ev: TouchEvent) => any, useCapture?: boolean): void; - addEventListener(type: "touchmove", listener: (ev: TouchEvent) => any, useCapture?: boolean): void; - addEventListener(type: "touchstart", listener: (ev: TouchEvent) => any, useCapture?: boolean): void; - addEventListener(type: "webkitfullscreenchange", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "webkitfullscreenerror", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "wheel", listener: (ev: WheelEvent) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; -} - -declare var SVGElement: { - prototype: SVGElement; - new(): SVGElement; -} - -interface SVGElementInstance extends EventTarget { - childNodes: SVGElementInstanceList; - correspondingElement: SVGElement; - correspondingUseElement: SVGUseElement; - firstChild: SVGElementInstance; - lastChild: SVGElementInstance; - nextSibling: SVGElementInstance; - parentNode: SVGElementInstance; - previousSibling: SVGElementInstance; -} - -declare var SVGElementInstance: { - prototype: SVGElementInstance; - new(): SVGElementInstance; -} - -interface SVGElementInstanceList { - length: number; - item(index: number): SVGElementInstance; -} - -declare var SVGElementInstanceList: { - prototype: SVGElementInstanceList; - new(): SVGElementInstanceList; -} - -interface SVGEllipseElement extends SVGElement, SVGStylable, SVGTransformable, SVGTests, SVGLangSpace, SVGExternalResourcesRequired { - cx: SVGAnimatedLength; - cy: SVGAnimatedLength; - rx: SVGAnimatedLength; - ry: SVGAnimatedLength; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; -} - -declare var SVGEllipseElement: { - prototype: SVGEllipseElement; - new(): SVGEllipseElement; -} - -interface SVGFEBlendElement extends SVGElement, SVGFilterPrimitiveStandardAttributes { - in1: SVGAnimatedString; - in2: SVGAnimatedString; - mode: SVGAnimatedEnumeration; - SVG_FEBLEND_MODE_COLOR: number; - SVG_FEBLEND_MODE_COLOR_BURN: number; - SVG_FEBLEND_MODE_COLOR_DODGE: number; - SVG_FEBLEND_MODE_DARKEN: number; - SVG_FEBLEND_MODE_DIFFERENCE: number; - SVG_FEBLEND_MODE_EXCLUSION: number; - SVG_FEBLEND_MODE_HARD_LIGHT: number; - SVG_FEBLEND_MODE_HUE: number; - SVG_FEBLEND_MODE_LIGHTEN: number; - SVG_FEBLEND_MODE_LUMINOSITY: number; - SVG_FEBLEND_MODE_MULTIPLY: number; - SVG_FEBLEND_MODE_NORMAL: number; - SVG_FEBLEND_MODE_OVERLAY: number; - SVG_FEBLEND_MODE_SATURATION: number; - SVG_FEBLEND_MODE_SCREEN: number; - SVG_FEBLEND_MODE_SOFT_LIGHT: number; - SVG_FEBLEND_MODE_UNKNOWN: number; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; -} - -declare var SVGFEBlendElement: { - prototype: SVGFEBlendElement; - new(): SVGFEBlendElement; - SVG_FEBLEND_MODE_COLOR: number; - SVG_FEBLEND_MODE_COLOR_BURN: number; - SVG_FEBLEND_MODE_COLOR_DODGE: number; - SVG_FEBLEND_MODE_DARKEN: number; - SVG_FEBLEND_MODE_DIFFERENCE: number; - SVG_FEBLEND_MODE_EXCLUSION: number; - SVG_FEBLEND_MODE_HARD_LIGHT: number; - SVG_FEBLEND_MODE_HUE: number; - SVG_FEBLEND_MODE_LIGHTEN: number; - SVG_FEBLEND_MODE_LUMINOSITY: number; - SVG_FEBLEND_MODE_MULTIPLY: number; - SVG_FEBLEND_MODE_NORMAL: number; - SVG_FEBLEND_MODE_OVERLAY: number; - SVG_FEBLEND_MODE_SATURATION: number; - SVG_FEBLEND_MODE_SCREEN: number; - SVG_FEBLEND_MODE_SOFT_LIGHT: number; - SVG_FEBLEND_MODE_UNKNOWN: number; -} - -interface SVGFEColorMatrixElement extends SVGElement, SVGFilterPrimitiveStandardAttributes { - in1: SVGAnimatedString; - type: SVGAnimatedEnumeration; - values: SVGAnimatedNumberList; - SVG_FECOLORMATRIX_TYPE_HUEROTATE: number; - SVG_FECOLORMATRIX_TYPE_LUMINANCETOALPHA: number; - SVG_FECOLORMATRIX_TYPE_MATRIX: number; - SVG_FECOLORMATRIX_TYPE_SATURATE: number; - SVG_FECOLORMATRIX_TYPE_UNKNOWN: number; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; -} - -declare var SVGFEColorMatrixElement: { - prototype: SVGFEColorMatrixElement; - new(): SVGFEColorMatrixElement; - SVG_FECOLORMATRIX_TYPE_HUEROTATE: number; - SVG_FECOLORMATRIX_TYPE_LUMINANCETOALPHA: number; - SVG_FECOLORMATRIX_TYPE_MATRIX: number; - SVG_FECOLORMATRIX_TYPE_SATURATE: number; - SVG_FECOLORMATRIX_TYPE_UNKNOWN: number; -} - -interface SVGFEComponentTransferElement extends SVGElement, SVGFilterPrimitiveStandardAttributes { - in1: SVGAnimatedString; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; -} - -declare var SVGFEComponentTransferElement: { - prototype: SVGFEComponentTransferElement; - new(): SVGFEComponentTransferElement; -} - -interface SVGFECompositeElement extends SVGElement, SVGFilterPrimitiveStandardAttributes { - in1: SVGAnimatedString; - in2: SVGAnimatedString; - k1: SVGAnimatedNumber; - k2: SVGAnimatedNumber; - k3: SVGAnimatedNumber; - k4: SVGAnimatedNumber; - operator: SVGAnimatedEnumeration; - SVG_FECOMPOSITE_OPERATOR_ARITHMETIC: number; - SVG_FECOMPOSITE_OPERATOR_ATOP: number; - SVG_FECOMPOSITE_OPERATOR_IN: number; - SVG_FECOMPOSITE_OPERATOR_OUT: number; - SVG_FECOMPOSITE_OPERATOR_OVER: number; - SVG_FECOMPOSITE_OPERATOR_UNKNOWN: number; - SVG_FECOMPOSITE_OPERATOR_XOR: number; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; -} - -declare var SVGFECompositeElement: { - prototype: SVGFECompositeElement; - new(): SVGFECompositeElement; - SVG_FECOMPOSITE_OPERATOR_ARITHMETIC: number; - SVG_FECOMPOSITE_OPERATOR_ATOP: number; - SVG_FECOMPOSITE_OPERATOR_IN: number; - SVG_FECOMPOSITE_OPERATOR_OUT: number; - SVG_FECOMPOSITE_OPERATOR_OVER: number; - SVG_FECOMPOSITE_OPERATOR_UNKNOWN: number; - SVG_FECOMPOSITE_OPERATOR_XOR: number; -} - -interface SVGFEConvolveMatrixElement extends SVGElement, SVGFilterPrimitiveStandardAttributes { - bias: SVGAnimatedNumber; - divisor: SVGAnimatedNumber; - edgeMode: SVGAnimatedEnumeration; - in1: SVGAnimatedString; - kernelMatrix: SVGAnimatedNumberList; - kernelUnitLengthX: SVGAnimatedNumber; - kernelUnitLengthY: SVGAnimatedNumber; - orderX: SVGAnimatedInteger; - orderY: SVGAnimatedInteger; - preserveAlpha: SVGAnimatedBoolean; - targetX: SVGAnimatedInteger; - targetY: SVGAnimatedInteger; - SVG_EDGEMODE_DUPLICATE: number; - SVG_EDGEMODE_NONE: number; - SVG_EDGEMODE_UNKNOWN: number; - SVG_EDGEMODE_WRAP: number; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; -} - -declare var SVGFEConvolveMatrixElement: { - prototype: SVGFEConvolveMatrixElement; - new(): SVGFEConvolveMatrixElement; - SVG_EDGEMODE_DUPLICATE: number; - SVG_EDGEMODE_NONE: number; - SVG_EDGEMODE_UNKNOWN: number; - SVG_EDGEMODE_WRAP: number; -} - -interface SVGFEDiffuseLightingElement extends SVGElement, SVGFilterPrimitiveStandardAttributes { - diffuseConstant: SVGAnimatedNumber; - in1: SVGAnimatedString; - kernelUnitLengthX: SVGAnimatedNumber; - kernelUnitLengthY: SVGAnimatedNumber; - surfaceScale: SVGAnimatedNumber; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; -} - -declare var SVGFEDiffuseLightingElement: { - prototype: SVGFEDiffuseLightingElement; - new(): SVGFEDiffuseLightingElement; -} - -interface SVGFEDisplacementMapElement extends SVGElement, SVGFilterPrimitiveStandardAttributes { - in1: SVGAnimatedString; - in2: SVGAnimatedString; - scale: SVGAnimatedNumber; - xChannelSelector: SVGAnimatedEnumeration; - yChannelSelector: SVGAnimatedEnumeration; - SVG_CHANNEL_A: number; - SVG_CHANNEL_B: number; - SVG_CHANNEL_G: number; - SVG_CHANNEL_R: number; - SVG_CHANNEL_UNKNOWN: number; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; -} - -declare var SVGFEDisplacementMapElement: { - prototype: SVGFEDisplacementMapElement; - new(): SVGFEDisplacementMapElement; - SVG_CHANNEL_A: number; - SVG_CHANNEL_B: number; - SVG_CHANNEL_G: number; - SVG_CHANNEL_R: number; - SVG_CHANNEL_UNKNOWN: number; -} - -interface SVGFEDistantLightElement extends SVGElement { - azimuth: SVGAnimatedNumber; - elevation: SVGAnimatedNumber; -} - -declare var SVGFEDistantLightElement: { - prototype: SVGFEDistantLightElement; - new(): SVGFEDistantLightElement; -} - -interface SVGFEFloodElement extends SVGElement, SVGFilterPrimitiveStandardAttributes { - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; -} - -declare var SVGFEFloodElement: { - prototype: SVGFEFloodElement; - new(): SVGFEFloodElement; -} - -interface SVGFEFuncAElement extends SVGComponentTransferFunctionElement { -} - -declare var SVGFEFuncAElement: { - prototype: SVGFEFuncAElement; - new(): SVGFEFuncAElement; -} - -interface SVGFEFuncBElement extends SVGComponentTransferFunctionElement { -} - -declare var SVGFEFuncBElement: { - prototype: SVGFEFuncBElement; - new(): SVGFEFuncBElement; -} - -interface SVGFEFuncGElement extends SVGComponentTransferFunctionElement { -} - -declare var SVGFEFuncGElement: { - prototype: SVGFEFuncGElement; - new(): SVGFEFuncGElement; -} - -interface SVGFEFuncRElement extends SVGComponentTransferFunctionElement { -} - -declare var SVGFEFuncRElement: { - prototype: SVGFEFuncRElement; - new(): SVGFEFuncRElement; -} - -interface SVGFEGaussianBlurElement extends SVGElement, SVGFilterPrimitiveStandardAttributes { - in1: SVGAnimatedString; - stdDeviationX: SVGAnimatedNumber; - stdDeviationY: SVGAnimatedNumber; - setStdDeviation(stdDeviationX: number, stdDeviationY: number): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; -} - -declare var SVGFEGaussianBlurElement: { - prototype: SVGFEGaussianBlurElement; - new(): SVGFEGaussianBlurElement; -} - -interface SVGFEImageElement extends SVGElement, SVGFilterPrimitiveStandardAttributes, SVGLangSpace, SVGURIReference, SVGExternalResourcesRequired { - preserveAspectRatio: SVGAnimatedPreserveAspectRatio; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; -} - -declare var SVGFEImageElement: { - prototype: SVGFEImageElement; - new(): SVGFEImageElement; -} - -interface SVGFEMergeElement extends SVGElement, SVGFilterPrimitiveStandardAttributes { - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; -} - -declare var SVGFEMergeElement: { - prototype: SVGFEMergeElement; - new(): SVGFEMergeElement; -} - -interface SVGFEMergeNodeElement extends SVGElement { - in1: SVGAnimatedString; -} - -declare var SVGFEMergeNodeElement: { - prototype: SVGFEMergeNodeElement; - new(): SVGFEMergeNodeElement; -} - -interface SVGFEMorphologyElement extends SVGElement, SVGFilterPrimitiveStandardAttributes { - in1: SVGAnimatedString; - operator: SVGAnimatedEnumeration; - radiusX: SVGAnimatedNumber; - radiusY: SVGAnimatedNumber; - SVG_MORPHOLOGY_OPERATOR_DILATE: number; - SVG_MORPHOLOGY_OPERATOR_ERODE: number; - SVG_MORPHOLOGY_OPERATOR_UNKNOWN: number; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; -} - -declare var SVGFEMorphologyElement: { - prototype: SVGFEMorphologyElement; - new(): SVGFEMorphologyElement; - SVG_MORPHOLOGY_OPERATOR_DILATE: number; - SVG_MORPHOLOGY_OPERATOR_ERODE: number; - SVG_MORPHOLOGY_OPERATOR_UNKNOWN: number; -} - -interface SVGFEOffsetElement extends SVGElement, SVGFilterPrimitiveStandardAttributes { - dx: SVGAnimatedNumber; - dy: SVGAnimatedNumber; - in1: SVGAnimatedString; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; -} - -declare var SVGFEOffsetElement: { - prototype: SVGFEOffsetElement; - new(): SVGFEOffsetElement; -} - -interface SVGFEPointLightElement extends SVGElement { - x: SVGAnimatedNumber; - y: SVGAnimatedNumber; - z: SVGAnimatedNumber; -} - -declare var SVGFEPointLightElement: { - prototype: SVGFEPointLightElement; - new(): SVGFEPointLightElement; -} - -interface SVGFESpecularLightingElement extends SVGElement, SVGFilterPrimitiveStandardAttributes { - in1: SVGAnimatedString; - kernelUnitLengthX: SVGAnimatedNumber; - kernelUnitLengthY: SVGAnimatedNumber; - specularConstant: SVGAnimatedNumber; - specularExponent: SVGAnimatedNumber; - surfaceScale: SVGAnimatedNumber; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; -} - -declare var SVGFESpecularLightingElement: { - prototype: SVGFESpecularLightingElement; - new(): SVGFESpecularLightingElement; -} - -interface SVGFESpotLightElement extends SVGElement { - limitingConeAngle: SVGAnimatedNumber; - pointsAtX: SVGAnimatedNumber; - pointsAtY: SVGAnimatedNumber; - pointsAtZ: SVGAnimatedNumber; - specularExponent: SVGAnimatedNumber; - x: SVGAnimatedNumber; - y: SVGAnimatedNumber; - z: SVGAnimatedNumber; -} - -declare var SVGFESpotLightElement: { - prototype: SVGFESpotLightElement; - new(): SVGFESpotLightElement; -} - -interface SVGFETileElement extends SVGElement, SVGFilterPrimitiveStandardAttributes { - in1: SVGAnimatedString; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; -} - -declare var SVGFETileElement: { - prototype: SVGFETileElement; - new(): SVGFETileElement; -} - -interface SVGFETurbulenceElement extends SVGElement, SVGFilterPrimitiveStandardAttributes { - baseFrequencyX: SVGAnimatedNumber; - baseFrequencyY: SVGAnimatedNumber; - numOctaves: SVGAnimatedInteger; - seed: SVGAnimatedNumber; - stitchTiles: SVGAnimatedEnumeration; - type: SVGAnimatedEnumeration; - SVG_STITCHTYPE_NOSTITCH: number; - SVG_STITCHTYPE_STITCH: number; - SVG_STITCHTYPE_UNKNOWN: number; - SVG_TURBULENCE_TYPE_FRACTALNOISE: number; - SVG_TURBULENCE_TYPE_TURBULENCE: number; - SVG_TURBULENCE_TYPE_UNKNOWN: number; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; -} - -declare var SVGFETurbulenceElement: { - prototype: SVGFETurbulenceElement; - new(): SVGFETurbulenceElement; - SVG_STITCHTYPE_NOSTITCH: number; - SVG_STITCHTYPE_STITCH: number; - SVG_STITCHTYPE_UNKNOWN: number; - SVG_TURBULENCE_TYPE_FRACTALNOISE: number; - SVG_TURBULENCE_TYPE_TURBULENCE: number; - SVG_TURBULENCE_TYPE_UNKNOWN: number; -} - -interface SVGFilterElement extends SVGElement, SVGUnitTypes, SVGStylable, SVGLangSpace, SVGURIReference, SVGExternalResourcesRequired { - filterResX: SVGAnimatedInteger; - filterResY: SVGAnimatedInteger; - filterUnits: SVGAnimatedEnumeration; - height: SVGAnimatedLength; - primitiveUnits: SVGAnimatedEnumeration; - width: SVGAnimatedLength; - x: SVGAnimatedLength; - y: SVGAnimatedLength; - setFilterRes(filterResX: number, filterResY: number): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; -} - -declare var SVGFilterElement: { - prototype: SVGFilterElement; - new(): SVGFilterElement; -} - -interface SVGForeignObjectElement extends SVGElement, SVGStylable, SVGTransformable, SVGTests, SVGLangSpace, SVGExternalResourcesRequired { - height: SVGAnimatedLength; - width: SVGAnimatedLength; - x: SVGAnimatedLength; - y: SVGAnimatedLength; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; -} - -declare var SVGForeignObjectElement: { - prototype: SVGForeignObjectElement; - new(): SVGForeignObjectElement; -} - -interface SVGGElement extends SVGElement, SVGStylable, SVGTransformable, SVGTests, SVGLangSpace, SVGExternalResourcesRequired { - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; -} - -declare var SVGGElement: { - prototype: SVGGElement; - new(): SVGGElement; -} - -interface SVGGradientElement extends SVGElement, SVGStylable, SVGExternalResourcesRequired, SVGURIReference, SVGUnitTypes { - gradientTransform: SVGAnimatedTransformList; - gradientUnits: SVGAnimatedEnumeration; - spreadMethod: SVGAnimatedEnumeration; - SVG_SPREADMETHOD_PAD: number; - SVG_SPREADMETHOD_REFLECT: number; - SVG_SPREADMETHOD_REPEAT: number; - SVG_SPREADMETHOD_UNKNOWN: number; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; -} - -declare var SVGGradientElement: { - prototype: SVGGradientElement; - new(): SVGGradientElement; - SVG_SPREADMETHOD_PAD: number; - SVG_SPREADMETHOD_REFLECT: number; - SVG_SPREADMETHOD_REPEAT: number; - SVG_SPREADMETHOD_UNKNOWN: number; -} - -interface SVGImageElement extends SVGElement, SVGStylable, SVGTransformable, SVGTests, SVGLangSpace, SVGExternalResourcesRequired, SVGURIReference { - height: SVGAnimatedLength; - preserveAspectRatio: SVGAnimatedPreserveAspectRatio; - width: SVGAnimatedLength; - x: SVGAnimatedLength; - y: SVGAnimatedLength; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; -} - -declare var SVGImageElement: { - prototype: SVGImageElement; - new(): SVGImageElement; -} - -interface SVGLength { - unitType: number; - value: number; - valueAsString: string; - valueInSpecifiedUnits: number; - convertToSpecifiedUnits(unitType: number): void; - newValueSpecifiedUnits(unitType: number, valueInSpecifiedUnits: number): void; - SVG_LENGTHTYPE_CM: number; - SVG_LENGTHTYPE_EMS: number; - SVG_LENGTHTYPE_EXS: number; - SVG_LENGTHTYPE_IN: number; - SVG_LENGTHTYPE_MM: number; - SVG_LENGTHTYPE_NUMBER: number; - SVG_LENGTHTYPE_PC: number; - SVG_LENGTHTYPE_PERCENTAGE: number; - SVG_LENGTHTYPE_PT: number; - SVG_LENGTHTYPE_PX: number; - SVG_LENGTHTYPE_UNKNOWN: number; -} - -declare var SVGLength: { - prototype: SVGLength; - new(): SVGLength; - SVG_LENGTHTYPE_CM: number; - SVG_LENGTHTYPE_EMS: number; - SVG_LENGTHTYPE_EXS: number; - SVG_LENGTHTYPE_IN: number; - SVG_LENGTHTYPE_MM: number; - SVG_LENGTHTYPE_NUMBER: number; - SVG_LENGTHTYPE_PC: number; - SVG_LENGTHTYPE_PERCENTAGE: number; - SVG_LENGTHTYPE_PT: number; - SVG_LENGTHTYPE_PX: number; - SVG_LENGTHTYPE_UNKNOWN: number; -} - -interface SVGLengthList { - numberOfItems: number; - appendItem(newItem: SVGLength): SVGLength; - clear(): void; - getItem(index: number): SVGLength; - initialize(newItem: SVGLength): SVGLength; - insertItemBefore(newItem: SVGLength, index: number): SVGLength; - removeItem(index: number): SVGLength; - replaceItem(newItem: SVGLength, index: number): SVGLength; -} - -declare var SVGLengthList: { - prototype: SVGLengthList; - new(): SVGLengthList; -} - -interface SVGLineElement extends SVGElement, SVGStylable, SVGTransformable, SVGTests, SVGLangSpace, SVGExternalResourcesRequired { - x1: SVGAnimatedLength; - x2: SVGAnimatedLength; - y1: SVGAnimatedLength; - y2: SVGAnimatedLength; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; -} - -declare var SVGLineElement: { - prototype: SVGLineElement; - new(): SVGLineElement; -} - -interface SVGLinearGradientElement extends SVGGradientElement { - x1: SVGAnimatedLength; - x2: SVGAnimatedLength; - y1: SVGAnimatedLength; - y2: SVGAnimatedLength; -} - -declare var SVGLinearGradientElement: { - prototype: SVGLinearGradientElement; - new(): SVGLinearGradientElement; -} - -interface SVGMarkerElement extends SVGElement, SVGStylable, SVGLangSpace, SVGExternalResourcesRequired, SVGFitToViewBox { - markerHeight: SVGAnimatedLength; - markerUnits: SVGAnimatedEnumeration; - markerWidth: SVGAnimatedLength; - orientAngle: SVGAnimatedAngle; - orientType: SVGAnimatedEnumeration; - refX: SVGAnimatedLength; - refY: SVGAnimatedLength; - setOrientToAngle(angle: SVGAngle): void; - setOrientToAuto(): void; - SVG_MARKERUNITS_STROKEWIDTH: number; - SVG_MARKERUNITS_UNKNOWN: number; - SVG_MARKERUNITS_USERSPACEONUSE: number; - SVG_MARKER_ORIENT_ANGLE: number; - SVG_MARKER_ORIENT_AUTO: number; - SVG_MARKER_ORIENT_UNKNOWN: number; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; -} - -declare var SVGMarkerElement: { - prototype: SVGMarkerElement; - new(): SVGMarkerElement; - SVG_MARKERUNITS_STROKEWIDTH: number; - SVG_MARKERUNITS_UNKNOWN: number; - SVG_MARKERUNITS_USERSPACEONUSE: number; - SVG_MARKER_ORIENT_ANGLE: number; - SVG_MARKER_ORIENT_AUTO: number; - SVG_MARKER_ORIENT_UNKNOWN: number; -} - -interface SVGMaskElement extends SVGElement, SVGStylable, SVGTests, SVGLangSpace, SVGExternalResourcesRequired, SVGUnitTypes { - height: SVGAnimatedLength; - maskContentUnits: SVGAnimatedEnumeration; - maskUnits: SVGAnimatedEnumeration; - width: SVGAnimatedLength; - x: SVGAnimatedLength; - y: SVGAnimatedLength; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; -} - -declare var SVGMaskElement: { - prototype: SVGMaskElement; - new(): SVGMaskElement; -} - -interface SVGMatrix { - a: number; - b: number; - c: number; - d: number; - e: number; - f: number; - flipX(): SVGMatrix; - flipY(): SVGMatrix; - inverse(): SVGMatrix; - multiply(secondMatrix: SVGMatrix): SVGMatrix; - rotate(angle: number): SVGMatrix; - rotateFromVector(x: number, y: number): SVGMatrix; - scale(scaleFactor: number): SVGMatrix; - scaleNonUniform(scaleFactorX: number, scaleFactorY: number): SVGMatrix; - skewX(angle: number): SVGMatrix; - skewY(angle: number): SVGMatrix; - translate(x: number, y: number): SVGMatrix; -} - -declare var SVGMatrix: { - prototype: SVGMatrix; - new(): SVGMatrix; -} - -interface SVGMetadataElement extends SVGElement { -} - -declare var SVGMetadataElement: { - prototype: SVGMetadataElement; - new(): SVGMetadataElement; -} - -interface SVGNumber { - value: number; -} - -declare var SVGNumber: { - prototype: SVGNumber; - new(): SVGNumber; -} - -interface SVGNumberList { - numberOfItems: number; - appendItem(newItem: SVGNumber): SVGNumber; - clear(): void; - getItem(index: number): SVGNumber; - initialize(newItem: SVGNumber): SVGNumber; - insertItemBefore(newItem: SVGNumber, index: number): SVGNumber; - removeItem(index: number): SVGNumber; - replaceItem(newItem: SVGNumber, index: number): SVGNumber; -} - -declare var SVGNumberList: { - prototype: SVGNumberList; - new(): SVGNumberList; -} - -interface SVGPathElement extends SVGElement, SVGStylable, SVGTransformable, SVGTests, SVGLangSpace, SVGExternalResourcesRequired, SVGAnimatedPathData { - createSVGPathSegArcAbs(x: number, y: number, r1: number, r2: number, angle: number, largeArcFlag: boolean, sweepFlag: boolean): SVGPathSegArcAbs; - createSVGPathSegArcRel(x: number, y: number, r1: number, r2: number, angle: number, largeArcFlag: boolean, sweepFlag: boolean): SVGPathSegArcRel; - createSVGPathSegClosePath(): SVGPathSegClosePath; - createSVGPathSegCurvetoCubicAbs(x: number, y: number, x1: number, y1: number, x2: number, y2: number): SVGPathSegCurvetoCubicAbs; - createSVGPathSegCurvetoCubicRel(x: number, y: number, x1: number, y1: number, x2: number, y2: number): SVGPathSegCurvetoCubicRel; - createSVGPathSegCurvetoCubicSmoothAbs(x: number, y: number, x2: number, y2: number): SVGPathSegCurvetoCubicSmoothAbs; - createSVGPathSegCurvetoCubicSmoothRel(x: number, y: number, x2: number, y2: number): SVGPathSegCurvetoCubicSmoothRel; - createSVGPathSegCurvetoQuadraticAbs(x: number, y: number, x1: number, y1: number): SVGPathSegCurvetoQuadraticAbs; - createSVGPathSegCurvetoQuadraticRel(x: number, y: number, x1: number, y1: number): SVGPathSegCurvetoQuadraticRel; - createSVGPathSegCurvetoQuadraticSmoothAbs(x: number, y: number): SVGPathSegCurvetoQuadraticSmoothAbs; - createSVGPathSegCurvetoQuadraticSmoothRel(x: number, y: number): SVGPathSegCurvetoQuadraticSmoothRel; - createSVGPathSegLinetoAbs(x: number, y: number): SVGPathSegLinetoAbs; - createSVGPathSegLinetoHorizontalAbs(x: number): SVGPathSegLinetoHorizontalAbs; - createSVGPathSegLinetoHorizontalRel(x: number): SVGPathSegLinetoHorizontalRel; - createSVGPathSegLinetoRel(x: number, y: number): SVGPathSegLinetoRel; - createSVGPathSegLinetoVerticalAbs(y: number): SVGPathSegLinetoVerticalAbs; - createSVGPathSegLinetoVerticalRel(y: number): SVGPathSegLinetoVerticalRel; - createSVGPathSegMovetoAbs(x: number, y: number): SVGPathSegMovetoAbs; - createSVGPathSegMovetoRel(x: number, y: number): SVGPathSegMovetoRel; - getPathSegAtLength(distance: number): number; - getPointAtLength(distance: number): SVGPoint; - getTotalLength(): number; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; -} - -declare var SVGPathElement: { - prototype: SVGPathElement; - new(): SVGPathElement; -} - -interface SVGPathSeg { - pathSegType: number; - pathSegTypeAsLetter: string; - PATHSEG_ARC_ABS: number; - PATHSEG_ARC_REL: number; - PATHSEG_CLOSEPATH: number; - PATHSEG_CURVETO_CUBIC_ABS: number; - PATHSEG_CURVETO_CUBIC_REL: number; - PATHSEG_CURVETO_CUBIC_SMOOTH_ABS: number; - PATHSEG_CURVETO_CUBIC_SMOOTH_REL: number; - PATHSEG_CURVETO_QUADRATIC_ABS: number; - PATHSEG_CURVETO_QUADRATIC_REL: number; - PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS: number; - PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL: number; - PATHSEG_LINETO_ABS: number; - PATHSEG_LINETO_HORIZONTAL_ABS: number; - PATHSEG_LINETO_HORIZONTAL_REL: number; - PATHSEG_LINETO_REL: number; - PATHSEG_LINETO_VERTICAL_ABS: number; - PATHSEG_LINETO_VERTICAL_REL: number; - PATHSEG_MOVETO_ABS: number; - PATHSEG_MOVETO_REL: number; - PATHSEG_UNKNOWN: number; -} - -declare var SVGPathSeg: { - prototype: SVGPathSeg; - new(): SVGPathSeg; - PATHSEG_ARC_ABS: number; - PATHSEG_ARC_REL: number; - PATHSEG_CLOSEPATH: number; - PATHSEG_CURVETO_CUBIC_ABS: number; - PATHSEG_CURVETO_CUBIC_REL: number; - PATHSEG_CURVETO_CUBIC_SMOOTH_ABS: number; - PATHSEG_CURVETO_CUBIC_SMOOTH_REL: number; - PATHSEG_CURVETO_QUADRATIC_ABS: number; - PATHSEG_CURVETO_QUADRATIC_REL: number; - PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS: number; - PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL: number; - PATHSEG_LINETO_ABS: number; - PATHSEG_LINETO_HORIZONTAL_ABS: number; - PATHSEG_LINETO_HORIZONTAL_REL: number; - PATHSEG_LINETO_REL: number; - PATHSEG_LINETO_VERTICAL_ABS: number; - PATHSEG_LINETO_VERTICAL_REL: number; - PATHSEG_MOVETO_ABS: number; - PATHSEG_MOVETO_REL: number; - PATHSEG_UNKNOWN: number; -} - -interface SVGPathSegArcAbs extends SVGPathSeg { - angle: number; - largeArcFlag: boolean; - r1: number; - r2: number; - sweepFlag: boolean; - x: number; - y: number; -} - -declare var SVGPathSegArcAbs: { - prototype: SVGPathSegArcAbs; - new(): SVGPathSegArcAbs; -} - -interface SVGPathSegArcRel extends SVGPathSeg { - angle: number; - largeArcFlag: boolean; - r1: number; - r2: number; - sweepFlag: boolean; - x: number; - y: number; -} - -declare var SVGPathSegArcRel: { - prototype: SVGPathSegArcRel; - new(): SVGPathSegArcRel; -} - -interface SVGPathSegClosePath extends SVGPathSeg { -} - -declare var SVGPathSegClosePath: { - prototype: SVGPathSegClosePath; - new(): SVGPathSegClosePath; -} - -interface SVGPathSegCurvetoCubicAbs extends SVGPathSeg { - x: number; - x1: number; - x2: number; - y: number; - y1: number; - y2: number; -} - -declare var SVGPathSegCurvetoCubicAbs: { - prototype: SVGPathSegCurvetoCubicAbs; - new(): SVGPathSegCurvetoCubicAbs; -} - -interface SVGPathSegCurvetoCubicRel extends SVGPathSeg { - x: number; - x1: number; - x2: number; - y: number; - y1: number; - y2: number; -} - -declare var SVGPathSegCurvetoCubicRel: { - prototype: SVGPathSegCurvetoCubicRel; - new(): SVGPathSegCurvetoCubicRel; -} - -interface SVGPathSegCurvetoCubicSmoothAbs extends SVGPathSeg { - x: number; - x2: number; - y: number; - y2: number; -} - -declare var SVGPathSegCurvetoCubicSmoothAbs: { - prototype: SVGPathSegCurvetoCubicSmoothAbs; - new(): SVGPathSegCurvetoCubicSmoothAbs; -} - -interface SVGPathSegCurvetoCubicSmoothRel extends SVGPathSeg { - x: number; - x2: number; - y: number; - y2: number; -} - -declare var SVGPathSegCurvetoCubicSmoothRel: { - prototype: SVGPathSegCurvetoCubicSmoothRel; - new(): SVGPathSegCurvetoCubicSmoothRel; -} - -interface SVGPathSegCurvetoQuadraticAbs extends SVGPathSeg { - x: number; - x1: number; - y: number; - y1: number; -} - -declare var SVGPathSegCurvetoQuadraticAbs: { - prototype: SVGPathSegCurvetoQuadraticAbs; - new(): SVGPathSegCurvetoQuadraticAbs; -} - -interface SVGPathSegCurvetoQuadraticRel extends SVGPathSeg { - x: number; - x1: number; - y: number; - y1: number; -} - -declare var SVGPathSegCurvetoQuadraticRel: { - prototype: SVGPathSegCurvetoQuadraticRel; - new(): SVGPathSegCurvetoQuadraticRel; -} - -interface SVGPathSegCurvetoQuadraticSmoothAbs extends SVGPathSeg { - x: number; - y: number; -} - -declare var SVGPathSegCurvetoQuadraticSmoothAbs: { - prototype: SVGPathSegCurvetoQuadraticSmoothAbs; - new(): SVGPathSegCurvetoQuadraticSmoothAbs; -} - -interface SVGPathSegCurvetoQuadraticSmoothRel extends SVGPathSeg { - x: number; - y: number; -} - -declare var SVGPathSegCurvetoQuadraticSmoothRel: { - prototype: SVGPathSegCurvetoQuadraticSmoothRel; - new(): SVGPathSegCurvetoQuadraticSmoothRel; -} - -interface SVGPathSegLinetoAbs extends SVGPathSeg { - x: number; - y: number; -} - -declare var SVGPathSegLinetoAbs: { - prototype: SVGPathSegLinetoAbs; - new(): SVGPathSegLinetoAbs; -} - -interface SVGPathSegLinetoHorizontalAbs extends SVGPathSeg { - x: number; -} - -declare var SVGPathSegLinetoHorizontalAbs: { - prototype: SVGPathSegLinetoHorizontalAbs; - new(): SVGPathSegLinetoHorizontalAbs; -} - -interface SVGPathSegLinetoHorizontalRel extends SVGPathSeg { - x: number; -} - -declare var SVGPathSegLinetoHorizontalRel: { - prototype: SVGPathSegLinetoHorizontalRel; - new(): SVGPathSegLinetoHorizontalRel; -} - -interface SVGPathSegLinetoRel extends SVGPathSeg { - x: number; - y: number; -} - -declare var SVGPathSegLinetoRel: { - prototype: SVGPathSegLinetoRel; - new(): SVGPathSegLinetoRel; -} - -interface SVGPathSegLinetoVerticalAbs extends SVGPathSeg { - y: number; -} - -declare var SVGPathSegLinetoVerticalAbs: { - prototype: SVGPathSegLinetoVerticalAbs; - new(): SVGPathSegLinetoVerticalAbs; -} - -interface SVGPathSegLinetoVerticalRel extends SVGPathSeg { - y: number; -} - -declare var SVGPathSegLinetoVerticalRel: { - prototype: SVGPathSegLinetoVerticalRel; - new(): SVGPathSegLinetoVerticalRel; -} - -interface SVGPathSegList { - numberOfItems: number; - appendItem(newItem: SVGPathSeg): SVGPathSeg; - clear(): void; - getItem(index: number): SVGPathSeg; - initialize(newItem: SVGPathSeg): SVGPathSeg; - insertItemBefore(newItem: SVGPathSeg, index: number): SVGPathSeg; - removeItem(index: number): SVGPathSeg; - replaceItem(newItem: SVGPathSeg, index: number): SVGPathSeg; -} - -declare var SVGPathSegList: { - prototype: SVGPathSegList; - new(): SVGPathSegList; -} - -interface SVGPathSegMovetoAbs extends SVGPathSeg { - x: number; - y: number; -} - -declare var SVGPathSegMovetoAbs: { - prototype: SVGPathSegMovetoAbs; - new(): SVGPathSegMovetoAbs; -} - -interface SVGPathSegMovetoRel extends SVGPathSeg { - x: number; - y: number; -} - -declare var SVGPathSegMovetoRel: { - prototype: SVGPathSegMovetoRel; - new(): SVGPathSegMovetoRel; -} - -interface SVGPatternElement extends SVGElement, SVGStylable, SVGTests, SVGLangSpace, SVGExternalResourcesRequired, SVGFitToViewBox, SVGURIReference, SVGUnitTypes { - height: SVGAnimatedLength; - patternContentUnits: SVGAnimatedEnumeration; - patternTransform: SVGAnimatedTransformList; - patternUnits: SVGAnimatedEnumeration; - width: SVGAnimatedLength; - x: SVGAnimatedLength; - y: SVGAnimatedLength; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; -} - -declare var SVGPatternElement: { - prototype: SVGPatternElement; - new(): SVGPatternElement; -} - -interface SVGPoint { - x: number; - y: number; - matrixTransform(matrix: SVGMatrix): SVGPoint; -} - -declare var SVGPoint: { - prototype: SVGPoint; - new(): SVGPoint; -} - -interface SVGPointList { - numberOfItems: number; - appendItem(newItem: SVGPoint): SVGPoint; - clear(): void; - getItem(index: number): SVGPoint; - initialize(newItem: SVGPoint): SVGPoint; - insertItemBefore(newItem: SVGPoint, index: number): SVGPoint; - removeItem(index: number): SVGPoint; - replaceItem(newItem: SVGPoint, index: number): SVGPoint; -} - -declare var SVGPointList: { - prototype: SVGPointList; - new(): SVGPointList; -} - -interface SVGPolygonElement extends SVGElement, SVGStylable, SVGTransformable, SVGTests, SVGLangSpace, SVGExternalResourcesRequired, SVGAnimatedPoints { - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; -} - -declare var SVGPolygonElement: { - prototype: SVGPolygonElement; - new(): SVGPolygonElement; -} - -interface SVGPolylineElement extends SVGElement, SVGStylable, SVGTransformable, SVGTests, SVGLangSpace, SVGExternalResourcesRequired, SVGAnimatedPoints { - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; -} - -declare var SVGPolylineElement: { - prototype: SVGPolylineElement; - new(): SVGPolylineElement; -} - -interface SVGPreserveAspectRatio { - align: number; - meetOrSlice: number; - SVG_MEETORSLICE_MEET: number; - SVG_MEETORSLICE_SLICE: number; - SVG_MEETORSLICE_UNKNOWN: number; - SVG_PRESERVEASPECTRATIO_NONE: number; - SVG_PRESERVEASPECTRATIO_UNKNOWN: number; - SVG_PRESERVEASPECTRATIO_XMAXYMAX: number; - SVG_PRESERVEASPECTRATIO_XMAXYMID: number; - SVG_PRESERVEASPECTRATIO_XMAXYMIN: number; - SVG_PRESERVEASPECTRATIO_XMIDYMAX: number; - SVG_PRESERVEASPECTRATIO_XMIDYMID: number; - SVG_PRESERVEASPECTRATIO_XMIDYMIN: number; - SVG_PRESERVEASPECTRATIO_XMINYMAX: number; - SVG_PRESERVEASPECTRATIO_XMINYMID: number; - SVG_PRESERVEASPECTRATIO_XMINYMIN: number; -} - -declare var SVGPreserveAspectRatio: { - prototype: SVGPreserveAspectRatio; - new(): SVGPreserveAspectRatio; - SVG_MEETORSLICE_MEET: number; - SVG_MEETORSLICE_SLICE: number; - SVG_MEETORSLICE_UNKNOWN: number; - SVG_PRESERVEASPECTRATIO_NONE: number; - SVG_PRESERVEASPECTRATIO_UNKNOWN: number; - SVG_PRESERVEASPECTRATIO_XMAXYMAX: number; - SVG_PRESERVEASPECTRATIO_XMAXYMID: number; - SVG_PRESERVEASPECTRATIO_XMAXYMIN: number; - SVG_PRESERVEASPECTRATIO_XMIDYMAX: number; - SVG_PRESERVEASPECTRATIO_XMIDYMID: number; - SVG_PRESERVEASPECTRATIO_XMIDYMIN: number; - SVG_PRESERVEASPECTRATIO_XMINYMAX: number; - SVG_PRESERVEASPECTRATIO_XMINYMID: number; - SVG_PRESERVEASPECTRATIO_XMINYMIN: number; -} - -interface SVGRadialGradientElement extends SVGGradientElement { - cx: SVGAnimatedLength; - cy: SVGAnimatedLength; - fx: SVGAnimatedLength; - fy: SVGAnimatedLength; - r: SVGAnimatedLength; -} - -declare var SVGRadialGradientElement: { - prototype: SVGRadialGradientElement; - new(): SVGRadialGradientElement; -} - -interface SVGRect { - height: number; - width: number; - x: number; - y: number; -} - -declare var SVGRect: { - prototype: SVGRect; - new(): SVGRect; -} - -interface SVGRectElement extends SVGElement, SVGStylable, SVGTransformable, SVGTests, SVGLangSpace, SVGExternalResourcesRequired { - height: SVGAnimatedLength; - rx: SVGAnimatedLength; - ry: SVGAnimatedLength; - width: SVGAnimatedLength; - x: SVGAnimatedLength; - y: SVGAnimatedLength; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; -} - -declare var SVGRectElement: { - prototype: SVGRectElement; - new(): SVGRectElement; -} - -interface SVGSVGElement extends SVGElement, DocumentEvent, SVGLocatable, SVGTests, SVGStylable, SVGLangSpace, SVGExternalResourcesRequired, SVGFitToViewBox, SVGZoomAndPan { - contentScriptType: string; - contentStyleType: string; - currentScale: number; - currentTranslate: SVGPoint; - height: SVGAnimatedLength; - onabort: (ev: Event) => any; - onerror: (ev: Event) => any; - onresize: (ev: UIEvent) => any; - onscroll: (ev: UIEvent) => any; - onunload: (ev: Event) => any; - onzoom: (ev: SVGZoomEvent) => any; - pixelUnitToMillimeterX: number; - pixelUnitToMillimeterY: number; - screenPixelToMillimeterX: number; - screenPixelToMillimeterY: number; - viewport: SVGRect; - width: SVGAnimatedLength; - x: SVGAnimatedLength; - y: SVGAnimatedLength; - checkEnclosure(element: SVGElement, rect: SVGRect): boolean; - checkIntersection(element: SVGElement, rect: SVGRect): boolean; - createSVGAngle(): SVGAngle; - createSVGLength(): SVGLength; - createSVGMatrix(): SVGMatrix; - createSVGNumber(): SVGNumber; - createSVGPoint(): SVGPoint; - createSVGRect(): SVGRect; - createSVGTransform(): SVGTransform; - createSVGTransformFromMatrix(matrix: SVGMatrix): SVGTransform; - deselectAll(): void; - forceRedraw(): void; - getComputedStyle(elt: Element, pseudoElt?: string): CSSStyleDeclaration; - getCurrentTime(): number; - getElementById(elementId: string): Element; - getEnclosureList(rect: SVGRect, referenceElement: SVGElement): NodeList; - getIntersectionList(rect: SVGRect, referenceElement: SVGElement): NodeList; - pauseAnimations(): void; - setCurrentTime(seconds: number): void; - suspendRedraw(maxWaitMilliseconds: number): number; - unpauseAnimations(): void; - unsuspendRedraw(suspendHandleID: number): void; - unsuspendRedrawAll(): void; - addEventListener(type: "MSGestureChange", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSGestureDoubleTap", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSGestureEnd", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSGestureHold", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSGestureStart", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSGestureTap", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSGotPointerCapture", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSInertiaStart", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSLostPointerCapture", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSPointerCancel", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSPointerDown", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSPointerEnter", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSPointerLeave", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSPointerMove", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSPointerOut", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSPointerOver", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSPointerUp", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "SVGAbort", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "SVGError", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "SVGUnload", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "SVGZoom", listener: (ev: SVGZoomEvent) => any, useCapture?: boolean): void; - addEventListener(type: "ariarequest", listener: (ev: AriaRequestEvent) => any, useCapture?: boolean): void; - addEventListener(type: "click", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; - addEventListener(type: "command", listener: (ev: CommandEvent) => any, useCapture?: boolean): void; - addEventListener(type: "dblclick", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; - addEventListener(type: "focusin", listener: (ev: FocusEvent) => any, useCapture?: boolean): void; - addEventListener(type: "focusout", listener: (ev: FocusEvent) => any, useCapture?: boolean): void; - addEventListener(type: "gotpointercapture", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "load", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "lostpointercapture", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "mousedown", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; - addEventListener(type: "mousemove", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; - addEventListener(type: "mouseout", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; - addEventListener(type: "mouseover", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; - addEventListener(type: "mouseup", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; - addEventListener(type: "pointercancel", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "pointerdown", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "pointerenter", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "pointerleave", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "pointermove", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "pointerout", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "pointerover", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "pointerup", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "resize", listener: (ev: UIEvent) => any, useCapture?: boolean): void; - addEventListener(type: "scroll", listener: (ev: UIEvent) => any, useCapture?: boolean): void; - addEventListener(type: "touchcancel", listener: (ev: TouchEvent) => any, useCapture?: boolean): void; - addEventListener(type: "touchend", listener: (ev: TouchEvent) => any, useCapture?: boolean): void; - addEventListener(type: "touchmove", listener: (ev: TouchEvent) => any, useCapture?: boolean): void; - addEventListener(type: "touchstart", listener: (ev: TouchEvent) => any, useCapture?: boolean): void; - addEventListener(type: "webkitfullscreenchange", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "webkitfullscreenerror", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "wheel", listener: (ev: WheelEvent) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; -} - -declare var SVGSVGElement: { - prototype: SVGSVGElement; - new(): SVGSVGElement; -} - -interface SVGScriptElement extends SVGElement, SVGExternalResourcesRequired, SVGURIReference { - type: string; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; -} - -declare var SVGScriptElement: { - prototype: SVGScriptElement; - new(): SVGScriptElement; -} - -interface SVGStopElement extends SVGElement, SVGStylable { - offset: SVGAnimatedNumber; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; -} - -declare var SVGStopElement: { - prototype: SVGStopElement; - new(): SVGStopElement; -} - -interface SVGStringList { - numberOfItems: number; - appendItem(newItem: string): string; - clear(): void; - getItem(index: number): string; - initialize(newItem: string): string; - insertItemBefore(newItem: string, index: number): string; - removeItem(index: number): string; - replaceItem(newItem: string, index: number): string; -} - -declare var SVGStringList: { - prototype: SVGStringList; - new(): SVGStringList; -} - -interface SVGStyleElement extends SVGElement, SVGLangSpace { - media: string; - title: string; - type: string; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; -} - -declare var SVGStyleElement: { - prototype: SVGStyleElement; - new(): SVGStyleElement; -} - -interface SVGSwitchElement extends SVGElement, SVGStylable, SVGTransformable, SVGTests, SVGLangSpace, SVGExternalResourcesRequired { - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; -} - -declare var SVGSwitchElement: { - prototype: SVGSwitchElement; - new(): SVGSwitchElement; -} - -interface SVGSymbolElement extends SVGElement, SVGStylable, SVGLangSpace, SVGExternalResourcesRequired, SVGFitToViewBox { - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; -} - -declare var SVGSymbolElement: { - prototype: SVGSymbolElement; - new(): SVGSymbolElement; -} - -interface SVGTSpanElement extends SVGTextPositioningElement { -} - -declare var SVGTSpanElement: { - prototype: SVGTSpanElement; - new(): SVGTSpanElement; -} - -interface SVGTextContentElement extends SVGElement, SVGStylable, SVGTests, SVGLangSpace, SVGExternalResourcesRequired { - lengthAdjust: SVGAnimatedEnumeration; - textLength: SVGAnimatedLength; - getCharNumAtPosition(point: SVGPoint): number; - getComputedTextLength(): number; - getEndPositionOfChar(charnum: number): SVGPoint; - getExtentOfChar(charnum: number): SVGRect; - getNumberOfChars(): number; - getRotationOfChar(charnum: number): number; - getStartPositionOfChar(charnum: number): SVGPoint; - getSubStringLength(charnum: number, nchars: number): number; - selectSubString(charnum: number, nchars: number): void; - LENGTHADJUST_SPACING: number; - LENGTHADJUST_SPACINGANDGLYPHS: number; - LENGTHADJUST_UNKNOWN: number; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; -} - -declare var SVGTextContentElement: { - prototype: SVGTextContentElement; - new(): SVGTextContentElement; - LENGTHADJUST_SPACING: number; - LENGTHADJUST_SPACINGANDGLYPHS: number; - LENGTHADJUST_UNKNOWN: number; -} - -interface SVGTextElement extends SVGTextPositioningElement, SVGTransformable { - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; -} - -declare var SVGTextElement: { - prototype: SVGTextElement; - new(): SVGTextElement; -} - -interface SVGTextPathElement extends SVGTextContentElement, SVGURIReference { - method: SVGAnimatedEnumeration; - spacing: SVGAnimatedEnumeration; - startOffset: SVGAnimatedLength; - TEXTPATH_METHODTYPE_ALIGN: number; - TEXTPATH_METHODTYPE_STRETCH: number; - TEXTPATH_METHODTYPE_UNKNOWN: number; - TEXTPATH_SPACINGTYPE_AUTO: number; - TEXTPATH_SPACINGTYPE_EXACT: number; - TEXTPATH_SPACINGTYPE_UNKNOWN: number; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; -} - -declare var SVGTextPathElement: { - prototype: SVGTextPathElement; - new(): SVGTextPathElement; - TEXTPATH_METHODTYPE_ALIGN: number; - TEXTPATH_METHODTYPE_STRETCH: number; - TEXTPATH_METHODTYPE_UNKNOWN: number; - TEXTPATH_SPACINGTYPE_AUTO: number; - TEXTPATH_SPACINGTYPE_EXACT: number; - TEXTPATH_SPACINGTYPE_UNKNOWN: number; -} - -interface SVGTextPositioningElement extends SVGTextContentElement { - dx: SVGAnimatedLengthList; - dy: SVGAnimatedLengthList; - rotate: SVGAnimatedNumberList; - x: SVGAnimatedLengthList; - y: SVGAnimatedLengthList; -} - -declare var SVGTextPositioningElement: { - prototype: SVGTextPositioningElement; - new(): SVGTextPositioningElement; -} - -interface SVGTitleElement extends SVGElement, SVGStylable, SVGLangSpace { - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; -} - -declare var SVGTitleElement: { - prototype: SVGTitleElement; - new(): SVGTitleElement; -} - -interface SVGTransform { - angle: number; - matrix: SVGMatrix; - type: number; - setMatrix(matrix: SVGMatrix): void; - setRotate(angle: number, cx: number, cy: number): void; - setScale(sx: number, sy: number): void; - setSkewX(angle: number): void; - setSkewY(angle: number): void; - setTranslate(tx: number, ty: number): void; - SVG_TRANSFORM_MATRIX: number; - SVG_TRANSFORM_ROTATE: number; - SVG_TRANSFORM_SCALE: number; - SVG_TRANSFORM_SKEWX: number; - SVG_TRANSFORM_SKEWY: number; - SVG_TRANSFORM_TRANSLATE: number; - SVG_TRANSFORM_UNKNOWN: number; -} - -declare var SVGTransform: { - prototype: SVGTransform; - new(): SVGTransform; - SVG_TRANSFORM_MATRIX: number; - SVG_TRANSFORM_ROTATE: number; - SVG_TRANSFORM_SCALE: number; - SVG_TRANSFORM_SKEWX: number; - SVG_TRANSFORM_SKEWY: number; - SVG_TRANSFORM_TRANSLATE: number; - SVG_TRANSFORM_UNKNOWN: number; -} - -interface SVGTransformList { - numberOfItems: number; - appendItem(newItem: SVGTransform): SVGTransform; - clear(): void; - consolidate(): SVGTransform; - createSVGTransformFromMatrix(matrix: SVGMatrix): SVGTransform; - getItem(index: number): SVGTransform; - initialize(newItem: SVGTransform): SVGTransform; - insertItemBefore(newItem: SVGTransform, index: number): SVGTransform; - removeItem(index: number): SVGTransform; - replaceItem(newItem: SVGTransform, index: number): SVGTransform; -} - -declare var SVGTransformList: { - prototype: SVGTransformList; - new(): SVGTransformList; -} - -interface SVGUnitTypes { - SVG_UNIT_TYPE_OBJECTBOUNDINGBOX: number; - SVG_UNIT_TYPE_UNKNOWN: number; - SVG_UNIT_TYPE_USERSPACEONUSE: number; -} -declare var SVGUnitTypes: SVGUnitTypes; - -interface SVGUseElement extends SVGElement, SVGStylable, SVGTransformable, SVGTests, SVGLangSpace, SVGExternalResourcesRequired, SVGURIReference { - animatedInstanceRoot: SVGElementInstance; - height: SVGAnimatedLength; - instanceRoot: SVGElementInstance; - width: SVGAnimatedLength; - x: SVGAnimatedLength; - y: SVGAnimatedLength; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; -} - -declare var SVGUseElement: { - prototype: SVGUseElement; - new(): SVGUseElement; -} - -interface SVGViewElement extends SVGElement, SVGExternalResourcesRequired, SVGFitToViewBox, SVGZoomAndPan { - viewTarget: SVGStringList; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; -} - -declare var SVGViewElement: { - prototype: SVGViewElement; - new(): SVGViewElement; -} - -interface SVGZoomAndPan { - SVG_ZOOMANDPAN_DISABLE: number; - SVG_ZOOMANDPAN_MAGNIFY: number; - SVG_ZOOMANDPAN_UNKNOWN: number; -} -declare var SVGZoomAndPan: SVGZoomAndPan; - -interface SVGZoomEvent extends UIEvent { - newScale: number; - newTranslate: SVGPoint; - previousScale: number; - previousTranslate: SVGPoint; - zoomRectScreen: SVGRect; -} - -declare var SVGZoomEvent: { - prototype: SVGZoomEvent; - new(): SVGZoomEvent; -} - -interface Screen extends EventTarget { - availHeight: number; - availWidth: number; - bufferDepth: number; - colorDepth: number; - deviceXDPI: number; - deviceYDPI: number; - fontSmoothingEnabled: boolean; - height: number; - logicalXDPI: number; - logicalYDPI: number; - msOrientation: string; - onmsorientationchange: (ev: Event) => any; - pixelDepth: number; - systemXDPI: number; - systemYDPI: number; - width: number; - msLockOrientation(orientations: string | string[]): boolean; - msUnlockOrientation(): void; - addEventListener(type: "MSOrientationChange", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; -} - -declare var Screen: { - prototype: Screen; - new(): Screen; -} - -interface ScriptNotifyEvent extends Event { - callingUri: string; - value: string; -} - -declare var ScriptNotifyEvent: { - prototype: ScriptNotifyEvent; - new(): ScriptNotifyEvent; -} - -interface ScriptProcessorNode extends AudioNode { - bufferSize: number; - onaudioprocess: (ev: AudioProcessingEvent) => any; - addEventListener(type: "audioprocess", listener: (ev: AudioProcessingEvent) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; -} - -declare var ScriptProcessorNode: { - prototype: ScriptProcessorNode; - new(): ScriptProcessorNode; -} - -interface Selection { - anchorNode: Node; - anchorOffset: number; - focusNode: Node; - focusOffset: number; - isCollapsed: boolean; - rangeCount: number; - type: string; - addRange(range: Range): void; - collapse(parentNode: Node, offset: number): void; - collapseToEnd(): void; - collapseToStart(): void; - containsNode(node: Node, partlyContained: boolean): boolean; - deleteFromDocument(): void; - empty(): void; - extend(newNode: Node, offset: number): void; - getRangeAt(index: number): Range; - removeAllRanges(): void; - removeRange(range: Range): void; - selectAllChildren(parentNode: Node): void; - setBaseAndExtent(baseNode: Node, baseOffset: number, extentNode: Node, extentOffset: number): void; - toString(): string; -} - -declare var Selection: { - prototype: Selection; - new(): Selection; -} - -interface SourceBuffer extends EventTarget { - appendWindowEnd: number; - appendWindowStart: number; - audioTracks: AudioTrackList; - buffered: TimeRanges; - mode: string; - timestampOffset: number; - updating: boolean; - videoTracks: VideoTrackList; - abort(): void; - appendBuffer(data: ArrayBuffer | ArrayBufferView): void; - appendStream(stream: MSStream, maxSize?: number): void; - remove(start: number, end: number): void; -} - -declare var SourceBuffer: { - prototype: SourceBuffer; - new(): SourceBuffer; -} - -interface SourceBufferList extends EventTarget { - length: number; - item(index: number): SourceBuffer; - [index: number]: SourceBuffer; -} - -declare var SourceBufferList: { - prototype: SourceBufferList; - new(): SourceBufferList; -} - -interface StereoPannerNode extends AudioNode { - pan: AudioParam; -} - -declare var StereoPannerNode: { - prototype: StereoPannerNode; - new(): StereoPannerNode; -} - -interface Storage { - length: number; - clear(): void; - getItem(key: string): any; - key(index: number): string; - removeItem(key: string): void; - setItem(key: string, data: string): void; - [key: string]: any; - [index: number]: string; -} - -declare var Storage: { - prototype: Storage; - new(): Storage; -} - -interface StorageEvent extends Event { - key: string; - newValue: any; - oldValue: any; - storageArea: Storage; - url: string; - initStorageEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, keyArg: string, oldValueArg: any, newValueArg: any, urlArg: string, storageAreaArg: Storage): void; -} - -declare var StorageEvent: { - prototype: StorageEvent; - new(): StorageEvent; -} - -interface StyleMedia { - type: string; - matchMedium(mediaquery: string): boolean; -} - -declare var StyleMedia: { - prototype: StyleMedia; - new(): StyleMedia; -} - -interface StyleSheet { - disabled: boolean; - href: string; - media: MediaList; - ownerNode: Node; - parentStyleSheet: StyleSheet; - title: string; - type: string; -} - -declare var StyleSheet: { - prototype: StyleSheet; - new(): StyleSheet; -} - -interface StyleSheetList { - length: number; - item(index?: number): StyleSheet; - [index: number]: StyleSheet; -} - -declare var StyleSheetList: { - prototype: StyleSheetList; - new(): StyleSheetList; -} - -interface StyleSheetPageList { - length: number; - item(index: number): CSSPageRule; - [index: number]: CSSPageRule; -} - -declare var StyleSheetPageList: { - prototype: StyleSheetPageList; - new(): StyleSheetPageList; -} - -interface SubtleCrypto { - decrypt(algorithm: string | Algorithm, key: CryptoKey, data: ArrayBufferView): any; - deriveBits(algorithm: string | Algorithm, baseKey: CryptoKey, length: number): any; - deriveKey(algorithm: string | Algorithm, baseKey: CryptoKey, derivedKeyType: string | Algorithm, extractable: boolean, keyUsages: string[]): any; - digest(algorithm: string | Algorithm, data: ArrayBufferView): any; - encrypt(algorithm: string | Algorithm, key: CryptoKey, data: ArrayBufferView): any; - exportKey(format: string, key: CryptoKey): any; - generateKey(algorithm: string | Algorithm, extractable: boolean, keyUsages: string[]): any; - importKey(format: string, keyData: ArrayBufferView, algorithm: string | Algorithm, extractable: boolean, keyUsages: string[]): any; - sign(algorithm: string | Algorithm, key: CryptoKey, data: ArrayBufferView): any; - unwrapKey(format: string, wrappedKey: ArrayBufferView, unwrappingKey: CryptoKey, unwrapAlgorithm: string | Algorithm, unwrappedKeyAlgorithm: string | Algorithm, extractable: boolean, keyUsages: string[]): any; - verify(algorithm: string | Algorithm, key: CryptoKey, signature: ArrayBufferView, data: ArrayBufferView): any; - wrapKey(format: string, key: CryptoKey, wrappingKey: CryptoKey, wrapAlgorithm: string | Algorithm): any; -} - -declare var SubtleCrypto: { - prototype: SubtleCrypto; - new(): SubtleCrypto; -} - -interface Text extends CharacterData { - wholeText: string; - replaceWholeText(content: string): Text; - splitText(offset: number): Text; -} - -declare var Text: { - prototype: Text; - new(): Text; -} - -interface TextEvent extends UIEvent { - data: string; - inputMethod: number; - locale: string; - initTextEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, viewArg: Window, dataArg: string, inputMethod: number, locale: string): void; - DOM_INPUT_METHOD_DROP: number; - DOM_INPUT_METHOD_HANDWRITING: number; - DOM_INPUT_METHOD_IME: number; - DOM_INPUT_METHOD_KEYBOARD: number; - DOM_INPUT_METHOD_MULTIMODAL: number; - DOM_INPUT_METHOD_OPTION: number; - DOM_INPUT_METHOD_PASTE: number; - DOM_INPUT_METHOD_SCRIPT: number; - DOM_INPUT_METHOD_UNKNOWN: number; - DOM_INPUT_METHOD_VOICE: number; -} - -declare var TextEvent: { - prototype: TextEvent; - new(): TextEvent; - DOM_INPUT_METHOD_DROP: number; - DOM_INPUT_METHOD_HANDWRITING: number; - DOM_INPUT_METHOD_IME: number; - DOM_INPUT_METHOD_KEYBOARD: number; - DOM_INPUT_METHOD_MULTIMODAL: number; - DOM_INPUT_METHOD_OPTION: number; - DOM_INPUT_METHOD_PASTE: number; - DOM_INPUT_METHOD_SCRIPT: number; - DOM_INPUT_METHOD_UNKNOWN: number; - DOM_INPUT_METHOD_VOICE: number; -} - -interface TextMetrics { - width: number; -} - -declare var TextMetrics: { - prototype: TextMetrics; - new(): TextMetrics; -} - -interface TextRange { - boundingHeight: number; - boundingLeft: number; - boundingTop: number; - boundingWidth: number; - htmlText: string; - offsetLeft: number; - offsetTop: number; - text: string; - collapse(start?: boolean): void; - compareEndPoints(how: string, sourceRange: TextRange): number; - duplicate(): TextRange; - execCommand(cmdID: string, showUI?: boolean, value?: any): boolean; - execCommandShowHelp(cmdID: string): boolean; - expand(Unit: string): boolean; - findText(string: string, count?: number, flags?: number): boolean; - getBookmark(): string; - getBoundingClientRect(): ClientRect; - getClientRects(): ClientRectList; - inRange(range: TextRange): boolean; - isEqual(range: TextRange): boolean; - move(unit: string, count?: number): number; - moveEnd(unit: string, count?: number): number; - moveStart(unit: string, count?: number): number; - moveToBookmark(bookmark: string): boolean; - moveToElementText(element: Element): void; - moveToPoint(x: number, y: number): void; - parentElement(): Element; - pasteHTML(html: string): void; - queryCommandEnabled(cmdID: string): boolean; - queryCommandIndeterm(cmdID: string): boolean; - queryCommandState(cmdID: string): boolean; - queryCommandSupported(cmdID: string): boolean; - queryCommandText(cmdID: string): string; - queryCommandValue(cmdID: string): any; - scrollIntoView(fStart?: boolean): void; - select(): void; - setEndPoint(how: string, SourceRange: TextRange): void; -} - -declare var TextRange: { - prototype: TextRange; - new(): TextRange; -} - -interface TextRangeCollection { - length: number; - item(index: number): TextRange; - [index: number]: TextRange; -} - -declare var TextRangeCollection: { - prototype: TextRangeCollection; - new(): TextRangeCollection; -} - -interface TextTrack extends EventTarget { - activeCues: TextTrackCueList; - cues: TextTrackCueList; - inBandMetadataTrackDispatchType: string; - kind: string; - label: string; - language: string; - mode: any; - oncuechange: (ev: Event) => any; - onerror: (ev: Event) => any; - onload: (ev: Event) => any; - readyState: number; - addCue(cue: TextTrackCue): void; - removeCue(cue: TextTrackCue): void; - DISABLED: number; - ERROR: number; - HIDDEN: number; - LOADED: number; - LOADING: number; - NONE: number; - SHOWING: number; - addEventListener(type: "cuechange", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "error", listener: (ev: ErrorEvent) => any, useCapture?: boolean): void; - addEventListener(type: "load", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; -} - -declare var TextTrack: { - prototype: TextTrack; - new(): TextTrack; - DISABLED: number; - ERROR: number; - HIDDEN: number; - LOADED: number; - LOADING: number; - NONE: number; - SHOWING: number; -} - -interface TextTrackCue extends EventTarget { - endTime: number; - id: string; - onenter: (ev: Event) => any; - onexit: (ev: Event) => any; - pauseOnExit: boolean; - startTime: number; - text: string; - track: TextTrack; - getCueAsHTML(): DocumentFragment; - addEventListener(type: "enter", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "exit", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; -} - -declare var TextTrackCue: { - prototype: TextTrackCue; - new(startTime: number, endTime: number, text: string): TextTrackCue; -} - -interface TextTrackCueList { - length: number; - getCueById(id: string): TextTrackCue; - item(index: number): TextTrackCue; - [index: number]: TextTrackCue; -} - -declare var TextTrackCueList: { - prototype: TextTrackCueList; - new(): TextTrackCueList; -} - -interface TextTrackList extends EventTarget { - length: number; - onaddtrack: (ev: TrackEvent) => any; - item(index: number): TextTrack; - addEventListener(type: "addtrack", listener: (ev: TrackEvent) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; - [index: number]: TextTrack; -} - -declare var TextTrackList: { - prototype: TextTrackList; - new(): TextTrackList; -} - -interface TimeRanges { - length: number; - end(index: number): number; - start(index: number): number; -} - -declare var TimeRanges: { - prototype: TimeRanges; - new(): TimeRanges; -} - -interface Touch { - clientX: number; - clientY: number; - identifier: number; - pageX: number; - pageY: number; - screenX: number; - screenY: number; - target: EventTarget; -} - -declare var Touch: { - prototype: Touch; - new(): Touch; -} - -interface TouchEvent extends UIEvent { - altKey: boolean; - changedTouches: TouchList; - ctrlKey: boolean; - metaKey: boolean; - shiftKey: boolean; - targetTouches: TouchList; - touches: TouchList; -} - -declare var TouchEvent: { - prototype: TouchEvent; - new(): TouchEvent; -} - -interface TouchList { - length: number; - item(index: number): Touch; - [index: number]: Touch; -} - -declare var TouchList: { - prototype: TouchList; - new(): TouchList; -} - -interface TrackEvent extends Event { - track: any; -} - -declare var TrackEvent: { - prototype: TrackEvent; - new(): TrackEvent; -} - -interface TransitionEvent extends Event { - elapsedTime: number; - propertyName: string; - initTransitionEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, propertyNameArg: string, elapsedTimeArg: number): void; -} - -declare var TransitionEvent: { - prototype: TransitionEvent; - new(): TransitionEvent; -} - -interface TreeWalker { - currentNode: Node; - expandEntityReferences: boolean; - filter: NodeFilter; - root: Node; - whatToShow: number; - firstChild(): Node; - lastChild(): Node; - nextNode(): Node; - nextSibling(): Node; - parentNode(): Node; - previousNode(): Node; - previousSibling(): Node; -} - -declare var TreeWalker: { - prototype: TreeWalker; - new(): TreeWalker; -} - -interface UIEvent extends Event { - detail: number; - view: Window; - initUIEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, viewArg: Window, detailArg: number): void; -} - -declare var UIEvent: { - prototype: UIEvent; - new(type: string, eventInitDict?: UIEventInit): UIEvent; -} - -interface URL { - createObjectURL(object: any, options?: ObjectURLOptions): string; - revokeObjectURL(url: string): void; -} -declare var URL: URL; - -interface UnviewableContentIdentifiedEvent extends NavigationEventWithReferrer { - mediaType: string; -} - -declare var UnviewableContentIdentifiedEvent: { - prototype: UnviewableContentIdentifiedEvent; - new(): UnviewableContentIdentifiedEvent; -} - -interface ValidityState { - badInput: boolean; - customError: boolean; - patternMismatch: boolean; - rangeOverflow: boolean; - rangeUnderflow: boolean; - stepMismatch: boolean; - tooLong: boolean; - typeMismatch: boolean; - valid: boolean; - valueMissing: boolean; -} - -declare var ValidityState: { - prototype: ValidityState; - new(): ValidityState; -} - -interface VideoPlaybackQuality { - corruptedVideoFrames: number; - creationTime: number; - droppedVideoFrames: number; - totalFrameDelay: number; - totalVideoFrames: number; -} - -declare var VideoPlaybackQuality: { - prototype: VideoPlaybackQuality; - new(): VideoPlaybackQuality; -} - -interface VideoTrack { - id: string; - kind: string; - label: string; - language: string; - selected: boolean; - sourceBuffer: SourceBuffer; -} - -declare var VideoTrack: { - prototype: VideoTrack; - new(): VideoTrack; -} - -interface VideoTrackList extends EventTarget { - length: number; - onaddtrack: (ev: TrackEvent) => any; - onchange: (ev: Event) => any; - onremovetrack: (ev: TrackEvent) => any; - selectedIndex: number; - getTrackById(id: string): VideoTrack; - item(index: number): VideoTrack; - addEventListener(type: "addtrack", listener: (ev: TrackEvent) => any, useCapture?: boolean): void; - addEventListener(type: "change", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "removetrack", listener: (ev: TrackEvent) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; - [index: number]: VideoTrack; -} - -declare var VideoTrackList: { - prototype: VideoTrackList; - new(): VideoTrackList; -} - -interface WEBGL_compressed_texture_s3tc { - COMPRESSED_RGBA_S3TC_DXT1_EXT: number; - COMPRESSED_RGBA_S3TC_DXT3_EXT: number; - COMPRESSED_RGBA_S3TC_DXT5_EXT: number; - COMPRESSED_RGB_S3TC_DXT1_EXT: number; -} - -declare var WEBGL_compressed_texture_s3tc: { - prototype: WEBGL_compressed_texture_s3tc; - new(): WEBGL_compressed_texture_s3tc; - COMPRESSED_RGBA_S3TC_DXT1_EXT: number; - COMPRESSED_RGBA_S3TC_DXT3_EXT: number; - COMPRESSED_RGBA_S3TC_DXT5_EXT: number; - COMPRESSED_RGB_S3TC_DXT1_EXT: number; -} - -interface WEBGL_debug_renderer_info { - UNMASKED_RENDERER_WEBGL: number; - UNMASKED_VENDOR_WEBGL: number; -} - -declare var WEBGL_debug_renderer_info: { - prototype: WEBGL_debug_renderer_info; - new(): WEBGL_debug_renderer_info; - UNMASKED_RENDERER_WEBGL: number; - UNMASKED_VENDOR_WEBGL: number; -} - -interface WEBGL_depth_texture { - UNSIGNED_INT_24_8_WEBGL: number; -} - -declare var WEBGL_depth_texture: { - prototype: WEBGL_depth_texture; - new(): WEBGL_depth_texture; - UNSIGNED_INT_24_8_WEBGL: number; -} - -interface WaveShaperNode extends AudioNode { - curve: Float32Array; - oversample: string; -} - -declare var WaveShaperNode: { - prototype: WaveShaperNode; - new(): WaveShaperNode; -} - -interface WebGLActiveInfo { - name: string; - size: number; - type: number; -} - -declare var WebGLActiveInfo: { - prototype: WebGLActiveInfo; - new(): WebGLActiveInfo; -} - -interface WebGLBuffer extends WebGLObject { -} - -declare var WebGLBuffer: { - prototype: WebGLBuffer; - new(): WebGLBuffer; -} - -interface WebGLContextEvent extends Event { - statusMessage: string; -} - -declare var WebGLContextEvent: { - prototype: WebGLContextEvent; - new(): WebGLContextEvent; -} - -interface WebGLFramebuffer extends WebGLObject { -} - -declare var WebGLFramebuffer: { - prototype: WebGLFramebuffer; - new(): WebGLFramebuffer; -} - -interface WebGLObject { -} - -declare var WebGLObject: { - prototype: WebGLObject; - new(): WebGLObject; -} - -interface WebGLProgram extends WebGLObject { -} - -declare var WebGLProgram: { - prototype: WebGLProgram; - new(): WebGLProgram; -} - -interface WebGLRenderbuffer extends WebGLObject { -} - -declare var WebGLRenderbuffer: { - prototype: WebGLRenderbuffer; - new(): WebGLRenderbuffer; -} - -interface WebGLRenderingContext { - canvas: HTMLCanvasElement; - drawingBufferHeight: number; - drawingBufferWidth: number; - activeTexture(texture: number): void; - attachShader(program: WebGLProgram, shader: WebGLShader): void; - bindAttribLocation(program: WebGLProgram, index: number, name: string): void; - bindBuffer(target: number, buffer: WebGLBuffer): void; - bindFramebuffer(target: number, framebuffer: WebGLFramebuffer): void; - bindRenderbuffer(target: number, renderbuffer: WebGLRenderbuffer): void; - bindTexture(target: number, texture: WebGLTexture): void; - blendColor(red: number, green: number, blue: number, alpha: number): void; - blendEquation(mode: number): void; - blendEquationSeparate(modeRGB: number, modeAlpha: number): void; - blendFunc(sfactor: number, dfactor: number): void; - blendFuncSeparate(srcRGB: number, dstRGB: number, srcAlpha: number, dstAlpha: number): void; - bufferData(target: number, size: number | ArrayBufferView | ArrayBuffer, usage: number): void; - bufferSubData(target: number, offset: number, data: ArrayBufferView | ArrayBuffer): void; - checkFramebufferStatus(target: number): number; - clear(mask: number): void; - clearColor(red: number, green: number, blue: number, alpha: number): void; - clearDepth(depth: number): void; - clearStencil(s: number): void; - colorMask(red: boolean, green: boolean, blue: boolean, alpha: boolean): void; - compileShader(shader: WebGLShader): void; - compressedTexImage2D(target: number, level: number, internalformat: number, width: number, height: number, border: number, data: ArrayBufferView): void; - compressedTexSubImage2D(target: number, level: number, xoffset: number, yoffset: number, width: number, height: number, format: number, data: ArrayBufferView): void; - copyTexImage2D(target: number, level: number, internalformat: number, x: number, y: number, width: number, height: number, border: number): void; - copyTexSubImage2D(target: number, level: number, xoffset: number, yoffset: number, x: number, y: number, width: number, height: number): void; - createBuffer(): WebGLBuffer; - createFramebuffer(): WebGLFramebuffer; - createProgram(): WebGLProgram; - createRenderbuffer(): WebGLRenderbuffer; - createShader(type: number): WebGLShader; - createTexture(): WebGLTexture; - cullFace(mode: number): void; - deleteBuffer(buffer: WebGLBuffer): void; - deleteFramebuffer(framebuffer: WebGLFramebuffer): void; - deleteProgram(program: WebGLProgram): void; - deleteRenderbuffer(renderbuffer: WebGLRenderbuffer): void; - deleteShader(shader: WebGLShader): void; - deleteTexture(texture: WebGLTexture): void; - depthFunc(func: number): void; - depthMask(flag: boolean): void; - depthRange(zNear: number, zFar: number): void; - detachShader(program: WebGLProgram, shader: WebGLShader): void; - disable(cap: number): void; - disableVertexAttribArray(index: number): void; - drawArrays(mode: number, first: number, count: number): void; - drawElements(mode: number, count: number, type: number, offset: number): void; - enable(cap: number): void; - enableVertexAttribArray(index: number): void; - finish(): void; - flush(): void; - framebufferRenderbuffer(target: number, attachment: number, renderbuffertarget: number, renderbuffer: WebGLRenderbuffer): void; - framebufferTexture2D(target: number, attachment: number, textarget: number, texture: WebGLTexture, level: number): void; - frontFace(mode: number): void; - generateMipmap(target: number): void; - getActiveAttrib(program: WebGLProgram, index: number): WebGLActiveInfo; - getActiveUniform(program: WebGLProgram, index: number): WebGLActiveInfo; - getAttachedShaders(program: WebGLProgram): WebGLShader[]; - getAttribLocation(program: WebGLProgram, name: string): number; - getBufferParameter(target: number, pname: number): any; - getContextAttributes(): WebGLContextAttributes; - getError(): number; - getExtension(name: string): any; - getFramebufferAttachmentParameter(target: number, attachment: number, pname: number): any; - getParameter(pname: number): any; - getProgramInfoLog(program: WebGLProgram): string; - getProgramParameter(program: WebGLProgram, pname: number): any; - getRenderbufferParameter(target: number, pname: number): any; - getShaderInfoLog(shader: WebGLShader): string; - getShaderParameter(shader: WebGLShader, pname: number): any; - getShaderPrecisionFormat(shadertype: number, precisiontype: number): WebGLShaderPrecisionFormat; - getShaderSource(shader: WebGLShader): string; - getSupportedExtensions(): string[]; - getTexParameter(target: number, pname: number): any; - getUniform(program: WebGLProgram, location: WebGLUniformLocation): any; - getUniformLocation(program: WebGLProgram, name: string): WebGLUniformLocation; - getVertexAttrib(index: number, pname: number): any; - getVertexAttribOffset(index: number, pname: number): number; - hint(target: number, mode: number): void; - isBuffer(buffer: WebGLBuffer): boolean; - isContextLost(): boolean; - isEnabled(cap: number): boolean; - isFramebuffer(framebuffer: WebGLFramebuffer): boolean; - isProgram(program: WebGLProgram): boolean; - isRenderbuffer(renderbuffer: WebGLRenderbuffer): boolean; - isShader(shader: WebGLShader): boolean; - isTexture(texture: WebGLTexture): boolean; - lineWidth(width: number): void; - linkProgram(program: WebGLProgram): void; - pixelStorei(pname: number, param: number): void; - polygonOffset(factor: number, units: number): void; - readPixels(x: number, y: number, width: number, height: number, format: number, type: number, pixels: ArrayBufferView): void; - renderbufferStorage(target: number, internalformat: number, width: number, height: number): void; - sampleCoverage(value: number, invert: boolean): void; - scissor(x: number, y: number, width: number, height: number): void; - shaderSource(shader: WebGLShader, source: string): void; - stencilFunc(func: number, ref: number, mask: number): void; - stencilFuncSeparate(face: number, func: number, ref: number, mask: number): void; - stencilMask(mask: number): void; - stencilMaskSeparate(face: number, mask: number): void; - stencilOp(fail: number, zfail: number, zpass: number): void; - stencilOpSeparate(face: number, fail: number, zfail: number, zpass: number): void; - texImage2D(target: number, level: number, internalformat: number, width: number, height: number, border: number, format: number, type: number, pixels: ArrayBufferView): void; - texImage2D(target: number, level: number, internalformat: number, format: number, type: number, image: HTMLImageElement): void; - texImage2D(target: number, level: number, internalformat: number, format: number, type: number, canvas: HTMLCanvasElement): void; - texImage2D(target: number, level: number, internalformat: number, format: number, type: number, video: HTMLVideoElement): void; - texImage2D(target: number, level: number, internalformat: number, format: number, type: number, pixels: ImageData): void; - texParameterf(target: number, pname: number, param: number): void; - texParameteri(target: number, pname: number, param: number): void; - texSubImage2D(target: number, level: number, xoffset: number, yoffset: number, width: number, height: number, format: number, type: number, pixels: ArrayBufferView): void; - texSubImage2D(target: number, level: number, xoffset: number, yoffset: number, format: number, type: number, image: HTMLImageElement): void; - texSubImage2D(target: number, level: number, xoffset: number, yoffset: number, format: number, type: number, canvas: HTMLCanvasElement): void; - texSubImage2D(target: number, level: number, xoffset: number, yoffset: number, format: number, type: number, video: HTMLVideoElement): void; - texSubImage2D(target: number, level: number, xoffset: number, yoffset: number, format: number, type: number, pixels: ImageData): void; - uniform1f(location: WebGLUniformLocation, x: number): void; - uniform1fv(location: WebGLUniformLocation, v: Float32Array): void; - uniform1i(location: WebGLUniformLocation, x: number): void; - uniform1iv(location: WebGLUniformLocation, v: Int32Array): void; - uniform2f(location: WebGLUniformLocation, x: number, y: number): void; - uniform2fv(location: WebGLUniformLocation, v: Float32Array): void; - uniform2i(location: WebGLUniformLocation, x: number, y: number): void; - uniform2iv(location: WebGLUniformLocation, v: Int32Array): void; - uniform3f(location: WebGLUniformLocation, x: number, y: number, z: number): void; - uniform3fv(location: WebGLUniformLocation, v: Float32Array): void; - uniform3i(location: WebGLUniformLocation, x: number, y: number, z: number): void; - uniform3iv(location: WebGLUniformLocation, v: Int32Array): void; - uniform4f(location: WebGLUniformLocation, x: number, y: number, z: number, w: number): void; - uniform4fv(location: WebGLUniformLocation, v: Float32Array): void; - uniform4i(location: WebGLUniformLocation, x: number, y: number, z: number, w: number): void; - uniform4iv(location: WebGLUniformLocation, v: Int32Array): void; - uniformMatrix2fv(location: WebGLUniformLocation, transpose: boolean, value: Float32Array): void; - uniformMatrix3fv(location: WebGLUniformLocation, transpose: boolean, value: Float32Array): void; - uniformMatrix4fv(location: WebGLUniformLocation, transpose: boolean, value: Float32Array): void; - useProgram(program: WebGLProgram): void; - validateProgram(program: WebGLProgram): void; - vertexAttrib1f(indx: number, x: number): void; - vertexAttrib1fv(indx: number, values: Float32Array): void; - vertexAttrib2f(indx: number, x: number, y: number): void; - vertexAttrib2fv(indx: number, values: Float32Array): void; - vertexAttrib3f(indx: number, x: number, y: number, z: number): void; - vertexAttrib3fv(indx: number, values: Float32Array): void; - vertexAttrib4f(indx: number, x: number, y: number, z: number, w: number): void; - vertexAttrib4fv(indx: number, values: Float32Array): void; - vertexAttribPointer(indx: number, size: number, type: number, normalized: boolean, stride: number, offset: number): void; - viewport(x: number, y: number, width: number, height: number): void; - ACTIVE_ATTRIBUTES: number; - ACTIVE_TEXTURE: number; - ACTIVE_UNIFORMS: number; - ALIASED_LINE_WIDTH_RANGE: number; - ALIASED_POINT_SIZE_RANGE: number; - ALPHA: number; - ALPHA_BITS: number; - ALWAYS: number; - ARRAY_BUFFER: number; - ARRAY_BUFFER_BINDING: number; - ATTACHED_SHADERS: number; - BACK: number; - BLEND: number; - BLEND_COLOR: number; - BLEND_DST_ALPHA: number; - BLEND_DST_RGB: number; - BLEND_EQUATION: number; - BLEND_EQUATION_ALPHA: number; - BLEND_EQUATION_RGB: number; - BLEND_SRC_ALPHA: number; - BLEND_SRC_RGB: number; - BLUE_BITS: number; - BOOL: number; - BOOL_VEC2: number; - BOOL_VEC3: number; - BOOL_VEC4: number; - BROWSER_DEFAULT_WEBGL: number; - BUFFER_SIZE: number; - BUFFER_USAGE: number; - BYTE: number; - CCW: number; - CLAMP_TO_EDGE: number; - COLOR_ATTACHMENT0: number; - COLOR_BUFFER_BIT: number; - COLOR_CLEAR_VALUE: number; - COLOR_WRITEMASK: number; - COMPILE_STATUS: number; - COMPRESSED_TEXTURE_FORMATS: number; - CONSTANT_ALPHA: number; - CONSTANT_COLOR: number; - CONTEXT_LOST_WEBGL: number; - CULL_FACE: number; - CULL_FACE_MODE: number; - CURRENT_PROGRAM: number; - CURRENT_VERTEX_ATTRIB: number; - CW: number; - DECR: number; - DECR_WRAP: number; - DELETE_STATUS: number; - DEPTH_ATTACHMENT: number; - DEPTH_BITS: number; - DEPTH_BUFFER_BIT: number; - DEPTH_CLEAR_VALUE: number; - DEPTH_COMPONENT: number; - DEPTH_COMPONENT16: number; - DEPTH_FUNC: number; - DEPTH_RANGE: number; - DEPTH_STENCIL: number; - DEPTH_STENCIL_ATTACHMENT: number; - DEPTH_TEST: number; - DEPTH_WRITEMASK: number; - DITHER: number; - DONT_CARE: number; - DST_ALPHA: number; - DST_COLOR: number; - DYNAMIC_DRAW: number; - ELEMENT_ARRAY_BUFFER: number; - ELEMENT_ARRAY_BUFFER_BINDING: number; - EQUAL: number; - FASTEST: number; - FLOAT: number; - FLOAT_MAT2: number; - FLOAT_MAT3: number; - FLOAT_MAT4: number; - FLOAT_VEC2: number; - FLOAT_VEC3: number; - FLOAT_VEC4: number; - FRAGMENT_SHADER: number; - FRAMEBUFFER: number; - FRAMEBUFFER_ATTACHMENT_OBJECT_NAME: number; - FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE: number; - FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE: number; - FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL: number; - FRAMEBUFFER_BINDING: number; - FRAMEBUFFER_COMPLETE: number; - FRAMEBUFFER_INCOMPLETE_ATTACHMENT: number; - FRAMEBUFFER_INCOMPLETE_DIMENSIONS: number; - FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT: number; - FRAMEBUFFER_UNSUPPORTED: number; - FRONT: number; - FRONT_AND_BACK: number; - FRONT_FACE: number; - FUNC_ADD: number; - FUNC_REVERSE_SUBTRACT: number; - FUNC_SUBTRACT: number; - GENERATE_MIPMAP_HINT: number; - GEQUAL: number; - GREATER: number; - GREEN_BITS: number; - HIGH_FLOAT: number; - HIGH_INT: number; - IMPLEMENTATION_COLOR_READ_FORMAT: number; - IMPLEMENTATION_COLOR_READ_TYPE: number; - INCR: number; - INCR_WRAP: number; - INT: number; - INT_VEC2: number; - INT_VEC3: number; - INT_VEC4: number; - INVALID_ENUM: number; - INVALID_FRAMEBUFFER_OPERATION: number; - INVALID_OPERATION: number; - INVALID_VALUE: number; - INVERT: number; - KEEP: number; - LEQUAL: number; - LESS: number; - LINEAR: number; - LINEAR_MIPMAP_LINEAR: number; - LINEAR_MIPMAP_NEAREST: number; - LINES: number; - LINE_LOOP: number; - LINE_STRIP: number; - LINE_WIDTH: number; - LINK_STATUS: number; - LOW_FLOAT: number; - LOW_INT: number; - LUMINANCE: number; - LUMINANCE_ALPHA: number; - MAX_COMBINED_TEXTURE_IMAGE_UNITS: number; - MAX_CUBE_MAP_TEXTURE_SIZE: number; - MAX_FRAGMENT_UNIFORM_VECTORS: number; - MAX_RENDERBUFFER_SIZE: number; - MAX_TEXTURE_IMAGE_UNITS: number; - MAX_TEXTURE_SIZE: number; - MAX_VARYING_VECTORS: number; - MAX_VERTEX_ATTRIBS: number; - MAX_VERTEX_TEXTURE_IMAGE_UNITS: number; - MAX_VERTEX_UNIFORM_VECTORS: number; - MAX_VIEWPORT_DIMS: number; - MEDIUM_FLOAT: number; - MEDIUM_INT: number; - MIRRORED_REPEAT: number; - NEAREST: number; - NEAREST_MIPMAP_LINEAR: number; - NEAREST_MIPMAP_NEAREST: number; - NEVER: number; - NICEST: number; - NONE: number; - NOTEQUAL: number; - NO_ERROR: number; - ONE: number; - ONE_MINUS_CONSTANT_ALPHA: number; - ONE_MINUS_CONSTANT_COLOR: number; - ONE_MINUS_DST_ALPHA: number; - ONE_MINUS_DST_COLOR: number; - ONE_MINUS_SRC_ALPHA: number; - ONE_MINUS_SRC_COLOR: number; - OUT_OF_MEMORY: number; - PACK_ALIGNMENT: number; - POINTS: number; - POLYGON_OFFSET_FACTOR: number; - POLYGON_OFFSET_FILL: number; - POLYGON_OFFSET_UNITS: number; - RED_BITS: number; - RENDERBUFFER: number; - RENDERBUFFER_ALPHA_SIZE: number; - RENDERBUFFER_BINDING: number; - RENDERBUFFER_BLUE_SIZE: number; - RENDERBUFFER_DEPTH_SIZE: number; - RENDERBUFFER_GREEN_SIZE: number; - RENDERBUFFER_HEIGHT: number; - RENDERBUFFER_INTERNAL_FORMAT: number; - RENDERBUFFER_RED_SIZE: number; - RENDERBUFFER_STENCIL_SIZE: number; - RENDERBUFFER_WIDTH: number; - RENDERER: number; - REPEAT: number; - REPLACE: number; - RGB: number; - RGB565: number; - RGB5_A1: number; - RGBA: number; - RGBA4: number; - SAMPLER_2D: number; - SAMPLER_CUBE: number; - SAMPLES: number; - SAMPLE_ALPHA_TO_COVERAGE: number; - SAMPLE_BUFFERS: number; - SAMPLE_COVERAGE: number; - SAMPLE_COVERAGE_INVERT: number; - SAMPLE_COVERAGE_VALUE: number; - SCISSOR_BOX: number; - SCISSOR_TEST: number; - SHADER_TYPE: number; - SHADING_LANGUAGE_VERSION: number; - SHORT: number; - SRC_ALPHA: number; - SRC_ALPHA_SATURATE: number; - SRC_COLOR: number; - STATIC_DRAW: number; - STENCIL_ATTACHMENT: number; - STENCIL_BACK_FAIL: number; - STENCIL_BACK_FUNC: number; - STENCIL_BACK_PASS_DEPTH_FAIL: number; - STENCIL_BACK_PASS_DEPTH_PASS: number; - STENCIL_BACK_REF: number; - STENCIL_BACK_VALUE_MASK: number; - STENCIL_BACK_WRITEMASK: number; - STENCIL_BITS: number; - STENCIL_BUFFER_BIT: number; - STENCIL_CLEAR_VALUE: number; - STENCIL_FAIL: number; - STENCIL_FUNC: number; - STENCIL_INDEX: number; - STENCIL_INDEX8: number; - STENCIL_PASS_DEPTH_FAIL: number; - STENCIL_PASS_DEPTH_PASS: number; - STENCIL_REF: number; - STENCIL_TEST: number; - STENCIL_VALUE_MASK: number; - STENCIL_WRITEMASK: number; - STREAM_DRAW: number; - SUBPIXEL_BITS: number; - TEXTURE: number; - TEXTURE0: number; - TEXTURE1: number; - TEXTURE10: number; - TEXTURE11: number; - TEXTURE12: number; - TEXTURE13: number; - TEXTURE14: number; - TEXTURE15: number; - TEXTURE16: number; - TEXTURE17: number; - TEXTURE18: number; - TEXTURE19: number; - TEXTURE2: number; - TEXTURE20: number; - TEXTURE21: number; - TEXTURE22: number; - TEXTURE23: number; - TEXTURE24: number; - TEXTURE25: number; - TEXTURE26: number; - TEXTURE27: number; - TEXTURE28: number; - TEXTURE29: number; - TEXTURE3: number; - TEXTURE30: number; - TEXTURE31: number; - TEXTURE4: number; - TEXTURE5: number; - TEXTURE6: number; - TEXTURE7: number; - TEXTURE8: number; - TEXTURE9: number; - TEXTURE_2D: number; - TEXTURE_BINDING_2D: number; - TEXTURE_BINDING_CUBE_MAP: number; - TEXTURE_CUBE_MAP: number; - TEXTURE_CUBE_MAP_NEGATIVE_X: number; - TEXTURE_CUBE_MAP_NEGATIVE_Y: number; - TEXTURE_CUBE_MAP_NEGATIVE_Z: number; - TEXTURE_CUBE_MAP_POSITIVE_X: number; - TEXTURE_CUBE_MAP_POSITIVE_Y: number; - TEXTURE_CUBE_MAP_POSITIVE_Z: number; - TEXTURE_MAG_FILTER: number; - TEXTURE_MIN_FILTER: number; - TEXTURE_WRAP_S: number; - TEXTURE_WRAP_T: number; - TRIANGLES: number; - TRIANGLE_FAN: number; - TRIANGLE_STRIP: number; - UNPACK_ALIGNMENT: number; - UNPACK_COLORSPACE_CONVERSION_WEBGL: number; - UNPACK_FLIP_Y_WEBGL: number; - UNPACK_PREMULTIPLY_ALPHA_WEBGL: number; - UNSIGNED_BYTE: number; - UNSIGNED_INT: number; - UNSIGNED_SHORT: number; - UNSIGNED_SHORT_4_4_4_4: number; - UNSIGNED_SHORT_5_5_5_1: number; - UNSIGNED_SHORT_5_6_5: number; - VALIDATE_STATUS: number; - VENDOR: number; - VERSION: number; - VERTEX_ATTRIB_ARRAY_BUFFER_BINDING: number; - VERTEX_ATTRIB_ARRAY_ENABLED: number; - VERTEX_ATTRIB_ARRAY_NORMALIZED: number; - VERTEX_ATTRIB_ARRAY_POINTER: number; - VERTEX_ATTRIB_ARRAY_SIZE: number; - VERTEX_ATTRIB_ARRAY_STRIDE: number; - VERTEX_ATTRIB_ARRAY_TYPE: number; - VERTEX_SHADER: number; - VIEWPORT: number; - ZERO: number; -} - -declare var WebGLRenderingContext: { - prototype: WebGLRenderingContext; - new(): WebGLRenderingContext; - ACTIVE_ATTRIBUTES: number; - ACTIVE_TEXTURE: number; - ACTIVE_UNIFORMS: number; - ALIASED_LINE_WIDTH_RANGE: number; - ALIASED_POINT_SIZE_RANGE: number; - ALPHA: number; - ALPHA_BITS: number; - ALWAYS: number; - ARRAY_BUFFER: number; - ARRAY_BUFFER_BINDING: number; - ATTACHED_SHADERS: number; - BACK: number; - BLEND: number; - BLEND_COLOR: number; - BLEND_DST_ALPHA: number; - BLEND_DST_RGB: number; - BLEND_EQUATION: number; - BLEND_EQUATION_ALPHA: number; - BLEND_EQUATION_RGB: number; - BLEND_SRC_ALPHA: number; - BLEND_SRC_RGB: number; - BLUE_BITS: number; - BOOL: number; - BOOL_VEC2: number; - BOOL_VEC3: number; - BOOL_VEC4: number; - BROWSER_DEFAULT_WEBGL: number; - BUFFER_SIZE: number; - BUFFER_USAGE: number; - BYTE: number; - CCW: number; - CLAMP_TO_EDGE: number; - COLOR_ATTACHMENT0: number; - COLOR_BUFFER_BIT: number; - COLOR_CLEAR_VALUE: number; - COLOR_WRITEMASK: number; - COMPILE_STATUS: number; - COMPRESSED_TEXTURE_FORMATS: number; - CONSTANT_ALPHA: number; - CONSTANT_COLOR: number; - CONTEXT_LOST_WEBGL: number; - CULL_FACE: number; - CULL_FACE_MODE: number; - CURRENT_PROGRAM: number; - CURRENT_VERTEX_ATTRIB: number; - CW: number; - DECR: number; - DECR_WRAP: number; - DELETE_STATUS: number; - DEPTH_ATTACHMENT: number; - DEPTH_BITS: number; - DEPTH_BUFFER_BIT: number; - DEPTH_CLEAR_VALUE: number; - DEPTH_COMPONENT: number; - DEPTH_COMPONENT16: number; - DEPTH_FUNC: number; - DEPTH_RANGE: number; - DEPTH_STENCIL: number; - DEPTH_STENCIL_ATTACHMENT: number; - DEPTH_TEST: number; - DEPTH_WRITEMASK: number; - DITHER: number; - DONT_CARE: number; - DST_ALPHA: number; - DST_COLOR: number; - DYNAMIC_DRAW: number; - ELEMENT_ARRAY_BUFFER: number; - ELEMENT_ARRAY_BUFFER_BINDING: number; - EQUAL: number; - FASTEST: number; - FLOAT: number; - FLOAT_MAT2: number; - FLOAT_MAT3: number; - FLOAT_MAT4: number; - FLOAT_VEC2: number; - FLOAT_VEC3: number; - FLOAT_VEC4: number; - FRAGMENT_SHADER: number; - FRAMEBUFFER: number; - FRAMEBUFFER_ATTACHMENT_OBJECT_NAME: number; - FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE: number; - FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE: number; - FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL: number; - FRAMEBUFFER_BINDING: number; - FRAMEBUFFER_COMPLETE: number; - FRAMEBUFFER_INCOMPLETE_ATTACHMENT: number; - FRAMEBUFFER_INCOMPLETE_DIMENSIONS: number; - FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT: number; - FRAMEBUFFER_UNSUPPORTED: number; - FRONT: number; - FRONT_AND_BACK: number; - FRONT_FACE: number; - FUNC_ADD: number; - FUNC_REVERSE_SUBTRACT: number; - FUNC_SUBTRACT: number; - GENERATE_MIPMAP_HINT: number; - GEQUAL: number; - GREATER: number; - GREEN_BITS: number; - HIGH_FLOAT: number; - HIGH_INT: number; - IMPLEMENTATION_COLOR_READ_FORMAT: number; - IMPLEMENTATION_COLOR_READ_TYPE: number; - INCR: number; - INCR_WRAP: number; - INT: number; - INT_VEC2: number; - INT_VEC3: number; - INT_VEC4: number; - INVALID_ENUM: number; - INVALID_FRAMEBUFFER_OPERATION: number; - INVALID_OPERATION: number; - INVALID_VALUE: number; - INVERT: number; - KEEP: number; - LEQUAL: number; - LESS: number; - LINEAR: number; - LINEAR_MIPMAP_LINEAR: number; - LINEAR_MIPMAP_NEAREST: number; - LINES: number; - LINE_LOOP: number; - LINE_STRIP: number; - LINE_WIDTH: number; - LINK_STATUS: number; - LOW_FLOAT: number; - LOW_INT: number; - LUMINANCE: number; - LUMINANCE_ALPHA: number; - MAX_COMBINED_TEXTURE_IMAGE_UNITS: number; - MAX_CUBE_MAP_TEXTURE_SIZE: number; - MAX_FRAGMENT_UNIFORM_VECTORS: number; - MAX_RENDERBUFFER_SIZE: number; - MAX_TEXTURE_IMAGE_UNITS: number; - MAX_TEXTURE_SIZE: number; - MAX_VARYING_VECTORS: number; - MAX_VERTEX_ATTRIBS: number; - MAX_VERTEX_TEXTURE_IMAGE_UNITS: number; - MAX_VERTEX_UNIFORM_VECTORS: number; - MAX_VIEWPORT_DIMS: number; - MEDIUM_FLOAT: number; - MEDIUM_INT: number; - MIRRORED_REPEAT: number; - NEAREST: number; - NEAREST_MIPMAP_LINEAR: number; - NEAREST_MIPMAP_NEAREST: number; - NEVER: number; - NICEST: number; - NONE: number; - NOTEQUAL: number; - NO_ERROR: number; - ONE: number; - ONE_MINUS_CONSTANT_ALPHA: number; - ONE_MINUS_CONSTANT_COLOR: number; - ONE_MINUS_DST_ALPHA: number; - ONE_MINUS_DST_COLOR: number; - ONE_MINUS_SRC_ALPHA: number; - ONE_MINUS_SRC_COLOR: number; - OUT_OF_MEMORY: number; - PACK_ALIGNMENT: number; - POINTS: number; - POLYGON_OFFSET_FACTOR: number; - POLYGON_OFFSET_FILL: number; - POLYGON_OFFSET_UNITS: number; - RED_BITS: number; - RENDERBUFFER: number; - RENDERBUFFER_ALPHA_SIZE: number; - RENDERBUFFER_BINDING: number; - RENDERBUFFER_BLUE_SIZE: number; - RENDERBUFFER_DEPTH_SIZE: number; - RENDERBUFFER_GREEN_SIZE: number; - RENDERBUFFER_HEIGHT: number; - RENDERBUFFER_INTERNAL_FORMAT: number; - RENDERBUFFER_RED_SIZE: number; - RENDERBUFFER_STENCIL_SIZE: number; - RENDERBUFFER_WIDTH: number; - RENDERER: number; - REPEAT: number; - REPLACE: number; - RGB: number; - RGB565: number; - RGB5_A1: number; - RGBA: number; - RGBA4: number; - SAMPLER_2D: number; - SAMPLER_CUBE: number; - SAMPLES: number; - SAMPLE_ALPHA_TO_COVERAGE: number; - SAMPLE_BUFFERS: number; - SAMPLE_COVERAGE: number; - SAMPLE_COVERAGE_INVERT: number; - SAMPLE_COVERAGE_VALUE: number; - SCISSOR_BOX: number; - SCISSOR_TEST: number; - SHADER_TYPE: number; - SHADING_LANGUAGE_VERSION: number; - SHORT: number; - SRC_ALPHA: number; - SRC_ALPHA_SATURATE: number; - SRC_COLOR: number; - STATIC_DRAW: number; - STENCIL_ATTACHMENT: number; - STENCIL_BACK_FAIL: number; - STENCIL_BACK_FUNC: number; - STENCIL_BACK_PASS_DEPTH_FAIL: number; - STENCIL_BACK_PASS_DEPTH_PASS: number; - STENCIL_BACK_REF: number; - STENCIL_BACK_VALUE_MASK: number; - STENCIL_BACK_WRITEMASK: number; - STENCIL_BITS: number; - STENCIL_BUFFER_BIT: number; - STENCIL_CLEAR_VALUE: number; - STENCIL_FAIL: number; - STENCIL_FUNC: number; - STENCIL_INDEX: number; - STENCIL_INDEX8: number; - STENCIL_PASS_DEPTH_FAIL: number; - STENCIL_PASS_DEPTH_PASS: number; - STENCIL_REF: number; - STENCIL_TEST: number; - STENCIL_VALUE_MASK: number; - STENCIL_WRITEMASK: number; - STREAM_DRAW: number; - SUBPIXEL_BITS: number; - TEXTURE: number; - TEXTURE0: number; - TEXTURE1: number; - TEXTURE10: number; - TEXTURE11: number; - TEXTURE12: number; - TEXTURE13: number; - TEXTURE14: number; - TEXTURE15: number; - TEXTURE16: number; - TEXTURE17: number; - TEXTURE18: number; - TEXTURE19: number; - TEXTURE2: number; - TEXTURE20: number; - TEXTURE21: number; - TEXTURE22: number; - TEXTURE23: number; - TEXTURE24: number; - TEXTURE25: number; - TEXTURE26: number; - TEXTURE27: number; - TEXTURE28: number; - TEXTURE29: number; - TEXTURE3: number; - TEXTURE30: number; - TEXTURE31: number; - TEXTURE4: number; - TEXTURE5: number; - TEXTURE6: number; - TEXTURE7: number; - TEXTURE8: number; - TEXTURE9: number; - TEXTURE_2D: number; - TEXTURE_BINDING_2D: number; - TEXTURE_BINDING_CUBE_MAP: number; - TEXTURE_CUBE_MAP: number; - TEXTURE_CUBE_MAP_NEGATIVE_X: number; - TEXTURE_CUBE_MAP_NEGATIVE_Y: number; - TEXTURE_CUBE_MAP_NEGATIVE_Z: number; - TEXTURE_CUBE_MAP_POSITIVE_X: number; - TEXTURE_CUBE_MAP_POSITIVE_Y: number; - TEXTURE_CUBE_MAP_POSITIVE_Z: number; - TEXTURE_MAG_FILTER: number; - TEXTURE_MIN_FILTER: number; - TEXTURE_WRAP_S: number; - TEXTURE_WRAP_T: number; - TRIANGLES: number; - TRIANGLE_FAN: number; - TRIANGLE_STRIP: number; - UNPACK_ALIGNMENT: number; - UNPACK_COLORSPACE_CONVERSION_WEBGL: number; - UNPACK_FLIP_Y_WEBGL: number; - UNPACK_PREMULTIPLY_ALPHA_WEBGL: number; - UNSIGNED_BYTE: number; - UNSIGNED_INT: number; - UNSIGNED_SHORT: number; - UNSIGNED_SHORT_4_4_4_4: number; - UNSIGNED_SHORT_5_5_5_1: number; - UNSIGNED_SHORT_5_6_5: number; - VALIDATE_STATUS: number; - VENDOR: number; - VERSION: number; - VERTEX_ATTRIB_ARRAY_BUFFER_BINDING: number; - VERTEX_ATTRIB_ARRAY_ENABLED: number; - VERTEX_ATTRIB_ARRAY_NORMALIZED: number; - VERTEX_ATTRIB_ARRAY_POINTER: number; - VERTEX_ATTRIB_ARRAY_SIZE: number; - VERTEX_ATTRIB_ARRAY_STRIDE: number; - VERTEX_ATTRIB_ARRAY_TYPE: number; - VERTEX_SHADER: number; - VIEWPORT: number; - ZERO: number; -} - -interface WebGLShader extends WebGLObject { -} - -declare var WebGLShader: { - prototype: WebGLShader; - new(): WebGLShader; -} - -interface WebGLShaderPrecisionFormat { - precision: number; - rangeMax: number; - rangeMin: number; -} - -declare var WebGLShaderPrecisionFormat: { - prototype: WebGLShaderPrecisionFormat; - new(): WebGLShaderPrecisionFormat; -} - -interface WebGLTexture extends WebGLObject { -} - -declare var WebGLTexture: { - prototype: WebGLTexture; - new(): WebGLTexture; -} - -interface WebGLUniformLocation { -} - -declare var WebGLUniformLocation: { - prototype: WebGLUniformLocation; - new(): WebGLUniformLocation; -} - -interface WebKitCSSMatrix { - a: number; - b: number; - c: number; - d: number; - e: number; - f: number; - m11: number; - m12: number; - m13: number; - m14: number; - m21: number; - m22: number; - m23: number; - m24: number; - m31: number; - m32: number; - m33: number; - m34: number; - m41: number; - m42: number; - m43: number; - m44: number; - inverse(): WebKitCSSMatrix; - multiply(secondMatrix: WebKitCSSMatrix): WebKitCSSMatrix; - rotate(angleX: number, angleY?: number, angleZ?: number): WebKitCSSMatrix; - rotateAxisAngle(x: number, y: number, z: number, angle: number): WebKitCSSMatrix; - scale(scaleX: number, scaleY?: number, scaleZ?: number): WebKitCSSMatrix; - setMatrixValue(value: string): void; - skewX(angle: number): WebKitCSSMatrix; - skewY(angle: number): WebKitCSSMatrix; - toString(): string; - translate(x: number, y: number, z?: number): WebKitCSSMatrix; -} - -declare var WebKitCSSMatrix: { - prototype: WebKitCSSMatrix; - new(text?: string): WebKitCSSMatrix; -} - -interface WebKitPoint { - x: number; - y: number; -} - -declare var WebKitPoint: { - prototype: WebKitPoint; - new(x?: number, y?: number): WebKitPoint; -} - -interface WebSocket extends EventTarget { - binaryType: string; - bufferedAmount: number; - extensions: string; - onclose: (ev: CloseEvent) => any; - onerror: (ev: Event) => any; - onmessage: (ev: MessageEvent) => any; - onopen: (ev: Event) => any; - protocol: string; - readyState: number; - url: string; - close(code?: number, reason?: string): void; - send(data: any): void; - CLOSED: number; - CLOSING: number; - CONNECTING: number; - OPEN: number; - addEventListener(type: "close", listener: (ev: CloseEvent) => any, useCapture?: boolean): void; - addEventListener(type: "error", listener: (ev: ErrorEvent) => any, useCapture?: boolean): void; - addEventListener(type: "message", listener: (ev: MessageEvent) => any, useCapture?: boolean): void; - addEventListener(type: "open", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; -} - -declare var WebSocket: { - prototype: WebSocket; - new(url: string, protocols?: string | string[]): WebSocket; - CLOSED: number; - CLOSING: number; - CONNECTING: number; - OPEN: number; -} - -interface WheelEvent extends MouseEvent { - deltaMode: number; - deltaX: number; - deltaY: number; - deltaZ: number; - getCurrentPoint(element: Element): void; - initWheelEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, viewArg: Window, detailArg: number, screenXArg: number, screenYArg: number, clientXArg: number, clientYArg: number, buttonArg: number, relatedTargetArg: EventTarget, modifiersListArg: string, deltaXArg: number, deltaYArg: number, deltaZArg: number, deltaMode: number): void; - DOM_DELTA_LINE: number; - DOM_DELTA_PAGE: number; - DOM_DELTA_PIXEL: number; -} - -declare var WheelEvent: { - prototype: WheelEvent; - new(typeArg: string, eventInitDict?: WheelEventInit): WheelEvent; - DOM_DELTA_LINE: number; - DOM_DELTA_PAGE: number; - DOM_DELTA_PIXEL: number; -} - -interface Window extends EventTarget, WindowTimers, WindowSessionStorage, WindowLocalStorage, WindowConsole, GlobalEventHandlers, IDBEnvironment, WindowBase64 { - animationStartTime: number; - applicationCache: ApplicationCache; - clientInformation: Navigator; - closed: boolean; - crypto: Crypto; - defaultStatus: string; - devicePixelRatio: number; - doNotTrack: string; - document: Document; - event: Event; - external: External; - frameElement: Element; - frames: Window; - history: History; - innerHeight: number; - innerWidth: number; - length: number; - location: Location; - locationbar: BarProp; - menubar: BarProp; - msAnimationStartTime: number; - name: string; - navigator: Navigator; - offscreenBuffering: string | boolean; - onabort: (ev: Event) => any; - onafterprint: (ev: Event) => any; - onbeforeprint: (ev: Event) => any; - onbeforeunload: (ev: BeforeUnloadEvent) => any; - onblur: (ev: FocusEvent) => any; - oncanplay: (ev: Event) => any; - oncanplaythrough: (ev: Event) => any; - onchange: (ev: Event) => any; - onclick: (ev: MouseEvent) => any; - oncompassneedscalibration: (ev: Event) => any; - oncontextmenu: (ev: PointerEvent) => any; - ondblclick: (ev: MouseEvent) => any; - ondevicemotion: (ev: DeviceMotionEvent) => any; - ondeviceorientation: (ev: DeviceOrientationEvent) => any; - ondrag: (ev: DragEvent) => any; - ondragend: (ev: DragEvent) => any; - ondragenter: (ev: DragEvent) => any; - ondragleave: (ev: DragEvent) => any; - ondragover: (ev: DragEvent) => any; - ondragstart: (ev: DragEvent) => any; - ondrop: (ev: DragEvent) => any; - ondurationchange: (ev: Event) => any; - onemptied: (ev: Event) => any; - onended: (ev: Event) => any; - onerror: ErrorEventHandler; - onfocus: (ev: FocusEvent) => any; - onhashchange: (ev: HashChangeEvent) => any; - oninput: (ev: Event) => any; - onkeydown: (ev: KeyboardEvent) => any; - onkeypress: (ev: KeyboardEvent) => any; - onkeyup: (ev: KeyboardEvent) => any; - onload: (ev: Event) => any; - onloadeddata: (ev: Event) => any; - onloadedmetadata: (ev: Event) => any; - onloadstart: (ev: Event) => any; - onmessage: (ev: MessageEvent) => any; - onmousedown: (ev: MouseEvent) => any; - onmouseenter: (ev: MouseEvent) => any; - onmouseleave: (ev: MouseEvent) => any; - onmousemove: (ev: MouseEvent) => any; - onmouseout: (ev: MouseEvent) => any; - onmouseover: (ev: MouseEvent) => any; - onmouseup: (ev: MouseEvent) => any; - onmousewheel: (ev: MouseWheelEvent) => any; - onmsgesturechange: (ev: MSGestureEvent) => any; - onmsgesturedoubletap: (ev: MSGestureEvent) => any; - onmsgestureend: (ev: MSGestureEvent) => any; - onmsgesturehold: (ev: MSGestureEvent) => any; - onmsgesturestart: (ev: MSGestureEvent) => any; - onmsgesturetap: (ev: MSGestureEvent) => any; - onmsinertiastart: (ev: MSGestureEvent) => any; - onmspointercancel: (ev: MSPointerEvent) => any; - onmspointerdown: (ev: MSPointerEvent) => any; - onmspointerenter: (ev: MSPointerEvent) => any; - onmspointerleave: (ev: MSPointerEvent) => any; - onmspointermove: (ev: MSPointerEvent) => any; - onmspointerout: (ev: MSPointerEvent) => any; - onmspointerover: (ev: MSPointerEvent) => any; - onmspointerup: (ev: MSPointerEvent) => any; - onoffline: (ev: Event) => any; - ononline: (ev: Event) => any; - onorientationchange: (ev: Event) => any; - onpagehide: (ev: PageTransitionEvent) => any; - onpageshow: (ev: PageTransitionEvent) => any; - onpause: (ev: Event) => any; - onplay: (ev: Event) => any; - onplaying: (ev: Event) => any; - onpopstate: (ev: PopStateEvent) => any; - onprogress: (ev: ProgressEvent) => any; - onratechange: (ev: Event) => any; - onreadystatechange: (ev: ProgressEvent) => any; - onreset: (ev: Event) => any; - onresize: (ev: UIEvent) => any; - onscroll: (ev: UIEvent) => any; - onseeked: (ev: Event) => any; - onseeking: (ev: Event) => any; - onselect: (ev: UIEvent) => any; - onstalled: (ev: Event) => any; - onstorage: (ev: StorageEvent) => any; - onsubmit: (ev: Event) => any; - onsuspend: (ev: Event) => any; - ontimeupdate: (ev: Event) => any; - ontouchcancel: any; - ontouchend: any; - ontouchmove: any; - ontouchstart: any; - onunload: (ev: Event) => any; - onvolumechange: (ev: Event) => any; - onwaiting: (ev: Event) => any; - opener: Window; - orientation: string | number; - outerHeight: number; - outerWidth: number; - pageXOffset: number; - pageYOffset: number; - parent: Window; - performance: Performance; - personalbar: BarProp; - screen: Screen; - screenLeft: number; - screenTop: number; - screenX: number; - screenY: number; - scrollX: number; - scrollY: number; - scrollbars: BarProp; - self: Window; - status: string; - statusbar: BarProp; - styleMedia: StyleMedia; - toolbar: BarProp; - top: Window; - window: Window; - URL: URL; - alert(message?: any): void; - blur(): void; - cancelAnimationFrame(handle: number): void; - captureEvents(): void; - close(): void; - confirm(message?: string): boolean; - focus(): void; - getComputedStyle(elt: Element, pseudoElt?: string): CSSStyleDeclaration; - getMatchedCSSRules(elt: Element, pseudoElt?: string): CSSRuleList; - getSelection(): Selection; - matchMedia(mediaQuery: string): MediaQueryList; - moveBy(x?: number, y?: number): void; - moveTo(x?: number, y?: number): void; - msCancelRequestAnimationFrame(handle: number): void; - msMatchMedia(mediaQuery: string): MediaQueryList; - msRequestAnimationFrame(callback: FrameRequestCallback): number; - msWriteProfilerMark(profilerMarkName: string): void; - open(url?: string, target?: string, features?: string, replace?: boolean): any; - postMessage(message: any, targetOrigin: string, ports?: any): void; - print(): void; - prompt(message?: string, _default?: string): string; - releaseEvents(): void; - requestAnimationFrame(callback: FrameRequestCallback): number; - resizeBy(x?: number, y?: number): void; - resizeTo(x?: number, y?: number): void; - scroll(x?: number, y?: number): void; - scrollBy(x?: number, y?: number): void; - scrollTo(x?: number, y?: number): void; - webkitConvertPointFromNodeToPage(node: Node, pt: WebKitPoint): WebKitPoint; - webkitConvertPointFromPageToNode(node: Node, pt: WebKitPoint): WebKitPoint; - addEventListener(type: "MSGestureChange", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSGestureDoubleTap", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSGestureEnd", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSGestureHold", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSGestureStart", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSGestureTap", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSInertiaStart", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSPointerCancel", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSPointerDown", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSPointerEnter", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSPointerLeave", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSPointerMove", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSPointerOut", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSPointerOver", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "MSPointerUp", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "abort", listener: (ev: UIEvent) => any, useCapture?: boolean): void; - addEventListener(type: "afterprint", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "beforeprint", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "beforeunload", listener: (ev: BeforeUnloadEvent) => any, useCapture?: boolean): void; - addEventListener(type: "blur", listener: (ev: FocusEvent) => any, useCapture?: boolean): void; - addEventListener(type: "canplay", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "canplaythrough", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "change", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "click", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; - addEventListener(type: "compassneedscalibration", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "contextmenu", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "dblclick", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; - addEventListener(type: "devicemotion", listener: (ev: DeviceMotionEvent) => any, useCapture?: boolean): void; - addEventListener(type: "deviceorientation", listener: (ev: DeviceOrientationEvent) => any, useCapture?: boolean): void; - addEventListener(type: "drag", listener: (ev: DragEvent) => any, useCapture?: boolean): void; - addEventListener(type: "dragend", listener: (ev: DragEvent) => any, useCapture?: boolean): void; - addEventListener(type: "dragenter", listener: (ev: DragEvent) => any, useCapture?: boolean): void; - addEventListener(type: "dragleave", listener: (ev: DragEvent) => any, useCapture?: boolean): void; - addEventListener(type: "dragover", listener: (ev: DragEvent) => any, useCapture?: boolean): void; - addEventListener(type: "dragstart", listener: (ev: DragEvent) => any, useCapture?: boolean): void; - addEventListener(type: "drop", listener: (ev: DragEvent) => any, useCapture?: boolean): void; - addEventListener(type: "durationchange", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "emptied", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "ended", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "focus", listener: (ev: FocusEvent) => any, useCapture?: boolean): void; - addEventListener(type: "hashchange", listener: (ev: HashChangeEvent) => any, useCapture?: boolean): void; - addEventListener(type: "input", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "keydown", listener: (ev: KeyboardEvent) => any, useCapture?: boolean): void; - addEventListener(type: "keypress", listener: (ev: KeyboardEvent) => any, useCapture?: boolean): void; - addEventListener(type: "keyup", listener: (ev: KeyboardEvent) => any, useCapture?: boolean): void; - addEventListener(type: "load", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "loadeddata", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "loadedmetadata", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "loadstart", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "message", listener: (ev: MessageEvent) => any, useCapture?: boolean): void; - addEventListener(type: "mousedown", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; - addEventListener(type: "mouseenter", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; - addEventListener(type: "mouseleave", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; - addEventListener(type: "mousemove", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; - addEventListener(type: "mouseout", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; - addEventListener(type: "mouseover", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; - addEventListener(type: "mouseup", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; - addEventListener(type: "mousewheel", listener: (ev: MouseWheelEvent) => any, useCapture?: boolean): void; - addEventListener(type: "offline", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "online", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "orientationchange", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "pagehide", listener: (ev: PageTransitionEvent) => any, useCapture?: boolean): void; - addEventListener(type: "pageshow", listener: (ev: PageTransitionEvent) => any, useCapture?: boolean): void; - addEventListener(type: "pause", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "play", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "playing", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "pointercancel", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "pointerdown", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "pointerenter", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "pointerleave", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "pointermove", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "pointerout", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "pointerover", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "pointerup", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "popstate", listener: (ev: PopStateEvent) => any, useCapture?: boolean): void; - addEventListener(type: "progress", listener: (ev: ProgressEvent) => any, useCapture?: boolean): void; - addEventListener(type: "ratechange", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "readystatechange", listener: (ev: ProgressEvent) => any, useCapture?: boolean): void; - addEventListener(type: "reset", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "resize", listener: (ev: UIEvent) => any, useCapture?: boolean): void; - addEventListener(type: "scroll", listener: (ev: UIEvent) => any, useCapture?: boolean): void; - addEventListener(type: "seeked", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "seeking", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "select", listener: (ev: UIEvent) => any, useCapture?: boolean): void; - addEventListener(type: "stalled", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "storage", listener: (ev: StorageEvent) => any, useCapture?: boolean): void; - addEventListener(type: "submit", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "suspend", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "timeupdate", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "unload", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "volumechange", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "waiting", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "wheel", listener: (ev: WheelEvent) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; - [index: number]: Window; -} - -declare var Window: { - prototype: Window; - new(): Window; -} - -interface Worker extends EventTarget, AbstractWorker { - onmessage: (ev: MessageEvent) => any; - postMessage(message: any, ports?: any): void; - terminate(): void; - addEventListener(type: "error", listener: (ev: ErrorEvent) => any, useCapture?: boolean): void; - addEventListener(type: "message", listener: (ev: MessageEvent) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; -} - -declare var Worker: { - prototype: Worker; - new(stringUrl: string): Worker; -} - -interface XMLDocument extends Document { -} - -declare var XMLDocument: { - prototype: XMLDocument; - new(): XMLDocument; -} - -interface XMLHttpRequest extends EventTarget, XMLHttpRequestEventTarget { - msCaching: string; - onreadystatechange: (ev: ProgressEvent) => any; - readyState: number; - response: any; - responseBody: any; - responseText: string; - responseType: string; - responseXML: any; - status: number; - statusText: string; - timeout: number; - upload: XMLHttpRequestUpload; - withCredentials: boolean; - abort(): void; - getAllResponseHeaders(): string; - getResponseHeader(header: string): string; - msCachingEnabled(): boolean; - open(method: string, url: string, async?: boolean, user?: string, password?: string): void; - overrideMimeType(mime: string): void; - send(data?: Document): void; - send(data?: string): void; - send(data?: any): void; - setRequestHeader(header: string, value: string): void; - DONE: number; - HEADERS_RECEIVED: number; - LOADING: number; - OPENED: number; - UNSENT: number; - addEventListener(type: "abort", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "error", listener: (ev: ErrorEvent) => any, useCapture?: boolean): void; - addEventListener(type: "load", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "loadend", listener: (ev: ProgressEvent) => any, useCapture?: boolean): void; - addEventListener(type: "loadstart", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "progress", listener: (ev: ProgressEvent) => any, useCapture?: boolean): void; - addEventListener(type: "readystatechange", listener: (ev: ProgressEvent) => any, useCapture?: boolean): void; - addEventListener(type: "timeout", listener: (ev: ProgressEvent) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; -} - -declare var XMLHttpRequest: { - prototype: XMLHttpRequest; - new(): XMLHttpRequest; - DONE: number; - HEADERS_RECEIVED: number; - LOADING: number; - OPENED: number; - UNSENT: number; - create(): XMLHttpRequest; -} - -interface XMLHttpRequestUpload extends EventTarget, XMLHttpRequestEventTarget { - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; -} - -declare var XMLHttpRequestUpload: { - prototype: XMLHttpRequestUpload; - new(): XMLHttpRequestUpload; -} - -interface XMLSerializer { - serializeToString(target: Node): string; -} - -declare var XMLSerializer: { - prototype: XMLSerializer; - new(): XMLSerializer; -} - -interface XPathEvaluator { - createExpression(expression: string, resolver: XPathNSResolver): XPathExpression; - createNSResolver(nodeResolver?: Node): XPathNSResolver; - evaluate(expression: string, contextNode: Node, resolver: XPathNSResolver, type: number, result: XPathResult): XPathResult; -} - -declare var XPathEvaluator: { - prototype: XPathEvaluator; - new(): XPathEvaluator; -} - -interface XPathExpression { - evaluate(contextNode: Node, type: number, result: XPathResult): XPathExpression; -} - -declare var XPathExpression: { - prototype: XPathExpression; - new(): XPathExpression; -} - -interface XPathNSResolver { - lookupNamespaceURI(prefix: string): string; -} - -declare var XPathNSResolver: { - prototype: XPathNSResolver; - new(): XPathNSResolver; -} - -interface XPathResult { - booleanValue: boolean; - invalidIteratorState: boolean; - numberValue: number; - resultType: number; - singleNodeValue: Node; - snapshotLength: number; - stringValue: string; - iterateNext(): Node; - snapshotItem(index: number): Node; - ANY_TYPE: number; - ANY_UNORDERED_NODE_TYPE: number; - BOOLEAN_TYPE: number; - FIRST_ORDERED_NODE_TYPE: number; - NUMBER_TYPE: number; - ORDERED_NODE_ITERATOR_TYPE: number; - ORDERED_NODE_SNAPSHOT_TYPE: number; - STRING_TYPE: number; - UNORDERED_NODE_ITERATOR_TYPE: number; - UNORDERED_NODE_SNAPSHOT_TYPE: number; -} - -declare var XPathResult: { - prototype: XPathResult; - new(): XPathResult; - ANY_TYPE: number; - ANY_UNORDERED_NODE_TYPE: number; - BOOLEAN_TYPE: number; - FIRST_ORDERED_NODE_TYPE: number; - NUMBER_TYPE: number; - ORDERED_NODE_ITERATOR_TYPE: number; - ORDERED_NODE_SNAPSHOT_TYPE: number; - STRING_TYPE: number; - UNORDERED_NODE_ITERATOR_TYPE: number; - UNORDERED_NODE_SNAPSHOT_TYPE: number; -} - -interface XSLTProcessor { - clearParameters(): void; - getParameter(namespaceURI: string, localName: string): any; - importStylesheet(style: Node): void; - removeParameter(namespaceURI: string, localName: string): void; - reset(): void; - setParameter(namespaceURI: string, localName: string, value: any): void; - transformToDocument(source: Node): Document; - transformToFragment(source: Node, document: Document): DocumentFragment; -} - -declare var XSLTProcessor: { - prototype: XSLTProcessor; - new(): XSLTProcessor; -} - -interface AbstractWorker { - onerror: (ev: Event) => any; - addEventListener(type: "error", listener: (ev: ErrorEvent) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; -} - -interface ChildNode { - remove(): void; -} - -interface DOML2DeprecatedColorProperty { - color: string; -} - -interface DOML2DeprecatedSizeProperty { - size: number; -} - -interface DocumentEvent { - createEvent(eventInterface:"AnimationEvent"): AnimationEvent; - createEvent(eventInterface:"AriaRequestEvent"): AriaRequestEvent; - createEvent(eventInterface:"AudioProcessingEvent"): AudioProcessingEvent; - createEvent(eventInterface:"BeforeUnloadEvent"): BeforeUnloadEvent; - createEvent(eventInterface:"ClipboardEvent"): ClipboardEvent; - createEvent(eventInterface:"CloseEvent"): CloseEvent; - createEvent(eventInterface:"CommandEvent"): CommandEvent; - createEvent(eventInterface:"CompositionEvent"): CompositionEvent; - createEvent(eventInterface:"CustomEvent"): CustomEvent; - createEvent(eventInterface:"DeviceMotionEvent"): DeviceMotionEvent; - createEvent(eventInterface:"DeviceOrientationEvent"): DeviceOrientationEvent; - createEvent(eventInterface:"DragEvent"): DragEvent; - createEvent(eventInterface:"ErrorEvent"): ErrorEvent; - createEvent(eventInterface:"Event"): Event; - createEvent(eventInterface:"Events"): Event; - createEvent(eventInterface:"FocusEvent"): FocusEvent; - createEvent(eventInterface:"GamepadEvent"): GamepadEvent; - createEvent(eventInterface:"HashChangeEvent"): HashChangeEvent; - createEvent(eventInterface:"IDBVersionChangeEvent"): IDBVersionChangeEvent; - createEvent(eventInterface:"KeyboardEvent"): KeyboardEvent; - createEvent(eventInterface:"LongRunningScriptDetectedEvent"): LongRunningScriptDetectedEvent; - createEvent(eventInterface:"MSGestureEvent"): MSGestureEvent; - createEvent(eventInterface:"MSManipulationEvent"): MSManipulationEvent; - createEvent(eventInterface:"MSMediaKeyMessageEvent"): MSMediaKeyMessageEvent; - createEvent(eventInterface:"MSMediaKeyNeededEvent"): MSMediaKeyNeededEvent; - createEvent(eventInterface:"MSPointerEvent"): MSPointerEvent; - createEvent(eventInterface:"MSSiteModeEvent"): MSSiteModeEvent; - createEvent(eventInterface:"MessageEvent"): MessageEvent; - createEvent(eventInterface:"MouseEvent"): MouseEvent; - createEvent(eventInterface:"MouseEvents"): MouseEvent; - createEvent(eventInterface:"MouseWheelEvent"): MouseWheelEvent; - createEvent(eventInterface:"MutationEvent"): MutationEvent; - createEvent(eventInterface:"MutationEvents"): MutationEvent; - createEvent(eventInterface:"NavigationCompletedEvent"): NavigationCompletedEvent; - createEvent(eventInterface:"NavigationEvent"): NavigationEvent; - createEvent(eventInterface:"NavigationEventWithReferrer"): NavigationEventWithReferrer; - createEvent(eventInterface:"OfflineAudioCompletionEvent"): OfflineAudioCompletionEvent; - createEvent(eventInterface:"PageTransitionEvent"): PageTransitionEvent; - createEvent(eventInterface:"PermissionRequestedEvent"): PermissionRequestedEvent; - createEvent(eventInterface:"PointerEvent"): PointerEvent; - createEvent(eventInterface:"PopStateEvent"): PopStateEvent; - createEvent(eventInterface:"ProgressEvent"): ProgressEvent; - createEvent(eventInterface:"SVGZoomEvent"): SVGZoomEvent; - createEvent(eventInterface:"SVGZoomEvents"): SVGZoomEvent; - createEvent(eventInterface:"ScriptNotifyEvent"): ScriptNotifyEvent; - createEvent(eventInterface:"StorageEvent"): StorageEvent; - createEvent(eventInterface:"TextEvent"): TextEvent; - createEvent(eventInterface:"TouchEvent"): TouchEvent; - createEvent(eventInterface:"TrackEvent"): TrackEvent; - createEvent(eventInterface:"TransitionEvent"): TransitionEvent; - createEvent(eventInterface:"UIEvent"): UIEvent; - createEvent(eventInterface:"UIEvents"): UIEvent; - createEvent(eventInterface:"UnviewableContentIdentifiedEvent"): UnviewableContentIdentifiedEvent; - createEvent(eventInterface:"WebGLContextEvent"): WebGLContextEvent; - createEvent(eventInterface:"WheelEvent"): WheelEvent; - createEvent(eventInterface: string): Event; -} - -interface ElementTraversal { - childElementCount: number; - firstElementChild: Element; - lastElementChild: Element; - nextElementSibling: Element; - previousElementSibling: Element; -} - -interface GetSVGDocument { - getSVGDocument(): Document; -} - -interface GlobalEventHandlers { - onpointercancel: (ev: PointerEvent) => any; - onpointerdown: (ev: PointerEvent) => any; - onpointerenter: (ev: PointerEvent) => any; - onpointerleave: (ev: PointerEvent) => any; - onpointermove: (ev: PointerEvent) => any; - onpointerout: (ev: PointerEvent) => any; - onpointerover: (ev: PointerEvent) => any; - onpointerup: (ev: PointerEvent) => any; - onwheel: (ev: WheelEvent) => any; - addEventListener(type: "pointercancel", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "pointerdown", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "pointerenter", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "pointerleave", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "pointermove", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "pointerout", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "pointerover", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "pointerup", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; - addEventListener(type: "wheel", listener: (ev: WheelEvent) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; -} - -interface HTMLTableAlignment { - /** - * Sets or retrieves a value that you can use to implement your own ch functionality for the object. - */ - ch: string; - /** - * Sets or retrieves a value that you can use to implement your own chOff functionality for the object. - */ - chOff: string; - /** - * Sets or retrieves how text and other content are vertically aligned within the object that contains them. - */ - vAlign: string; -} - -interface IDBEnvironment { - indexedDB: IDBFactory; - msIndexedDB: IDBFactory; -} - -interface LinkStyle { - sheet: StyleSheet; -} - -interface MSBaseReader { - onabort: (ev: Event) => any; - onerror: (ev: Event) => any; - onload: (ev: Event) => any; - onloadend: (ev: ProgressEvent) => any; - onloadstart: (ev: Event) => any; - onprogress: (ev: ProgressEvent) => any; - readyState: number; - result: any; - abort(): void; - DONE: number; - EMPTY: number; - LOADING: number; - addEventListener(type: "abort", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "error", listener: (ev: ErrorEvent) => any, useCapture?: boolean): void; - addEventListener(type: "load", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "loadend", listener: (ev: ProgressEvent) => any, useCapture?: boolean): void; - addEventListener(type: "loadstart", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "progress", listener: (ev: ProgressEvent) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; -} - -interface MSFileSaver { - msSaveBlob(blob: any, defaultName?: string): boolean; - msSaveOrOpenBlob(blob: any, defaultName?: string): boolean; -} - -interface MSNavigatorDoNotTrack { - confirmSiteSpecificTrackingException(args: ConfirmSiteSpecificExceptionsInformation): boolean; - confirmWebWideTrackingException(args: ExceptionInformation): boolean; - removeSiteSpecificTrackingException(args: ExceptionInformation): void; - removeWebWideTrackingException(args: ExceptionInformation): void; - storeSiteSpecificTrackingException(args: StoreSiteSpecificExceptionsInformation): void; - storeWebWideTrackingException(args: StoreExceptionsInformation): void; -} - -interface NavigatorContentUtils { -} - -interface NavigatorGeolocation { - geolocation: Geolocation; -} - -interface NavigatorID { - appName: string; - appVersion: string; - platform: string; - product: string; - productSub: string; - userAgent: string; - vendor: string; - vendorSub: string; -} - -interface NavigatorOnLine { - onLine: boolean; -} - -interface NavigatorStorageUtils { -} - -interface NodeSelector { - querySelector(selectors: string): Element; - querySelectorAll(selectors: string): NodeListOf; -} - -interface RandomSource { - getRandomValues(array: ArrayBufferView): ArrayBufferView; -} - -interface SVGAnimatedPathData { - pathSegList: SVGPathSegList; -} - -interface SVGAnimatedPoints { - animatedPoints: SVGPointList; - points: SVGPointList; -} - -interface SVGExternalResourcesRequired { - externalResourcesRequired: SVGAnimatedBoolean; -} - -interface SVGFilterPrimitiveStandardAttributes extends SVGStylable { - height: SVGAnimatedLength; - result: SVGAnimatedString; - width: SVGAnimatedLength; - x: SVGAnimatedLength; - y: SVGAnimatedLength; -} - -interface SVGFitToViewBox { - preserveAspectRatio: SVGAnimatedPreserveAspectRatio; - viewBox: SVGAnimatedRect; -} - -interface SVGLangSpace { - xmllang: string; - xmlspace: string; -} - -interface SVGLocatable { - farthestViewportElement: SVGElement; - nearestViewportElement: SVGElement; - getBBox(): SVGRect; - getCTM(): SVGMatrix; - getScreenCTM(): SVGMatrix; - getTransformToElement(element: SVGElement): SVGMatrix; -} - -interface SVGStylable { - className: any; - style: CSSStyleDeclaration; -} - -interface SVGTests { - requiredExtensions: SVGStringList; - requiredFeatures: SVGStringList; - systemLanguage: SVGStringList; - hasExtension(extension: string): boolean; -} - -interface SVGTransformable extends SVGLocatable { - transform: SVGAnimatedTransformList; -} - -interface SVGURIReference { - href: SVGAnimatedString; -} - -interface WindowBase64 { - atob(encodedString: string): string; - btoa(rawString: string): string; -} - -interface WindowConsole { - console: Console; -} - -interface WindowLocalStorage { - localStorage: Storage; -} - -interface WindowSessionStorage { - sessionStorage: Storage; -} - -interface WindowTimers extends Object, WindowTimersExtension { - clearInterval(handle: number): void; - clearTimeout(handle: number): void; - setInterval(handler: any, timeout?: any, ...args: any[]): number; - setTimeout(handler: any, timeout?: any, ...args: any[]): number; -} - -interface WindowTimersExtension { - clearImmediate(handle: number): void; - msClearImmediate(handle: number): void; - msSetImmediate(expression: any, ...args: any[]): number; - setImmediate(expression: any, ...args: any[]): number; -} - -interface XMLHttpRequestEventTarget { - onabort: (ev: Event) => any; - onerror: (ev: Event) => any; - onload: (ev: Event) => any; - onloadend: (ev: ProgressEvent) => any; - onloadstart: (ev: Event) => any; - onprogress: (ev: ProgressEvent) => any; - ontimeout: (ev: ProgressEvent) => any; - addEventListener(type: "abort", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "error", listener: (ev: ErrorEvent) => any, useCapture?: boolean): void; - addEventListener(type: "load", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "loadend", listener: (ev: ProgressEvent) => any, useCapture?: boolean): void; - addEventListener(type: "loadstart", listener: (ev: Event) => any, useCapture?: boolean): void; - addEventListener(type: "progress", listener: (ev: ProgressEvent) => any, useCapture?: boolean): void; - addEventListener(type: "timeout", listener: (ev: ProgressEvent) => any, useCapture?: boolean): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; -} - -interface NodeListOf extends NodeList { - length: number; - item(index: number): TNode; - [index: number]: TNode; -} - -interface BlobPropertyBag { - type?: string; - endings?: string; -} - -interface FilePropertyBag { - type?: string; - lastModified?: number; -} - -interface EventListenerObject { - handleEvent(evt: Event): void; -} - -interface MessageEventInit extends EventInit { - data?: any; - origin?: string; - lastEventId?: string; - channel?: string; - source?: any; - ports?: MessagePort[]; -} - -interface ProgressEventInit extends EventInit { - lengthComputable?: boolean; - loaded?: number; - total?: number; -} - -declare type EventListenerOrEventListenerObject = EventListener | EventListenerObject; - -interface ErrorEventHandler { - (message: string, filename?: string, lineno?: number, colno?: number, error?:Error): void; -} -interface PositionCallback { - (position: Position): void; -} -interface PositionErrorCallback { - (error: PositionError): void; -} -interface MediaQueryListListener { - (mql: MediaQueryList): void; -} -interface MSLaunchUriCallback { - (): void; -} -interface FrameRequestCallback { - (time: number): void; -} -interface MSUnsafeFunctionCallback { - (): any; -} -interface MSExecAtPriorityFunctionCallback { - (...args: any[]): any; -} -interface MutationCallback { - (mutations: MutationRecord[], observer: MutationObserver): void; -} -interface DecodeSuccessCallback { - (decodedData: AudioBuffer): void; -} -interface DecodeErrorCallback { - (): void; -} -interface FunctionStringCallback { - (data: string): void; -} -declare var Audio: {new(src?: string): HTMLAudioElement; }; -declare var Image: {new(width?: number, height?: number): HTMLImageElement; }; -declare var Option: {new(text?: string, value?: string, defaultSelected?: boolean, selected?: boolean): HTMLOptionElement; }; -declare var animationStartTime: number; -declare var applicationCache: ApplicationCache; -declare var clientInformation: Navigator; -declare var closed: boolean; -declare var crypto: Crypto; -declare var defaultStatus: string; -declare var devicePixelRatio: number; -declare var doNotTrack: string; -declare var document: Document; -declare var event: Event; -declare var external: External; -declare var frameElement: Element; -declare var frames: Window; -declare var history: History; -declare var innerHeight: number; -declare var innerWidth: number; -declare var length: number; -declare var location: Location; -declare var locationbar: BarProp; -declare var menubar: BarProp; -declare var msAnimationStartTime: number; -declare var name: string; -declare var navigator: Navigator; -declare var offscreenBuffering: string | boolean; -declare var onabort: (ev: Event) => any; -declare var onafterprint: (ev: Event) => any; -declare var onbeforeprint: (ev: Event) => any; -declare var onbeforeunload: (ev: BeforeUnloadEvent) => any; -declare var onblur: (ev: FocusEvent) => any; -declare var oncanplay: (ev: Event) => any; -declare var oncanplaythrough: (ev: Event) => any; -declare var onchange: (ev: Event) => any; -declare var onclick: (ev: MouseEvent) => any; -declare var oncompassneedscalibration: (ev: Event) => any; -declare var oncontextmenu: (ev: PointerEvent) => any; -declare var ondblclick: (ev: MouseEvent) => any; -declare var ondevicemotion: (ev: DeviceMotionEvent) => any; -declare var ondeviceorientation: (ev: DeviceOrientationEvent) => any; -declare var ondrag: (ev: DragEvent) => any; -declare var ondragend: (ev: DragEvent) => any; -declare var ondragenter: (ev: DragEvent) => any; -declare var ondragleave: (ev: DragEvent) => any; -declare var ondragover: (ev: DragEvent) => any; -declare var ondragstart: (ev: DragEvent) => any; -declare var ondrop: (ev: DragEvent) => any; -declare var ondurationchange: (ev: Event) => any; -declare var onemptied: (ev: Event) => any; -declare var onended: (ev: Event) => any; -declare var onerror: ErrorEventHandler; -declare var onfocus: (ev: FocusEvent) => any; -declare var onhashchange: (ev: HashChangeEvent) => any; -declare var oninput: (ev: Event) => any; -declare var onkeydown: (ev: KeyboardEvent) => any; -declare var onkeypress: (ev: KeyboardEvent) => any; -declare var onkeyup: (ev: KeyboardEvent) => any; -declare var onload: (ev: Event) => any; -declare var onloadeddata: (ev: Event) => any; -declare var onloadedmetadata: (ev: Event) => any; -declare var onloadstart: (ev: Event) => any; -declare var onmessage: (ev: MessageEvent) => any; -declare var onmousedown: (ev: MouseEvent) => any; -declare var onmouseenter: (ev: MouseEvent) => any; -declare var onmouseleave: (ev: MouseEvent) => any; -declare var onmousemove: (ev: MouseEvent) => any; -declare var onmouseout: (ev: MouseEvent) => any; -declare var onmouseover: (ev: MouseEvent) => any; -declare var onmouseup: (ev: MouseEvent) => any; -declare var onmousewheel: (ev: MouseWheelEvent) => any; -declare var onmsgesturechange: (ev: MSGestureEvent) => any; -declare var onmsgesturedoubletap: (ev: MSGestureEvent) => any; -declare var onmsgestureend: (ev: MSGestureEvent) => any; -declare var onmsgesturehold: (ev: MSGestureEvent) => any; -declare var onmsgesturestart: (ev: MSGestureEvent) => any; -declare var onmsgesturetap: (ev: MSGestureEvent) => any; -declare var onmsinertiastart: (ev: MSGestureEvent) => any; -declare var onmspointercancel: (ev: MSPointerEvent) => any; -declare var onmspointerdown: (ev: MSPointerEvent) => any; -declare var onmspointerenter: (ev: MSPointerEvent) => any; -declare var onmspointerleave: (ev: MSPointerEvent) => any; -declare var onmspointermove: (ev: MSPointerEvent) => any; -declare var onmspointerout: (ev: MSPointerEvent) => any; -declare var onmspointerover: (ev: MSPointerEvent) => any; -declare var onmspointerup: (ev: MSPointerEvent) => any; -declare var onoffline: (ev: Event) => any; -declare var ononline: (ev: Event) => any; -declare var onorientationchange: (ev: Event) => any; -declare var onpagehide: (ev: PageTransitionEvent) => any; -declare var onpageshow: (ev: PageTransitionEvent) => any; -declare var onpause: (ev: Event) => any; -declare var onplay: (ev: Event) => any; -declare var onplaying: (ev: Event) => any; -declare var onpopstate: (ev: PopStateEvent) => any; -declare var onprogress: (ev: ProgressEvent) => any; -declare var onratechange: (ev: Event) => any; -declare var onreadystatechange: (ev: ProgressEvent) => any; -declare var onreset: (ev: Event) => any; -declare var onresize: (ev: UIEvent) => any; -declare var onscroll: (ev: UIEvent) => any; -declare var onseeked: (ev: Event) => any; -declare var onseeking: (ev: Event) => any; -declare var onselect: (ev: UIEvent) => any; -declare var onstalled: (ev: Event) => any; -declare var onstorage: (ev: StorageEvent) => any; -declare var onsubmit: (ev: Event) => any; -declare var onsuspend: (ev: Event) => any; -declare var ontimeupdate: (ev: Event) => any; -declare var ontouchcancel: any; -declare var ontouchend: any; -declare var ontouchmove: any; -declare var ontouchstart: any; -declare var onunload: (ev: Event) => any; -declare var onvolumechange: (ev: Event) => any; -declare var onwaiting: (ev: Event) => any; -declare var opener: Window; -declare var orientation: string | number; -declare var outerHeight: number; -declare var outerWidth: number; -declare var pageXOffset: number; -declare var pageYOffset: number; -declare var parent: Window; -declare var performance: Performance; -declare var personalbar: BarProp; -declare var screen: Screen; -declare var screenLeft: number; -declare var screenTop: number; -declare var screenX: number; -declare var screenY: number; -declare var scrollX: number; -declare var scrollY: number; -declare var scrollbars: BarProp; -declare var self: Window; -declare var status: string; -declare var statusbar: BarProp; -declare var styleMedia: StyleMedia; -declare var toolbar: BarProp; -declare var top: Window; -declare var window: Window; -declare var URL: URL; -declare function alert(message?: any): void; -declare function blur(): void; -declare function cancelAnimationFrame(handle: number): void; -declare function captureEvents(): void; -declare function close(): void; -declare function confirm(message?: string): boolean; -declare function focus(): void; -declare function getComputedStyle(elt: Element, pseudoElt?: string): CSSStyleDeclaration; -declare function getMatchedCSSRules(elt: Element, pseudoElt?: string): CSSRuleList; -declare function getSelection(): Selection; -declare function matchMedia(mediaQuery: string): MediaQueryList; -declare function moveBy(x?: number, y?: number): void; -declare function moveTo(x?: number, y?: number): void; -declare function msCancelRequestAnimationFrame(handle: number): void; -declare function msMatchMedia(mediaQuery: string): MediaQueryList; -declare function msRequestAnimationFrame(callback: FrameRequestCallback): number; -declare function msWriteProfilerMark(profilerMarkName: string): void; -declare function open(url?: string, target?: string, features?: string, replace?: boolean): any; -declare function postMessage(message: any, targetOrigin: string, ports?: any): void; -declare function print(): void; -declare function prompt(message?: string, _default?: string): string; -declare function releaseEvents(): void; -declare function requestAnimationFrame(callback: FrameRequestCallback): number; -declare function resizeBy(x?: number, y?: number): void; -declare function resizeTo(x?: number, y?: number): void; -declare function scroll(x?: number, y?: number): void; -declare function scrollBy(x?: number, y?: number): void; -declare function scrollTo(x?: number, y?: number): void; -declare function webkitConvertPointFromNodeToPage(node: Node, pt: WebKitPoint): WebKitPoint; -declare function webkitConvertPointFromPageToNode(node: Node, pt: WebKitPoint): WebKitPoint; -declare function toString(): string; -declare function addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; -declare function dispatchEvent(evt: Event): boolean; -declare function removeEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; -declare function clearInterval(handle: number): void; -declare function clearTimeout(handle: number): void; -declare function setInterval(handler: any, timeout?: any, ...args: any[]): number; -declare function setTimeout(handler: any, timeout?: any, ...args: any[]): number; -declare function clearImmediate(handle: number): void; -declare function msClearImmediate(handle: number): void; -declare function msSetImmediate(expression: any, ...args: any[]): number; -declare function setImmediate(expression: any, ...args: any[]): number; -declare var sessionStorage: Storage; -declare var localStorage: Storage; -declare var console: Console; -declare var onpointercancel: (ev: PointerEvent) => any; -declare var onpointerdown: (ev: PointerEvent) => any; -declare var onpointerenter: (ev: PointerEvent) => any; -declare var onpointerleave: (ev: PointerEvent) => any; -declare var onpointermove: (ev: PointerEvent) => any; -declare var onpointerout: (ev: PointerEvent) => any; -declare var onpointerover: (ev: PointerEvent) => any; -declare var onpointerup: (ev: PointerEvent) => any; -declare var onwheel: (ev: WheelEvent) => any; -declare var indexedDB: IDBFactory; -declare var msIndexedDB: IDBFactory; -declare function atob(encodedString: string): string; -declare function btoa(rawString: string): string; -declare function addEventListener(type: "MSGestureChange", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; -declare function addEventListener(type: "MSGestureDoubleTap", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; -declare function addEventListener(type: "MSGestureEnd", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; -declare function addEventListener(type: "MSGestureHold", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; -declare function addEventListener(type: "MSGestureStart", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; -declare function addEventListener(type: "MSGestureTap", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; -declare function addEventListener(type: "MSInertiaStart", listener: (ev: MSGestureEvent) => any, useCapture?: boolean): void; -declare function addEventListener(type: "MSPointerCancel", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; -declare function addEventListener(type: "MSPointerDown", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; -declare function addEventListener(type: "MSPointerEnter", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; -declare function addEventListener(type: "MSPointerLeave", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; -declare function addEventListener(type: "MSPointerMove", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; -declare function addEventListener(type: "MSPointerOut", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; -declare function addEventListener(type: "MSPointerOver", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; -declare function addEventListener(type: "MSPointerUp", listener: (ev: MSPointerEvent) => any, useCapture?: boolean): void; -declare function addEventListener(type: "abort", listener: (ev: UIEvent) => any, useCapture?: boolean): void; -declare function addEventListener(type: "afterprint", listener: (ev: Event) => any, useCapture?: boolean): void; -declare function addEventListener(type: "beforeprint", listener: (ev: Event) => any, useCapture?: boolean): void; -declare function addEventListener(type: "beforeunload", listener: (ev: BeforeUnloadEvent) => any, useCapture?: boolean): void; -declare function addEventListener(type: "blur", listener: (ev: FocusEvent) => any, useCapture?: boolean): void; -declare function addEventListener(type: "canplay", listener: (ev: Event) => any, useCapture?: boolean): void; -declare function addEventListener(type: "canplaythrough", listener: (ev: Event) => any, useCapture?: boolean): void; -declare function addEventListener(type: "change", listener: (ev: Event) => any, useCapture?: boolean): void; -declare function addEventListener(type: "click", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; -declare function addEventListener(type: "compassneedscalibration", listener: (ev: Event) => any, useCapture?: boolean): void; -declare function addEventListener(type: "contextmenu", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; -declare function addEventListener(type: "dblclick", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; -declare function addEventListener(type: "devicemotion", listener: (ev: DeviceMotionEvent) => any, useCapture?: boolean): void; -declare function addEventListener(type: "deviceorientation", listener: (ev: DeviceOrientationEvent) => any, useCapture?: boolean): void; -declare function addEventListener(type: "drag", listener: (ev: DragEvent) => any, useCapture?: boolean): void; -declare function addEventListener(type: "dragend", listener: (ev: DragEvent) => any, useCapture?: boolean): void; -declare function addEventListener(type: "dragenter", listener: (ev: DragEvent) => any, useCapture?: boolean): void; -declare function addEventListener(type: "dragleave", listener: (ev: DragEvent) => any, useCapture?: boolean): void; -declare function addEventListener(type: "dragover", listener: (ev: DragEvent) => any, useCapture?: boolean): void; -declare function addEventListener(type: "dragstart", listener: (ev: DragEvent) => any, useCapture?: boolean): void; -declare function addEventListener(type: "drop", listener: (ev: DragEvent) => any, useCapture?: boolean): void; -declare function addEventListener(type: "durationchange", listener: (ev: Event) => any, useCapture?: boolean): void; -declare function addEventListener(type: "emptied", listener: (ev: Event) => any, useCapture?: boolean): void; -declare function addEventListener(type: "ended", listener: (ev: Event) => any, useCapture?: boolean): void; -declare function addEventListener(type: "focus", listener: (ev: FocusEvent) => any, useCapture?: boolean): void; -declare function addEventListener(type: "hashchange", listener: (ev: HashChangeEvent) => any, useCapture?: boolean): void; -declare function addEventListener(type: "input", listener: (ev: Event) => any, useCapture?: boolean): void; -declare function addEventListener(type: "keydown", listener: (ev: KeyboardEvent) => any, useCapture?: boolean): void; -declare function addEventListener(type: "keypress", listener: (ev: KeyboardEvent) => any, useCapture?: boolean): void; -declare function addEventListener(type: "keyup", listener: (ev: KeyboardEvent) => any, useCapture?: boolean): void; -declare function addEventListener(type: "load", listener: (ev: Event) => any, useCapture?: boolean): void; -declare function addEventListener(type: "loadeddata", listener: (ev: Event) => any, useCapture?: boolean): void; -declare function addEventListener(type: "loadedmetadata", listener: (ev: Event) => any, useCapture?: boolean): void; -declare function addEventListener(type: "loadstart", listener: (ev: Event) => any, useCapture?: boolean): void; -declare function addEventListener(type: "message", listener: (ev: MessageEvent) => any, useCapture?: boolean): void; -declare function addEventListener(type: "mousedown", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; -declare function addEventListener(type: "mouseenter", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; -declare function addEventListener(type: "mouseleave", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; -declare function addEventListener(type: "mousemove", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; -declare function addEventListener(type: "mouseout", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; -declare function addEventListener(type: "mouseover", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; -declare function addEventListener(type: "mouseup", listener: (ev: MouseEvent) => any, useCapture?: boolean): void; -declare function addEventListener(type: "mousewheel", listener: (ev: MouseWheelEvent) => any, useCapture?: boolean): void; -declare function addEventListener(type: "offline", listener: (ev: Event) => any, useCapture?: boolean): void; -declare function addEventListener(type: "online", listener: (ev: Event) => any, useCapture?: boolean): void; -declare function addEventListener(type: "orientationchange", listener: (ev: Event) => any, useCapture?: boolean): void; -declare function addEventListener(type: "pagehide", listener: (ev: PageTransitionEvent) => any, useCapture?: boolean): void; -declare function addEventListener(type: "pageshow", listener: (ev: PageTransitionEvent) => any, useCapture?: boolean): void; -declare function addEventListener(type: "pause", listener: (ev: Event) => any, useCapture?: boolean): void; -declare function addEventListener(type: "play", listener: (ev: Event) => any, useCapture?: boolean): void; -declare function addEventListener(type: "playing", listener: (ev: Event) => any, useCapture?: boolean): void; -declare function addEventListener(type: "pointercancel", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; -declare function addEventListener(type: "pointerdown", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; -declare function addEventListener(type: "pointerenter", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; -declare function addEventListener(type: "pointerleave", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; -declare function addEventListener(type: "pointermove", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; -declare function addEventListener(type: "pointerout", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; -declare function addEventListener(type: "pointerover", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; -declare function addEventListener(type: "pointerup", listener: (ev: PointerEvent) => any, useCapture?: boolean): void; -declare function addEventListener(type: "popstate", listener: (ev: PopStateEvent) => any, useCapture?: boolean): void; -declare function addEventListener(type: "progress", listener: (ev: ProgressEvent) => any, useCapture?: boolean): void; -declare function addEventListener(type: "ratechange", listener: (ev: Event) => any, useCapture?: boolean): void; -declare function addEventListener(type: "readystatechange", listener: (ev: ProgressEvent) => any, useCapture?: boolean): void; -declare function addEventListener(type: "reset", listener: (ev: Event) => any, useCapture?: boolean): void; -declare function addEventListener(type: "resize", listener: (ev: UIEvent) => any, useCapture?: boolean): void; -declare function addEventListener(type: "scroll", listener: (ev: UIEvent) => any, useCapture?: boolean): void; -declare function addEventListener(type: "seeked", listener: (ev: Event) => any, useCapture?: boolean): void; -declare function addEventListener(type: "seeking", listener: (ev: Event) => any, useCapture?: boolean): void; -declare function addEventListener(type: "select", listener: (ev: UIEvent) => any, useCapture?: boolean): void; -declare function addEventListener(type: "stalled", listener: (ev: Event) => any, useCapture?: boolean): void; -declare function addEventListener(type: "storage", listener: (ev: StorageEvent) => any, useCapture?: boolean): void; -declare function addEventListener(type: "submit", listener: (ev: Event) => any, useCapture?: boolean): void; -declare function addEventListener(type: "suspend", listener: (ev: Event) => any, useCapture?: boolean): void; -declare function addEventListener(type: "timeupdate", listener: (ev: Event) => any, useCapture?: boolean): void; -declare function addEventListener(type: "unload", listener: (ev: Event) => any, useCapture?: boolean): void; -declare function addEventListener(type: "volumechange", listener: (ev: Event) => any, useCapture?: boolean): void; -declare function addEventListener(type: "waiting", listener: (ev: Event) => any, useCapture?: boolean): void; -declare function addEventListener(type: "wheel", listener: (ev: WheelEvent) => any, useCapture?: boolean): void; -declare function addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; -///////////////////////////// -/// WorkerGlobalScope APIs -///////////////////////////// -// These are only available in a Web Worker -declare function importScripts(...urls: string[]): void; - - -///////////////////////////// -/// Windows Script Host APIS -///////////////////////////// - - -interface ActiveXObject { - new (s: string): any; -} -declare var ActiveXObject: ActiveXObject; - -interface ITextWriter { - Write(s: string): void; - WriteLine(s: string): void; - Close(): void; -} - -interface TextStreamBase { - /** - * The column number of the current character position in an input stream. - */ - Column: number; - - /** - * The current line number in an input stream. - */ - Line: number; - - /** - * Closes a text stream. - * It is not necessary to close standard streams; they close automatically when the process ends. If - * you close a standard stream, be aware that any other pointers to that standard stream become invalid. - */ - Close(): void; -} - -interface TextStreamWriter extends TextStreamBase { - /** - * Sends a string to an output stream. - */ - Write(s: string): void; - - /** - * Sends a specified number of blank lines (newline characters) to an output stream. - */ - WriteBlankLines(intLines: number): void; - - /** - * Sends a string followed by a newline character to an output stream. - */ - WriteLine(s: string): void; -} - -interface TextStreamReader extends TextStreamBase { - /** - * Returns a specified number of characters from an input stream, starting at the current pointer position. - * Does not return until the ENTER key is pressed. - * Can only be used on a stream in reading mode; causes an error in writing or appending mode. - */ - Read(characters: number): string; - - /** - * Returns all characters from an input stream. - * Can only be used on a stream in reading mode; causes an error in writing or appending mode. - */ - ReadAll(): string; - - /** - * Returns an entire line from an input stream. - * Although this method extracts the newline character, it does not add it to the returned string. - * Can only be used on a stream in reading mode; causes an error in writing or appending mode. - */ - ReadLine(): string; - - /** - * Skips a specified number of characters when reading from an input text stream. - * Can only be used on a stream in reading mode; causes an error in writing or appending mode. - * @param characters Positive number of characters to skip forward. (Backward skipping is not supported.) - */ - Skip(characters: number): void; - - /** - * Skips the next line when reading from an input text stream. - * Can only be used on a stream in reading mode, not writing or appending mode. - */ - SkipLine(): void; - - /** - * Indicates whether the stream pointer position is at the end of a line. - */ - AtEndOfLine: boolean; - - /** - * Indicates whether the stream pointer position is at the end of a stream. - */ - AtEndOfStream: boolean; -} - -declare var WScript: { - /** - * Outputs text to either a message box (under WScript.exe) or the command console window followed by - * a newline (under CScript.exe). - */ - Echo(s: any): void; - - /** - * Exposes the write-only error output stream for the current script. - * Can be accessed only while using CScript.exe. - */ - StdErr: TextStreamWriter; - - /** - * Exposes the write-only output stream for the current script. - * Can be accessed only while using CScript.exe. - */ - StdOut: TextStreamWriter; - Arguments: { length: number; Item(n: number): string; }; - - /** - * The full path of the currently running script. - */ - ScriptFullName: string; - - /** - * Forces the script to stop immediately, with an optional exit code. - */ - Quit(exitCode?: number): number; - - /** - * The Windows Script Host build version number. - */ - BuildVersion: number; - - /** - * Fully qualified path of the host executable. - */ - FullName: string; - - /** - * Gets/sets the script mode - interactive(true) or batch(false). - */ - Interactive: boolean; - - /** - * The name of the host executable (WScript.exe or CScript.exe). - */ - Name: string; - - /** - * Path of the directory containing the host executable. - */ - Path: string; - - /** - * The filename of the currently running script. - */ - ScriptName: string; - - /** - * Exposes the read-only input stream for the current script. - * Can be accessed only while using CScript.exe. - */ - StdIn: TextStreamReader; - - /** - * Windows Script Host version - */ - Version: string; - - /** - * Connects a COM object's event sources to functions named with a given prefix, in the form prefix_event. - */ - ConnectObject(objEventSource: any, strPrefix: string): void; - - /** - * Creates a COM object. - * @param strProgiID - * @param strPrefix Function names in the form prefix_event will be bound to this object's COM events. - */ - CreateObject(strProgID: string, strPrefix?: string): any; - - /** - * Disconnects a COM object from its event sources. - */ - DisconnectObject(obj: any): void; - - /** - * Retrieves an existing object with the specified ProgID from memory, or creates a new one from a file. - * @param strPathname Fully qualified path to the file containing the object persisted to disk. - * For objects in memory, pass a zero-length string. - * @param strProgID - * @param strPrefix Function names in the form prefix_event will be bound to this object's COM events. - */ - GetObject(strPathname: string, strProgID?: string, strPrefix?: string): any; - - /** - * Suspends script execution for a specified length of time, then continues execution. - * @param intTime Interval (in milliseconds) to suspend script execution. - */ - Sleep(intTime: number): void; -}; - -/** - * Allows enumerating over a COM collection, which may not have indexed item access. - */ -interface Enumerator { - /** - * Returns true if the current item is the last one in the collection, or the collection is empty, - * or the current item is undefined. - */ - atEnd(): boolean; - - /** - * Returns the current item in the collection - */ - item(): T; - - /** - * Resets the current item in the collection to the first item. If there are no items in the collection, - * the current item is set to undefined. - */ - moveFirst(): void; - - /** - * Moves the current item to the next item in the collection. If the enumerator is at the end of - * the collection or the collection is empty, the current item is set to undefined. - */ - moveNext(): void; -} - -interface EnumeratorConstructor { - new (collection: any): Enumerator; - new (collection: any): Enumerator; -} - -declare var Enumerator: EnumeratorConstructor; - -/** - * Enables reading from a COM safe array, which might have an alternate lower bound, or multiple dimensions. - */ -interface VBArray { - /** - * Returns the number of dimensions (1-based). - */ - dimensions(): number; - - /** - * Takes an index for each dimension in the array, and returns the item at the corresponding location. - */ - getItem(dimension1Index: number, ...dimensionNIndexes: number[]): T; - - /** - * Returns the smallest available index for a given dimension. - * @param dimension 1-based dimension (defaults to 1) - */ - lbound(dimension?: number): number; - - /** - * Returns the largest available index for a given dimension. - * @param dimension 1-based dimension (defaults to 1) - */ - ubound(dimension?: number): number; - - /** - * Returns a Javascript array with all the elements in the VBArray. If there are multiple dimensions, - * each successive dimension is appended to the end of the array. - * Example: [[1,2,3],[4,5,6]] becomes [1,2,3,4,5,6] - */ - toArray(): T[]; -} - -interface VBArrayConstructor { - new (safeArray: any): VBArray; - new (safeArray: any): VBArray; -} - -declare var VBArray: VBArrayConstructor; From 196b6a52b7e3a7fee6dfbcadbde291c88b85a314 Mon Sep 17 00:00:00 2001 From: Jake Bailey <5341706+jakebailey@users.noreply.github.com> Date: Tue, 27 Jan 2026 10:36:03 -0800 Subject: [PATCH 02/15] dedicated FS --- src/harness/harnessLanguageService.ts | 4 +- src/harness/vfsUtil.ts | 68 ++++++++++++++++++++++++++- 2 files changed, 69 insertions(+), 3 deletions(-) diff --git a/src/harness/harnessLanguageService.ts b/src/harness/harnessLanguageService.ts index 41a3f71b14fe8..6769a90d48648 100644 --- a/src/harness/harnessLanguageService.ts +++ b/src/harness/harnessLanguageService.ts @@ -128,9 +128,9 @@ export interface LanguageServiceAdapter { getLogger(): LoggerWithInMemoryLogs | undefined; } -/** Create VFS with libs mounted at builtFolder (/.ts) */ +/** Create VFS with libs only at fourslashLibFolder */ function createLanguageServiceVfs(): vfs.FileSystem { - return vfs.createFromFileSystem(IO, /*ignoreCase*/ true, { cwd: virtualFileSystemRoot }); + return vfs.createFourslashVfs(IO, /*ignoreCase*/ true, { cwd: virtualFileSystemRoot }); } const sharedLibDocumentRegistry = ts.createDocumentRegistry(/*useCaseSensitiveFileNames*/ false, virtualFileSystemRoot); diff --git a/src/harness/vfsUtil.ts b/src/harness/vfsUtil.ts index 3a5113e0f083d..b217fb57bba95 100644 --- a/src/harness/vfsUtil.ts +++ b/src/harness/vfsUtil.ts @@ -1571,7 +1571,6 @@ function getBuiltLocal(host: FileSystemResolverHost, ignoreCase: boolean): FileS builtLocalCI = new FileSystem(/*ignoreCase*/ true, { files: { [builtFolder]: new Mount(vpath.resolve(host.getWorkspaceRoot(), "built/local"), resolver), - [fourslashLibFolder]: new Mount(vpath.resolve(host.getWorkspaceRoot(), "built/local"), resolver), [testLibFolder]: new Mount(vpath.resolve(host.getWorkspaceRoot(), "tests/lib"), resolver), [projectsFolder]: new Mount(vpath.resolve(host.getWorkspaceRoot(), "tests/projects"), resolver), [srcFolder]: {}, @@ -1589,6 +1588,73 @@ function getBuiltLocal(host: FileSystemResolverHost, ignoreCase: boolean): FileS return builtLocalCS; } +let fourslashLibsOnlyHost: FileSystemResolverHost | undefined; +let fourslashLibsOnlyCI: FileSystem | undefined; +let fourslashLibsOnlyCS: FileSystem | undefined; + +function getFourslashLibsOnly(host: FileSystemResolverHost, ignoreCase: boolean): FileSystem { + if (fourslashLibsOnlyHost !== host) { + fourslashLibsOnlyCI = undefined; + fourslashLibsOnlyCS = undefined; + fourslashLibsOnlyHost = host; + } + if (!fourslashLibsOnlyCI) { + const resolver = createResolver(host); + fourslashLibsOnlyCI = new FileSystem(/*ignoreCase*/ true, { + files: { + [fourslashLibFolder]: new Mount(vpath.resolve(host.getWorkspaceRoot(), "built/local"), resolver), + }, + cwd: "/", + meta: { defaultLibLocation: fourslashLibFolder }, + }); + fourslashLibsOnlyCI.makeReadonly(); + } + if (ignoreCase) return fourslashLibsOnlyCI; + if (!fourslashLibsOnlyCS) { + fourslashLibsOnlyCS = fourslashLibsOnlyCI.shadow(/*ignoreCase*/ false); + fourslashLibsOnlyCS.makeReadonly(); + } + return fourslashLibsOnlyCS; +} + +/** + * Creates a VFS with only libs mounted at fourslashLibFolder, suitable for fourslash tests. + */ +export function createFourslashVfs(host: FileSystemResolverHost, ignoreCase: boolean, { documents, files, cwd, time, meta }: FileSystemCreateOptions = {}): FileSystem { + const fs = getFourslashLibsOnly(host, ignoreCase).shadow(); + if (meta) { + for (const key of Object.keys(meta)) { + fs.meta.set(key, meta[key]); + } + } + if (time) { + fs.time(time); + } + if (cwd) { + fs.mkdirpSync(cwd); + fs.chdir(cwd); + } + if (documents) { + for (const document of documents) { + fs.mkdirpSync(vpath.dirname(document.file)); + fs.writeFileSync(document.file, document.text, "utf8"); + fs.filemeta(document.file).set("document", document); + // Add symlinks + const symlink = document.meta.get("symlink"); + if (symlink) { + for (const link of symlink.split(",").map(link => link.trim())) { + fs.mkdirpSync(vpath.dirname(link)); + fs.symlinkSync(vpath.resolve(fs.cwd(), document.file), link); + } + } + } + } + if (files) { + fs.apply(files); + } + return fs; +} + /* eslint-disable no-restricted-syntax */ function normalizeFileSetEntry(value: FileSet[string]) { if ( From b10f6e5030ac4497a964fc4940251825d1c0403a Mon Sep 17 00:00:00 2001 From: Jake Bailey <5341706+jakebailey@users.noreply.github.com> Date: Tue, 27 Jan 2026 11:33:28 -0800 Subject: [PATCH 03/15] fix fourslash tests, non server --- src/harness/fourslashImpl.ts | 8 +++- .../completionsStringMethods.baseline | 4 +- ...oToTypeDefinitionImportMeta.baseline.jsonc | 2 +- ...goToTypeDefinitionModifiers.baseline.jsonc | 12 ++--- .../goToTypeDefinition_Pick.baseline.jsonc | 4 +- ...oToTypeDefinition_arrayType.baseline.jsonc | 4 +- ...oTypeDefinition_promiseType.baseline.jsonc | 44 +++++++++++++++++-- .../inlayHintsInteractiveMultifile1.baseline | 6 +-- .../fourslash/addMemberInDeclarationFile.ts | 2 + ...mportingTsExtensionsPackageJsonImports1.ts | 1 + .../autoImportFileExcludePatterns2.ts | 2 + .../autoImportFileExcludePatterns3.ts | 1 + .../autoImportNoPackageJson_commonjs.ts | 1 + .../autoImportNoPackageJson_nodenext.ts | 1 + .../autoImportSameNameDefaultExported.ts | 1 + .../autoImport_node12_node_modules1.ts | 1 + tests/cases/fourslash/cloduleAsBaseClass.ts | 1 + .../fourslash/codeFixAwaitInSyncFunction13.ts | 2 + ...ixClassExtendAbstractMethodWithLongName.ts | 2 + .../fourslash/commentsInterfaceFourslash.ts | 2 + .../cases/fourslash/completionAfterAtChar.ts | 2 + ...completionAfterBackslashFollowingString.ts | 2 + tests/cases/fourslash/completionAfterBrace.ts | 2 + .../fourslash/completionAfterDotDotDot.ts | 2 + .../fourslash/completionAfterGlobalThis.ts | 2 + .../cases/fourslash/completionAfterNewline.ts | 2 + .../fourslash/completionAfterNewline2.ts | 2 + .../cases/fourslash/completionAtCaseClause.ts | 2 + .../completionEntryForUnionMethod.ts | 2 + .../fourslash/completionEntryInJsFile.ts | 1 + .../fourslash/completionForStringLiteral13.ts | 2 + ...tionForStringLiteralNonrelativeImport14.ts | 7 +-- tests/cases/fourslash/completionImportMeta.ts | 2 + .../completionInIncompleteCallExpression.ts | 2 + ...tionListAfterRegularExpressionLiteral01.ts | 2 + ...etionListAfterRegularExpressionLiteral1.ts | 2 + .../completionListAfterStringLiteral1.ts | 2 + .../completionListBuilderLocations_Modules.ts | 2 + ...stBuilderLocations_VariableDeclarations.ts | 2 + .../fourslash/completionListClassMembers.ts | 1 + ...ListDefaultTypeArgumentPositionTypeOnly.ts | 2 + .../completionListForGenericInstance1.ts | 2 + .../completionListFunctionExpression.ts | 2 + .../completionListFunctionMembers.ts | 2 + .../completionListInClassStaticBlocks.ts | 1 + .../fourslash/completionListInComments3.ts | 2 + .../completionListInExtendsClause.ts | 2 + .../completionListInFunctionDeclaration.ts | 2 + .../completionListInIndexSignature01.ts | 2 + .../completionListInIndexSignature02.ts | 2 + .../completionListInTemplateLiteralParts1.ts | 2 + ...letionListInTypeLiteralInTypeParameter9.ts | 2 + ...onListInTypeParameterOfClassExpression1.ts | 2 + .../completionListInvalidMemberNames2.ts | 2 + .../completionListIsGlobalCompletion.ts | 2 + .../fourslash/completionListOnAliases2.ts | 2 + .../fourslash/completionListStaticMembers.ts | 2 + .../completionListStaticProtectedMembers2.ts | 2 + .../completionListStaticProtectedMembers3.ts | 2 + .../completionListStaticProtectedMembers4.ts | 2 + .../fourslash/completionNoParentLocation.ts | 2 + .../fourslash/completionOfInterfaceAndVar.ts | 2 + ...letionPropertyShorthandForObjectLiteral.ts | 2 + ...etionPropertyShorthandForObjectLiteral2.ts | 2 + ...etionPropertyShorthandForObjectLiteral3.ts | 2 + ...etionPropertyShorthandForObjectLiteral4.ts | 2 + .../fourslash/completionTypeAssertion.ts | 2 + tests/cases/fourslash/completionTypeGuard.ts | 2 + .../completionsAtGenericTypeArguments.ts | 2 + .../completionsClassPropertiesAssignment.ts | 2 + .../fourslash/completionsCommentsClass.ts | 2 + .../completionsCommentsClassMembers.ts | 2 + .../completionsCommentsCommentParsing.ts | 2 + .../completionsCommentsFunctionDeclaration.ts | 2 + .../completionsCommentsFunctionExpression.ts | 2 + .../completionsCommitCharactersAfterDot.ts | 2 + .../completionsCommitCharactersGlobal.ts | 2 + .../fourslash/completionsExportImport.ts | 2 + .../fourslash/completionsImportWithKeyword.ts | 1 + .../fourslash/completionsImport_ambient.ts | 1 + .../fourslash/completionsImport_asKeyword.ts | 2 + .../completionsImport_default_reExport.ts | 1 + ...pletionsImport_duplicatePackages_scoped.ts | 1 + ...onsImport_duplicatePackages_scopedTypes.ts | 1 + ...uplicatePackages_scopedTypesAndNotTypes.ts | 1 + ...mpletionsImport_duplicatePackages_types.ts | 1 + ...port_duplicatePackages_typesAndNotTypes.ts | 1 + .../completionsImport_exportEquals_global.ts | 1 + ...onsImport_filteredByPackageJson_ambient.ts | 1 + .../fourslash/completionsImport_keywords.ts | 2 + ...ionsImport_preferUpdatingExistingImport.ts | 1 + .../completionsImport_promoteTypeOnly1.ts | 1 + .../completionsImport_reExportDefault.ts | 1 + .../completionsImport_reExportDefault2.ts | 1 + .../completionsImport_reexportTransient.ts | 1 + .../completionsImport_satisfiesKeyword.ts | 2 + ...pletionsImport_uriStyleNodeCoreModules1.ts | 1 + ...pletionsImport_uriStyleNodeCoreModules2.ts | 1 + ...pletionsImport_uriStyleNodeCoreModules3.ts | 1 + .../completionsInitializerCommitCharacter.ts | 2 + .../fourslash/completionsJSDocNoCrash2.ts | 1 + .../completionsJsdocParamTypeBeforeName.ts | 3 ++ .../completionsMergedDeclarations1.ts | 2 + .../completionsNamespaceMergedWithClass.ts | 2 + .../fourslash/completionsPaths_importType.ts | 5 +-- .../fourslash/completionsSelfDeclaring2.ts | 2 + .../fourslash/completionsStringMethods.ts | 2 + ...ompletionsThisProperties_globalSameName.ts | 2 + .../completionsTypeAssertionKeywords.ts | 2 + .../completionsWithDeprecatedTag5.ts | 2 + .../completionsWritingSpreadArgument.ts | 2 + .../fourslash/exhaustiveCaseCompletions3.ts | 1 + .../fourslash/exhaustiveCaseCompletions4.ts | 1 + .../fourslash/exhaustiveCaseCompletions9.ts | 1 + .../fourslash/exportEqualCallableInterface.ts | 2 + tests/cases/fourslash/exportEqualTypes.ts | 1 + .../externalModuleWithExportAssignment.ts | 2 + .../findAllReferencesDynamicImport1.ts | 2 + ...dAllRefsWithShorthandPropertyAssignment.ts | 2 + tests/cases/fourslash/functionTypes.ts | 1 + .../fourslash/getCompletionEntryDetails2.ts | 2 + .../fourslash/getJavaScriptCompletions20.ts | 1 + ...lobalCompletionListInsideObjectLiterals.ts | 2 + .../fourslash/goToDefinitionInstanceof1.ts | 2 + .../goToDefinitionShorthandProperty01.ts | 2 + .../fourslash/goToTypeDefinitionImportMeta.ts | 1 + .../fourslash/goToTypeDefinitionModifiers.ts | 2 + .../fourslash/goToTypeDefinition_Pick.ts | 2 + .../fourslash/goToTypeDefinition_arrayType.ts | 2 + .../goToTypeDefinition_promiseType.ts | 2 + .../fourslash/importNameCodeFixJsEnding.ts | 1 + .../cases/fourslash/importNameCodeFix_jsx2.ts | 1 + .../cases/fourslash/importNameCodeFix_jsx3.ts | 1 + .../cases/fourslash/importNameCodeFix_jsx5.ts | 1 + .../cases/fourslash/importNameCodeFix_jsx6.ts | 1 + ...meCodeFix_noDestructureNonObjectLiteral.ts | 1 + .../incorrectJsDocObjectLiteralType.ts | 2 + ...tionExpressionAboveInterfaceDeclaration.ts | 2 + .../inlayHintsInteractiveMultifile1.ts | 2 + .../jsDocFunctionTypeCompletionsNoCrash.ts | 2 + .../cases/fourslash/jsDocTypeTagQuickInfo1.ts | 1 + .../cases/fourslash/jsDocTypeTagQuickInfo2.ts | 1 + ...sdocTypedefTagTypeExpressionCompletion3.ts | 1 + .../fourslash/jsdocExtendsTagCompletion.ts | 2 + .../fourslash/jsdocImplementsTagCompletion.ts | 2 + .../fourslash/jsdocPropertyTagCompletion.ts | 2 + .../fourslash/jsdocSatisfiesTagCompletion1.ts | 1 + .../fourslash/jsdocTemplateTagCompletion.ts | 2 + .../fourslash/jsdocThrowsTagCompletion.ts | 2 + ...jsdocTypedefTagTypeExpressionCompletion.ts | 2 + .../fourslash/memberCompletionInForEach1.ts | 2 + .../fourslash/memberListOnConstructorType.ts | 2 + tests/cases/fourslash/multiModuleClodule.ts | 2 + tests/cases/fourslash/navigateToIIFE.ts | 2 + tests/cases/fourslash/navigateToImport.ts | 2 + .../fourslash/navigateToSymbolIterator.ts | 2 + .../fourslash/navigationItemsExactMatch2.ts | 2 + .../fourslash/navigationItemsOverloads1.ts | 2 + .../navigationItemsOverloadsBroken1.ts | 2 + .../navigationItemsOverloadsBroken2.ts | 2 + .../fourslash/navigationItemsPrefixMatch2.ts | 2 + .../navigationItemsSubStringMatch.ts | 2 + .../navigationItemsSubStringMatch2.ts | 2 + tests/cases/fourslash/nonExistingImport.ts | 2 + tests/cases/fourslash/quickInfoMeaning.ts | 2 + .../fourslash/quickinfoVerbosityLibType.ts | 2 + .../quickinfoVerbosityRecursiveType.ts | 2 + .../cases/fourslash/referencesForModifiers.ts | 2 + ...renameBindingElementInitializerExternal.ts | 2 + ...ticModernClassificationConstructorTypes.ts | 2 + .../semanticModernClassificationFunctions.ts | 2 + .../fourslash/tsxCompletionNonTagLessThan.ts | 18 ++++---- .../tsxCompletionOnOpeningTagWithoutJSX1.ts | 2 + 173 files changed, 358 insertions(+), 35 deletions(-) diff --git a/src/harness/fourslashImpl.ts b/src/harness/fourslashImpl.ts index 4c0578ab6e207..0c91f36e78524 100644 --- a/src/harness/fourslashImpl.ts +++ b/src/harness/fourslashImpl.ts @@ -513,7 +513,13 @@ export class TestState { } private tryGetFileContent(fileName: string): string | undefined { const script = this.languageServiceAdapterHost.getScriptInfo(fileName); - return script && script.content; + if (script) return script.content; + try { + return this.languageServiceAdapterHost.vfs.readFileSync(fileName, "utf8"); + } + catch { + return undefined; + } } // Entry points from fourslash.ts diff --git a/tests/baselines/reference/completionsStringMethods.baseline b/tests/baselines/reference/completionsStringMethods.baseline index bf00835b43760..3935df481ea3b 100644 --- a/tests/baselines/reference/completionsStringMethods.baseline +++ b/tests/baselines/reference/completionsStringMethods.baseline @@ -1120,7 +1120,7 @@ "text": "searchValue", "kind": "linkName", "target": { - "fileName": "lib.d.ts", + "fileName": "/home/src/tslibs/TS/Lib/lib.es5.d.ts", "textSpan": { "start": "--", "length": "--" @@ -1143,7 +1143,7 @@ "text": "searchValue", "kind": "linkName", "target": { - "fileName": "lib.d.ts", + "fileName": "/home/src/tslibs/TS/Lib/lib.es5.d.ts", "textSpan": { "start": "--", "length": "--" diff --git a/tests/baselines/reference/goToTypeDefinitionImportMeta.baseline.jsonc b/tests/baselines/reference/goToTypeDefinitionImportMeta.baseline.jsonc index 2e03384c8bcc9..afbc94b2a8ef5 100644 --- a/tests/baselines/reference/goToTypeDefinitionImportMeta.baseline.jsonc +++ b/tests/baselines/reference/goToTypeDefinitionImportMeta.baseline.jsonc @@ -1,5 +1,5 @@ // === goToType === -// === lib.d.ts === +// === /home/src/tslibs/TS/Lib/lib.es5.d.ts === // --- (line: --) skipped --- // * If you need to declare that a given property exists on `import.meta`, // * this type may be augmented via interface merging. diff --git a/tests/baselines/reference/goToTypeDefinitionModifiers.baseline.jsonc b/tests/baselines/reference/goToTypeDefinitionModifiers.baseline.jsonc index 0971205dbcaaf..f8abf5ad19c26 100644 --- a/tests/baselines/reference/goToTypeDefinitionModifiers.baseline.jsonc +++ b/tests/baselines/reference/goToTypeDefinitionModifiers.baseline.jsonc @@ -187,7 +187,7 @@ // === goToType === -// === lib.d.ts === +// === /home/src/tslibs/TS/Lib/lib.es5.d.ts === // --- (line: --) skipped --- // /** // * Represents the completion of an asynchronous operation @@ -240,7 +240,7 @@ // === goToType === -// === lib.d.ts === +// === /home/src/tslibs/TS/Lib/lib.es5.d.ts === // --- (line: --) skipped --- // /** // * Represents the completion of an asynchronous operation @@ -347,7 +347,7 @@ // === goToType === -// === lib.d.ts === +// === /home/src/tslibs/TS/Lib/lib.es5.d.ts === // --- (line: --) skipped --- // /** // * Represents the completion of an asynchronous operation @@ -399,7 +399,7 @@ // === goToType === -// === lib.d.ts === +// === /home/src/tslibs/TS/Lib/lib.es5.d.ts === // --- (line: --) skipped --- // /** // * Represents the completion of an asynchronous operation @@ -451,7 +451,7 @@ // === goToType === -// === lib.d.ts === +// === /home/src/tslibs/TS/Lib/lib.es5.d.ts === // --- (line: --) skipped --- // /** // * Represents the completion of an asynchronous operation @@ -503,7 +503,7 @@ // === goToType === -// === lib.d.ts === +// === /home/src/tslibs/TS/Lib/lib.es5.d.ts === // --- (line: --) skipped --- // /** // * Represents the completion of an asynchronous operation diff --git a/tests/baselines/reference/goToTypeDefinition_Pick.baseline.jsonc b/tests/baselines/reference/goToTypeDefinition_Pick.baseline.jsonc index 2765d9876b1a3..b3bf63d6f4b47 100644 --- a/tests/baselines/reference/goToTypeDefinition_Pick.baseline.jsonc +++ b/tests/baselines/reference/goToTypeDefinition_Pick.baseline.jsonc @@ -8,7 +8,7 @@ // declare const user2: PickedUser // user2 -// === lib.d.ts === +// === /home/src/tslibs/TS/Lib/lib.es5.d.ts === // --- (line: --) skipped --- // /** // * From T, pick a set of properties whose keys are in the union K @@ -57,7 +57,7 @@ // declare const user2: PickedUser // /*GOTO TYPE*/user2 -// === lib.d.ts === +// === /home/src/tslibs/TS/Lib/lib.es5.d.ts === // --- (line: --) skipped --- // /** // * From T, pick a set of properties whose keys are in the union K diff --git a/tests/baselines/reference/goToTypeDefinition_arrayType.baseline.jsonc b/tests/baselines/reference/goToTypeDefinition_arrayType.baseline.jsonc index 1cd2c60375f26..0330ae276a185 100644 --- a/tests/baselines/reference/goToTypeDefinition_arrayType.baseline.jsonc +++ b/tests/baselines/reference/goToTypeDefinition_arrayType.baseline.jsonc @@ -8,7 +8,7 @@ // declare const users2: UsersArr // --- (line: 7) skipped --- -// === lib.d.ts === +// === /home/src/tslibs/TS/Lib/lib.es5.d.ts === // --- (line: --) skipped --- // slice(start?: number, end?: number): T[]; // } @@ -265,7 +265,7 @@ // declare const users3: CustomArray // users3 -// === lib.d.ts === +// === /home/src/tslibs/TS/Lib/lib.es5.d.ts === // --- (line: --) skipped --- // slice(start?: number, end?: number): T[]; // } diff --git a/tests/baselines/reference/goToTypeDefinition_promiseType.baseline.jsonc b/tests/baselines/reference/goToTypeDefinition_promiseType.baseline.jsonc index f84caf2e46250..58ed625e78a5d 100644 --- a/tests/baselines/reference/goToTypeDefinition_promiseType.baseline.jsonc +++ b/tests/baselines/reference/goToTypeDefinition_promiseType.baseline.jsonc @@ -7,7 +7,7 @@ // // export {} -// === lib.d.ts === +// === /home/src/tslibs/TS/Lib/lib.es5.d.ts === // --- (line: --) skipped --- // /** // * Represents the completion of an asynchronous operation @@ -33,6 +33,14 @@ // * Recursively unwraps the "awaited type" of a type. Non-promise "thenables" should resolve to `never`. This emulates the behavior of `await`. // --- (line: --) skipped --- +// === /home/src/tslibs/TS/Lib/lib.es2015.promise.d.ts === +// --- (line: --) skipped --- +// resolve(value: T | PromiseLike): Promise>; +// } +// +// <|declare var [|{| defId: 2 |}Promise|]: PromiseConstructor;|> +// + // === Details === [ { @@ -47,7 +55,17 @@ }, { "defId": 1, - "kind": "interface", + "kind": "var", + "name": "Promise", + "containerName": "", + "isLocal": false, + "isAmbient": true, + "unverified": false, + "failedAliasResolution": false + }, + { + "defId": 2, + "kind": "var", "name": "Promise", "containerName": "", "isLocal": false, @@ -68,7 +86,7 @@ // // export {} -// === lib.d.ts === +// === /home/src/tslibs/TS/Lib/lib.es5.d.ts === // --- (line: --) skipped --- // /** // * Represents the completion of an asynchronous operation @@ -94,6 +112,14 @@ // * Recursively unwraps the "awaited type" of a type. Non-promise "thenables" should resolve to `never`. This emulates the behavior of `await`. // --- (line: --) skipped --- +// === /home/src/tslibs/TS/Lib/lib.es2015.promise.d.ts === +// --- (line: --) skipped --- +// resolve(value: T | PromiseLike): Promise>; +// } +// +// <|declare var [|{| defId: 2 |}Promise|]: PromiseConstructor;|> +// + // === Details === [ { @@ -108,7 +134,17 @@ }, { "defId": 1, - "kind": "interface", + "kind": "var", + "name": "Promise", + "containerName": "", + "isLocal": false, + "isAmbient": true, + "unverified": false, + "failedAliasResolution": false + }, + { + "defId": 2, + "kind": "var", "name": "Promise", "containerName": "", "isLocal": false, diff --git a/tests/baselines/reference/inlayHintsInteractiveMultifile1.baseline b/tests/baselines/reference/inlayHintsInteractiveMultifile1.baseline index df760582ca2de..4bdab84121cf7 100644 --- a/tests/baselines/reference/inlayHintsInteractiveMultifile1.baseline +++ b/tests/baselines/reference/inlayHintsInteractiveMultifile1.baseline @@ -13,7 +13,7 @@ async function foo () { "start": -1, "length": 7 }, - "file": "lib.d.ts" + "file": "/home/src/tslibs/TS/Lib/lib.es5.d.ts" }, { "text": "<" @@ -49,7 +49,7 @@ function bar () { return import('./a') } "start": -1, "length": 7 }, - "file": "lib.d.ts" + "file": "/home/src/tslibs/TS/Lib/lib.es5.d.ts" }, { "text": "<" @@ -89,7 +89,7 @@ async function main () { "start": -1, "length": 7 }, - "file": "lib.d.ts" + "file": "/home/src/tslibs/TS/Lib/lib.es5.d.ts" }, { "text": "<" diff --git a/tests/cases/fourslash/addMemberInDeclarationFile.ts b/tests/cases/fourslash/addMemberInDeclarationFile.ts index 1d2e900512db8..a8558bfaa76b3 100644 --- a/tests/cases/fourslash/addMemberInDeclarationFile.ts +++ b/tests/cases/fourslash/addMemberInDeclarationFile.ts @@ -1,5 +1,7 @@ /// +// @lib: es5 + // @Filename: ./declarations.d.ts //// interface Response {} diff --git a/tests/cases/fourslash/autoImportAllowImportingTsExtensionsPackageJsonImports1.ts b/tests/cases/fourslash/autoImportAllowImportingTsExtensionsPackageJsonImports1.ts index 6b6a7e21a9951..24a151868f6c2 100644 --- a/tests/cases/fourslash/autoImportAllowImportingTsExtensionsPackageJsonImports1.ts +++ b/tests/cases/fourslash/autoImportAllowImportingTsExtensionsPackageJsonImports1.ts @@ -1,5 +1,6 @@ /// +// @lib: es5 // @module: node18 // @allowImportingTsExtensions: true diff --git a/tests/cases/fourslash/autoImportFileExcludePatterns2.ts b/tests/cases/fourslash/autoImportFileExcludePatterns2.ts index 8c5296189a2cd..e40f9f3654fd1 100644 --- a/tests/cases/fourslash/autoImportFileExcludePatterns2.ts +++ b/tests/cases/fourslash/autoImportFileExcludePatterns2.ts @@ -1,5 +1,7 @@ /// +// @lib: es5 + // @Filename: /lib/components/button/Button.ts //// export function Button() {} diff --git a/tests/cases/fourslash/autoImportFileExcludePatterns3.ts b/tests/cases/fourslash/autoImportFileExcludePatterns3.ts index 8f8ff5d4a1ed7..1795d74facafd 100644 --- a/tests/cases/fourslash/autoImportFileExcludePatterns3.ts +++ b/tests/cases/fourslash/autoImportFileExcludePatterns3.ts @@ -1,5 +1,6 @@ /// +// @lib: es5 // @module: commonjs // @Filename: /ambient1.d.ts diff --git a/tests/cases/fourslash/autoImportNoPackageJson_commonjs.ts b/tests/cases/fourslash/autoImportNoPackageJson_commonjs.ts index 1d9a0ad323303..0251e33d42ad1 100644 --- a/tests/cases/fourslash/autoImportNoPackageJson_commonjs.ts +++ b/tests/cases/fourslash/autoImportNoPackageJson_commonjs.ts @@ -1,5 +1,6 @@ /// +// @lib: es5 // @module: commonjs // @Filename: /node_modules/lit/index.d.cts diff --git a/tests/cases/fourslash/autoImportNoPackageJson_nodenext.ts b/tests/cases/fourslash/autoImportNoPackageJson_nodenext.ts index 364025a999123..ce18cbf6e7f3f 100644 --- a/tests/cases/fourslash/autoImportNoPackageJson_nodenext.ts +++ b/tests/cases/fourslash/autoImportNoPackageJson_nodenext.ts @@ -1,5 +1,6 @@ /// +// @lib: es5 // @module: node18 // @Filename: /node_modules/lit/index.d.cts diff --git a/tests/cases/fourslash/autoImportSameNameDefaultExported.ts b/tests/cases/fourslash/autoImportSameNameDefaultExported.ts index aad12f9cca54f..da36e13f88135 100644 --- a/tests/cases/fourslash/autoImportSameNameDefaultExported.ts +++ b/tests/cases/fourslash/autoImportSameNameDefaultExported.ts @@ -1,5 +1,6 @@ /// +// @lib: es5 // @module: commonjs // @Filename: /node_modules/antd/index.d.ts diff --git a/tests/cases/fourslash/autoImport_node12_node_modules1.ts b/tests/cases/fourslash/autoImport_node12_node_modules1.ts index 80a9e1573113b..0c90dde666a12 100644 --- a/tests/cases/fourslash/autoImport_node12_node_modules1.ts +++ b/tests/cases/fourslash/autoImport_node12_node_modules1.ts @@ -1,5 +1,6 @@ /// +// @lib: es5 // @module: node16 // @Filename: /node_modules/undici/index.d.ts diff --git a/tests/cases/fourslash/cloduleAsBaseClass.ts b/tests/cases/fourslash/cloduleAsBaseClass.ts index fab294793393f..d4881c27e107c 100644 --- a/tests/cases/fourslash/cloduleAsBaseClass.ts +++ b/tests/cases/fourslash/cloduleAsBaseClass.ts @@ -1,5 +1,6 @@ /// +// @lib: es5 // @strict: false ////class A { //// constructor(x: number) { } diff --git a/tests/cases/fourslash/codeFixAwaitInSyncFunction13.ts b/tests/cases/fourslash/codeFixAwaitInSyncFunction13.ts index 57fb74a4fe091..a1fc9b722936f 100644 --- a/tests/cases/fourslash/codeFixAwaitInSyncFunction13.ts +++ b/tests/cases/fourslash/codeFixAwaitInSyncFunction13.ts @@ -1,5 +1,7 @@ /// +// @lib: es5 + ////const f: () => Promise = () => { //// await Promise.resolve('foo'); ////} diff --git a/tests/cases/fourslash/codeFixClassExtendAbstractMethodWithLongName.ts b/tests/cases/fourslash/codeFixClassExtendAbstractMethodWithLongName.ts index 313b85657312c..7ca369c20761c 100644 --- a/tests/cases/fourslash/codeFixClassExtendAbstractMethodWithLongName.ts +++ b/tests/cases/fourslash/codeFixClassExtendAbstractMethodWithLongName.ts @@ -1,5 +1,7 @@ /// +// @lib: es5 + ////namespace some.really.long.generated.type.goes.here.you.know.this_.should.be.pretty.simple { //// export interface Yah {} ////} diff --git a/tests/cases/fourslash/commentsInterfaceFourslash.ts b/tests/cases/fourslash/commentsInterfaceFourslash.ts index 9501e9ba28723..aa06e3ccaab7f 100644 --- a/tests/cases/fourslash/commentsInterfaceFourslash.ts +++ b/tests/cases/fourslash/commentsInterfaceFourslash.ts @@ -1,5 +1,7 @@ /// +// @lib: es5 + /////** this is interface 1*/ ////interface i/*1*/1 { ////} diff --git a/tests/cases/fourslash/completionAfterAtChar.ts b/tests/cases/fourslash/completionAfterAtChar.ts index dbdfc89a27ca6..b6552527d250b 100644 --- a/tests/cases/fourslash/completionAfterAtChar.ts +++ b/tests/cases/fourslash/completionAfterAtChar.ts @@ -1,5 +1,7 @@ /// +// @lib: es5 + ////@a/**/ verify.completions({ marker: "", exact: completion.globals }); diff --git a/tests/cases/fourslash/completionAfterBackslashFollowingString.ts b/tests/cases/fourslash/completionAfterBackslashFollowingString.ts index f3b1b6b195bf1..fc4255d96f6f0 100644 --- a/tests/cases/fourslash/completionAfterBackslashFollowingString.ts +++ b/tests/cases/fourslash/completionAfterBackslashFollowingString.ts @@ -1,5 +1,7 @@ /// +// @lib: es5 + ////Harness.newLine = ""\n/**/ verify.completions({ marker: "", exact: completion.globals }); diff --git a/tests/cases/fourslash/completionAfterBrace.ts b/tests/cases/fourslash/completionAfterBrace.ts index b9951459137c1..0401b0aff996e 100644 --- a/tests/cases/fourslash/completionAfterBrace.ts +++ b/tests/cases/fourslash/completionAfterBrace.ts @@ -1,5 +1,7 @@ /// +// @lib: es5 + //// //// }/**/ //// diff --git a/tests/cases/fourslash/completionAfterDotDotDot.ts b/tests/cases/fourslash/completionAfterDotDotDot.ts index fc9ab05bbaede..8dc9af83d5e4c 100644 --- a/tests/cases/fourslash/completionAfterDotDotDot.ts +++ b/tests/cases/fourslash/completionAfterDotDotDot.ts @@ -1,5 +1,7 @@ /// +// @lib: es5 + ////.../**/ verify.completions({ marker: "", exact: completion.globals }); diff --git a/tests/cases/fourslash/completionAfterGlobalThis.ts b/tests/cases/fourslash/completionAfterGlobalThis.ts index f1c8aa59302f1..6c193ef3adc73 100644 --- a/tests/cases/fourslash/completionAfterGlobalThis.ts +++ b/tests/cases/fourslash/completionAfterGlobalThis.ts @@ -1,5 +1,7 @@ /// +// @lib: es5 + ////globalThis./**/ verify.completions({ diff --git a/tests/cases/fourslash/completionAfterNewline.ts b/tests/cases/fourslash/completionAfterNewline.ts index 94637a9fd9b41..ec88be07df995 100644 --- a/tests/cases/fourslash/completionAfterNewline.ts +++ b/tests/cases/fourslash/completionAfterNewline.ts @@ -1,5 +1,7 @@ /// +// @lib: es5 + // issue: https://github.com/microsoft/TypeScript/issues/54729 // Tests that `isCompletionListBlocker` returns true at position 1, and returns false after a newline. diff --git a/tests/cases/fourslash/completionAfterNewline2.ts b/tests/cases/fourslash/completionAfterNewline2.ts index 495800ce17875..f50d2a2698c69 100644 --- a/tests/cases/fourslash/completionAfterNewline2.ts +++ b/tests/cases/fourslash/completionAfterNewline2.ts @@ -1,5 +1,7 @@ /// +// @lib: es5 + // issue: https://github.com/microsoft/TypeScript/issues/54729 // Tests that `isCompletionListBlocker` returns true at position 1, and returns false after a newline. diff --git a/tests/cases/fourslash/completionAtCaseClause.ts b/tests/cases/fourslash/completionAtCaseClause.ts index 48c5a1c465856..17582373978b4 100644 --- a/tests/cases/fourslash/completionAtCaseClause.ts +++ b/tests/cases/fourslash/completionAtCaseClause.ts @@ -1,5 +1,7 @@ /// +// @lib: es5 + ////case /**/ verify.completions({ marker: "", exact: completion.globals }); diff --git a/tests/cases/fourslash/completionEntryForUnionMethod.ts b/tests/cases/fourslash/completionEntryForUnionMethod.ts index 48dce525f32b2..402559018d296 100644 --- a/tests/cases/fourslash/completionEntryForUnionMethod.ts +++ b/tests/cases/fourslash/completionEntryForUnionMethod.ts @@ -1,5 +1,7 @@ /// +// @lib: es5 + ////var y: Array|Array; ////y.map/**/( diff --git a/tests/cases/fourslash/completionEntryInJsFile.ts b/tests/cases/fourslash/completionEntryInJsFile.ts index 3d7acf8ad4357..dd0a9c8cd2535 100644 --- a/tests/cases/fourslash/completionEntryInJsFile.ts +++ b/tests/cases/fourslash/completionEntryInJsFile.ts @@ -1,5 +1,6 @@ /// +// @lib: es5 // @allowJs: true // @Filename: /Foo.js //// /*global*/ diff --git a/tests/cases/fourslash/completionForStringLiteral13.ts b/tests/cases/fourslash/completionForStringLiteral13.ts index 5e3c7a56a2e26..5e0d12f3bf706 100644 --- a/tests/cases/fourslash/completionForStringLiteral13.ts +++ b/tests/cases/fourslash/completionForStringLiteral13.ts @@ -1,5 +1,7 @@ /// +// @lib: es5 + ////interface SymbolConstructor { //// readonly species: symbol; ////} diff --git a/tests/cases/fourslash/completionForStringLiteralNonrelativeImport14.ts b/tests/cases/fourslash/completionForStringLiteralNonrelativeImport14.ts index e3bc4eccdc1f2..8f7423650efc5 100644 --- a/tests/cases/fourslash/completionForStringLiteralNonrelativeImport14.ts +++ b/tests/cases/fourslash/completionForStringLiteralNonrelativeImport14.ts @@ -5,6 +5,7 @@ // @Filename: tsconfig.json //// { //// "compilerOptions": { +//// "lib": ["es5"], //// "baseUrl": "./modules", //// "paths": { //// "/module1": ["some/path/whatever.ts"], @@ -27,7 +28,7 @@ verify.completions({ marker: ["import_as0",], - exact: ["lib", "lib.decorators", "lib.decorators.legacy", "tests", + exact: ["home", "tests", { name: "/module1", replacementSpan: { @@ -50,7 +51,7 @@ verify.completions({ verify.completions({ marker: ["import_equals0",], - exact: ["lib", "lib.decorators", "lib.decorators.legacy", "tests", + exact: ["home", "tests", { name: "/module1", replacementSpan: { @@ -72,7 +73,7 @@ verify.completions({ verify.completions({ marker: ["require0",], - exact: ["lib", "lib.decorators", "lib.decorators.legacy", "tests", + exact: ["home", "tests", { name: "/module1", replacementSpan: { diff --git a/tests/cases/fourslash/completionImportMeta.ts b/tests/cases/fourslash/completionImportMeta.ts index 255c1aa569af1..08f241e1079ad 100644 --- a/tests/cases/fourslash/completionImportMeta.ts +++ b/tests/cases/fourslash/completionImportMeta.ts @@ -1,5 +1,7 @@ /// +// @lib: es5 + // @Filename: a.ts ////import./*1*/ diff --git a/tests/cases/fourslash/completionInIncompleteCallExpression.ts b/tests/cases/fourslash/completionInIncompleteCallExpression.ts index eb24d0abce699..947c0c44c5d97 100644 --- a/tests/cases/fourslash/completionInIncompleteCallExpression.ts +++ b/tests/cases/fourslash/completionInIncompleteCallExpression.ts @@ -1,5 +1,7 @@ /// +// @lib: es5 + ////var array = [1, 2, 4] ////function a4(x, y, z) { } ////a4(.../**/ diff --git a/tests/cases/fourslash/completionListAfterRegularExpressionLiteral01.ts b/tests/cases/fourslash/completionListAfterRegularExpressionLiteral01.ts index 9451280e237b1..b4f7f21d72431 100644 --- a/tests/cases/fourslash/completionListAfterRegularExpressionLiteral01.ts +++ b/tests/cases/fourslash/completionListAfterRegularExpressionLiteral01.ts @@ -1,5 +1,7 @@ /// +// @lib: es5 + ////let v = 100; /////a/./**/ diff --git a/tests/cases/fourslash/completionListAfterRegularExpressionLiteral1.ts b/tests/cases/fourslash/completionListAfterRegularExpressionLiteral1.ts index 872b216462510..119ea4103b26f 100644 --- a/tests/cases/fourslash/completionListAfterRegularExpressionLiteral1.ts +++ b/tests/cases/fourslash/completionListAfterRegularExpressionLiteral1.ts @@ -1,5 +1,7 @@ /// +// @lib: es5 + /////a/./**/ verify.completions({ diff --git a/tests/cases/fourslash/completionListAfterStringLiteral1.ts b/tests/cases/fourslash/completionListAfterStringLiteral1.ts index 51b5903be0193..29252bdbb3525 100644 --- a/tests/cases/fourslash/completionListAfterStringLiteral1.ts +++ b/tests/cases/fourslash/completionListAfterStringLiteral1.ts @@ -1,5 +1,7 @@ /// +// @lib: es5 + ////"a"./**/ verify.completions({ diff --git a/tests/cases/fourslash/completionListBuilderLocations_Modules.ts b/tests/cases/fourslash/completionListBuilderLocations_Modules.ts index 29530ccbdef53..60a4ea74051d8 100644 --- a/tests/cases/fourslash/completionListBuilderLocations_Modules.ts +++ b/tests/cases/fourslash/completionListBuilderLocations_Modules.ts @@ -1,5 +1,7 @@ /// +// @lib: es5 + ////module A/*moduleName1*/ diff --git a/tests/cases/fourslash/completionListBuilderLocations_VariableDeclarations.ts b/tests/cases/fourslash/completionListBuilderLocations_VariableDeclarations.ts index bae2812d9c776..a8522200d4711 100644 --- a/tests/cases/fourslash/completionListBuilderLocations_VariableDeclarations.ts +++ b/tests/cases/fourslash/completionListBuilderLocations_VariableDeclarations.ts @@ -1,5 +1,7 @@ /// +// @lib: es5 + ////var x = a/*var1*/ ////var x = (b/*var2*/ diff --git a/tests/cases/fourslash/completionListClassMembers.ts b/tests/cases/fourslash/completionListClassMembers.ts index 9e7c920ca1cf6..52569f7926929 100644 --- a/tests/cases/fourslash/completionListClassMembers.ts +++ b/tests/cases/fourslash/completionListClassMembers.ts @@ -1,5 +1,6 @@ /// +// @lib: es5 ////class Class { //// private privateInstanceMethod() { } diff --git a/tests/cases/fourslash/completionListDefaultTypeArgumentPositionTypeOnly.ts b/tests/cases/fourslash/completionListDefaultTypeArgumentPositionTypeOnly.ts index d42049c5eccd6..28949ea662e16 100644 --- a/tests/cases/fourslash/completionListDefaultTypeArgumentPositionTypeOnly.ts +++ b/tests/cases/fourslash/completionListDefaultTypeArgumentPositionTypeOnly.ts @@ -1,5 +1,7 @@ /// +// @lib: es5 + //// const foo = "foo"; //// function test1() {} diff --git a/tests/cases/fourslash/completionListForGenericInstance1.ts b/tests/cases/fourslash/completionListForGenericInstance1.ts index 718b90ca65c22..ba141dc828aa4 100644 --- a/tests/cases/fourslash/completionListForGenericInstance1.ts +++ b/tests/cases/fourslash/completionListForGenericInstance1.ts @@ -1,5 +1,7 @@ /// +// @lib: es5 + ////interface Iterator { //// (value: T, index: any, list: any): U ////} diff --git a/tests/cases/fourslash/completionListFunctionExpression.ts b/tests/cases/fourslash/completionListFunctionExpression.ts index 4b7f75dc6e0f3..bb131ed93328e 100644 --- a/tests/cases/fourslash/completionListFunctionExpression.ts +++ b/tests/cases/fourslash/completionListFunctionExpression.ts @@ -1,5 +1,7 @@ /// +// @lib: es5 + ////class DataHandler { //// dataArray: Uint8Array; //// loadData(filename) { diff --git a/tests/cases/fourslash/completionListFunctionMembers.ts b/tests/cases/fourslash/completionListFunctionMembers.ts index f53b66b1c0310..5da69c269c630 100644 --- a/tests/cases/fourslash/completionListFunctionMembers.ts +++ b/tests/cases/fourslash/completionListFunctionMembers.ts @@ -1,5 +1,7 @@ /// +// @lib: es5 + ////function fnc1() { //// var bar = 1; //// function foob(){ } diff --git a/tests/cases/fourslash/completionListInClassStaticBlocks.ts b/tests/cases/fourslash/completionListInClassStaticBlocks.ts index c4e1147cb83a8..6f3dd2989b8cc 100644 --- a/tests/cases/fourslash/completionListInClassStaticBlocks.ts +++ b/tests/cases/fourslash/completionListInClassStaticBlocks.ts @@ -1,5 +1,6 @@ /// +// @lib: es5 // @target: esnext ////class Foo { //// static #a = 1; diff --git a/tests/cases/fourslash/completionListInComments3.ts b/tests/cases/fourslash/completionListInComments3.ts index a874ab8e953e1..b5b7d462770e2 100644 --- a/tests/cases/fourslash/completionListInComments3.ts +++ b/tests/cases/fourslash/completionListInComments3.ts @@ -1,5 +1,7 @@ /// +// @lib: es5 + //// /*{| "name": "1" |} //// /* {| "name": "2" |} diff --git a/tests/cases/fourslash/completionListInExtendsClause.ts b/tests/cases/fourslash/completionListInExtendsClause.ts index 144f99b83e7b6..1aa43acf8f197 100644 --- a/tests/cases/fourslash/completionListInExtendsClause.ts +++ b/tests/cases/fourslash/completionListInExtendsClause.ts @@ -1,5 +1,7 @@ /// +// @lib: es5 + ////interface IFoo { //// method(); ////} diff --git a/tests/cases/fourslash/completionListInFunctionDeclaration.ts b/tests/cases/fourslash/completionListInFunctionDeclaration.ts index 3ba4b7d47755c..ca89e95efd1ab 100644 --- a/tests/cases/fourslash/completionListInFunctionDeclaration.ts +++ b/tests/cases/fourslash/completionListInFunctionDeclaration.ts @@ -1,5 +1,7 @@ /// +// @lib: es5 + ////var a = 0; ////function foo(/**/ diff --git a/tests/cases/fourslash/completionListInIndexSignature01.ts b/tests/cases/fourslash/completionListInIndexSignature01.ts index 5bcc01ce8678f..1d64e3dfb207a 100644 --- a/tests/cases/fourslash/completionListInIndexSignature01.ts +++ b/tests/cases/fourslash/completionListInIndexSignature01.ts @@ -1,5 +1,7 @@ /// +// @lib: es5 + ////interface I { //// [/*1*/]: T; //// [/*2*/]: T; diff --git a/tests/cases/fourslash/completionListInIndexSignature02.ts b/tests/cases/fourslash/completionListInIndexSignature02.ts index 9f808fe2c3e2c..d8dd7c63fcadf 100644 --- a/tests/cases/fourslash/completionListInIndexSignature02.ts +++ b/tests/cases/fourslash/completionListInIndexSignature02.ts @@ -1,5 +1,7 @@ /// +// @lib: es5 + ////interface I { //// [x: /*1*/]: T; //// [: /*2*/]: T diff --git a/tests/cases/fourslash/completionListInTemplateLiteralParts1.ts b/tests/cases/fourslash/completionListInTemplateLiteralParts1.ts index 509b08c80c274..5360e7dc2e58a 100644 --- a/tests/cases/fourslash/completionListInTemplateLiteralParts1.ts +++ b/tests/cases/fourslash/completionListInTemplateLiteralParts1.ts @@ -1,5 +1,7 @@ /// +// @lib: es5 + /////*0*/` $ { ${/*1*/ 10/*2*/ + 1.1/*3*/ /*4*/} 12312`/*5*/ //// /////*6*/`asdasd${/*7*/ 2 + 1.1 /*8*/} 12312 { diff --git a/tests/cases/fourslash/completionListInTypeLiteralInTypeParameter9.ts b/tests/cases/fourslash/completionListInTypeLiteralInTypeParameter9.ts index 13f75f74c8a3a..2306864d902a9 100644 --- a/tests/cases/fourslash/completionListInTypeLiteralInTypeParameter9.ts +++ b/tests/cases/fourslash/completionListInTypeLiteralInTypeParameter9.ts @@ -1,5 +1,7 @@ /// +// @lib: es5 + ////interface Foo { //// one: string; //// two: { diff --git a/tests/cases/fourslash/completionListInTypeParameterOfClassExpression1.ts b/tests/cases/fourslash/completionListInTypeParameterOfClassExpression1.ts index 15f150cef62c1..d14036d88c1af 100644 --- a/tests/cases/fourslash/completionListInTypeParameterOfClassExpression1.ts +++ b/tests/cases/fourslash/completionListInTypeParameterOfClassExpression1.ts @@ -1,5 +1,7 @@ /// +// @lib: es5 + ////var C0 = class D {} ////var C2 = class D +// @lib: es5 + // TODO: we should probably support this like we do in completionListInvalidMemberNames.ts ////declare var Symbol: SymbolConstructor; diff --git a/tests/cases/fourslash/completionListIsGlobalCompletion.ts b/tests/cases/fourslash/completionListIsGlobalCompletion.ts index 9516b8e4f34ab..0fb87b80f1977 100644 --- a/tests/cases/fourslash/completionListIsGlobalCompletion.ts +++ b/tests/cases/fourslash/completionListIsGlobalCompletion.ts @@ -1,5 +1,7 @@ /// +// @lib: es5 + // @Filename: file.ts ////export var x = 10; ////export var y = 10; diff --git a/tests/cases/fourslash/completionListOnAliases2.ts b/tests/cases/fourslash/completionListOnAliases2.ts index 3783a270a6b5f..6f41ab240de9c 100644 --- a/tests/cases/fourslash/completionListOnAliases2.ts +++ b/tests/cases/fourslash/completionListOnAliases2.ts @@ -1,5 +1,7 @@ /// +// @lib: es5 + ////namespace M { //// export interface I { } //// export class C { diff --git a/tests/cases/fourslash/completionListStaticMembers.ts b/tests/cases/fourslash/completionListStaticMembers.ts index 558fbe64630f8..4722ba9666cd7 100644 --- a/tests/cases/fourslash/completionListStaticMembers.ts +++ b/tests/cases/fourslash/completionListStaticMembers.ts @@ -1,5 +1,7 @@ /// +// @lib: es5 + ////class Foo { //// static a() {} //// static b() {} diff --git a/tests/cases/fourslash/completionListStaticProtectedMembers2.ts b/tests/cases/fourslash/completionListStaticProtectedMembers2.ts index 180211c9aaf49..f5c2dadf83c34 100644 --- a/tests/cases/fourslash/completionListStaticProtectedMembers2.ts +++ b/tests/cases/fourslash/completionListStaticProtectedMembers2.ts @@ -1,5 +1,7 @@ /// +// @lib: es5 + ////class Base { //// private static privateMethod() { } //// private static privateProperty; diff --git a/tests/cases/fourslash/completionListStaticProtectedMembers3.ts b/tests/cases/fourslash/completionListStaticProtectedMembers3.ts index 47b498f97453c..e93a3e27d130a 100644 --- a/tests/cases/fourslash/completionListStaticProtectedMembers3.ts +++ b/tests/cases/fourslash/completionListStaticProtectedMembers3.ts @@ -1,5 +1,7 @@ /// +// @lib: es5 + ////class Base { //// private static privateMethod() { } //// private static privateProperty; diff --git a/tests/cases/fourslash/completionListStaticProtectedMembers4.ts b/tests/cases/fourslash/completionListStaticProtectedMembers4.ts index 10f0d9ec140aa..9f60052dc8943 100644 --- a/tests/cases/fourslash/completionListStaticProtectedMembers4.ts +++ b/tests/cases/fourslash/completionListStaticProtectedMembers4.ts @@ -1,5 +1,7 @@ /// +// @lib: es5 + ////class Base { //// private static privateMethod() { } //// private static privateProperty; diff --git a/tests/cases/fourslash/completionNoParentLocation.ts b/tests/cases/fourslash/completionNoParentLocation.ts index 72fc96c8689aa..1cbf088241cda 100644 --- a/tests/cases/fourslash/completionNoParentLocation.ts +++ b/tests/cases/fourslash/completionNoParentLocation.ts @@ -1,5 +1,7 @@ /// +// @lib: es5 + //// /**/ //// type foo = any; //// declare const foo: any; diff --git a/tests/cases/fourslash/completionOfInterfaceAndVar.ts b/tests/cases/fourslash/completionOfInterfaceAndVar.ts index 748078f2b4e97..a591525be4d95 100644 --- a/tests/cases/fourslash/completionOfInterfaceAndVar.ts +++ b/tests/cases/fourslash/completionOfInterfaceAndVar.ts @@ -1,5 +1,7 @@ /// +// @lib: es5 + ////interface AnalyserNode { ////} ////declare var AnalyserNode: { diff --git a/tests/cases/fourslash/completionPropertyShorthandForObjectLiteral.ts b/tests/cases/fourslash/completionPropertyShorthandForObjectLiteral.ts index 4ceac5508f4f3..f9b947acbb135 100644 --- a/tests/cases/fourslash/completionPropertyShorthandForObjectLiteral.ts +++ b/tests/cases/fourslash/completionPropertyShorthandForObjectLiteral.ts @@ -1,5 +1,7 @@ /// +// @lib: es5 + //// declare const foo: number; //// interface Empty {} //// interface Typed { typed: number; } diff --git a/tests/cases/fourslash/completionPropertyShorthandForObjectLiteral2.ts b/tests/cases/fourslash/completionPropertyShorthandForObjectLiteral2.ts index 54e5a1e75c766..848983ddce668 100644 --- a/tests/cases/fourslash/completionPropertyShorthandForObjectLiteral2.ts +++ b/tests/cases/fourslash/completionPropertyShorthandForObjectLiteral2.ts @@ -1,5 +1,7 @@ /// +// @lib: es5 + //// const foo = 1; //// const bar = 2; diff --git a/tests/cases/fourslash/completionPropertyShorthandForObjectLiteral3.ts b/tests/cases/fourslash/completionPropertyShorthandForObjectLiteral3.ts index 37e873abf9da3..02677ad8c8a13 100644 --- a/tests/cases/fourslash/completionPropertyShorthandForObjectLiteral3.ts +++ b/tests/cases/fourslash/completionPropertyShorthandForObjectLiteral3.ts @@ -1,5 +1,7 @@ /// +// @lib: es5 + //// const foo = 1; //// const bar = 2; //// const obj = { diff --git a/tests/cases/fourslash/completionPropertyShorthandForObjectLiteral4.ts b/tests/cases/fourslash/completionPropertyShorthandForObjectLiteral4.ts index d35b2d8acd6ee..f96519021a83a 100644 --- a/tests/cases/fourslash/completionPropertyShorthandForObjectLiteral4.ts +++ b/tests/cases/fourslash/completionPropertyShorthandForObjectLiteral4.ts @@ -1,5 +1,7 @@ /// +// @lib: es5 + //// const foo = 1; //// const bar = 2; //// const obj: any = { diff --git a/tests/cases/fourslash/completionTypeAssertion.ts b/tests/cases/fourslash/completionTypeAssertion.ts index fbfe72ac455cc..99a5b857e65c7 100644 --- a/tests/cases/fourslash/completionTypeAssertion.ts +++ b/tests/cases/fourslash/completionTypeAssertion.ts @@ -1,5 +1,7 @@ /// +// @lib: es5 + //// var x = 'something' //// var y = this as/*1*/ diff --git a/tests/cases/fourslash/completionTypeGuard.ts b/tests/cases/fourslash/completionTypeGuard.ts index e072fd5798561..42aa08e084107 100644 --- a/tests/cases/fourslash/completionTypeGuard.ts +++ b/tests/cases/fourslash/completionTypeGuard.ts @@ -1,5 +1,7 @@ /// +// @lib: es5 + //// const x = "str"; //// function assert1(condition: any, msg?: string): /*1*/ ; //// function assert2(condition: any, msg?: string): /*2*/ { } diff --git a/tests/cases/fourslash/completionsAtGenericTypeArguments.ts b/tests/cases/fourslash/completionsAtGenericTypeArguments.ts index 216ae6cab703e..79148e8cfb5af 100644 --- a/tests/cases/fourslash/completionsAtGenericTypeArguments.ts +++ b/tests/cases/fourslash/completionsAtGenericTypeArguments.ts @@ -1,5 +1,7 @@ /// +// @lib: es5 + ////class Foo {} ////const foo = new Foo +// @lib: es5 + ////class Class1 { //// public a = this./*0*/ //// protected b = /*1*/ diff --git a/tests/cases/fourslash/completionsCommentsClass.ts b/tests/cases/fourslash/completionsCommentsClass.ts index 23355469f56d3..78ae3bffb4e62 100644 --- a/tests/cases/fourslash/completionsCommentsClass.ts +++ b/tests/cases/fourslash/completionsCommentsClass.ts @@ -1,5 +1,7 @@ /// +// @lib: es5 + /////** This is class c2 without constructor*/ ////class c2 { ////} diff --git a/tests/cases/fourslash/completionsCommentsClassMembers.ts b/tests/cases/fourslash/completionsCommentsClassMembers.ts index 13820c945cb2d..bf505012327d5 100644 --- a/tests/cases/fourslash/completionsCommentsClassMembers.ts +++ b/tests/cases/fourslash/completionsCommentsClassMembers.ts @@ -1,5 +1,7 @@ /// +// @lib: es5 + /////** This is comment for c1*/ ////class c1 { //// /** p1 is property of c1*/ diff --git a/tests/cases/fourslash/completionsCommentsCommentParsing.ts b/tests/cases/fourslash/completionsCommentsCommentParsing.ts index e810f6010fdb3..9d82db8e7ab3d 100644 --- a/tests/cases/fourslash/completionsCommentsCommentParsing.ts +++ b/tests/cases/fourslash/completionsCommentsCommentParsing.ts @@ -1,5 +1,7 @@ /// +// @lib: es5 + /////// This is simple /// comments ////function simple() { ////} diff --git a/tests/cases/fourslash/completionsCommentsFunctionDeclaration.ts b/tests/cases/fourslash/completionsCommentsFunctionDeclaration.ts index 604c96113d4c6..2d15446f14d9c 100644 --- a/tests/cases/fourslash/completionsCommentsFunctionDeclaration.ts +++ b/tests/cases/fourslash/completionsCommentsFunctionDeclaration.ts @@ -1,5 +1,7 @@ /// +// @lib: es5 + /////** This comment should appear for foo*/ ////function foo() { ////} diff --git a/tests/cases/fourslash/completionsCommentsFunctionExpression.ts b/tests/cases/fourslash/completionsCommentsFunctionExpression.ts index 74f8e1676b39c..e7a26229f6782 100644 --- a/tests/cases/fourslash/completionsCommentsFunctionExpression.ts +++ b/tests/cases/fourslash/completionsCommentsFunctionExpression.ts @@ -1,5 +1,7 @@ /// +// @lib: es5 + // test arrow doc comments /////** lambdaFoo var comment*/ ////var lambdaFoo = /** this is lambda comment*/ (/**param a*/a: number, /**param b*/b: number) => /*2*/a + b; diff --git a/tests/cases/fourslash/completionsCommitCharactersAfterDot.ts b/tests/cases/fourslash/completionsCommitCharactersAfterDot.ts index c6acdc7074e25..1711d563b3164 100644 --- a/tests/cases/fourslash/completionsCommitCharactersAfterDot.ts +++ b/tests/cases/fourslash/completionsCommitCharactersAfterDot.ts @@ -1,5 +1,7 @@ /// +// @lib: es5 + //// declare const obj: { banana: 1 }; //// const x = obj./*1*/ //// declare module obj./*2*/ {} diff --git a/tests/cases/fourslash/completionsCommitCharactersGlobal.ts b/tests/cases/fourslash/completionsCommitCharactersGlobal.ts index 7dd0a498d394b..08d26b2907d8b 100644 --- a/tests/cases/fourslash/completionsCommitCharactersGlobal.ts +++ b/tests/cases/fourslash/completionsCommitCharactersGlobal.ts @@ -1,5 +1,7 @@ /// +// @lib: es5 + //// declare function func(a: string, b: number): { a: string, b: number }; //// const x1 = func(/*1*/) //// const x2 = func diff --git a/tests/cases/fourslash/completionsExportImport.ts b/tests/cases/fourslash/completionsExportImport.ts index d3d5055e129ce..9dc2d2322ac88 100644 --- a/tests/cases/fourslash/completionsExportImport.ts +++ b/tests/cases/fourslash/completionsExportImport.ts @@ -1,5 +1,7 @@ /// +// @lib: es5 + ////declare global { //// namespace N { //// const foo: number; diff --git a/tests/cases/fourslash/completionsImportWithKeyword.ts b/tests/cases/fourslash/completionsImportWithKeyword.ts index 4c4016bf5494e..19da271f54205 100644 --- a/tests/cases/fourslash/completionsImportWithKeyword.ts +++ b/tests/cases/fourslash/completionsImportWithKeyword.ts @@ -1,5 +1,6 @@ /// +// @lib: es5 // @allowJs: true // @Filename: a.ts //// const f = { diff --git a/tests/cases/fourslash/completionsImport_ambient.ts b/tests/cases/fourslash/completionsImport_ambient.ts index a7bc23a5a94de..b3249d12bf89d 100644 --- a/tests/cases/fourslash/completionsImport_ambient.ts +++ b/tests/cases/fourslash/completionsImport_ambient.ts @@ -1,5 +1,6 @@ /// +// @lib: es5 // @module: commonjs // @Filename: a.d.ts diff --git a/tests/cases/fourslash/completionsImport_asKeyword.ts b/tests/cases/fourslash/completionsImport_asKeyword.ts index 87c2d92e165f6..a09e3c61e4a84 100644 --- a/tests/cases/fourslash/completionsImport_asKeyword.ts +++ b/tests/cases/fourslash/completionsImport_asKeyword.ts @@ -1,5 +1,7 @@ /// +// @lib: es5 + // @Filename: /a.ts ////export function as() {} diff --git a/tests/cases/fourslash/completionsImport_default_reExport.ts b/tests/cases/fourslash/completionsImport_default_reExport.ts index cdb06c70461f9..0bed4929be473 100644 --- a/tests/cases/fourslash/completionsImport_default_reExport.ts +++ b/tests/cases/fourslash/completionsImport_default_reExport.ts @@ -1,4 +1,5 @@ /// +// @lib: es5 // @module: commonjs // @allowJs: true diff --git a/tests/cases/fourslash/completionsImport_duplicatePackages_scoped.ts b/tests/cases/fourslash/completionsImport_duplicatePackages_scoped.ts index 567757ffac39f..3fa2f64134cb2 100644 --- a/tests/cases/fourslash/completionsImport_duplicatePackages_scoped.ts +++ b/tests/cases/fourslash/completionsImport_duplicatePackages_scoped.ts @@ -1,5 +1,6 @@ /// +// @lib: es5 // @module: commonjs // @esModuleInterop: true diff --git a/tests/cases/fourslash/completionsImport_duplicatePackages_scopedTypes.ts b/tests/cases/fourslash/completionsImport_duplicatePackages_scopedTypes.ts index 970e6cde0a3fc..9c898113ecde2 100644 --- a/tests/cases/fourslash/completionsImport_duplicatePackages_scopedTypes.ts +++ b/tests/cases/fourslash/completionsImport_duplicatePackages_scopedTypes.ts @@ -1,5 +1,6 @@ /// +// @lib: es5 // @module: commonjs // @esModuleInterop: true diff --git a/tests/cases/fourslash/completionsImport_duplicatePackages_scopedTypesAndNotTypes.ts b/tests/cases/fourslash/completionsImport_duplicatePackages_scopedTypesAndNotTypes.ts index 116d3145fc178..846a504bf8c3a 100644 --- a/tests/cases/fourslash/completionsImport_duplicatePackages_scopedTypesAndNotTypes.ts +++ b/tests/cases/fourslash/completionsImport_duplicatePackages_scopedTypesAndNotTypes.ts @@ -1,5 +1,6 @@ /// +// @lib: es5 // @module: commonjs // @esModuleInterop: true diff --git a/tests/cases/fourslash/completionsImport_duplicatePackages_types.ts b/tests/cases/fourslash/completionsImport_duplicatePackages_types.ts index f29a52c018890..85842cd5d6fba 100644 --- a/tests/cases/fourslash/completionsImport_duplicatePackages_types.ts +++ b/tests/cases/fourslash/completionsImport_duplicatePackages_types.ts @@ -1,5 +1,6 @@ /// +// @lib: es5 // @module: commonjs // @esModuleInterop: true diff --git a/tests/cases/fourslash/completionsImport_duplicatePackages_typesAndNotTypes.ts b/tests/cases/fourslash/completionsImport_duplicatePackages_typesAndNotTypes.ts index bf9218cd82723..c7e13cb073473 100644 --- a/tests/cases/fourslash/completionsImport_duplicatePackages_typesAndNotTypes.ts +++ b/tests/cases/fourslash/completionsImport_duplicatePackages_typesAndNotTypes.ts @@ -1,5 +1,6 @@ /// +// @lib: es5 // @module: commonjs // @esModuleInterop: true diff --git a/tests/cases/fourslash/completionsImport_exportEquals_global.ts b/tests/cases/fourslash/completionsImport_exportEquals_global.ts index 27d26c387b735..f0e9929455d14 100644 --- a/tests/cases/fourslash/completionsImport_exportEquals_global.ts +++ b/tests/cases/fourslash/completionsImport_exportEquals_global.ts @@ -1,5 +1,6 @@ /// +// @lib: es5 // @module: es6 // @Filename: /console.d.ts diff --git a/tests/cases/fourslash/completionsImport_filteredByPackageJson_ambient.ts b/tests/cases/fourslash/completionsImport_filteredByPackageJson_ambient.ts index 6c827be3966ee..0025d606e4007 100644 --- a/tests/cases/fourslash/completionsImport_filteredByPackageJson_ambient.ts +++ b/tests/cases/fourslash/completionsImport_filteredByPackageJson_ambient.ts @@ -1,5 +1,6 @@ /// +// @lib: es5 //@noEmit: true //@Filename: /package.json diff --git a/tests/cases/fourslash/completionsImport_keywords.ts b/tests/cases/fourslash/completionsImport_keywords.ts index ca9030876df21..ecfd85634d921 100644 --- a/tests/cases/fourslash/completionsImport_keywords.ts +++ b/tests/cases/fourslash/completionsImport_keywords.ts @@ -1,5 +1,7 @@ /// +// @lib: es5 + // @Filename: /a.ts ////const _break = 0; ////export { _break as break }; diff --git a/tests/cases/fourslash/completionsImport_preferUpdatingExistingImport.ts b/tests/cases/fourslash/completionsImport_preferUpdatingExistingImport.ts index 14933e083a90e..c4215421eba8b 100644 --- a/tests/cases/fourslash/completionsImport_preferUpdatingExistingImport.ts +++ b/tests/cases/fourslash/completionsImport_preferUpdatingExistingImport.ts @@ -1,5 +1,6 @@ /// +// @lib: es5 // @module: commonjs // @Filename: /deep/module/why/you/want/this/path.ts diff --git a/tests/cases/fourslash/completionsImport_promoteTypeOnly1.ts b/tests/cases/fourslash/completionsImport_promoteTypeOnly1.ts index 926e19d9124d8..0fabe060e862d 100644 --- a/tests/cases/fourslash/completionsImport_promoteTypeOnly1.ts +++ b/tests/cases/fourslash/completionsImport_promoteTypeOnly1.ts @@ -1,4 +1,5 @@ /// +// @lib: es5 // @module: es2015 // @Filename: /exports.ts diff --git a/tests/cases/fourslash/completionsImport_reExportDefault.ts b/tests/cases/fourslash/completionsImport_reExportDefault.ts index 1a84942123b93..8a070b31c3a4e 100644 --- a/tests/cases/fourslash/completionsImport_reExportDefault.ts +++ b/tests/cases/fourslash/completionsImport_reExportDefault.ts @@ -1,5 +1,6 @@ /// +// @lib: es5 // @module: esnext // @Filename: /a/b/impl.ts diff --git a/tests/cases/fourslash/completionsImport_reExportDefault2.ts b/tests/cases/fourslash/completionsImport_reExportDefault2.ts index 85975f7f0d6ca..8a3b82392fc94 100644 --- a/tests/cases/fourslash/completionsImport_reExportDefault2.ts +++ b/tests/cases/fourslash/completionsImport_reExportDefault2.ts @@ -1,5 +1,6 @@ /// +// @lib: es5 // @module: preserve // @checkJs: true diff --git a/tests/cases/fourslash/completionsImport_reexportTransient.ts b/tests/cases/fourslash/completionsImport_reexportTransient.ts index 30b16c9e853f8..edcc370d45581 100644 --- a/tests/cases/fourslash/completionsImport_reexportTransient.ts +++ b/tests/cases/fourslash/completionsImport_reexportTransient.ts @@ -1,5 +1,6 @@ /// +// @lib: es5 // @esModuleInterop: true // @Filename: /transient.d.ts diff --git a/tests/cases/fourslash/completionsImport_satisfiesKeyword.ts b/tests/cases/fourslash/completionsImport_satisfiesKeyword.ts index a01f45dca6120..d20cad9c54538 100644 --- a/tests/cases/fourslash/completionsImport_satisfiesKeyword.ts +++ b/tests/cases/fourslash/completionsImport_satisfiesKeyword.ts @@ -1,5 +1,7 @@ /// +// @lib: es5 + // @Filename: /a.ts ////export function satisfies() {} diff --git a/tests/cases/fourslash/completionsImport_uriStyleNodeCoreModules1.ts b/tests/cases/fourslash/completionsImport_uriStyleNodeCoreModules1.ts index d8d1d89289b6d..ad35d6749d5e0 100644 --- a/tests/cases/fourslash/completionsImport_uriStyleNodeCoreModules1.ts +++ b/tests/cases/fourslash/completionsImport_uriStyleNodeCoreModules1.ts @@ -1,5 +1,6 @@ /// +// @lib: es5 // @module: commonjs // @Filename: /node_modules/@types/node/index.d.ts diff --git a/tests/cases/fourslash/completionsImport_uriStyleNodeCoreModules2.ts b/tests/cases/fourslash/completionsImport_uriStyleNodeCoreModules2.ts index 788ac92e0f8c6..0e94709d8a942 100644 --- a/tests/cases/fourslash/completionsImport_uriStyleNodeCoreModules2.ts +++ b/tests/cases/fourslash/completionsImport_uriStyleNodeCoreModules2.ts @@ -1,5 +1,6 @@ /// +// @lib: es5 // @module: commonjs // @Filename: /node_modules/@types/node/index.d.ts diff --git a/tests/cases/fourslash/completionsImport_uriStyleNodeCoreModules3.ts b/tests/cases/fourslash/completionsImport_uriStyleNodeCoreModules3.ts index 9e0748fadc433..a00a7678737f7 100644 --- a/tests/cases/fourslash/completionsImport_uriStyleNodeCoreModules3.ts +++ b/tests/cases/fourslash/completionsImport_uriStyleNodeCoreModules3.ts @@ -1,5 +1,6 @@ /// +// @lib: es5 // @module: commonjs // @Filename: /node_modules/@types/node/index.d.ts diff --git a/tests/cases/fourslash/completionsInitializerCommitCharacter.ts b/tests/cases/fourslash/completionsInitializerCommitCharacter.ts index 69c5c06b71533..5abcb613ba991 100644 --- a/tests/cases/fourslash/completionsInitializerCommitCharacter.ts +++ b/tests/cases/fourslash/completionsInitializerCommitCharacter.ts @@ -1,5 +1,7 @@ /// +// @lib: es5 + // @Filename: file1.ts //// const mySpecialVar = 1; //// const foo = mySpec/**/ diff --git a/tests/cases/fourslash/completionsJSDocNoCrash2.ts b/tests/cases/fourslash/completionsJSDocNoCrash2.ts index e37d4452245d4..ca229c812ad53 100644 --- a/tests/cases/fourslash/completionsJSDocNoCrash2.ts +++ b/tests/cases/fourslash/completionsJSDocNoCrash2.ts @@ -1,5 +1,6 @@ /// +// @lib: es5 // @strict: true // @filename: index.ts diff --git a/tests/cases/fourslash/completionsJsdocParamTypeBeforeName.ts b/tests/cases/fourslash/completionsJsdocParamTypeBeforeName.ts index b638c2d0cc8b0..22377d5c99fca 100644 --- a/tests/cases/fourslash/completionsJsdocParamTypeBeforeName.ts +++ b/tests/cases/fourslash/completionsJsdocParamTypeBeforeName.ts @@ -1,4 +1,7 @@ /// + +// @lib: es5 + //// /** @param /*name1*/ {/*type*/} /*name2*/ */ //// function toString(obj) {} diff --git a/tests/cases/fourslash/completionsMergedDeclarations1.ts b/tests/cases/fourslash/completionsMergedDeclarations1.ts index c39f166a0df67..9e7c43110369b 100644 --- a/tests/cases/fourslash/completionsMergedDeclarations1.ts +++ b/tests/cases/fourslash/completionsMergedDeclarations1.ts @@ -1,5 +1,7 @@ /// +// @lib: es5 + ////interface Point { //// x: number; //// y: number; diff --git a/tests/cases/fourslash/completionsNamespaceMergedWithClass.ts b/tests/cases/fourslash/completionsNamespaceMergedWithClass.ts index 215bc44426f25..6327962743d48 100644 --- a/tests/cases/fourslash/completionsNamespaceMergedWithClass.ts +++ b/tests/cases/fourslash/completionsNamespaceMergedWithClass.ts @@ -1,5 +1,7 @@ /// +// @lib: es5 + ////class C { //// static m() { } ////} diff --git a/tests/cases/fourslash/completionsPaths_importType.ts b/tests/cases/fourslash/completionsPaths_importType.ts index 93f1c7cb5ebed..eb7728ec31de4 100644 --- a/tests/cases/fourslash/completionsPaths_importType.ts +++ b/tests/cases/fourslash/completionsPaths_importType.ts @@ -1,5 +1,6 @@ /// +// @lib: es5 // @allowJs: true // @moduleResolution: bundler // @Filename: /ns.ts @@ -24,11 +25,9 @@ verify.completions( { marker: "2", exact: [ - { name: "lib", kind: "script", kindModifiers: ".d.ts" }, - { name: "lib.decorators", kind: "script", kindModifiers: ".d.ts" }, - { name: "lib.decorators.legacy", kind: "script", kindModifiers: ".d.ts" }, { name: "ns", kind: "script", kindModifiers: ".ts" }, { name: "user", kind: "script", kindModifiers: ".js" }, + { name: "home", kind: "directory" }, { name: "node_modules", kind: "directory" }, ], isNewIdentifierLocation: true diff --git a/tests/cases/fourslash/completionsSelfDeclaring2.ts b/tests/cases/fourslash/completionsSelfDeclaring2.ts index a068837c00701..472e09b4b4a8c 100644 --- a/tests/cases/fourslash/completionsSelfDeclaring2.ts +++ b/tests/cases/fourslash/completionsSelfDeclaring2.ts @@ -1,5 +1,7 @@ /// +// @lib: es5 + //// function f1(x: T) {} //// f1({ abc/*1*/ }); diff --git a/tests/cases/fourslash/completionsStringMethods.ts b/tests/cases/fourslash/completionsStringMethods.ts index d65ad7dee34f5..50b870efbc8d7 100644 --- a/tests/cases/fourslash/completionsStringMethods.ts +++ b/tests/cases/fourslash/completionsStringMethods.ts @@ -1,5 +1,7 @@ /// +// @lib: es5 + //// var s = "foo"./*1*/ verify.baselineCompletions() diff --git a/tests/cases/fourslash/completionsThisProperties_globalSameName.ts b/tests/cases/fourslash/completionsThisProperties_globalSameName.ts index f267cba504329..1e2884bb2b336 100644 --- a/tests/cases/fourslash/completionsThisProperties_globalSameName.ts +++ b/tests/cases/fourslash/completionsThisProperties_globalSameName.ts @@ -1,5 +1,7 @@ /// +// @lib: es5 + // @Filename: globals.d.ts //// declare var foot: string; diff --git a/tests/cases/fourslash/completionsTypeAssertionKeywords.ts b/tests/cases/fourslash/completionsTypeAssertionKeywords.ts index 100ab6e51e25e..8dfaa96de6b09 100644 --- a/tests/cases/fourslash/completionsTypeAssertionKeywords.ts +++ b/tests/cases/fourslash/completionsTypeAssertionKeywords.ts @@ -1,5 +1,7 @@ /// +// @lib: es5 + ////const a = { //// b: 42 as /*0*/ ////}; diff --git a/tests/cases/fourslash/completionsWithDeprecatedTag5.ts b/tests/cases/fourslash/completionsWithDeprecatedTag5.ts index dcdf45626d9c2..1f387ece198e6 100644 --- a/tests/cases/fourslash/completionsWithDeprecatedTag5.ts +++ b/tests/cases/fourslash/completionsWithDeprecatedTag5.ts @@ -1,5 +1,7 @@ /// +// @lib: es5 + ////class Foo { //// /** @deprecated m */ //// static m() {} diff --git a/tests/cases/fourslash/completionsWritingSpreadArgument.ts b/tests/cases/fourslash/completionsWritingSpreadArgument.ts index 5fd4eaad1791d..7dbd58eb8568e 100644 --- a/tests/cases/fourslash/completionsWritingSpreadArgument.ts +++ b/tests/cases/fourslash/completionsWritingSpreadArgument.ts @@ -1,5 +1,7 @@ /// +// @lib: es5 + //// //// const [] = [Math.min(./*marker*/)] //// diff --git a/tests/cases/fourslash/exhaustiveCaseCompletions3.ts b/tests/cases/fourslash/exhaustiveCaseCompletions3.ts index f93e176773866..3f14668a7dd27 100644 --- a/tests/cases/fourslash/exhaustiveCaseCompletions3.ts +++ b/tests/cases/fourslash/exhaustiveCaseCompletions3.ts @@ -2,6 +2,7 @@ // Where the exhaustive case completion appears or not. +// @lib: es5 // @newline: LF // @Filename: /main.ts //// enum E { diff --git a/tests/cases/fourslash/exhaustiveCaseCompletions4.ts b/tests/cases/fourslash/exhaustiveCaseCompletions4.ts index 6240b4454f082..8760afe8a292c 100644 --- a/tests/cases/fourslash/exhaustiveCaseCompletions4.ts +++ b/tests/cases/fourslash/exhaustiveCaseCompletions4.ts @@ -2,6 +2,7 @@ // Filter existing values. +// @lib: es5 // @newline: LF //// enum E { //// A = 0, diff --git a/tests/cases/fourslash/exhaustiveCaseCompletions9.ts b/tests/cases/fourslash/exhaustiveCaseCompletions9.ts index 12c873599685d..27a009054626a 100644 --- a/tests/cases/fourslash/exhaustiveCaseCompletions9.ts +++ b/tests/cases/fourslash/exhaustiveCaseCompletions9.ts @@ -1,5 +1,6 @@ /// +// @lib: es5 // @newline: LF ////switch (Math.random() ? 123 : 456) { //// case "foo!": diff --git a/tests/cases/fourslash/exportEqualCallableInterface.ts b/tests/cases/fourslash/exportEqualCallableInterface.ts index 7c707ddef4f7c..66aa2274fa4fc 100644 --- a/tests/cases/fourslash/exportEqualCallableInterface.ts +++ b/tests/cases/fourslash/exportEqualCallableInterface.ts @@ -1,5 +1,7 @@ /// +// @lib: es5 + // @Filename: exportEqualCallableInterface_file0.ts ////interface x { //// (): Date; diff --git a/tests/cases/fourslash/exportEqualTypes.ts b/tests/cases/fourslash/exportEqualTypes.ts index f5f14433c14ee..4b9c6a8ab9938 100644 --- a/tests/cases/fourslash/exportEqualTypes.ts +++ b/tests/cases/fourslash/exportEqualTypes.ts @@ -1,5 +1,6 @@ /// +// @lib: es5 // @strict: false // @Filename: exportEqualTypes_file0.ts ////interface x { diff --git a/tests/cases/fourslash/externalModuleWithExportAssignment.ts b/tests/cases/fourslash/externalModuleWithExportAssignment.ts index b1ca09f80bbb7..2174b77168b1e 100644 --- a/tests/cases/fourslash/externalModuleWithExportAssignment.ts +++ b/tests/cases/fourslash/externalModuleWithExportAssignment.ts @@ -1,5 +1,7 @@ /// +// @lib: es5 + // @Filename: externalModuleWithExportAssignment_file0.ts ////namespace m2 { //// export interface connectModule { diff --git a/tests/cases/fourslash/findAllReferencesDynamicImport1.ts b/tests/cases/fourslash/findAllReferencesDynamicImport1.ts index cd1d5774ed411..36d4dd60d184d 100644 --- a/tests/cases/fourslash/findAllReferencesDynamicImport1.ts +++ b/tests/cases/fourslash/findAllReferencesDynamicImport1.ts @@ -1,5 +1,7 @@ /// +// @lib: es5 + // @Filename: foo.ts //// export function foo() { return "foo"; } diff --git a/tests/cases/fourslash/findAllRefsWithShorthandPropertyAssignment.ts b/tests/cases/fourslash/findAllRefsWithShorthandPropertyAssignment.ts index 53eb837cbd5be..175e48c11ae65 100644 --- a/tests/cases/fourslash/findAllRefsWithShorthandPropertyAssignment.ts +++ b/tests/cases/fourslash/findAllRefsWithShorthandPropertyAssignment.ts @@ -1,5 +1,7 @@ /// +// @lib: es5 + //// var /*0*/name = "Foo"; //// //// var obj = { /*1*/name }; diff --git a/tests/cases/fourslash/functionTypes.ts b/tests/cases/fourslash/functionTypes.ts index 2b2e7876891aa..c964d62bcf45f 100644 --- a/tests/cases/fourslash/functionTypes.ts +++ b/tests/cases/fourslash/functionTypes.ts @@ -1,5 +1,6 @@ /// +// @lib: es5 // @strict: false ////var f: Function; ////function g() { } diff --git a/tests/cases/fourslash/getCompletionEntryDetails2.ts b/tests/cases/fourslash/getCompletionEntryDetails2.ts index 26ca1b9c4544c..4f21955b82c80 100644 --- a/tests/cases/fourslash/getCompletionEntryDetails2.ts +++ b/tests/cases/fourslash/getCompletionEntryDetails2.ts @@ -1,5 +1,7 @@ /// +// @lib: es5 + ////class Foo { ////} ////namespace Foo { diff --git a/tests/cases/fourslash/getJavaScriptCompletions20.ts b/tests/cases/fourslash/getJavaScriptCompletions20.ts index 1f989933d3e13..e53317d030b68 100644 --- a/tests/cases/fourslash/getJavaScriptCompletions20.ts +++ b/tests/cases/fourslash/getJavaScriptCompletions20.ts @@ -1,5 +1,6 @@ /// +// @lib: es5 // @allowNonTsExtensions: true // @Filename: file.js //// /** diff --git a/tests/cases/fourslash/globalCompletionListInsideObjectLiterals.ts b/tests/cases/fourslash/globalCompletionListInsideObjectLiterals.ts index 7b053f484ca85..59d0b065840f6 100644 --- a/tests/cases/fourslash/globalCompletionListInsideObjectLiterals.ts +++ b/tests/cases/fourslash/globalCompletionListInsideObjectLiterals.ts @@ -1,5 +1,7 @@ /// +// @lib: es5 + ////namespace ObjectLiterals { //// interface MyPoint { //// x1: number; diff --git a/tests/cases/fourslash/goToDefinitionInstanceof1.ts b/tests/cases/fourslash/goToDefinitionInstanceof1.ts index 39c0d55eaeaa9..6cc4d40e7fd27 100644 --- a/tests/cases/fourslash/goToDefinitionInstanceof1.ts +++ b/tests/cases/fourslash/goToDefinitionInstanceof1.ts @@ -1,5 +1,7 @@ /// +// @lib: es5 + //// class /*end*/ C { //// } //// declare var obj: any; diff --git a/tests/cases/fourslash/goToDefinitionShorthandProperty01.ts b/tests/cases/fourslash/goToDefinitionShorthandProperty01.ts index 677549382e80b..de7a09f2e40fd 100644 --- a/tests/cases/fourslash/goToDefinitionShorthandProperty01.ts +++ b/tests/cases/fourslash/goToDefinitionShorthandProperty01.ts @@ -1,5 +1,7 @@ /// +// @lib: es5 + //// var /*valueDeclaration1*/name = "hello"; //// var /*valueDeclaration2*/id = 100000; //// declare var /*valueDeclaration3*/id; diff --git a/tests/cases/fourslash/goToTypeDefinitionImportMeta.ts b/tests/cases/fourslash/goToTypeDefinitionImportMeta.ts index e25537beee7d4..a1ef8cf18f4cb 100644 --- a/tests/cases/fourslash/goToTypeDefinitionImportMeta.ts +++ b/tests/cases/fourslash/goToTypeDefinitionImportMeta.ts @@ -1,5 +1,6 @@ /// +// @lib: es5 // @module: esnext // @Filename: foo.ts /////// diff --git a/tests/cases/fourslash/goToTypeDefinitionModifiers.ts b/tests/cases/fourslash/goToTypeDefinitionModifiers.ts index 25b79734fa40f..b5f60e1206b4b 100644 --- a/tests/cases/fourslash/goToTypeDefinitionModifiers.ts +++ b/tests/cases/fourslash/goToTypeDefinitionModifiers.ts @@ -1,5 +1,7 @@ /// +// @lib: es5 + // @Filename: /a.ts //// /*export*/export class A/*A*/ { //// diff --git a/tests/cases/fourslash/goToTypeDefinition_Pick.ts b/tests/cases/fourslash/goToTypeDefinition_Pick.ts index 5c61f3becaa76..7f080ccb22505 100644 --- a/tests/cases/fourslash/goToTypeDefinition_Pick.ts +++ b/tests/cases/fourslash/goToTypeDefinition_Pick.ts @@ -1,5 +1,7 @@ /// +// @lib: es5 + //// type User = { id: number; name: string; }; //// declare const user: Pick //// /*reference*/user diff --git a/tests/cases/fourslash/goToTypeDefinition_arrayType.ts b/tests/cases/fourslash/goToTypeDefinition_arrayType.ts index 5de1f2f9bc2c6..7b5692ff19636 100644 --- a/tests/cases/fourslash/goToTypeDefinition_arrayType.ts +++ b/tests/cases/fourslash/goToTypeDefinition_arrayType.ts @@ -1,5 +1,7 @@ /// +// @lib: es5 + //// type User = { name: string }; //// declare const users: User[] //// /*reference*/users diff --git a/tests/cases/fourslash/goToTypeDefinition_promiseType.ts b/tests/cases/fourslash/goToTypeDefinition_promiseType.ts index bc8fe43c07a79..e8e93a0e751b1 100644 --- a/tests/cases/fourslash/goToTypeDefinition_promiseType.ts +++ b/tests/cases/fourslash/goToTypeDefinition_promiseType.ts @@ -1,5 +1,7 @@ /// +// @lib: es5,es2015.promise + //// type User = { name: string }; //// async function /*reference*/getUser() { return { name: "Bob" } satisfies User as User } //// diff --git a/tests/cases/fourslash/importNameCodeFixJsEnding.ts b/tests/cases/fourslash/importNameCodeFixJsEnding.ts index 3ab4215e7f758..9bc0581299f03 100644 --- a/tests/cases/fourslash/importNameCodeFixJsEnding.ts +++ b/tests/cases/fourslash/importNameCodeFixJsEnding.ts @@ -1,5 +1,6 @@ /// +// @lib: es5 // @module: commonjs // @Filename: /node_modules/lit/package.json diff --git a/tests/cases/fourslash/importNameCodeFix_jsx2.ts b/tests/cases/fourslash/importNameCodeFix_jsx2.ts index c2aba295e94d9..65b14de8cebfa 100644 --- a/tests/cases/fourslash/importNameCodeFix_jsx2.ts +++ b/tests/cases/fourslash/importNameCodeFix_jsx2.ts @@ -1,5 +1,6 @@ /// +// @lib: es5 // @jsx: react // @module: esnext // @esModuleInterop: true diff --git a/tests/cases/fourslash/importNameCodeFix_jsx3.ts b/tests/cases/fourslash/importNameCodeFix_jsx3.ts index 5982a30485475..c92640d208508 100644 --- a/tests/cases/fourslash/importNameCodeFix_jsx3.ts +++ b/tests/cases/fourslash/importNameCodeFix_jsx3.ts @@ -1,5 +1,6 @@ /// +// @lib: es5 // @jsx: react // @module: esnext // @esModuleInterop: true diff --git a/tests/cases/fourslash/importNameCodeFix_jsx5.ts b/tests/cases/fourslash/importNameCodeFix_jsx5.ts index 2b298bd46e47c..28b088153faf8 100644 --- a/tests/cases/fourslash/importNameCodeFix_jsx5.ts +++ b/tests/cases/fourslash/importNameCodeFix_jsx5.ts @@ -1,5 +1,6 @@ /// +// @lib: es5 // @jsx: react // @module: esnext // @esModuleInterop: true diff --git a/tests/cases/fourslash/importNameCodeFix_jsx6.ts b/tests/cases/fourslash/importNameCodeFix_jsx6.ts index 07c207f5cc54b..b078ce31e581f 100644 --- a/tests/cases/fourslash/importNameCodeFix_jsx6.ts +++ b/tests/cases/fourslash/importNameCodeFix_jsx6.ts @@ -1,5 +1,6 @@ /// +// @lib: es5 // @jsx: react // @module: esnext // @esModuleInterop: true diff --git a/tests/cases/fourslash/importNameCodeFix_noDestructureNonObjectLiteral.ts b/tests/cases/fourslash/importNameCodeFix_noDestructureNonObjectLiteral.ts index db1c899d70dc8..68b34d38b7f97 100644 --- a/tests/cases/fourslash/importNameCodeFix_noDestructureNonObjectLiteral.ts +++ b/tests/cases/fourslash/importNameCodeFix_noDestructureNonObjectLiteral.ts @@ -1,5 +1,6 @@ /// +// @lib: es5 // @target: es2015 // @strict: true // @esModuleInterop: true diff --git a/tests/cases/fourslash/incorrectJsDocObjectLiteralType.ts b/tests/cases/fourslash/incorrectJsDocObjectLiteralType.ts index dee82fd1f3525..dfc14f5a451cf 100644 --- a/tests/cases/fourslash/incorrectJsDocObjectLiteralType.ts +++ b/tests/cases/fourslash/incorrectJsDocObjectLiteralType.ts @@ -1,5 +1,7 @@ /// +// @lib: es5 + // @Filename: /a.ts //// diff --git a/tests/cases/fourslash/incrementalEditInvocationExpressionAboveInterfaceDeclaration.ts b/tests/cases/fourslash/incrementalEditInvocationExpressionAboveInterfaceDeclaration.ts index c8a73727e3551..9fb8961b494ff 100644 --- a/tests/cases/fourslash/incrementalEditInvocationExpressionAboveInterfaceDeclaration.ts +++ b/tests/cases/fourslash/incrementalEditInvocationExpressionAboveInterfaceDeclaration.ts @@ -1,5 +1,7 @@ /// +// @lib: es5 + ////declare function alert(message?: any): void; /////*1*/ ////interface Foo { diff --git a/tests/cases/fourslash/inlayHintsInteractiveMultifile1.ts b/tests/cases/fourslash/inlayHintsInteractiveMultifile1.ts index db990eebd1ffa..0d93b628a3aa3 100644 --- a/tests/cases/fourslash/inlayHintsInteractiveMultifile1.ts +++ b/tests/cases/fourslash/inlayHintsInteractiveMultifile1.ts @@ -1,5 +1,7 @@ /// +// @lib: es5 + // @Filename: /a.ts //// export interface Foo { a: string } diff --git a/tests/cases/fourslash/jsDocFunctionTypeCompletionsNoCrash.ts b/tests/cases/fourslash/jsDocFunctionTypeCompletionsNoCrash.ts index 316cc027754d8..96eb5d7813f66 100644 --- a/tests/cases/fourslash/jsDocFunctionTypeCompletionsNoCrash.ts +++ b/tests/cases/fourslash/jsDocFunctionTypeCompletionsNoCrash.ts @@ -1,5 +1,7 @@ /// +// @lib: es5 + //// /** //// * @returns {function/**/(): string} //// */ diff --git a/tests/cases/fourslash/jsDocTypeTagQuickInfo1.ts b/tests/cases/fourslash/jsDocTypeTagQuickInfo1.ts index 240c00e228384..612e8d3ade08c 100644 --- a/tests/cases/fourslash/jsDocTypeTagQuickInfo1.ts +++ b/tests/cases/fourslash/jsDocTypeTagQuickInfo1.ts @@ -1,4 +1,5 @@ /// +// @lib: es5 // @allowJs: true // @Filename: jsDocTypeTag1.js //// /** @type {String} */ diff --git a/tests/cases/fourslash/jsDocTypeTagQuickInfo2.ts b/tests/cases/fourslash/jsDocTypeTagQuickInfo2.ts index 7c79116b04199..67a7dcb2682c5 100644 --- a/tests/cases/fourslash/jsDocTypeTagQuickInfo2.ts +++ b/tests/cases/fourslash/jsDocTypeTagQuickInfo2.ts @@ -1,4 +1,5 @@ /// +// @lib: es5 // @allowJs: true // @Filename: jsDocTypeTag2.js //// /** @type {string} */ diff --git a/tests/cases/fourslash/jsFileJsdocTypedefTagTypeExpressionCompletion3.ts b/tests/cases/fourslash/jsFileJsdocTypedefTagTypeExpressionCompletion3.ts index 602b5423c4943..0922e5d74a58c 100644 --- a/tests/cases/fourslash/jsFileJsdocTypedefTagTypeExpressionCompletion3.ts +++ b/tests/cases/fourslash/jsFileJsdocTypedefTagTypeExpressionCompletion3.ts @@ -1,5 +1,6 @@ /// +// @lib: es5 // @allowNonTsExtensions: true // @Filename: jsFileJsdocTypedefTagTypeExpressionCompletion3_typedef.js diff --git a/tests/cases/fourslash/jsdocExtendsTagCompletion.ts b/tests/cases/fourslash/jsdocExtendsTagCompletion.ts index 1af4d0e24cfb6..f33cc4d9638bd 100644 --- a/tests/cases/fourslash/jsdocExtendsTagCompletion.ts +++ b/tests/cases/fourslash/jsdocExtendsTagCompletion.ts @@ -1,5 +1,7 @@ /// +// @lib: es5 + /////** @extends {/**/} */ ////class A {} diff --git a/tests/cases/fourslash/jsdocImplementsTagCompletion.ts b/tests/cases/fourslash/jsdocImplementsTagCompletion.ts index 4407dfb317799..38286ba8fd3b3 100644 --- a/tests/cases/fourslash/jsdocImplementsTagCompletion.ts +++ b/tests/cases/fourslash/jsdocImplementsTagCompletion.ts @@ -1,5 +1,7 @@ /// +// @lib: es5 + /////** @implements {/**/} */ ////class A {} diff --git a/tests/cases/fourslash/jsdocPropertyTagCompletion.ts b/tests/cases/fourslash/jsdocPropertyTagCompletion.ts index 903806471b071..fed92aacb13bc 100644 --- a/tests/cases/fourslash/jsdocPropertyTagCompletion.ts +++ b/tests/cases/fourslash/jsdocPropertyTagCompletion.ts @@ -1,5 +1,7 @@ /// +// @lib: es5 + /////** //// * @typedef {Object} Foo //// * @property {/**/} diff --git a/tests/cases/fourslash/jsdocSatisfiesTagCompletion1.ts b/tests/cases/fourslash/jsdocSatisfiesTagCompletion1.ts index 6e9e257e51e98..09a2eb93d3f3c 100644 --- a/tests/cases/fourslash/jsdocSatisfiesTagCompletion1.ts +++ b/tests/cases/fourslash/jsdocSatisfiesTagCompletion1.ts @@ -1,5 +1,6 @@ /// +// @lib: es5 // @noEmit: true // @allowJS: true // @checkJs: true diff --git a/tests/cases/fourslash/jsdocTemplateTagCompletion.ts b/tests/cases/fourslash/jsdocTemplateTagCompletion.ts index bca1287fd6a33..dd618f5921a4f 100644 --- a/tests/cases/fourslash/jsdocTemplateTagCompletion.ts +++ b/tests/cases/fourslash/jsdocTemplateTagCompletion.ts @@ -1,5 +1,7 @@ /// +// @lib: es5 + /////** //// * @template {/**/} T //// * @typedef {Object} Foo diff --git a/tests/cases/fourslash/jsdocThrowsTagCompletion.ts b/tests/cases/fourslash/jsdocThrowsTagCompletion.ts index 84184de808686..59eae68ffd419 100644 --- a/tests/cases/fourslash/jsdocThrowsTagCompletion.ts +++ b/tests/cases/fourslash/jsdocThrowsTagCompletion.ts @@ -1,5 +1,7 @@ /// +// @lib: es5 + /////** //// * @throws {/**/} description //// */ diff --git a/tests/cases/fourslash/jsdocTypedefTagTypeExpressionCompletion.ts b/tests/cases/fourslash/jsdocTypedefTagTypeExpressionCompletion.ts index 9f5c8112edd05..68a86f995d7b5 100644 --- a/tests/cases/fourslash/jsdocTypedefTagTypeExpressionCompletion.ts +++ b/tests/cases/fourslash/jsdocTypedefTagTypeExpressionCompletion.ts @@ -1,5 +1,7 @@ /// +// @lib: es5 + ////interface I { //// age: number; ////} diff --git a/tests/cases/fourslash/memberCompletionInForEach1.ts b/tests/cases/fourslash/memberCompletionInForEach1.ts index f26a5e409ba82..43dca0d2c7879 100644 --- a/tests/cases/fourslash/memberCompletionInForEach1.ts +++ b/tests/cases/fourslash/memberCompletionInForEach1.ts @@ -1,5 +1,7 @@ /// +// @lib: es5 + ////var x: string[] = []; ////x.forEach(function (y) { y/*1*/ ////x.forEach(y => y/*2*/ diff --git a/tests/cases/fourslash/memberListOnConstructorType.ts b/tests/cases/fourslash/memberListOnConstructorType.ts index 336814aca4187..3a5f516d9228b 100644 --- a/tests/cases/fourslash/memberListOnConstructorType.ts +++ b/tests/cases/fourslash/memberListOnConstructorType.ts @@ -1,5 +1,7 @@ /// +// @lib: es5 + ////var f: new () => void; ////f./*1*/ diff --git a/tests/cases/fourslash/multiModuleClodule.ts b/tests/cases/fourslash/multiModuleClodule.ts index 146abf8dbe9f0..87acad675c869 100644 --- a/tests/cases/fourslash/multiModuleClodule.ts +++ b/tests/cases/fourslash/multiModuleClodule.ts @@ -1,5 +1,7 @@ /// +// @lib: es5 + ////class C { //// constructor(x: number) { } //// foo() { } diff --git a/tests/cases/fourslash/navigateToIIFE.ts b/tests/cases/fourslash/navigateToIIFE.ts index acf168506499f..16a4dc16b4134 100644 --- a/tests/cases/fourslash/navigateToIIFE.ts +++ b/tests/cases/fourslash/navigateToIIFE.ts @@ -1,5 +1,7 @@ /// +// @lib: es5 + // @Filename: /a.ts ////(function () { //// "use strict"; diff --git a/tests/cases/fourslash/navigateToImport.ts b/tests/cases/fourslash/navigateToImport.ts index afb85fa7eed33..6ad1f129f1cc6 100644 --- a/tests/cases/fourslash/navigateToImport.ts +++ b/tests/cases/fourslash/navigateToImport.ts @@ -1,5 +1,7 @@ /// +// @lib: es5 + // @Filename: library.ts ////[|export function foo() {}|] ////[|export function bar() {}|] diff --git a/tests/cases/fourslash/navigateToSymbolIterator.ts b/tests/cases/fourslash/navigateToSymbolIterator.ts index e26e81f7496ad..8a950450cbed8 100644 --- a/tests/cases/fourslash/navigateToSymbolIterator.ts +++ b/tests/cases/fourslash/navigateToSymbolIterator.ts @@ -1,5 +1,7 @@ /// +// @lib: es5 + ////class C { //// [|[Symbol.iterator]() {}|] ////} diff --git a/tests/cases/fourslash/navigationItemsExactMatch2.ts b/tests/cases/fourslash/navigationItemsExactMatch2.ts index 1a4af3dae11c4..b1714f2730382 100644 --- a/tests/cases/fourslash/navigationItemsExactMatch2.ts +++ b/tests/cases/fourslash/navigationItemsExactMatch2.ts @@ -1,5 +1,7 @@ /// +// @lib: es5 + ////namespace Shapes { //// [|class Point { //// [|private _origin = 0.0;|] diff --git a/tests/cases/fourslash/navigationItemsOverloads1.ts b/tests/cases/fourslash/navigationItemsOverloads1.ts index 55b35f00c75dc..089d2cfa5775e 100644 --- a/tests/cases/fourslash/navigationItemsOverloads1.ts +++ b/tests/cases/fourslash/navigationItemsOverloads1.ts @@ -1,5 +1,7 @@ /// +// @lib: es5 + ////function overload(a: string): boolean; ////function overload(b: boolean): boolean; ////function overload(b: number): boolean; diff --git a/tests/cases/fourslash/navigationItemsOverloadsBroken1.ts b/tests/cases/fourslash/navigationItemsOverloadsBroken1.ts index b30a24ba3f45a..5a475cbd70c98 100644 --- a/tests/cases/fourslash/navigationItemsOverloadsBroken1.ts +++ b/tests/cases/fourslash/navigationItemsOverloadsBroken1.ts @@ -1,5 +1,7 @@ /// +// @lib: es5 + ////function overload1(a: string): boolean; ////function overload1(b: boolean): boolean; ////function overload1(b: number): boolean; diff --git a/tests/cases/fourslash/navigationItemsOverloadsBroken2.ts b/tests/cases/fourslash/navigationItemsOverloadsBroken2.ts index eb1e9dcc11cde..9cc20fc79c858 100644 --- a/tests/cases/fourslash/navigationItemsOverloadsBroken2.ts +++ b/tests/cases/fourslash/navigationItemsOverloadsBroken2.ts @@ -1,5 +1,7 @@ /// +// @lib: es5 + ////function overload1(a: string): boolean; ////function overload1(b: boolean): boolean; ////[|function overload1(x: any, b = (function overload() { return false })): boolean { diff --git a/tests/cases/fourslash/navigationItemsPrefixMatch2.ts b/tests/cases/fourslash/navigationItemsPrefixMatch2.ts index 35bcd128b7a33..0356c62925518 100644 --- a/tests/cases/fourslash/navigationItemsPrefixMatch2.ts +++ b/tests/cases/fourslash/navigationItemsPrefixMatch2.ts @@ -1,5 +1,7 @@ /// +// @lib: es5 + ////namespace Shapes { //// export class Point { //// [|private originality = 0.0;|] diff --git a/tests/cases/fourslash/navigationItemsSubStringMatch.ts b/tests/cases/fourslash/navigationItemsSubStringMatch.ts index 95cb4ea2fb074..156e72cb597c0 100644 --- a/tests/cases/fourslash/navigationItemsSubStringMatch.ts +++ b/tests/cases/fourslash/navigationItemsSubStringMatch.ts @@ -1,5 +1,7 @@ /// +// @lib: es5 + /////// Module ////[|{| "name": "MyShapes", "kind": "module" |}namespace MyShapes { //// diff --git a/tests/cases/fourslash/navigationItemsSubStringMatch2.ts b/tests/cases/fourslash/navigationItemsSubStringMatch2.ts index 325306f1dc01a..e23490b4590a8 100644 --- a/tests/cases/fourslash/navigationItemsSubStringMatch2.ts +++ b/tests/cases/fourslash/navigationItemsSubStringMatch2.ts @@ -1,5 +1,7 @@ /// +// @lib: es5 + ////namespace Shapes { //// export class Point { //// [|private originPointAtTheHorizon = 0.0;|] diff --git a/tests/cases/fourslash/nonExistingImport.ts b/tests/cases/fourslash/nonExistingImport.ts index 50b5e334de43e..1748217bf046f 100644 --- a/tests/cases/fourslash/nonExistingImport.ts +++ b/tests/cases/fourslash/nonExistingImport.ts @@ -1,5 +1,7 @@ /// +// @lib: es5 + ////namespace m { //// import foo = module(_foo); //// var n: num/*1*/ diff --git a/tests/cases/fourslash/quickInfoMeaning.ts b/tests/cases/fourslash/quickInfoMeaning.ts index 6728cb2bc0673..4ad0864a93792 100644 --- a/tests/cases/fourslash/quickInfoMeaning.ts +++ b/tests/cases/fourslash/quickInfoMeaning.ts @@ -1,5 +1,7 @@ /// +// @lib: es5 + // Testing that quickInfo gets information with a corresponding meaning: values to values, types to types. // For quick info purposes, we don't resolve past aliases. // However, when we have an alias for a type, the quickInfo for a value with the same should skip the alias, and vice versa. diff --git a/tests/cases/fourslash/quickinfoVerbosityLibType.ts b/tests/cases/fourslash/quickinfoVerbosityLibType.ts index c6f5ee46d0599..5220eaf68ff21 100644 --- a/tests/cases/fourslash/quickinfoVerbosityLibType.ts +++ b/tests/cases/fourslash/quickinfoVerbosityLibType.ts @@ -1,5 +1,7 @@ /// +// @lib: es5 + //// interface Apple { //// color: string; //// size: number; diff --git a/tests/cases/fourslash/quickinfoVerbosityRecursiveType.ts b/tests/cases/fourslash/quickinfoVerbosityRecursiveType.ts index 8bd4d17edb297..53553577cf881 100644 --- a/tests/cases/fourslash/quickinfoVerbosityRecursiveType.ts +++ b/tests/cases/fourslash/quickinfoVerbosityRecursiveType.ts @@ -1,5 +1,7 @@ /// +// @lib: es5 + //// type Node/*N*/ = { //// value: T; //// left: Node | undefined; diff --git a/tests/cases/fourslash/referencesForModifiers.ts b/tests/cases/fourslash/referencesForModifiers.ts index e21d22a21e1d3..48b29a004827d 100644 --- a/tests/cases/fourslash/referencesForModifiers.ts +++ b/tests/cases/fourslash/referencesForModifiers.ts @@ -1,5 +1,7 @@ /// +// @lib: es5 + ////[|/*declareModifier*/declare /*abstractModifier*/abstract class C1 { //// [|/*staticModifier*/static a;|] //// [|/*readonlyModifier*/readonly b;|] diff --git a/tests/cases/fourslash/renameBindingElementInitializerExternal.ts b/tests/cases/fourslash/renameBindingElementInitializerExternal.ts index e3c55039141aa..bc6cd8c46a2d8 100644 --- a/tests/cases/fourslash/renameBindingElementInitializerExternal.ts +++ b/tests/cases/fourslash/renameBindingElementInitializerExternal.ts @@ -1,5 +1,7 @@ /// +// @lib: es5 + ////[|const [|{| "contextRangeIndex": 0 |}external|] = true;|] //// ////function f({ diff --git a/tests/cases/fourslash/semanticModernClassificationConstructorTypes.ts b/tests/cases/fourslash/semanticModernClassificationConstructorTypes.ts index 25ef45b29b628..bf9a309c2d910 100644 --- a/tests/cases/fourslash/semanticModernClassificationConstructorTypes.ts +++ b/tests/cases/fourslash/semanticModernClassificationConstructorTypes.ts @@ -1,3 +1,5 @@ +// @lib: es5 + //// Object.create(null); //// const x = Promise.resolve(Number.MAX_VALUE); //// if (x instanceof Promise) {} diff --git a/tests/cases/fourslash/semanticModernClassificationFunctions.ts b/tests/cases/fourslash/semanticModernClassificationFunctions.ts index 730fe9aad206c..0dc1eeb447ca5 100644 --- a/tests/cases/fourslash/semanticModernClassificationFunctions.ts +++ b/tests/cases/fourslash/semanticModernClassificationFunctions.ts @@ -1,3 +1,5 @@ +// @lib: es5 + //// function foo(p1) { //// return foo(Math.abs(p1)) //// } diff --git a/tests/cases/fourslash/tsxCompletionNonTagLessThan.ts b/tests/cases/fourslash/tsxCompletionNonTagLessThan.ts index a0b1f8ffdc3f6..fb25e763069ff 100644 --- a/tests/cases/fourslash/tsxCompletionNonTagLessThan.ts +++ b/tests/cases/fourslash/tsxCompletionNonTagLessThan.ts @@ -1,22 +1,24 @@ /// +// @lib: es5 + // @Filename: /a.tsx ////var x: Array +// @lib: es5 + //@Filename: file.tsx //// var x = 'something' //// var y = Date: Tue, 27 Jan 2026 11:56:46 -0800 Subject: [PATCH 04/15] Fix tsx tests --- ...StringLiteralsInJsxAttributes02.errors.txt | 24 ++- ...llyTypedStringLiteralsInJsxAttributes02.js | 14 +- ...pedStringLiteralsInJsxAttributes02.symbols | 152 +++++++------- ...TypedStringLiteralsInJsxAttributes02.types | 80 ++++--- ...SpreadOverwritesAttributeStrict.errors.txt | 4 - .../tsxStatelessFunctionComponentOverload6.js | 6 +- ...tatelessFunctionComponentOverload6.symbols | 196 +++++++++--------- ...xStatelessFunctionComponentOverload6.types | 32 +-- ...tsxStatelessFunctionComponents2.errors.txt | 2 +- .../tsxStatelessFunctionComponents2.symbols | 8 +- ...nctionComponentsWithTypeArguments1.symbols | 2 +- ...nctionComponentsWithTypeArguments2.symbols | 2 +- .../jsx/checkJsxChildrenProperty2.tsx | 1 + .../jsxSpreadOverwritesAttributeStrict.tsx | 1 + ...tsxStatelessFunctionComponentOverload6.tsx | 5 +- .../jsx/tsxStatelessFunctionComponents2.tsx | 1 + ...ssFunctionComponentsWithTypeArguments1.tsx | 1 + ...ssFunctionComponentsWithTypeArguments2.tsx | 1 + ...lyTypedStringLiteralsInJsxAttributes02.tsx | 9 +- 19 files changed, 275 insertions(+), 266 deletions(-) diff --git a/tests/baselines/reference/contextuallyTypedStringLiteralsInJsxAttributes02.errors.txt b/tests/baselines/reference/contextuallyTypedStringLiteralsInJsxAttributes02.errors.txt index 4adb70251deaf..fa606b616e89c 100644 --- a/tests/baselines/reference/contextuallyTypedStringLiteralsInJsxAttributes02.errors.txt +++ b/tests/baselines/reference/contextuallyTypedStringLiteralsInJsxAttributes02.errors.txt @@ -1,40 +1,42 @@ -file.tsx(27,64): error TS2769: No overload matches this call. +file.tsx(29,56): error TS2769: No overload matches this call. Overload 1 of 2, '(buttonProps: ButtonProps): Element', gave the following error. Type '{ extra: true; onClick: (k: "left" | "right") => void; }' is not assignable to type 'IntrinsicAttributes & ButtonProps'. Property 'extra' does not exist on type 'IntrinsicAttributes & ButtonProps'. Overload 2 of 2, '(linkProps: LinkProps): Element', gave the following error. Type '{ extra: true; onClick: (k: "left" | "right") => void; }' is not assignable to type 'IntrinsicAttributes & LinkProps'. Property 'extra' does not exist on type 'IntrinsicAttributes & LinkProps'. -file.tsx(28,13): error TS2769: No overload matches this call. +file.tsx(30,13): error TS2769: No overload matches this call. Overload 1 of 2, '(buttonProps: ButtonProps): Element', gave the following error. Type '{ onClick: (k: "left" | "right") => void; extra: true; }' is not assignable to type 'IntrinsicAttributes & ButtonProps'. Property 'extra' does not exist on type 'IntrinsicAttributes & ButtonProps'. Overload 2 of 2, '(linkProps: LinkProps): Element', gave the following error. Type '{ onClick: (k: "left" | "right") => void; extra: true; }' is not assignable to type 'IntrinsicAttributes & LinkProps'. Property 'onClick' does not exist on type 'IntrinsicAttributes & LinkProps'. -file.tsx(29,43): error TS2769: No overload matches this call. +file.tsx(31,43): error TS2769: No overload matches this call. Overload 1 of 2, '(buttonProps: ButtonProps): Element', gave the following error. Type '{ extra: true; goTo: string; }' is not assignable to type 'IntrinsicAttributes & ButtonProps'. Property 'extra' does not exist on type 'IntrinsicAttributes & ButtonProps'. Overload 2 of 2, '(linkProps: LinkProps): Element', gave the following error. Type '{ extra: true; goTo: "home"; }' is not assignable to type 'IntrinsicAttributes & LinkProps'. Property 'extra' does not exist on type 'IntrinsicAttributes & LinkProps'. -file.tsx(30,13): error TS2769: No overload matches this call. +file.tsx(32,13): error TS2769: No overload matches this call. Overload 1 of 2, '(buttonProps: ButtonProps): Element', gave the following error. Type '{ goTo: string; extra: true; }' is not assignable to type 'IntrinsicAttributes & ButtonProps'. Property 'goTo' does not exist on type 'IntrinsicAttributes & ButtonProps'. Overload 2 of 2, '(linkProps: LinkProps): Element', gave the following error. Type '{ goTo: "home"; extra: true; }' is not assignable to type 'IntrinsicAttributes & LinkProps'. Property 'extra' does not exist on type 'IntrinsicAttributes & LinkProps'. -file.tsx(33,65): error TS2322: Type '{ extra: true; onClick: (k: "left" | "right") => void; }' is not assignable to type 'IntrinsicAttributes & ButtonProps'. +file.tsx(35,57): error TS2322: Type '{ extra: true; onClick: (k: "left" | "right") => void; }' is not assignable to type 'IntrinsicAttributes & ButtonProps'. Property 'extra' does not exist on type 'IntrinsicAttributes & ButtonProps'. -file.tsx(36,44): error TS2322: Type '{ extra: true; goTo: "home"; }' is not assignable to type 'IntrinsicAttributes & LinkProps'. +file.tsx(38,44): error TS2322: Type '{ extra: true; goTo: "home"; }' is not assignable to type 'IntrinsicAttributes & LinkProps'. Property 'extra' does not exist on type 'IntrinsicAttributes & LinkProps'. ==== file.tsx (6 errors) ==== import React = require('react') + declare function log(...args: any[]): void; + export interface ClickableProps { children?: string; className?: string; @@ -59,8 +61,8 @@ file.tsx(36,44): error TS2322: Type '{ extra: true; goTo: "home"; }' is not assi return this._buildMainButton(props); } - const b0 = {console.log(k)}}} extra />; // k has type "left" | "right" - ~~~~~ + const b0 = {log(k)}}} extra />; // k has type "left" | "right" + ~~~~~ !!! error TS2769: No overload matches this call. !!! error TS2769: Overload 1 of 2, '(buttonProps: ButtonProps): Element', gave the following error. !!! error TS2769: Type '{ extra: true; onClick: (k: "left" | "right") => void; }' is not assignable to type 'IntrinsicAttributes & ButtonProps'. @@ -68,7 +70,7 @@ file.tsx(36,44): error TS2322: Type '{ extra: true; goTo: "home"; }' is not assi !!! error TS2769: Overload 2 of 2, '(linkProps: LinkProps): Element', gave the following error. !!! error TS2769: Type '{ extra: true; onClick: (k: "left" | "right") => void; }' is not assignable to type 'IntrinsicAttributes & LinkProps'. !!! error TS2769: Property 'extra' does not exist on type 'IntrinsicAttributes & LinkProps'. - const b2 = {console.log(k)}} extra />; // k has type "left" | "right" + const b2 = {log(k)}} extra />; // k has type "left" | "right" ~~~~~~~~~~ !!! error TS2769: No overload matches this call. !!! error TS2769: Overload 1 of 2, '(buttonProps: ButtonProps): Element', gave the following error. @@ -97,8 +99,8 @@ file.tsx(36,44): error TS2322: Type '{ extra: true; goTo: "home"; }' is not assi !!! error TS2769: Property 'extra' does not exist on type 'IntrinsicAttributes & LinkProps'. export function NoOverload(buttonProps: ButtonProps): JSX.Element { return undefined } - const c1 = {console.log(k)}}} extra />; // k has type any - ~~~~~ + const c1 = {log(k)}}} extra />; // k has type any + ~~~~~ !!! error TS2322: Type '{ extra: true; onClick: (k: "left" | "right") => void; }' is not assignable to type 'IntrinsicAttributes & ButtonProps'. !!! error TS2322: Property 'extra' does not exist on type 'IntrinsicAttributes & ButtonProps'. diff --git a/tests/baselines/reference/contextuallyTypedStringLiteralsInJsxAttributes02.js b/tests/baselines/reference/contextuallyTypedStringLiteralsInJsxAttributes02.js index aa9bfba6e21b7..99e9a39734182 100644 --- a/tests/baselines/reference/contextuallyTypedStringLiteralsInJsxAttributes02.js +++ b/tests/baselines/reference/contextuallyTypedStringLiteralsInJsxAttributes02.js @@ -3,6 +3,8 @@ //// [file.tsx] import React = require('react') +declare function log(...args: any[]): void; + export interface ClickableProps { children?: string; className?: string; @@ -27,13 +29,13 @@ export function MainButton(props: ButtonProps | LinkProps): JSX.Element { return this._buildMainButton(props); } -const b0 = {console.log(k)}}} extra />; // k has type "left" | "right" -const b2 = {console.log(k)}} extra />; // k has type "left" | "right" +const b0 = {log(k)}}} extra />; // k has type "left" | "right" +const b2 = {log(k)}} extra />; // k has type "left" | "right" const b3 = ; // goTo has type"home" | "contact" const b4 = ; // goTo has type "home" | "contact" export function NoOverload(buttonProps: ButtonProps): JSX.Element { return undefined } -const c1 = {console.log(k)}}} extra />; // k has type any +const c1 = {log(k)}}} extra />; // k has type any export function NoOverload1(linkProps: LinkProps): JSX.Element { return undefined } const d1 = ; // goTo has type "home" | "contact" @@ -53,11 +55,11 @@ function MainButton(props) { } return this._buildMainButton(props); } -var b0 = ; // k has type "left" | "right" -var b2 = ; // k has type "left" | "right" +var b0 = ; // k has type "left" | "right" +var b2 = ; // k has type "left" | "right" var b3 = ; // goTo has type"home" | "contact" var b4 = ; // goTo has type "home" | "contact" function NoOverload(buttonProps) { return undefined; } -var c1 = ; // k has type any +var c1 = ; // k has type any function NoOverload1(linkProps) { return undefined; } var d1 = ; // goTo has type "home" | "contact" diff --git a/tests/baselines/reference/contextuallyTypedStringLiteralsInJsxAttributes02.symbols b/tests/baselines/reference/contextuallyTypedStringLiteralsInJsxAttributes02.symbols index 207e3bb6815f7..a9ae1b83ab99f 100644 --- a/tests/baselines/reference/contextuallyTypedStringLiteralsInJsxAttributes02.symbols +++ b/tests/baselines/reference/contextuallyTypedStringLiteralsInJsxAttributes02.symbols @@ -4,137 +4,135 @@ import React = require('react') >React : Symbol(React, Decl(file.tsx, 0, 0)) +declare function log(...args: any[]): void; +>log : Symbol(log, Decl(file.tsx, 0, 31)) +>args : Symbol(args, Decl(file.tsx, 2, 21)) + export interface ClickableProps { ->ClickableProps : Symbol(ClickableProps, Decl(file.tsx, 0, 31)) +>ClickableProps : Symbol(ClickableProps, Decl(file.tsx, 2, 43)) children?: string; ->children : Symbol(ClickableProps.children, Decl(file.tsx, 2, 33)) +>children : Symbol(ClickableProps.children, Decl(file.tsx, 4, 33)) className?: string; ->className : Symbol(ClickableProps.className, Decl(file.tsx, 3, 22)) +>className : Symbol(ClickableProps.className, Decl(file.tsx, 5, 22)) } export interface ButtonProps extends ClickableProps { ->ButtonProps : Symbol(ButtonProps, Decl(file.tsx, 5, 1)) ->ClickableProps : Symbol(ClickableProps, Decl(file.tsx, 0, 31)) +>ButtonProps : Symbol(ButtonProps, Decl(file.tsx, 7, 1)) +>ClickableProps : Symbol(ClickableProps, Decl(file.tsx, 2, 43)) onClick: (k: "left" | "right") => void; ->onClick : Symbol(ButtonProps.onClick, Decl(file.tsx, 7, 53)) ->k : Symbol(k, Decl(file.tsx, 8, 14)) +>onClick : Symbol(ButtonProps.onClick, Decl(file.tsx, 9, 53)) +>k : Symbol(k, Decl(file.tsx, 10, 14)) } export interface LinkProps extends ClickableProps { ->LinkProps : Symbol(LinkProps, Decl(file.tsx, 9, 1)) ->ClickableProps : Symbol(ClickableProps, Decl(file.tsx, 0, 31)) +>LinkProps : Symbol(LinkProps, Decl(file.tsx, 11, 1)) +>ClickableProps : Symbol(ClickableProps, Decl(file.tsx, 2, 43)) goTo: "home" | "contact"; ->goTo : Symbol(LinkProps.goTo, Decl(file.tsx, 11, 51)) +>goTo : Symbol(LinkProps.goTo, Decl(file.tsx, 13, 51)) } export function MainButton(buttonProps: ButtonProps): JSX.Element; ->MainButton : Symbol(MainButton, Decl(file.tsx, 13, 1), Decl(file.tsx, 15, 66), Decl(file.tsx, 16, 62)) ->buttonProps : Symbol(buttonProps, Decl(file.tsx, 15, 27)) ->ButtonProps : Symbol(ButtonProps, Decl(file.tsx, 5, 1)) +>MainButton : Symbol(MainButton, Decl(file.tsx, 15, 1), Decl(file.tsx, 17, 66), Decl(file.tsx, 18, 62)) +>buttonProps : Symbol(buttonProps, Decl(file.tsx, 17, 27)) +>ButtonProps : Symbol(ButtonProps, Decl(file.tsx, 7, 1)) >JSX : Symbol(JSX, Decl(react.d.ts, 2353, 1)) >Element : Symbol(JSX.Element, Decl(react.d.ts, 2356, 27)) export function MainButton(linkProps: LinkProps): JSX.Element; ->MainButton : Symbol(MainButton, Decl(file.tsx, 13, 1), Decl(file.tsx, 15, 66), Decl(file.tsx, 16, 62)) ->linkProps : Symbol(linkProps, Decl(file.tsx, 16, 27)) ->LinkProps : Symbol(LinkProps, Decl(file.tsx, 9, 1)) +>MainButton : Symbol(MainButton, Decl(file.tsx, 15, 1), Decl(file.tsx, 17, 66), Decl(file.tsx, 18, 62)) +>linkProps : Symbol(linkProps, Decl(file.tsx, 18, 27)) +>LinkProps : Symbol(LinkProps, Decl(file.tsx, 11, 1)) >JSX : Symbol(JSX, Decl(react.d.ts, 2353, 1)) >Element : Symbol(JSX.Element, Decl(react.d.ts, 2356, 27)) export function MainButton(props: ButtonProps | LinkProps): JSX.Element { ->MainButton : Symbol(MainButton, Decl(file.tsx, 13, 1), Decl(file.tsx, 15, 66), Decl(file.tsx, 16, 62)) ->props : Symbol(props, Decl(file.tsx, 17, 27)) ->ButtonProps : Symbol(ButtonProps, Decl(file.tsx, 5, 1)) ->LinkProps : Symbol(LinkProps, Decl(file.tsx, 9, 1)) +>MainButton : Symbol(MainButton, Decl(file.tsx, 15, 1), Decl(file.tsx, 17, 66), Decl(file.tsx, 18, 62)) +>props : Symbol(props, Decl(file.tsx, 19, 27)) +>ButtonProps : Symbol(ButtonProps, Decl(file.tsx, 7, 1)) +>LinkProps : Symbol(LinkProps, Decl(file.tsx, 11, 1)) >JSX : Symbol(JSX, Decl(react.d.ts, 2353, 1)) >Element : Symbol(JSX.Element, Decl(react.d.ts, 2356, 27)) const linkProps = props as LinkProps; ->linkProps : Symbol(linkProps, Decl(file.tsx, 18, 9)) ->props : Symbol(props, Decl(file.tsx, 17, 27)) ->LinkProps : Symbol(LinkProps, Decl(file.tsx, 9, 1)) +>linkProps : Symbol(linkProps, Decl(file.tsx, 20, 9)) +>props : Symbol(props, Decl(file.tsx, 19, 27)) +>LinkProps : Symbol(LinkProps, Decl(file.tsx, 11, 1)) if(linkProps.goTo) { ->linkProps.goTo : Symbol(LinkProps.goTo, Decl(file.tsx, 11, 51)) ->linkProps : Symbol(linkProps, Decl(file.tsx, 18, 9)) ->goTo : Symbol(LinkProps.goTo, Decl(file.tsx, 11, 51)) +>linkProps.goTo : Symbol(LinkProps.goTo, Decl(file.tsx, 13, 51)) +>linkProps : Symbol(linkProps, Decl(file.tsx, 20, 9)) +>goTo : Symbol(LinkProps.goTo, Decl(file.tsx, 13, 51)) return this._buildMainLink(props); ->props : Symbol(props, Decl(file.tsx, 17, 27)) +>props : Symbol(props, Decl(file.tsx, 19, 27)) } return this._buildMainButton(props); ->props : Symbol(props, Decl(file.tsx, 17, 27)) +>props : Symbol(props, Decl(file.tsx, 19, 27)) } -const b0 = {console.log(k)}}} extra />; // k has type "left" | "right" ->b0 : Symbol(b0, Decl(file.tsx, 26, 5)) ->MainButton : Symbol(MainButton, Decl(file.tsx, 13, 1), Decl(file.tsx, 15, 66), Decl(file.tsx, 16, 62)) ->onClick : Symbol(onClick, Decl(file.tsx, 26, 28)) ->k : Symbol(k, Decl(file.tsx, 26, 38)) ->console.log : Symbol(Console.log, Decl(lib.d.ts, --, --)) ->console : Symbol(console, Decl(lib.d.ts, --, --)) ->log : Symbol(Console.log, Decl(lib.d.ts, --, --)) ->k : Symbol(k, Decl(file.tsx, 26, 38)) ->extra : Symbol(extra, Decl(file.tsx, 26, 62)) - -const b2 = {console.log(k)}} extra />; // k has type "left" | "right" ->b2 : Symbol(b2, Decl(file.tsx, 27, 5)) ->MainButton : Symbol(MainButton, Decl(file.tsx, 13, 1), Decl(file.tsx, 15, 66), Decl(file.tsx, 16, 62)) ->onClick : Symbol(onClick, Decl(file.tsx, 27, 22)) ->k : Symbol(k, Decl(file.tsx, 27, 33)) ->console.log : Symbol(Console.log, Decl(lib.d.ts, --, --)) ->console : Symbol(console, Decl(lib.d.ts, --, --)) ->log : Symbol(Console.log, Decl(lib.d.ts, --, --)) ->k : Symbol(k, Decl(file.tsx, 27, 33)) ->extra : Symbol(extra, Decl(file.tsx, 27, 54)) +const b0 = {log(k)}}} extra />; // k has type "left" | "right" +>b0 : Symbol(b0, Decl(file.tsx, 28, 5)) +>MainButton : Symbol(MainButton, Decl(file.tsx, 15, 1), Decl(file.tsx, 17, 66), Decl(file.tsx, 18, 62)) +>onClick : Symbol(onClick, Decl(file.tsx, 28, 28)) +>k : Symbol(k, Decl(file.tsx, 28, 38)) +>log : Symbol(log, Decl(file.tsx, 0, 31)) +>k : Symbol(k, Decl(file.tsx, 28, 38)) +>extra : Symbol(extra, Decl(file.tsx, 28, 54)) + +const b2 = {log(k)}} extra />; // k has type "left" | "right" +>b2 : Symbol(b2, Decl(file.tsx, 29, 5)) +>MainButton : Symbol(MainButton, Decl(file.tsx, 15, 1), Decl(file.tsx, 17, 66), Decl(file.tsx, 18, 62)) +>onClick : Symbol(onClick, Decl(file.tsx, 29, 22)) +>k : Symbol(k, Decl(file.tsx, 29, 33)) +>log : Symbol(log, Decl(file.tsx, 0, 31)) +>k : Symbol(k, Decl(file.tsx, 29, 33)) +>extra : Symbol(extra, Decl(file.tsx, 29, 46)) const b3 = ; // goTo has type"home" | "contact" ->b3 : Symbol(b3, Decl(file.tsx, 28, 5)) ->MainButton : Symbol(MainButton, Decl(file.tsx, 13, 1), Decl(file.tsx, 15, 66), Decl(file.tsx, 16, 62)) ->goTo : Symbol(goTo, Decl(file.tsx, 28, 28)) ->extra : Symbol(extra, Decl(file.tsx, 28, 41)) +>b3 : Symbol(b3, Decl(file.tsx, 30, 5)) +>MainButton : Symbol(MainButton, Decl(file.tsx, 15, 1), Decl(file.tsx, 17, 66), Decl(file.tsx, 18, 62)) +>goTo : Symbol(goTo, Decl(file.tsx, 30, 28)) +>extra : Symbol(extra, Decl(file.tsx, 30, 41)) const b4 = ; // goTo has type "home" | "contact" ->b4 : Symbol(b4, Decl(file.tsx, 29, 5)) ->MainButton : Symbol(MainButton, Decl(file.tsx, 13, 1), Decl(file.tsx, 15, 66), Decl(file.tsx, 16, 62)) ->goTo : Symbol(goTo, Decl(file.tsx, 29, 22)) ->extra : Symbol(extra, Decl(file.tsx, 29, 34)) +>b4 : Symbol(b4, Decl(file.tsx, 31, 5)) +>MainButton : Symbol(MainButton, Decl(file.tsx, 15, 1), Decl(file.tsx, 17, 66), Decl(file.tsx, 18, 62)) +>goTo : Symbol(goTo, Decl(file.tsx, 31, 22)) +>extra : Symbol(extra, Decl(file.tsx, 31, 34)) export function NoOverload(buttonProps: ButtonProps): JSX.Element { return undefined } ->NoOverload : Symbol(NoOverload, Decl(file.tsx, 29, 44)) ->buttonProps : Symbol(buttonProps, Decl(file.tsx, 31, 27)) ->ButtonProps : Symbol(ButtonProps, Decl(file.tsx, 5, 1)) +>NoOverload : Symbol(NoOverload, Decl(file.tsx, 31, 44)) +>buttonProps : Symbol(buttonProps, Decl(file.tsx, 33, 27)) +>ButtonProps : Symbol(ButtonProps, Decl(file.tsx, 7, 1)) >JSX : Symbol(JSX, Decl(react.d.ts, 2353, 1)) >Element : Symbol(JSX.Element, Decl(react.d.ts, 2356, 27)) >undefined : Symbol(undefined) -const c1 = {console.log(k)}}} extra />; // k has type any ->c1 : Symbol(c1, Decl(file.tsx, 32, 5)) ->NoOverload : Symbol(NoOverload, Decl(file.tsx, 29, 44)) ->onClick : Symbol(onClick, Decl(file.tsx, 32, 29)) ->k : Symbol(k, Decl(file.tsx, 32, 39)) ->console.log : Symbol(Console.log, Decl(lib.d.ts, --, --)) ->console : Symbol(console, Decl(lib.d.ts, --, --)) ->log : Symbol(Console.log, Decl(lib.d.ts, --, --)) ->k : Symbol(k, Decl(file.tsx, 32, 39)) ->extra : Symbol(extra, Decl(file.tsx, 32, 63)) +const c1 = {log(k)}}} extra />; // k has type any +>c1 : Symbol(c1, Decl(file.tsx, 34, 5)) +>NoOverload : Symbol(NoOverload, Decl(file.tsx, 31, 44)) +>onClick : Symbol(onClick, Decl(file.tsx, 34, 29)) +>k : Symbol(k, Decl(file.tsx, 34, 39)) +>log : Symbol(log, Decl(file.tsx, 0, 31)) +>k : Symbol(k, Decl(file.tsx, 34, 39)) +>extra : Symbol(extra, Decl(file.tsx, 34, 55)) export function NoOverload1(linkProps: LinkProps): JSX.Element { return undefined } ->NoOverload1 : Symbol(NoOverload1, Decl(file.tsx, 32, 73)) ->linkProps : Symbol(linkProps, Decl(file.tsx, 34, 28)) ->LinkProps : Symbol(LinkProps, Decl(file.tsx, 9, 1)) +>NoOverload1 : Symbol(NoOverload1, Decl(file.tsx, 34, 65)) +>linkProps : Symbol(linkProps, Decl(file.tsx, 36, 28)) +>LinkProps : Symbol(LinkProps, Decl(file.tsx, 11, 1)) >JSX : Symbol(JSX, Decl(react.d.ts, 2353, 1)) >Element : Symbol(JSX.Element, Decl(react.d.ts, 2356, 27)) >undefined : Symbol(undefined) const d1 = ; // goTo has type "home" | "contact" ->d1 : Symbol(d1, Decl(file.tsx, 35, 5)) ->NoOverload1 : Symbol(NoOverload1, Decl(file.tsx, 32, 73)) ->goTo : Symbol(goTo, Decl(file.tsx, 35, 29)) ->extra : Symbol(extra, Decl(file.tsx, 35, 42)) +>d1 : Symbol(d1, Decl(file.tsx, 37, 5)) +>NoOverload1 : Symbol(NoOverload1, Decl(file.tsx, 34, 65)) +>goTo : Symbol(goTo, Decl(file.tsx, 37, 29)) +>extra : Symbol(extra, Decl(file.tsx, 37, 42)) diff --git a/tests/baselines/reference/contextuallyTypedStringLiteralsInJsxAttributes02.types b/tests/baselines/reference/contextuallyTypedStringLiteralsInJsxAttributes02.types index f5b6e20173fcc..df32286aab66b 100644 --- a/tests/baselines/reference/contextuallyTypedStringLiteralsInJsxAttributes02.types +++ b/tests/baselines/reference/contextuallyTypedStringLiteralsInJsxAttributes02.types @@ -5,6 +5,12 @@ import React = require('react') >React : typeof React > : ^^^^^^^^^^^^ +declare function log(...args: any[]): void; +>log : (...args: any[]) => void +> : ^^^^ ^^ ^^^^^ +>args : any[] +> : ^^^^^ + export interface ClickableProps { children?: string; >children : string @@ -95,55 +101,47 @@ export function MainButton(props: ButtonProps | LinkProps): JSX.Element { > : ^^^^^^^^^^^^^^^^^^^^^^^ } -const b0 = {console.log(k)}}} extra />; // k has type "left" | "right" +const b0 = {log(k)}}} extra />; // k has type "left" | "right" >b0 : JSX.Element > : ^^^^^^^^^^^ -> {console.log(k)}}} extra /> : JSX.Element -> : ^^^^^^^^^^^ +> {log(k)}}} extra /> : JSX.Element +> : ^^^^^^^^^^^ >MainButton : { (buttonProps: ButtonProps): JSX.Element; (linkProps: LinkProps): JSX.Element; } > : ^^^ ^^ ^^^ ^^^ ^^ ^^^ ^^^ ->{onClick: (k) => {console.log(k)}} : { onClick: (k: "left" | "right") => void; } -> : ^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>{onClick: (k) => {log(k)}} : { onClick: (k: "left" | "right") => void; } +> : ^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ >onClick : (k: "left" | "right") => void > : ^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^ ->(k) => {console.log(k)} : (k: "left" | "right") => void -> : ^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>(k) => {log(k)} : (k: "left" | "right") => void +> : ^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^ >k : "left" | "right" > : ^^^^^^^^^^^^^^^^ ->console.log(k) : void -> : ^^^^ ->console.log : (message?: any, ...optionalParams: any[]) => void -> : ^ ^^^ ^^^^^ ^^ ^^^^^ ->console : Console -> : ^^^^^^^ ->log : (message?: any, ...optionalParams: any[]) => void -> : ^ ^^^ ^^^^^ ^^ ^^^^^ +>log(k) : void +> : ^^^^ +>log : (...args: any[]) => void +> : ^^^^ ^^ ^^^^^ >k : "left" | "right" > : ^^^^^^^^^^^^^^^^ >extra : true > : ^^^^ -const b2 = {console.log(k)}} extra />; // k has type "left" | "right" +const b2 = {log(k)}} extra />; // k has type "left" | "right" >b2 : JSX.Element > : ^^^^^^^^^^^ ->{console.log(k)}} extra /> : JSX.Element -> : ^^^^^^^^^^^ +>{log(k)}} extra /> : JSX.Element +> : ^^^^^^^^^^^ >MainButton : { (buttonProps: ButtonProps): JSX.Element; (linkProps: LinkProps): JSX.Element; } > : ^^^ ^^ ^^^ ^^^ ^^ ^^^ ^^^ >onClick : (k: "left" | "right") => void > : ^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^ ->(k)=>{console.log(k)} : (k: "left" | "right") => void -> : ^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>(k)=>{log(k)} : (k: "left" | "right") => void +> : ^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^ >k : "left" | "right" > : ^^^^^^^^^^^^^^^^ ->console.log(k) : void -> : ^^^^ ->console.log : (message?: any, ...optionalParams: any[]) => void -> : ^ ^^^ ^^^^^ ^^ ^^^^^ ->console : Console -> : ^^^^^^^ ->log : (message?: any, ...optionalParams: any[]) => void -> : ^ ^^^ ^^^^^ ^^ ^^^^^ +>log(k) : void +> : ^^^^ +>log : (...args: any[]) => void +> : ^^^^ ^^ ^^^^^ >k : "left" | "right" > : ^^^^^^^^^^^^^^^^ >extra : true @@ -187,29 +185,25 @@ export function NoOverload(buttonProps: ButtonProps): JSX.Element { return undef >undefined : undefined > : ^^^^^^^^^ -const c1 = {console.log(k)}}} extra />; // k has type any +const c1 = {log(k)}}} extra />; // k has type any >c1 : JSX.Element > : ^^^^^^^^^^^ -> {console.log(k)}}} extra /> : JSX.Element -> : ^^^^^^^^^^^ +> {log(k)}}} extra /> : JSX.Element +> : ^^^^^^^^^^^ >NoOverload : (buttonProps: ButtonProps) => JSX.Element > : ^ ^^ ^^^^^ ->{onClick: (k) => {console.log(k)}} : { onClick: (k: "left" | "right") => void; } -> : ^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>{onClick: (k) => {log(k)}} : { onClick: (k: "left" | "right") => void; } +> : ^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ >onClick : (k: "left" | "right") => void > : ^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^ ->(k) => {console.log(k)} : (k: "left" | "right") => void -> : ^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>(k) => {log(k)} : (k: "left" | "right") => void +> : ^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^ >k : "left" | "right" > : ^^^^^^^^^^^^^^^^ ->console.log(k) : void -> : ^^^^ ->console.log : (message?: any, ...optionalParams: any[]) => void -> : ^ ^^^ ^^^^^ ^^ ^^^^^ ->console : Console -> : ^^^^^^^ ->log : (message?: any, ...optionalParams: any[]) => void -> : ^ ^^^ ^^^^^ ^^ ^^^^^ +>log(k) : void +> : ^^^^ +>log : (...args: any[]) => void +> : ^^^^ ^^ ^^^^^ >k : "left" | "right" > : ^^^^^^^^^^^^^^^^ >extra : true diff --git a/tests/baselines/reference/jsxSpreadOverwritesAttributeStrict.errors.txt b/tests/baselines/reference/jsxSpreadOverwritesAttributeStrict.errors.txt index 0b891b78e5316..60fd97512fc1e 100644 --- a/tests/baselines/reference/jsxSpreadOverwritesAttributeStrict.errors.txt +++ b/tests/baselines/reference/jsxSpreadOverwritesAttributeStrict.errors.txt @@ -1,5 +1,3 @@ -error TS2318: Cannot find global type 'CallableFunction'. -error TS2318: Cannot find global type 'NewableFunction'. file.tsx(19,17): error TS2783: 'a' is specified more than once, so this usage will be overwritten. file.tsx(20,17): error TS2783: 'a' is specified more than once, so this usage will be overwritten. file.tsx(20,23): error TS2783: 'b' is specified more than once, so this usage will be overwritten. @@ -9,8 +7,6 @@ file.tsx(22,17): error TS2783: 'a' is specified more than once, so this usage wi file.tsx(22,23): error TS2783: 'd' is specified more than once, so this usage will be overwritten. -!!! error TS2318: Cannot find global type 'CallableFunction'. -!!! error TS2318: Cannot find global type 'NewableFunction'. ==== file.tsx (7 errors) ==== import React = require('react'); diff --git a/tests/baselines/reference/tsxStatelessFunctionComponentOverload6.js b/tests/baselines/reference/tsxStatelessFunctionComponentOverload6.js index a6c1613a60863..c70c161212043 100644 --- a/tests/baselines/reference/tsxStatelessFunctionComponentOverload6.js +++ b/tests/baselines/reference/tsxStatelessFunctionComponentOverload6.js @@ -3,6 +3,8 @@ //// [file.tsx] import React = require('react') +declare function log(...args: any[]): void; + export interface ClickableProps { children?: string; className?: string; @@ -49,7 +51,7 @@ const b3 = ; const b4 = ; // any; just pick the first overload const b5 = ; // should pick the second overload const b6 = ; -const b7 = { console.log("hi") }}} />; +const b7 = { log("hi") }}} />; const b8 = ; // OK; method declaration get retained (See GitHub #13365) const b9 = GO; const b10 = ; @@ -87,7 +89,7 @@ var b3 = ; var b4 = ; // any; just pick the first overload var b5 = ; // should pick the second overload var b6 = ; -var b7 = ; +var b7 = ; var b8 = ; // OK; method declaration get retained (See GitHub #13365) var b9 = GO; var b10 = ; diff --git a/tests/baselines/reference/tsxStatelessFunctionComponentOverload6.symbols b/tests/baselines/reference/tsxStatelessFunctionComponentOverload6.symbols index 0e0656495cc4f..02bb0d9bc9a6c 100644 --- a/tests/baselines/reference/tsxStatelessFunctionComponentOverload6.symbols +++ b/tests/baselines/reference/tsxStatelessFunctionComponentOverload6.symbols @@ -4,190 +4,192 @@ import React = require('react') >React : Symbol(React, Decl(file.tsx, 0, 0)) +declare function log(...args: any[]): void; +>log : Symbol(log, Decl(file.tsx, 0, 31)) +>args : Symbol(args, Decl(file.tsx, 2, 21)) + export interface ClickableProps { ->ClickableProps : Symbol(ClickableProps, Decl(file.tsx, 0, 31)) +>ClickableProps : Symbol(ClickableProps, Decl(file.tsx, 2, 43)) children?: string; ->children : Symbol(ClickableProps.children, Decl(file.tsx, 2, 33)) +>children : Symbol(ClickableProps.children, Decl(file.tsx, 4, 33)) className?: string; ->className : Symbol(ClickableProps.className, Decl(file.tsx, 3, 22)) +>className : Symbol(ClickableProps.className, Decl(file.tsx, 5, 22)) } export interface ButtonProps extends ClickableProps { ->ButtonProps : Symbol(ButtonProps, Decl(file.tsx, 5, 1)) ->ClickableProps : Symbol(ClickableProps, Decl(file.tsx, 0, 31)) +>ButtonProps : Symbol(ButtonProps, Decl(file.tsx, 7, 1)) +>ClickableProps : Symbol(ClickableProps, Decl(file.tsx, 2, 43)) onClick: React.MouseEventHandler; ->onClick : Symbol(ButtonProps.onClick, Decl(file.tsx, 7, 53)) +>onClick : Symbol(ButtonProps.onClick, Decl(file.tsx, 9, 53)) >React : Symbol(React, Decl(file.tsx, 0, 0)) >MouseEventHandler : Symbol(React.MouseEventHandler, Decl(react.d.ts, 389, 66)) } export interface LinkProps extends ClickableProps { ->LinkProps : Symbol(LinkProps, Decl(file.tsx, 9, 1)) ->ClickableProps : Symbol(ClickableProps, Decl(file.tsx, 0, 31)) +>LinkProps : Symbol(LinkProps, Decl(file.tsx, 11, 1)) +>ClickableProps : Symbol(ClickableProps, Decl(file.tsx, 2, 43)) to: string; ->to : Symbol(LinkProps.to, Decl(file.tsx, 11, 51)) +>to : Symbol(LinkProps.to, Decl(file.tsx, 13, 51)) } export interface HyphenProps extends ClickableProps { ->HyphenProps : Symbol(HyphenProps, Decl(file.tsx, 13, 1)) ->ClickableProps : Symbol(ClickableProps, Decl(file.tsx, 0, 31)) +>HyphenProps : Symbol(HyphenProps, Decl(file.tsx, 15, 1)) +>ClickableProps : Symbol(ClickableProps, Decl(file.tsx, 2, 43)) "data-format": string; ->"data-format" : Symbol(HyphenProps["data-format"], Decl(file.tsx, 15, 53)) +>"data-format" : Symbol(HyphenProps["data-format"], Decl(file.tsx, 17, 53)) } let obj = { ->obj : Symbol(obj, Decl(file.tsx, 19, 3)) +>obj : Symbol(obj, Decl(file.tsx, 21, 3)) children: "hi", ->children : Symbol(children, Decl(file.tsx, 19, 11)) +>children : Symbol(children, Decl(file.tsx, 21, 11)) to: "boo" ->to : Symbol(to, Decl(file.tsx, 20, 19)) +>to : Symbol(to, Decl(file.tsx, 22, 19)) } let obj1: any; ->obj1 : Symbol(obj1, Decl(file.tsx, 23, 3)) +>obj1 : Symbol(obj1, Decl(file.tsx, 25, 3)) let obj2 = { ->obj2 : Symbol(obj2, Decl(file.tsx, 24, 3)) +>obj2 : Symbol(obj2, Decl(file.tsx, 26, 3)) onClick: () => {} ->onClick : Symbol(onClick, Decl(file.tsx, 24, 12)) +>onClick : Symbol(onClick, Decl(file.tsx, 26, 12)) } export function MainButton(buttonProps: ButtonProps): JSX.Element; ->MainButton : Symbol(MainButton, Decl(file.tsx, 26, 1), Decl(file.tsx, 28, 66), Decl(file.tsx, 29, 62), Decl(file.tsx, 30, 66)) ->buttonProps : Symbol(buttonProps, Decl(file.tsx, 28, 27)) ->ButtonProps : Symbol(ButtonProps, Decl(file.tsx, 5, 1)) +>MainButton : Symbol(MainButton, Decl(file.tsx, 28, 1), Decl(file.tsx, 30, 66), Decl(file.tsx, 31, 62), Decl(file.tsx, 32, 66)) +>buttonProps : Symbol(buttonProps, Decl(file.tsx, 30, 27)) +>ButtonProps : Symbol(ButtonProps, Decl(file.tsx, 7, 1)) >JSX : Symbol(JSX, Decl(react.d.ts, 2353, 1)) >Element : Symbol(JSX.Element, Decl(react.d.ts, 2356, 27)) export function MainButton(linkProps: LinkProps): JSX.Element; ->MainButton : Symbol(MainButton, Decl(file.tsx, 26, 1), Decl(file.tsx, 28, 66), Decl(file.tsx, 29, 62), Decl(file.tsx, 30, 66)) ->linkProps : Symbol(linkProps, Decl(file.tsx, 29, 27)) ->LinkProps : Symbol(LinkProps, Decl(file.tsx, 9, 1)) +>MainButton : Symbol(MainButton, Decl(file.tsx, 28, 1), Decl(file.tsx, 30, 66), Decl(file.tsx, 31, 62), Decl(file.tsx, 32, 66)) +>linkProps : Symbol(linkProps, Decl(file.tsx, 31, 27)) +>LinkProps : Symbol(LinkProps, Decl(file.tsx, 11, 1)) >JSX : Symbol(JSX, Decl(react.d.ts, 2353, 1)) >Element : Symbol(JSX.Element, Decl(react.d.ts, 2356, 27)) export function MainButton(hyphenProps: HyphenProps): JSX.Element; ->MainButton : Symbol(MainButton, Decl(file.tsx, 26, 1), Decl(file.tsx, 28, 66), Decl(file.tsx, 29, 62), Decl(file.tsx, 30, 66)) ->hyphenProps : Symbol(hyphenProps, Decl(file.tsx, 30, 27)) ->HyphenProps : Symbol(HyphenProps, Decl(file.tsx, 13, 1)) +>MainButton : Symbol(MainButton, Decl(file.tsx, 28, 1), Decl(file.tsx, 30, 66), Decl(file.tsx, 31, 62), Decl(file.tsx, 32, 66)) +>hyphenProps : Symbol(hyphenProps, Decl(file.tsx, 32, 27)) +>HyphenProps : Symbol(HyphenProps, Decl(file.tsx, 15, 1)) >JSX : Symbol(JSX, Decl(react.d.ts, 2353, 1)) >Element : Symbol(JSX.Element, Decl(react.d.ts, 2356, 27)) export function MainButton(props: ButtonProps | LinkProps | HyphenProps): JSX.Element { ->MainButton : Symbol(MainButton, Decl(file.tsx, 26, 1), Decl(file.tsx, 28, 66), Decl(file.tsx, 29, 62), Decl(file.tsx, 30, 66)) ->props : Symbol(props, Decl(file.tsx, 31, 27)) ->ButtonProps : Symbol(ButtonProps, Decl(file.tsx, 5, 1)) ->LinkProps : Symbol(LinkProps, Decl(file.tsx, 9, 1)) ->HyphenProps : Symbol(HyphenProps, Decl(file.tsx, 13, 1)) +>MainButton : Symbol(MainButton, Decl(file.tsx, 28, 1), Decl(file.tsx, 30, 66), Decl(file.tsx, 31, 62), Decl(file.tsx, 32, 66)) +>props : Symbol(props, Decl(file.tsx, 33, 27)) +>ButtonProps : Symbol(ButtonProps, Decl(file.tsx, 7, 1)) +>LinkProps : Symbol(LinkProps, Decl(file.tsx, 11, 1)) +>HyphenProps : Symbol(HyphenProps, Decl(file.tsx, 15, 1)) >JSX : Symbol(JSX, Decl(react.d.ts, 2353, 1)) >Element : Symbol(JSX.Element, Decl(react.d.ts, 2356, 27)) const linkProps = props as LinkProps; ->linkProps : Symbol(linkProps, Decl(file.tsx, 32, 9)) ->props : Symbol(props, Decl(file.tsx, 31, 27)) ->LinkProps : Symbol(LinkProps, Decl(file.tsx, 9, 1)) +>linkProps : Symbol(linkProps, Decl(file.tsx, 34, 9)) +>props : Symbol(props, Decl(file.tsx, 33, 27)) +>LinkProps : Symbol(LinkProps, Decl(file.tsx, 11, 1)) if(linkProps.to) { ->linkProps.to : Symbol(LinkProps.to, Decl(file.tsx, 11, 51)) ->linkProps : Symbol(linkProps, Decl(file.tsx, 32, 9)) ->to : Symbol(LinkProps.to, Decl(file.tsx, 11, 51)) +>linkProps.to : Symbol(LinkProps.to, Decl(file.tsx, 13, 51)) +>linkProps : Symbol(linkProps, Decl(file.tsx, 34, 9)) +>to : Symbol(LinkProps.to, Decl(file.tsx, 13, 51)) return this._buildMainLink(props); ->props : Symbol(props, Decl(file.tsx, 31, 27)) +>props : Symbol(props, Decl(file.tsx, 33, 27)) } return this._buildMainButton(props); ->props : Symbol(props, Decl(file.tsx, 31, 27)) +>props : Symbol(props, Decl(file.tsx, 33, 27)) } // OK const b0 = GO; ->b0 : Symbol(b0, Decl(file.tsx, 41, 5)) ->MainButton : Symbol(MainButton, Decl(file.tsx, 26, 1), Decl(file.tsx, 28, 66), Decl(file.tsx, 29, 62), Decl(file.tsx, 30, 66)) ->to : Symbol(to, Decl(file.tsx, 41, 22)) ->MainButton : Symbol(MainButton, Decl(file.tsx, 26, 1), Decl(file.tsx, 28, 66), Decl(file.tsx, 29, 62), Decl(file.tsx, 30, 66)) +>b0 : Symbol(b0, Decl(file.tsx, 43, 5)) +>MainButton : Symbol(MainButton, Decl(file.tsx, 28, 1), Decl(file.tsx, 30, 66), Decl(file.tsx, 31, 62), Decl(file.tsx, 32, 66)) +>to : Symbol(to, Decl(file.tsx, 43, 22)) +>MainButton : Symbol(MainButton, Decl(file.tsx, 28, 1), Decl(file.tsx, 30, 66), Decl(file.tsx, 31, 62), Decl(file.tsx, 32, 66)) const b1 = {}}>Hello world; ->b1 : Symbol(b1, Decl(file.tsx, 42, 5)) ->MainButton : Symbol(MainButton, Decl(file.tsx, 26, 1), Decl(file.tsx, 28, 66), Decl(file.tsx, 29, 62), Decl(file.tsx, 30, 66)) ->onClick : Symbol(onClick, Decl(file.tsx, 42, 22)) ->e : Symbol(e, Decl(file.tsx, 42, 33)) ->MainButton : Symbol(MainButton, Decl(file.tsx, 26, 1), Decl(file.tsx, 28, 66), Decl(file.tsx, 29, 62), Decl(file.tsx, 30, 66)) +>b1 : Symbol(b1, Decl(file.tsx, 44, 5)) +>MainButton : Symbol(MainButton, Decl(file.tsx, 28, 1), Decl(file.tsx, 30, 66), Decl(file.tsx, 31, 62), Decl(file.tsx, 32, 66)) +>onClick : Symbol(onClick, Decl(file.tsx, 44, 22)) +>e : Symbol(e, Decl(file.tsx, 44, 33)) +>MainButton : Symbol(MainButton, Decl(file.tsx, 28, 1), Decl(file.tsx, 30, 66), Decl(file.tsx, 31, 62), Decl(file.tsx, 32, 66)) const b2 = ; ->b2 : Symbol(b2, Decl(file.tsx, 43, 5)) ->MainButton : Symbol(MainButton, Decl(file.tsx, 26, 1), Decl(file.tsx, 28, 66), Decl(file.tsx, 29, 62), Decl(file.tsx, 30, 66)) ->obj : Symbol(obj, Decl(file.tsx, 19, 3)) +>b2 : Symbol(b2, Decl(file.tsx, 45, 5)) +>MainButton : Symbol(MainButton, Decl(file.tsx, 28, 1), Decl(file.tsx, 30, 66), Decl(file.tsx, 31, 62), Decl(file.tsx, 32, 66)) +>obj : Symbol(obj, Decl(file.tsx, 21, 3)) const b3 = ; ->b3 : Symbol(b3, Decl(file.tsx, 44, 5)) ->MainButton : Symbol(MainButton, Decl(file.tsx, 26, 1), Decl(file.tsx, 28, 66), Decl(file.tsx, 29, 62), Decl(file.tsx, 30, 66)) ->to : Symbol(to, Decl(file.tsx, 44, 28)) ->obj : Symbol(obj, Decl(file.tsx, 19, 3)) +>b3 : Symbol(b3, Decl(file.tsx, 46, 5)) +>MainButton : Symbol(MainButton, Decl(file.tsx, 28, 1), Decl(file.tsx, 30, 66), Decl(file.tsx, 31, 62), Decl(file.tsx, 32, 66)) +>to : Symbol(to, Decl(file.tsx, 46, 28)) +>obj : Symbol(obj, Decl(file.tsx, 21, 3)) const b4 = ; // any; just pick the first overload ->b4 : Symbol(b4, Decl(file.tsx, 45, 5)) ->MainButton : Symbol(MainButton, Decl(file.tsx, 26, 1), Decl(file.tsx, 28, 66), Decl(file.tsx, 29, 62), Decl(file.tsx, 30, 66)) ->obj1 : Symbol(obj1, Decl(file.tsx, 23, 3)) +>b4 : Symbol(b4, Decl(file.tsx, 47, 5)) +>MainButton : Symbol(MainButton, Decl(file.tsx, 28, 1), Decl(file.tsx, 30, 66), Decl(file.tsx, 31, 62), Decl(file.tsx, 32, 66)) +>obj1 : Symbol(obj1, Decl(file.tsx, 25, 3)) const b5 = ; // should pick the second overload ->b5 : Symbol(b5, Decl(file.tsx, 46, 5)) ->MainButton : Symbol(MainButton, Decl(file.tsx, 26, 1), Decl(file.tsx, 28, 66), Decl(file.tsx, 29, 62), Decl(file.tsx, 30, 66)) ->obj1 : Symbol(obj1, Decl(file.tsx, 23, 3)) ->to : Symbol(to, Decl(file.tsx, 46, 32)) +>b5 : Symbol(b5, Decl(file.tsx, 48, 5)) +>MainButton : Symbol(MainButton, Decl(file.tsx, 28, 1), Decl(file.tsx, 30, 66), Decl(file.tsx, 31, 62), Decl(file.tsx, 32, 66)) +>obj1 : Symbol(obj1, Decl(file.tsx, 25, 3)) +>to : Symbol(to, Decl(file.tsx, 48, 32)) const b6 = ; ->b6 : Symbol(b6, Decl(file.tsx, 47, 5)) ->MainButton : Symbol(MainButton, Decl(file.tsx, 26, 1), Decl(file.tsx, 28, 66), Decl(file.tsx, 29, 62), Decl(file.tsx, 30, 66)) ->obj2 : Symbol(obj2, Decl(file.tsx, 24, 3)) - -const b7 = { console.log("hi") }}} />; ->b7 : Symbol(b7, Decl(file.tsx, 48, 5)) ->MainButton : Symbol(MainButton, Decl(file.tsx, 26, 1), Decl(file.tsx, 28, 66), Decl(file.tsx, 29, 62), Decl(file.tsx, 30, 66)) ->onClick : Symbol(onClick, Decl(file.tsx, 48, 28)) ->console.log : Symbol(Console.log, Decl(lib.d.ts, --, --)) ->console : Symbol(console, Decl(lib.d.ts, --, --)) ->log : Symbol(Console.log, Decl(lib.d.ts, --, --)) +>b6 : Symbol(b6, Decl(file.tsx, 49, 5)) +>MainButton : Symbol(MainButton, Decl(file.tsx, 28, 1), Decl(file.tsx, 30, 66), Decl(file.tsx, 31, 62), Decl(file.tsx, 32, 66)) +>obj2 : Symbol(obj2, Decl(file.tsx, 26, 3)) + +const b7 = { log("hi") }}} />; +>b7 : Symbol(b7, Decl(file.tsx, 50, 5)) +>MainButton : Symbol(MainButton, Decl(file.tsx, 28, 1), Decl(file.tsx, 30, 66), Decl(file.tsx, 31, 62), Decl(file.tsx, 32, 66)) +>onClick : Symbol(onClick, Decl(file.tsx, 50, 28)) +>log : Symbol(log, Decl(file.tsx, 0, 31)) const b8 = ; // OK; method declaration get retained (See GitHub #13365) ->b8 : Symbol(b8, Decl(file.tsx, 49, 5)) ->MainButton : Symbol(MainButton, Decl(file.tsx, 26, 1), Decl(file.tsx, 28, 66), Decl(file.tsx, 29, 62), Decl(file.tsx, 30, 66)) ->onClick : Symbol(onClick, Decl(file.tsx, 49, 28)) +>b8 : Symbol(b8, Decl(file.tsx, 51, 5)) +>MainButton : Symbol(MainButton, Decl(file.tsx, 28, 1), Decl(file.tsx, 30, 66), Decl(file.tsx, 31, 62), Decl(file.tsx, 32, 66)) +>onClick : Symbol(onClick, Decl(file.tsx, 51, 28)) const b9 = GO; ->b9 : Symbol(b9, Decl(file.tsx, 50, 5)) ->MainButton : Symbol(MainButton, Decl(file.tsx, 26, 1), Decl(file.tsx, 28, 66), Decl(file.tsx, 29, 62), Decl(file.tsx, 30, 66)) ->to : Symbol(to, Decl(file.tsx, 50, 22)) ->extra-prop : Symbol(extra-prop, Decl(file.tsx, 50, 38)) ->MainButton : Symbol(MainButton, Decl(file.tsx, 26, 1), Decl(file.tsx, 28, 66), Decl(file.tsx, 29, 62), Decl(file.tsx, 30, 66)) +>b9 : Symbol(b9, Decl(file.tsx, 52, 5)) +>MainButton : Symbol(MainButton, Decl(file.tsx, 28, 1), Decl(file.tsx, 30, 66), Decl(file.tsx, 31, 62), Decl(file.tsx, 32, 66)) +>to : Symbol(to, Decl(file.tsx, 52, 22)) +>extra-prop : Symbol(extra-prop, Decl(file.tsx, 52, 38)) +>MainButton : Symbol(MainButton, Decl(file.tsx, 28, 1), Decl(file.tsx, 30, 66), Decl(file.tsx, 31, 62), Decl(file.tsx, 32, 66)) const b10 = ; ->b10 : Symbol(b10, Decl(file.tsx, 51, 5)) ->MainButton : Symbol(MainButton, Decl(file.tsx, 26, 1), Decl(file.tsx, 28, 66), Decl(file.tsx, 29, 62), Decl(file.tsx, 30, 66)) ->to : Symbol(to, Decl(file.tsx, 51, 23)) ->children : Symbol(children, Decl(file.tsx, 51, 39)) ->MainButton : Symbol(MainButton, Decl(file.tsx, 26, 1), Decl(file.tsx, 28, 66), Decl(file.tsx, 29, 62), Decl(file.tsx, 30, 66)) +>b10 : Symbol(b10, Decl(file.tsx, 53, 5)) +>MainButton : Symbol(MainButton, Decl(file.tsx, 28, 1), Decl(file.tsx, 30, 66), Decl(file.tsx, 31, 62), Decl(file.tsx, 32, 66)) +>to : Symbol(to, Decl(file.tsx, 53, 23)) +>children : Symbol(children, Decl(file.tsx, 53, 39)) +>MainButton : Symbol(MainButton, Decl(file.tsx, 28, 1), Decl(file.tsx, 30, 66), Decl(file.tsx, 31, 62), Decl(file.tsx, 32, 66)) const b11 = {}} className="hello" data-format>Hello world; ->b11 : Symbol(b11, Decl(file.tsx, 52, 5)) ->MainButton : Symbol(MainButton, Decl(file.tsx, 26, 1), Decl(file.tsx, 28, 66), Decl(file.tsx, 29, 62), Decl(file.tsx, 30, 66)) ->onClick : Symbol(onClick, Decl(file.tsx, 52, 23)) ->e : Symbol(e, Decl(file.tsx, 52, 34)) ->className : Symbol(className, Decl(file.tsx, 52, 43)) ->data-format : Symbol(data-format, Decl(file.tsx, 52, 61)) ->MainButton : Symbol(MainButton, Decl(file.tsx, 26, 1), Decl(file.tsx, 28, 66), Decl(file.tsx, 29, 62), Decl(file.tsx, 30, 66)) +>b11 : Symbol(b11, Decl(file.tsx, 54, 5)) +>MainButton : Symbol(MainButton, Decl(file.tsx, 28, 1), Decl(file.tsx, 30, 66), Decl(file.tsx, 31, 62), Decl(file.tsx, 32, 66)) +>onClick : Symbol(onClick, Decl(file.tsx, 54, 23)) +>e : Symbol(e, Decl(file.tsx, 54, 34)) +>className : Symbol(className, Decl(file.tsx, 54, 43)) +>data-format : Symbol(data-format, Decl(file.tsx, 54, 61)) +>MainButton : Symbol(MainButton, Decl(file.tsx, 28, 1), Decl(file.tsx, 30, 66), Decl(file.tsx, 31, 62), Decl(file.tsx, 32, 66)) const b12 = ->b12 : Symbol(b12, Decl(file.tsx, 53, 5)) ->MainButton : Symbol(MainButton, Decl(file.tsx, 26, 1), Decl(file.tsx, 28, 66), Decl(file.tsx, 29, 62), Decl(file.tsx, 30, 66)) ->data-format : Symbol(data-format, Decl(file.tsx, 53, 23)) +>b12 : Symbol(b12, Decl(file.tsx, 55, 5)) +>MainButton : Symbol(MainButton, Decl(file.tsx, 28, 1), Decl(file.tsx, 30, 66), Decl(file.tsx, 31, 62), Decl(file.tsx, 32, 66)) +>data-format : Symbol(data-format, Decl(file.tsx, 55, 23)) diff --git a/tests/baselines/reference/tsxStatelessFunctionComponentOverload6.types b/tests/baselines/reference/tsxStatelessFunctionComponentOverload6.types index 9bad96ee1daee..7b6fd3acc5a4d 100644 --- a/tests/baselines/reference/tsxStatelessFunctionComponentOverload6.types +++ b/tests/baselines/reference/tsxStatelessFunctionComponentOverload6.types @@ -5,6 +5,12 @@ import React = require('react') >React : typeof React > : ^^^^^^^^^^^^ +declare function log(...args: any[]): void; +>log : (...args: any[]) => void +> : ^^^^ ^^ ^^^^^ +>args : any[] +> : ^^^^^ + export interface ClickableProps { children?: string; >children : string @@ -224,27 +230,23 @@ const b6 = ; >obj2 : { onClick: () => void; } > : ^^^^^^^^^^^^^^^^^^^^^^^^ -const b7 = { console.log("hi") }}} />; +const b7 = { log("hi") }}} />; >b7 : JSX.Element > : ^^^^^^^^^^^ -> { console.log("hi") }}} /> : JSX.Element -> : ^^^^^^^^^^^ +> { log("hi") }}} /> : JSX.Element +> : ^^^^^^^^^^^ >MainButton : { (buttonProps: ButtonProps): JSX.Element; (linkProps: LinkProps): JSX.Element; (hyphenProps: HyphenProps): JSX.Element; } > : ^^^ ^^ ^^^ ^^^ ^^ ^^^ ^^^ ^^ ^^^ ^^^ ->{onClick: () => { console.log("hi") }} : { onClick: () => void; } -> : ^^^^^^^^^^^^^^^^^^^^^^^^ +>{onClick: () => { log("hi") }} : { onClick: () => void; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^ >onClick : () => void > : ^^^^^^^^^^ ->() => { console.log("hi") } : () => void -> : ^^^^^^^^^^ ->console.log("hi") : void -> : ^^^^ ->console.log : (message?: any, ...optionalParams: any[]) => void -> : ^ ^^^ ^^^^^ ^^ ^^^^^ ->console : Console -> : ^^^^^^^ ->log : (message?: any, ...optionalParams: any[]) => void -> : ^ ^^^ ^^^^^ ^^ ^^^^^ +>() => { log("hi") } : () => void +> : ^^^^^^^^^^ +>log("hi") : void +> : ^^^^ +>log : (...args: any[]) => void +> : ^^^^ ^^ ^^^^^ >"hi" : "hi" > : ^^^^ diff --git a/tests/baselines/reference/tsxStatelessFunctionComponents2.errors.txt b/tests/baselines/reference/tsxStatelessFunctionComponents2.errors.txt index 0249c2a301515..4a44bdf4fde7a 100644 --- a/tests/baselines/reference/tsxStatelessFunctionComponents2.errors.txt +++ b/tests/baselines/reference/tsxStatelessFunctionComponents2.errors.txt @@ -36,7 +36,7 @@ file.tsx(35,26): error TS2339: Property 'propertyNotOnHtmlDivElement' does not e let e = x.greeting.subtr(10)} />; ~~~~~ !!! error TS2551: Property 'subtr' does not exist on type 'string'. Did you mean 'substr'? -!!! related TS2728 lib.d.ts:--:--: 'substr' is declared here. +!!! related TS2728 lib.es5.d.ts:--:--: 'substr' is declared here. // Error (ref callback is contextually typed) let f = x.notARealProperty} />; ~~~~~~~~~~~~~~~~ diff --git a/tests/baselines/reference/tsxStatelessFunctionComponents2.symbols b/tests/baselines/reference/tsxStatelessFunctionComponents2.symbols index 531339356c9b4..66bcbc8633a76 100644 --- a/tests/baselines/reference/tsxStatelessFunctionComponents2.symbols +++ b/tests/baselines/reference/tsxStatelessFunctionComponents2.symbols @@ -57,11 +57,11 @@ let d = x.greeting.substr(10)} />; >BigGreeter : Symbol(BigGreeter, Decl(file.tsx, 4, 1)) >ref : Symbol(ref, Decl(file.tsx, 22, 19)) >x : Symbol(x, Decl(file.tsx, 22, 25)) ->x.greeting.substr : Symbol(String.substr, Decl(lib.d.ts, --, --)) +>x.greeting.substr : Symbol(String.substr, Decl(lib.es5.d.ts, --, --)) >x.greeting : Symbol(BigGreeter.greeting, Decl(file.tsx, 9, 2)) >x : Symbol(x, Decl(file.tsx, 22, 25)) >greeting : Symbol(BigGreeter.greeting, Decl(file.tsx, 9, 2)) ->substr : Symbol(String.substr, Decl(lib.d.ts, --, --)) +>substr : Symbol(String.substr, Decl(lib.es5.d.ts, --, --)) // Error ('subtr' not on string) let e = x.greeting.subtr(10)} />; @@ -93,9 +93,9 @@ let h =
x.innerText} />; >div : Symbol(JSX.IntrinsicElements.div, Decl(react.d.ts, 2400, 45)) >ref : Symbol(ref, Decl(file.tsx, 32, 12)) >x : Symbol(x, Decl(file.tsx, 32, 18)) ->x.innerText : Symbol(HTMLElement.innerText, Decl(lib.d.ts, --, --)) +>x.innerText : Symbol(HTMLElement.innerText, Decl(lib.dom.d.ts, --, --)) >x : Symbol(x, Decl(file.tsx, 32, 18)) ->innerText : Symbol(HTMLElement.innerText, Decl(lib.d.ts, --, --)) +>innerText : Symbol(HTMLElement.innerText, Decl(lib.dom.d.ts, --, --)) // Error - property not on ontextually typed intrinsic ref callback parameter let i =
x.propertyNotOnHtmlDivElement} />; diff --git a/tests/baselines/reference/tsxStatelessFunctionComponentsWithTypeArguments1.symbols b/tests/baselines/reference/tsxStatelessFunctionComponentsWithTypeArguments1.symbols index 9ea0354f4397d..b85feb89564fc 100644 --- a/tests/baselines/reference/tsxStatelessFunctionComponentsWithTypeArguments1.symbols +++ b/tests/baselines/reference/tsxStatelessFunctionComponentsWithTypeArguments1.symbols @@ -84,7 +84,7 @@ interface InferParamProp { values: Array; >values : Symbol(InferParamProp.values, Decl(file.tsx, 21, 29)) ->Array : Symbol(Array, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --)) +>Array : Symbol(Array, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) >T : Symbol(T, Decl(file.tsx, 21, 25)) selectHandler: (selectedVal: T) => void; diff --git a/tests/baselines/reference/tsxStatelessFunctionComponentsWithTypeArguments2.symbols b/tests/baselines/reference/tsxStatelessFunctionComponentsWithTypeArguments2.symbols index 79fd00f489219..a768dd708b551 100644 --- a/tests/baselines/reference/tsxStatelessFunctionComponentsWithTypeArguments2.symbols +++ b/tests/baselines/reference/tsxStatelessFunctionComponentsWithTypeArguments2.symbols @@ -81,7 +81,7 @@ interface InferParamProp { values: Array; >values : Symbol(InferParamProp.values, Decl(file.tsx, 22, 29)) ->Array : Symbol(Array, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --)) +>Array : Symbol(Array, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) >T : Symbol(T, Decl(file.tsx, 22, 25)) selectHandler: (selectedVal: T) => void; diff --git a/tests/cases/conformance/jsx/checkJsxChildrenProperty2.tsx b/tests/cases/conformance/jsx/checkJsxChildrenProperty2.tsx index ba553ea6bc7fc..731283b6f622a 100644 --- a/tests/cases/conformance/jsx/checkJsxChildrenProperty2.tsx +++ b/tests/cases/conformance/jsx/checkJsxChildrenProperty2.tsx @@ -1,6 +1,7 @@ // @filename: file.tsx // @jsx: preserve // @skipLibCheck: true +// @lib: es5 // @libFiles: react.d.ts // @strictNullChecks: true diff --git a/tests/cases/conformance/jsx/jsxSpreadOverwritesAttributeStrict.tsx b/tests/cases/conformance/jsx/jsxSpreadOverwritesAttributeStrict.tsx index 246d105359056..a865fcb8ebc8b 100644 --- a/tests/cases/conformance/jsx/jsxSpreadOverwritesAttributeStrict.tsx +++ b/tests/cases/conformance/jsx/jsxSpreadOverwritesAttributeStrict.tsx @@ -2,6 +2,7 @@ // @jsx: preserve // @strict: true // @skipLibCheck: true +// @lib: es5 // @libFiles: react.d.ts import React = require('react'); diff --git a/tests/cases/conformance/jsx/tsxStatelessFunctionComponentOverload6.tsx b/tests/cases/conformance/jsx/tsxStatelessFunctionComponentOverload6.tsx index aca5a2ebbafc8..ddf50e5a5e67e 100644 --- a/tests/cases/conformance/jsx/tsxStatelessFunctionComponentOverload6.tsx +++ b/tests/cases/conformance/jsx/tsxStatelessFunctionComponentOverload6.tsx @@ -2,10 +2,13 @@ // @jsx: preserve // @module: commonjs // @skipLibCheck: true +// @lib: es5 // @libFiles: react.d.ts import React = require('react') +declare function log(...args: any[]): void; + export interface ClickableProps { children?: string; className?: string; @@ -52,7 +55,7 @@ const b3 = ; const b4 = ; // any; just pick the first overload const b5 = ; // should pick the second overload const b6 = ; -const b7 = { console.log("hi") }}} />; +const b7 = { log("hi") }}} />; const b8 = ; // OK; method declaration get retained (See GitHub #13365) const b9 = GO; const b10 = ; diff --git a/tests/cases/conformance/jsx/tsxStatelessFunctionComponents2.tsx b/tests/cases/conformance/jsx/tsxStatelessFunctionComponents2.tsx index 80b100db42495..f21ffc0a380a3 100644 --- a/tests/cases/conformance/jsx/tsxStatelessFunctionComponents2.tsx +++ b/tests/cases/conformance/jsx/tsxStatelessFunctionComponents2.tsx @@ -1,6 +1,7 @@ // @filename: file.tsx // @jsx: preserve // @skipLibCheck: true +// @lib: es5,dom // @libFiles: react.d.ts import React = require('react'); diff --git a/tests/cases/conformance/jsx/tsxStatelessFunctionComponentsWithTypeArguments1.tsx b/tests/cases/conformance/jsx/tsxStatelessFunctionComponentsWithTypeArguments1.tsx index c8850918b01cb..574448ac95e4a 100644 --- a/tests/cases/conformance/jsx/tsxStatelessFunctionComponentsWithTypeArguments1.tsx +++ b/tests/cases/conformance/jsx/tsxStatelessFunctionComponentsWithTypeArguments1.tsx @@ -2,6 +2,7 @@ // @jsx: preserve // @module: amd // @skipLibCheck: true +// @lib: es5 // @libFiles: react.d.ts import React = require('react') diff --git a/tests/cases/conformance/jsx/tsxStatelessFunctionComponentsWithTypeArguments2.tsx b/tests/cases/conformance/jsx/tsxStatelessFunctionComponentsWithTypeArguments2.tsx index 0a8fc37e2c48d..a6db3aec41c5b 100644 --- a/tests/cases/conformance/jsx/tsxStatelessFunctionComponentsWithTypeArguments2.tsx +++ b/tests/cases/conformance/jsx/tsxStatelessFunctionComponentsWithTypeArguments2.tsx @@ -2,6 +2,7 @@ // @jsx: preserve // @module: amd // @skipLibCheck: true +// @lib: es5 // @libFiles: react.d.ts import React = require('react') diff --git a/tests/cases/conformance/types/contextualTypes/jsxAttributes/contextuallyTypedStringLiteralsInJsxAttributes02.tsx b/tests/cases/conformance/types/contextualTypes/jsxAttributes/contextuallyTypedStringLiteralsInJsxAttributes02.tsx index 5117121269a30..b8e00197e2a38 100644 --- a/tests/cases/conformance/types/contextualTypes/jsxAttributes/contextuallyTypedStringLiteralsInJsxAttributes02.tsx +++ b/tests/cases/conformance/types/contextualTypes/jsxAttributes/contextuallyTypedStringLiteralsInJsxAttributes02.tsx @@ -2,10 +2,13 @@ // @jsx: preserve // @module: commonjs // @skipLibCheck: true +// @lib: es5 // @libFiles: react.d.ts import React = require('react') +declare function log(...args: any[]): void; + export interface ClickableProps { children?: string; className?: string; @@ -30,13 +33,13 @@ export function MainButton(props: ButtonProps | LinkProps): JSX.Element { return this._buildMainButton(props); } -const b0 = {console.log(k)}}} extra />; // k has type "left" | "right" -const b2 = {console.log(k)}} extra />; // k has type "left" | "right" +const b0 = {log(k)}}} extra />; // k has type "left" | "right" +const b2 = {log(k)}} extra />; // k has type "left" | "right" const b3 = ; // goTo has type"home" | "contact" const b4 = ; // goTo has type "home" | "contact" export function NoOverload(buttonProps: ButtonProps): JSX.Element { return undefined } -const c1 = {console.log(k)}}} extra />; // k has type any +const c1 = {log(k)}}} extra />; // k has type any export function NoOverload1(linkProps: LinkProps): JSX.Element { return undefined } const d1 = ; // goTo has type "home" | "contact" From 91d52755b8b958394cb2411e1f0c3f215cd40c63 Mon Sep 17 00:00:00 2001 From: Jake Bailey <5341706+jakebailey@users.noreply.github.com> Date: Tue, 27 Jan 2026 14:29:03 -0800 Subject: [PATCH 05/15] Fix sanitize --- src/harness/tsserverLogger.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/harness/tsserverLogger.ts b/src/harness/tsserverLogger.ts index 7aba023a2e88c..8f260b5304a43 100644 --- a/src/harness/tsserverLogger.ts +++ b/src/harness/tsserverLogger.ts @@ -148,7 +148,7 @@ function sanitizeHarnessLSException(s: string) { const libFileTextReplacements = ts.memoize(() => { const replacements: { text: string; jsonText: string; replacement: string; }[] = []; // Read all lib files from built/local - const libFiles = IO.listFiles(libFolder, /^lib\..*\.d\.ts$/); + const libFiles = IO.listFiles(libFolder, /^lib.*\.d\.ts$/); for (const libPath of libFiles) { const content = IO.readFile(libPath); if (content) { From 41aecabee75a13a1130c392a8d98b7bd44101299 Mon Sep 17 00:00:00 2001 From: Jake Bailey <5341706+jakebailey@users.noreply.github.com> Date: Tue, 27 Jan 2026 16:55:20 -0800 Subject: [PATCH 06/15] Fix server tests, what a nightmare --- src/harness/fourslashImpl.ts | 23 +- src/harness/harnessLanguageService.ts | 5 + src/server/editorServices.ts | 5 + .../autoImportCrossPackage_pathsAndSymlink.js | 121 +- .../autoImportCrossProject_baseUrl_toDist.js | 129 ++- ...toImportCrossProject_paths_sharedOutDir.js | 142 ++- .../autoImportCrossProject_paths_stripSrc.js | 214 ++-- .../autoImportCrossProject_paths_toDist.js | 214 ++-- .../autoImportCrossProject_paths_toDist2.js | 129 ++- .../autoImportCrossProject_paths_toSrc.js | 214 ++-- ...utoImportCrossProject_symlinks_stripSrc.js | 165 +-- .../autoImportCrossProject_symlinks_toDist.js | 165 +-- .../autoImportCrossProject_symlinks_toSrc.js | 160 +-- .../autoImportFileExcludePatterns1.js | 165 ++- .../autoImportFileExcludePatterns2.js | 165 ++- ...oImportFileExcludePatterns_networkPaths.js | 165 ++- .../autoImportFileExcludePatterns_symlinks.js | 118 +- ...autoImportFileExcludePatterns_symlinks2.js | 118 +- ...oImportFileExcludePatterns_windowsPaths.js | 165 ++- .../autoImportNodeModuleSymlinkRenamed.js | 123 +- ...oImportPackageJsonFilterExistingImport1.js | 172 +-- ...oImportPackageJsonFilterExistingImport2.js | 668 +++++------ ...oImportPackageJsonFilterExistingImport3.js | 710 ++++++------ .../fourslashServer/autoImportProvider1.js | 138 ++- .../fourslashServer/autoImportProvider2.js | 114 +- .../fourslashServer/autoImportProvider3.js | 436 +++++-- .../fourslashServer/autoImportProvider4.js | 269 ++--- .../fourslashServer/autoImportProvider5.js | 149 +-- .../fourslashServer/autoImportProvider6.js | 499 ++++---- .../fourslashServer/autoImportProvider7.js | 127 +- .../fourslashServer/autoImportProvider8.js | 127 +- .../fourslashServer/autoImportProvider9.js | 514 +++++---- .../autoImportProvider_exportMap1.js | 480 ++++++-- .../autoImportProvider_exportMap2.js | 164 ++- .../autoImportProvider_exportMap3.js | 484 ++++++-- .../autoImportProvider_exportMap4.js | 482 ++++++-- .../autoImportProvider_exportMap5.js | 482 ++++++-- .../autoImportProvider_exportMap6.js | 482 ++++++-- .../autoImportProvider_exportMap7.js | 482 ++++++-- .../autoImportProvider_exportMap8.js | 789 +++++++++++-- .../autoImportProvider_exportMap9.js | 482 ++++++-- .../autoImportProvider_globalTypingsCache.js | 106 +- .../autoImportProvider_importsMap1.js | 180 +-- .../autoImportProvider_importsMap2.js | 180 +-- .../autoImportProvider_importsMap3.js | 180 +-- .../autoImportProvider_importsMap4.js | 180 +-- .../autoImportProvider_importsMap5.js | 182 +-- ...rtProvider_namespaceSameNameAsIntrinsic.js | 103 +- .../autoImportProvider_pnpm.js | 143 ++- .../autoImportProvider_referencesCrash.js | 157 +-- .../autoImportProvider_wildcardExports1.js | 447 +++++-- .../autoImportProvider_wildcardExports2.js | 447 +++++-- .../autoImportProvider_wildcardExports3.js | 107 +- .../autoImportReExportFromAmbientModule.js | 120 +- ...autoImportRelativePathToMonorepoPackage.js | 227 ++-- .../autoImportSymlinkedJsPackages.js | 104 +- .../tsserver/fourslashServer/brace01.js | 197 ++-- .../callHierarchyContainerNameServer.js | 97 +- .../completionEntryDetailAcrossFiles01.js | 120 +- .../completionEntryDetailAcrossFiles02.js | 120 +- .../tsserver/fourslashServer/completions01.js | 191 +-- .../tsserver/fourslashServer/completions02.js | 129 ++- .../tsserver/fourslashServer/completions03.js | 69 +- ...mport_addToNamedWithDifferentCacheValue.js | 605 +++++----- .../completionsImport_computedSymbolName.js | 135 ++- ...nsImport_defaultAndNamedConflict_server.js | 99 +- ...letionsImport_jsModuleExportsAssignment.js | 154 +-- .../completionsImport_mergedReExport.js | 145 ++- ...mpletionsImport_sortingModuleSpecifiers.js | 101 +- .../completionsOverridingMethodCrash2.js | 274 +++-- .../completionsServerCommitCharacters.js | 73 +- .../fourslashServer/configurePlugin.js | 109 +- .../convertFunctionToEs6Class-server1.js | 81 +- .../convertFunctionToEs6Class-server2.js | 81 +- .../declarationMapGoToDefinition.js | 99 +- .../declarationMapsEnableMapping_NoInline.js | 150 ++- ...rationMapsEnableMapping_NoInlineSources.js | 151 ++- ...clarationMapsGeneratedMapsEnableMapping.js | 149 ++- ...larationMapsGeneratedMapsEnableMapping2.js | 151 ++- ...larationMapsGeneratedMapsEnableMapping3.js | 158 +-- ...ionMapsGoToDefinitionRelativeSourceRoot.js | 99 +- ...oToDefinitionSameNameDifferentDirectory.js | 122 +- .../declarationMapsOutOfDateMapping.js | 109 +- .../tsserver/fourslashServer/definition01.js | 65 +- .../fourslashServer/documentHighlights01.js | 93 +- .../fourslashServer/documentHighlights02.js | 123 +- ...ghlightsTypeParameterInHeritageClause01.js | 85 +- .../fixExtractToInnerFunctionDuplicaton.js | 133 ++- .../tsserver/fourslashServer/format01.js | 145 +-- .../formatBracketInSwitchCase.js | 75 +- .../tsserver/fourslashServer/formatOnEnter.js | 99 +- ...formatSpaceBetweenFunctionAndArrayIndex.js | 75 +- .../tsserver/fourslashServer/formatonkey01.js | 95 +- .../getFileReferences_deduplicate.js | 150 ++- .../getFileReferences_server1.js | 96 +- .../getFileReferences_server2.js | 143 ++- .../getJavaScriptSyntacticDiagnostics01.js | 70 +- .../getJavaScriptSyntacticDiagnostics02.js | 70 +- .../getOutliningSpansForComments.js | 65 +- .../getOutliningSpansForRegions.js | 65 +- ...tliningSpansForRegionsNoSingleLineFolds.js | 65 +- .../goToDefinitionScriptImportServer.js | 107 +- .../goToImplementation_inDifferentFiles.js | 79 +- .../goToSource10_mapFromAtTypes3.js | 100 +- .../goToSource11_propertyOfAlias.js | 100 +- .../goToSource12_callbackParam.js | 100 +- .../fourslashServer/goToSource13_nodenext.js | 216 ++-- ...Source14_unresolvedRequireDestructuring.js | 76 +- .../fourslashServer/goToSource15_bundler.js | 108 +- ...goToSource16_callbackParamDifferentFile.js | 100 +- .../goToSource17_AddsFileToProject.js | 100 +- .../goToSource18_reusedFromDifferentFolder.js | 100 +- .../goToSource1_localJsBesideDts.js | 103 +- .../goToSource2_nodeModulesWithTypes.js | 100 +- .../goToSource3_nodeModulesAtTypes.js | 100 +- .../goToSource5_sameAsGoToDef1.js | 103 +- .../goToSource6_sameAsGoToDef2.js | 103 +- .../goToSource7_conditionallyMinified.js | 100 +- .../goToSource8_mapFromAtTypes.js | 100 +- .../goToSource9_mapFromAtTypes2.js | 108 +- .../fourslashServer/implementation01.js | 65 +- .../fourslashServer/impliedNodeFormat.js | 272 ++--- .../importCompletions_importsMap1.js | 202 ++-- .../importCompletions_importsMap2.js | 210 ++-- .../importCompletions_importsMap3.js | 210 ++-- .../importCompletions_importsMap4.js | 202 ++-- .../importCompletions_importsMap5.js | 204 ++-- ...importFixes_ambientCircularDefaultCrash.js | 100 +- ...importNameCodeFix_externalNonRelateive2.js | 265 +++-- .../importNameCodeFix_externalNonRelative1.js | 228 ++-- .../importNameCodeFix_pnpm1.js | 137 ++- .../importStatementCompletions_pnpm1.js | 105 +- ...portStatementCompletions_pnpmTransitive.js | 101 +- .../importSuggestionsCache_ambient.js | 1023 +++++++++-------- .../importSuggestionsCache_coreNodeModules.js | 623 +++++----- .../importSuggestionsCache_exportUndefined.js | 109 +- ...portSuggestionsCache_invalidPackageJson.js | 105 +- ...portSuggestionsCache_moduleAugmentation.js | 589 +++++----- .../isDefinitionAcrossGlobalProjects.js | 182 +-- .../isDefinitionAcrossModuleProjects.js | 225 ++-- .../fourslashServer/jsdocCallbackTag.js | 78 +- .../jsdocCallbackTagNavigateTo.js | 65 +- .../jsdocCallbackTagRename01.js | 73 +- .../jsdocParamTagSpecialKeywords.js | 69 +- .../fourslashServer/jsdocTypedefTag.js | 169 +-- .../fourslashServer/jsdocTypedefTag1.js | 290 ++++- .../fourslashServer/jsdocTypedefTag2.js | 77 +- .../jsdocTypedefTagGoToDefinition.js | 69 +- .../jsdocTypedefTagNamespace.js | 85 +- .../jsdocTypedefTagNavigateTo.js | 69 +- .../jsdocTypedefTagRename01.js | 97 +- .../jsdocTypedefTagRename02.js | 85 +- .../jsdocTypedefTagRename03.js | 89 +- .../jsdocTypedefTagRename04.js | 123 +- .../moveToFile_emptyTargetFile.js | 90 +- .../tsserver/fourslashServer/navbar01.js | 69 +- .../tsserver/fourslashServer/navto01.js | 81 +- .../fourslashServer/navto_serverExcludeLib.js | 88 +- .../tsserver/fourslashServer/ngProxy1.js | 101 +- .../tsserver/fourslashServer/ngProxy2.js | 100 +- .../tsserver/fourslashServer/ngProxy3.js | 100 +- .../tsserver/fourslashServer/ngProxy4.js | 104 +- .../nodeNextModuleKindCaching1.js | 213 ++-- .../nodeNextPathCompletions.js | 589 ++++++---- .../nonJsDeclarationFilePathCompletions.js | 106 +- .../tsserver/fourslashServer/occurrences01.js | 109 +- .../tsserver/fourslashServer/occurrences02.js | 93 +- .../tsserver/fourslashServer/openFile.js | 94 +- .../fourslashServer/openFileWithSyntaxKind.js | 94 +- .../packageJsonImportsFailedLookups.js | 193 ++-- .../pasteEdits_addInNextLine.js | 82 +- .../pasteEdits_blankTargetFile.js | 82 +- .../pasteEdits_defaultExport1.js | 82 +- .../pasteEdits_defaultExport2.js | 82 +- .../pasteEdits_defaultImport.js | 162 +-- .../pasteEdits_existingImports1.js | 82 +- .../pasteEdits_existingImports2.js | 82 +- .../pasteEdits_globalAndLocal1.js | 82 +- .../pasteEdits_globalAndLocal2.js | 82 +- .../pasteEdits_knownSourceFile.js | 82 +- .../pasteEdits_multiplePastes1.js | 82 +- .../pasteEdits_multiplePastes2.js | 82 +- .../pasteEdits_multiplePastes3.js | 82 +- .../pasteEdits_multiplePastes4.js | 82 +- ..._multiplePastesConsistentlyLargerInSize.js | 82 +- ...multiplePastesConsistentlySmallerInSize.js | 82 +- .../pasteEdits_multiplePastesEqualInSize.js | 82 +- ...multiplePastesGrowingAndShrinkingInSize.js | 82 +- .../pasteEdits_multiplePastesGrowingInSize.js | 82 +- ...asteEdits_multiplePastesShrinkingInSize.js | 82 +- .../pasteEdits_namespaceImport.js | 82 +- .../pasteEdits_noImportNeeded.js | 82 +- ...steEdits_noImportNeededInUpdatedProgram.js | 82 +- .../pasteEdits_pasteComments.js | 82 +- .../pasteEdits_pasteIntoSameFile.js | 82 +- .../pasteEdits_rangeSelection0.js | 82 +- .../pasteEdits_rangeSelection1.js | 82 +- .../pasteEdits_rangeSelection2.js | 82 +- .../pasteEdits_rangeSelection3.js | 82 +- .../pasteEdits_rangeSelection4.js | 82 +- .../pasteEdits_rangeSelection5.js | 82 +- .../pasteEdits_rangeSelection6.js | 82 +- .../pasteEdits_rangeSelection7.js | 82 +- .../pasteEdits_rangeSelection8.js | 82 +- .../pasteEdits_rangeSelection9.js | 82 +- .../pasteEdits_requireImportJsx.js | 82 +- .../pasteEdits_revertUpdatedFile.js | 92 +- .../pasteEdits_unknownSourceFile.js | 82 +- ...onsPackageJsonImportsSrcNoDistWildcard1.js | 202 ++-- ...onsPackageJsonImportsSrcNoDistWildcard2.js | 739 ++++++------ ...onsPackageJsonImportsSrcNoDistWildcard3.js | 732 ++++++------ ...onsPackageJsonImportsSrcNoDistWildcard4.js | 483 ++++---- ...onsPackageJsonImportsSrcNoDistWildcard5.js | 204 ++-- ...onsPackageJsonImportsSrcNoDistWildcard6.js | 202 ++-- ...onsPackageJsonImportsSrcNoDistWildcard7.js | 202 ++-- ...onsPackageJsonImportsSrcNoDistWildcard8.js | 202 ++-- ...onsPackageJsonImportsSrcNoDistWildcard9.js | 203 ++-- .../tsserver/fourslashServer/projectInfo01.js | 181 +-- .../tsserver/fourslashServer/projectInfo02.js | 76 +- .../projectWithNonExistentFiles.js | 76 +- .../tsserver/fourslashServer/quickinfo01.js | 73 +- .../quickinfoVerbosityServer.js | 69 +- .../fourslashServer/quickinfoWrongComment.js | 65 +- .../fourslashServer/referenceToEmptyObject.js | 65 +- .../tsserver/fourslashServer/references01.js | 99 +- .../referencesInConfiguredProject.js | 84 +- .../fourslashServer/referencesInEmptyFile.js | 65 +- ...ferencesInEmptyFileWithMultipleProjects.js | 129 ++- ...nStringLiteralValueWithMultipleProjects.js | 129 ++- ...eferencesToNonPropertyNameStringLiteral.js | 65 +- .../referencesToStringLiteralValue.js | 65 +- .../tsserver/fourslashServer/rename01.js | 73 +- .../renameInConfiguredProject.js | 90 +- .../fourslashServer/renameNamedImport.js | 158 +-- .../fourslashServer/renameNamespaceImport.js | 158 +-- ...ativeImportExtensionsProjectReferences1.js | 289 +++-- ...ativeImportExtensionsProjectReferences2.js | 201 ++-- ...ativeImportExtensionsProjectReferences3.js | 199 ++-- .../semanticClassificationJs1.js | 65 +- .../fourslashServer/signatureHelp01.js | 65 +- .../signatureHelpJSDocCallbackTag.js | 73 +- .../tripleSlashReferenceResolutionMode.js | 214 ++-- .../tsconfigComputedPropertyError.js | 85 +- .../fourslashServer/tsxIncrementalServer.js | 351 +++--- .../fourslashServer/typeReferenceOnServer.js | 69 +- .../fourslashServer/typedefinition01.js | 65 +- tests/cases/fourslash/fourslash.ts | 3 +- .../autoImportCrossPackage_pathsAndSymlink.ts | 1 + .../autoImportCrossProject_baseUrl_toDist.ts | 2 + ...toImportCrossProject_paths_sharedOutDir.ts | 1 + .../autoImportCrossProject_paths_stripSrc.ts | 3 +- .../autoImportCrossProject_paths_toDist.ts | 3 +- .../autoImportCrossProject_paths_toDist2.ts | 2 + .../autoImportCrossProject_paths_toSrc.ts | 3 +- ...utoImportCrossProject_symlinks_stripSrc.ts | 3 +- .../autoImportCrossProject_symlinks_toDist.ts | 3 +- .../autoImportCrossProject_symlinks_toSrc.ts | 3 +- .../server/autoImportFileExcludePatterns1.ts | 1 + .../server/autoImportFileExcludePatterns2.ts | 1 + ...oImportFileExcludePatterns_networkPaths.ts | 1 + .../autoImportFileExcludePatterns_symlinks.ts | 1 + ...autoImportFileExcludePatterns_symlinks2.ts | 1 + ...oImportFileExcludePatterns_windowsPaths.ts | 1 + .../autoImportNodeModuleSymlinkRenamed.ts | 2 + ...oImportPackageJsonFilterExistingImport1.ts | 1 + ...oImportPackageJsonFilterExistingImport2.ts | 1 + ...oImportPackageJsonFilterExistingImport3.ts | 1 + .../fourslash/server/autoImportProvider1.ts | 2 +- .../fourslash/server/autoImportProvider2.ts | 2 +- .../fourslash/server/autoImportProvider3.ts | 4 +- .../fourslash/server/autoImportProvider4.ts | 4 +- .../fourslash/server/autoImportProvider5.ts | 2 + .../fourslash/server/autoImportProvider7.ts | 2 +- .../fourslash/server/autoImportProvider8.ts | 2 +- .../fourslash/server/autoImportProvider9.ts | 1 + .../server/autoImportProvider_exportMap1.ts | 1 + .../server/autoImportProvider_exportMap2.ts | 5 +- .../server/autoImportProvider_exportMap3.ts | 3 +- .../server/autoImportProvider_exportMap4.ts | 3 +- .../server/autoImportProvider_exportMap5.ts | 3 +- .../server/autoImportProvider_exportMap6.ts | 3 +- .../server/autoImportProvider_exportMap7.ts | 3 +- .../server/autoImportProvider_exportMap8.ts | 3 +- .../server/autoImportProvider_exportMap9.ts | 3 +- .../autoImportProvider_globalTypingsCache.ts | 2 +- .../server/autoImportProvider_importsMap1.ts | 1 + .../server/autoImportProvider_importsMap2.ts | 1 + .../server/autoImportProvider_importsMap3.ts | 1 + .../server/autoImportProvider_importsMap4.ts | 1 + .../server/autoImportProvider_importsMap5.ts | 1 + ...rtProvider_namespaceSameNameAsIntrinsic.ts | 2 +- .../server/autoImportProvider_pnpm.ts | 2 +- .../autoImportProvider_referencesCrash.ts | 6 +- .../autoImportProvider_wildcardExports1.ts | 3 +- .../autoImportProvider_wildcardExports2.ts | 3 +- .../autoImportProvider_wildcardExports3.ts | 3 +- .../autoImportReExportFromAmbientModule.ts | 3 +- ...autoImportRelativePathToMonorepoPackage.ts | 3 +- .../server/autoImportSymlinkedJsPackages.ts | 4 +- tests/cases/fourslash/server/brace01.ts | 2 + .../callHierarchyContainerNameServer.ts | 2 + .../completionEntryDetailAcrossFiles01.ts | 2 + .../completionEntryDetailAcrossFiles02.ts | 2 + tests/cases/fourslash/server/completions01.ts | 2 + tests/cases/fourslash/server/completions02.ts | 2 + tests/cases/fourslash/server/completions03.ts | 2 + ...mport_addToNamedWithDifferentCacheValue.ts | 2 +- .../completionsImport_computedSymbolName.ts | 2 +- ...nsImport_defaultAndNamedConflict_server.ts | 2 +- ...letionsImport_jsModuleExportsAssignment.ts | 2 +- .../completionsImport_mergedReExport.ts | 2 +- ...mpletionsImport_sortingModuleSpecifiers.ts | 2 +- .../completionsOverridingMethodCrash2.ts | 3 +- .../completionsServerCommitCharacters.ts | 2 + .../cases/fourslash/server/configurePlugin.ts | 1 + .../convertFunctionToEs6Class-server1.ts | 7 +- .../convertFunctionToEs6Class-server2.ts | 1 + .../server/declarationMapGoToDefinition.ts | 1 + .../declarationMapsEnableMapping_NoInline.ts | 1 + ...rationMapsEnableMapping_NoInlineSources.ts | 1 + ...clarationMapsGeneratedMapsEnableMapping.ts | 1 + ...larationMapsGeneratedMapsEnableMapping2.ts | 1 + ...larationMapsGeneratedMapsEnableMapping3.ts | 1 + ...ionMapsGoToDefinitionRelativeSourceRoot.ts | 1 + ...oToDefinitionSameNameDifferentDirectory.ts | 1 + .../server/declarationMapsOutOfDateMapping.ts | 2 + tests/cases/fourslash/server/definition01.ts | 2 + .../fourslash/server/documentHighlights01.ts | 2 + .../fourslash/server/documentHighlights02.ts | 2 + ...ghlightsTypeParameterInHeritageClause01.ts | 2 + .../fixExtractToInnerFunctionDuplicaton.ts | 2 + tests/cases/fourslash/server/format01.ts | 2 + .../server/formatBracketInSwitchCase.ts | 2 + tests/cases/fourslash/server/formatOnEnter.ts | 2 + ...formatSpaceBetweenFunctionAndArrayIndex.ts | 2 + tests/cases/fourslash/server/formatonkey01.ts | 2 + .../server/getFileReferences_deduplicate.ts | 8 +- .../server/getFileReferences_server1.ts | 2 +- .../server/getFileReferences_server2.ts | 6 +- .../getJavaScriptSyntacticDiagnostics01.ts | 1 + .../getJavaScriptSyntacticDiagnostics02.ts | 1 + .../server/getOutliningSpansForComments.ts | 2 + .../server/getOutliningSpansForRegions.ts | 2 + ...tliningSpansForRegionsNoSingleLineFolds.ts | 2 + .../goToDefinitionScriptImportServer.ts | 2 + .../goToImplementation_inDifferentFiles.ts | 2 + .../server/goToSource10_mapFromAtTypes3.ts | 1 + .../server/goToSource11_propertyOfAlias.ts | 1 + .../server/goToSource12_callbackParam.ts | 1 + .../fourslash/server/goToSource13_nodenext.ts | 1 + ...Source14_unresolvedRequireDestructuring.ts | 1 + .../fourslash/server/goToSource15_bundler.ts | 2 +- ...goToSource16_callbackParamDifferentFile.ts | 1 + .../server/goToSource17_AddsFileToProject.ts | 1 + .../goToSource18_reusedFromDifferentFolder.ts | 1 + .../server/goToSource1_localJsBesideDts.ts | 2 + .../goToSource2_nodeModulesWithTypes.ts | 1 + .../server/goToSource3_nodeModulesAtTypes.ts | 1 + .../server/goToSource5_sameAsGoToDef1.ts | 2 + .../server/goToSource6_sameAsGoToDef2.ts | 2 + .../goToSource7_conditionallyMinified.ts | 1 + .../server/goToSource8_mapFromAtTypes.ts | 1 + .../server/goToSource9_mapFromAtTypes2.ts | 1 + .../fourslash/server/implementation01.ts | 2 + .../fourslash/server/impliedNodeFormat.ts | 2 +- .../server/importCompletions_importsMap1.ts | 1 + .../server/importCompletions_importsMap2.ts | 1 + .../server/importCompletions_importsMap3.ts | 1 + .../server/importCompletions_importsMap4.ts | 1 + .../server/importCompletions_importsMap5.ts | 1 + ...importFixes_ambientCircularDefaultCrash.ts | 3 +- ...importNameCodeFix_externalNonRelateive2.ts | 1 + .../importNameCodeFix_externalNonRelative1.ts | 3 +- .../server/importNameCodeFix_pnpm1.ts | 2 +- .../importStatementCompletions_pnpm1.ts | 2 +- ...portStatementCompletions_pnpmTransitive.ts | 2 +- .../server/importSuggestionsCache_ambient.ts | 2 +- .../importSuggestionsCache_coreNodeModules.ts | 1 + .../importSuggestionsCache_exportUndefined.ts | 2 +- ...portSuggestionsCache_invalidPackageJson.ts | 3 + ...portSuggestionsCache_moduleAugmentation.ts | 2 +- .../isDefinitionAcrossGlobalProjects.ts | 2 + .../isDefinitionAcrossModuleProjects.ts | 2 + .../fourslash/server/jsdocCallbackTag.ts | 1 + .../server/jsdocCallbackTagNavigateTo.ts | 1 + .../server/jsdocCallbackTagRename01.ts | 1 + .../server/jsdocParamTagSpecialKeywords.ts | 1 + .../cases/fourslash/server/jsdocTypedefTag.ts | 1 + .../fourslash/server/jsdocTypedefTag2.ts | 1 + .../server/jsdocTypedefTagGoToDefinition.ts | 1 + .../server/jsdocTypedefTagNamespace.ts | 1 + .../server/jsdocTypedefTagNavigateTo.ts | 1 + .../server/jsdocTypedefTagRename01.ts | 1 + .../server/jsdocTypedefTagRename02.ts | 1 + .../server/jsdocTypedefTagRename03.ts | 1 + .../server/jsdocTypedefTagRename04.ts | 1 + .../server/moveToFile_emptyTargetFile.ts | 2 +- tests/cases/fourslash/server/navbar01.ts | 2 + tests/cases/fourslash/server/navto01.ts | 2 + .../server/navto_serverExcludeLib.ts | 2 +- tests/cases/fourslash/server/ngProxy1.ts | 1 + tests/cases/fourslash/server/ngProxy2.ts | 1 + tests/cases/fourslash/server/ngProxy3.ts | 1 + tests/cases/fourslash/server/ngProxy4.ts | 1 + .../server/nodeNextModuleKindCaching1.ts | 1 + .../server/nodeNextPathCompletions.ts | 2 +- .../nonJsDeclarationFilePathCompletions.ts | 1 + tests/cases/fourslash/server/occurrences01.ts | 2 + tests/cases/fourslash/server/occurrences02.ts | 2 + tests/cases/fourslash/server/openFile.ts | 2 +- .../server/openFileWithSyntaxKind.ts | 2 + .../server/packageJsonImportsFailedLookups.ts | 2 +- .../server/pasteEdits_addInNextLine.ts | 2 +- .../server/pasteEdits_blankTargetFile.ts | 2 +- .../server/pasteEdits_defaultExport1.ts | 2 +- .../server/pasteEdits_defaultExport2.ts | 2 +- .../server/pasteEdits_defaultImport.ts | 2 +- .../server/pasteEdits_existingImports1.ts | 2 +- .../server/pasteEdits_existingImports2.ts | 2 +- .../server/pasteEdits_globalAndLocal1.ts | 2 +- .../server/pasteEdits_globalAndLocal2.ts | 2 +- .../server/pasteEdits_knownSourceFile.ts | 2 +- .../server/pasteEdits_multiplePastes1.ts | 2 +- .../server/pasteEdits_multiplePastes2.ts | 2 +- .../server/pasteEdits_multiplePastes3.ts | 2 +- .../server/pasteEdits_multiplePastes4.ts | 2 +- ..._multiplePastesConsistentlyLargerInSize.ts | 2 +- ...multiplePastesConsistentlySmallerInSize.ts | 2 +- .../pasteEdits_multiplePastesEqualInSize.ts | 2 +- ...multiplePastesGrowingAndShrinkingInSize.ts | 2 +- .../pasteEdits_multiplePastesGrowingInSize.ts | 2 +- ...asteEdits_multiplePastesShrinkingInSize.ts | 2 +- .../server/pasteEdits_namespaceImport.ts | 2 +- .../server/pasteEdits_noImportNeeded.ts | 2 +- ...steEdits_noImportNeededInUpdatedProgram.ts | 2 +- .../server/pasteEdits_pasteComments.ts | 2 +- .../server/pasteEdits_pasteIntoSameFile.ts | 2 +- .../server/pasteEdits_rangeSelection0.ts | 2 +- .../server/pasteEdits_rangeSelection1.ts | 2 +- .../server/pasteEdits_rangeSelection2.ts | 2 +- .../server/pasteEdits_rangeSelection3.ts | 2 +- .../server/pasteEdits_rangeSelection4.ts | 2 +- .../server/pasteEdits_rangeSelection5.ts | 2 +- .../server/pasteEdits_rangeSelection6.ts | 2 +- .../server/pasteEdits_rangeSelection7.ts | 2 +- .../server/pasteEdits_rangeSelection8.ts | 2 +- .../server/pasteEdits_rangeSelection9.ts | 2 +- .../server/pasteEdits_requireImportJsx.ts | 2 +- .../server/pasteEdits_revertUpdatedFile.ts | 2 +- .../server/pasteEdits_unknownSourceFile.ts | 2 +- ...onsPackageJsonImportsSrcNoDistWildcard1.ts | 1 + ...onsPackageJsonImportsSrcNoDistWildcard2.ts | 1 + ...onsPackageJsonImportsSrcNoDistWildcard3.ts | 1 + ...onsPackageJsonImportsSrcNoDistWildcard4.ts | 1 + ...onsPackageJsonImportsSrcNoDistWildcard5.ts | 1 + ...onsPackageJsonImportsSrcNoDistWildcard6.ts | 1 + ...onsPackageJsonImportsSrcNoDistWildcard7.ts | 1 + ...onsPackageJsonImportsSrcNoDistWildcard8.ts | 1 + ...onsPackageJsonImportsSrcNoDistWildcard9.ts | 1 + tests/cases/fourslash/server/projectInfo01.ts | 10 +- tests/cases/fourslash/server/projectInfo02.ts | 4 +- .../server/projectWithNonExistentFiles.ts | 4 +- tests/cases/fourslash/server/quickinfo01.ts | 2 + .../server/quickinfoVerbosityServer.ts | 2 + .../fourslash/server/quickinfoWrongComment.ts | 2 + .../server/referenceToEmptyObject.ts | 2 + tests/cases/fourslash/server/references01.ts | 2 + .../server/referencesInConfiguredProject.ts | 2 +- .../fourslash/server/referencesInEmptyFile.ts | 2 + ...ferencesInEmptyFileWithMultipleProjects.ts | 4 +- ...nStringLiteralValueWithMultipleProjects.ts | 4 +- ...eferencesToNonPropertyNameStringLiteral.ts | 2 + .../server/referencesToStringLiteralValue.ts | 2 + tests/cases/fourslash/server/rename01.ts | 2 + .../server/renameInConfiguredProject.ts | 2 +- .../fourslash/server/renameNamedImport.ts | 6 +- .../fourslash/server/renameNamespaceImport.ts | 6 +- ...ativeImportExtensionsProjectReferences1.ts | 2 + ...ativeImportExtensionsProjectReferences2.ts | 5 +- ...ativeImportExtensionsProjectReferences3.ts | 3 + .../server/semanticClassificationJs1.ts | 2 + .../cases/fourslash/server/signatureHelp01.ts | 2 + .../server/signatureHelpJSDocCallbackTag.ts | 1 + .../tripleSlashReferenceResolutionMode.ts | 2 +- .../server/tsconfigComputedPropertyError.ts | 1 + .../fourslash/server/tsxIncrementalServer.ts | 2 + .../fourslash/server/typeReferenceOnServer.ts | 2 + .../fourslash/server/typedefinition01.ts | 2 + 488 files changed, 24313 insertions(+), 16261 deletions(-) diff --git a/src/harness/fourslashImpl.ts b/src/harness/fourslashImpl.ts index 0c91f36e78524..56e891ae9cf9a 100644 --- a/src/harness/fourslashImpl.ts +++ b/src/harness/fourslashImpl.ts @@ -102,7 +102,7 @@ const enum MetadataOptionNames { const fileMetadataNames = [MetadataOptionNames.fileName, MetadataOptionNames.emitThisFile, MetadataOptionNames.resolveReference, MetadataOptionNames.symlink]; function convertGlobalOptionsToCompilerOptions(globalOptions: Harness.TestCaseParser.CompilerSettings): ts.CompilerOptions { - const settings: ts.CompilerOptions = { target: ts.ScriptTarget.ES5, newLine: ts.NewLineKind.CarriageReturnLineFeed }; + const settings: ts.CompilerOptions = { ...ts.getDefaultCompilerOptions(), jsx: undefined, newLine: ts.NewLineKind.CarriageReturnLineFeed }; Harness.Compiler.setCompilerOptionsFromHarnessSetting(globalOptions, settings); return settings; } @@ -4833,16 +4833,17 @@ function parseTestData(basePath: string, contents: string, fileName: string): Fo } // @Filename is the only directive that can be used in a test that contains tsconfig.json file. - const config = ts.find(files, isConfig); - if (config) { - let directive = getNonFileNameOptionInFileList(files); - if (!directive) { - directive = getNonFileNameOptionInObject(globalOptions); - } - if (directive) { - throw Error(`It is not allowed to use ${config.fileName} along with directive '${directive}'`); - } - } + // Wrong: the inferred project may contain files other than the ones covered by a tsconfig.json. + // const config = ts.find(files, isConfig); + // if (config) { + // let directive = getNonFileNameOptionInFileList(files); + // if (!directive) { + // directive = getNonFileNameOptionInObject(globalOptions); + // } + // if (directive) { + // throw Error(`It is not allowed to use ${config.fileName} along with directive '${directive}'`); + // } + // } return { markerPositions, diff --git a/src/harness/harnessLanguageService.ts b/src/harness/harnessLanguageService.ts index 6769a90d48648..2a22abf1a5682 100644 --- a/src/harness/harnessLanguageService.ts +++ b/src/harness/harnessLanguageService.ts @@ -766,6 +766,11 @@ export class ServerLanguageServiceAdapter implements LanguageServiceAdapter { // or edited. clientHost.setClient(client); + // Apply test options (e.g. @lib) to inferred projects + if (options) { + client.setCompilerOptionsForInferredProjects(ts.optionMapToObject(ts.serializeCompilerOptions(options)) as ts.server.protocol.CompilerOptions); + } + // Set the properties this.client = client; this.host = clientHost; diff --git a/src/server/editorServices.ts b/src/server/editorServices.ts index 23f8d844c9856..aa578c7ed0815 100644 --- a/src/server/editorServices.ts +++ b/src/server/editorServices.ts @@ -80,6 +80,7 @@ import { JSDocParsingMode, LanguageServiceMode, length, + libMap, map, mapDefinedIterator, matchesExcludeWorker, @@ -464,6 +465,10 @@ export function convertCompilerOptions(protocolOptions: protocol.ExternalProject protocolOptions[id] = mappedValues.get(propertyValue.toLowerCase()); } }); + // Convert lib short names (e.g. "es6") to full filenames (e.g. "lib.es6.d.ts") + if (isArray(protocolOptions.lib)) { + protocolOptions.lib = protocolOptions.lib.map(libName => libMap.get(libName) ?? libName); + } return protocolOptions as any; } diff --git a/tests/baselines/reference/tsserver/fourslashServer/autoImportCrossPackage_pathsAndSymlink.js b/tests/baselines/reference/tsserver/fourslashServer/autoImportCrossPackage_pathsAndSymlink.js index 043975add877e..c9b1e1130b781 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/autoImportCrossPackage_pathsAndSymlink.js +++ b/tests/baselines/reference/tsserver/fourslashServer/autoImportCrossPackage_pathsAndSymlink.js @@ -1,16 +1,39 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "composite": true, + "lib": [ + "es5" + ], + "module": "esnext", + "moduleResolution": "bundler", + "paths": { + "@/*": [ + "./*" + ] + }, + "target": "es5", + "newLine": "crlf", + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/home/src/workspaces/project/node_modules/@company/common] symlink(/home/src/workspaces/project/packages/common) //// [/home/src/workspaces/project/packages/app/lib/index.ts] Tooltip @@ -28,6 +51,7 @@ Tooltip { "compilerOptions": { "composite": true, + "lib": ["es5"], "module": "esnext", "moduleResolution": "bundler", "paths": { @@ -49,7 +73,7 @@ export function Tooltip {}; Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/home/src/workspaces/project/packages/common/package.json" @@ -65,7 +89,7 @@ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/p Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/packages/common/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots @@ -79,18 +103,18 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/packages/common/package.json SVC-1-0 "{\n \"name\": \"@company/common\",\n \"version\": \"1.0.0\",\n \"main\": \"./lib/index.tsx\"\n}" - ../../../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../../../tslibs/TS/Lib/lib.es5.d.ts' ../../../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../../../tslibs/TS/Lib/lib.es5.d.ts' package.json Root file specified for compilation @@ -108,7 +132,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -116,12 +140,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* + {"pollingInterval":500} /home/src/workspaces/project/jsconfig.json: *new* {"pollingInterval":2000} /home/src/workspaces/project/packages/common/jsconfig.json: *new* @@ -154,15 +178,15 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* @@ -173,7 +197,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "file": "/home/src/workspaces/project/packages/app/lib/index.ts" @@ -189,6 +213,9 @@ Info seq [hh:mm:ss:mss] Config: /home/src/workspaces/project/packages/app/tscon ], "options": { "composite": true, + "lib": [ + "lib.es5.d.ts" + ], "module": 99, "moduleResolution": 100, "paths": { @@ -224,18 +251,18 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/packages/app/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/packages/app/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/packages/app/lib/index.ts SVC-1-0 "Tooltip" - ../../../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../../../tslibs/TS/Lib/lib.es5.d.ts' ../../../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../../../tslibs/TS/Lib/lib.es5.d.ts' lib/index.ts Matched by default include pattern '**/*' @@ -298,7 +325,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 1, + "request_seq": 2, "success": true, "performanceData": { "updateGraphDurationMs": *, @@ -307,12 +334,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: + {"pollingInterval":500} /home/src/workspaces/project/jsconfig.json: {"pollingInterval":2000} /home/src/workspaces/project/packages/app/package.json: *new* @@ -365,17 +392,17 @@ Projects:: autoImportProviderHost: /dev/null/autoImportProviderProject1* ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *changed* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *changed* version: Text-1 containingProjects: 2 *changed* /dev/null/inferredProject1* /home/src/workspaces/project/packages/app/tsconfig.json *new* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *changed* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *changed* version: Text-1 containingProjects: 2 *changed* /dev/null/inferredProject1* /home/src/workspaces/project/packages/app/tsconfig.json *new* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *changed* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *changed* version: Text-1 containingProjects: 2 *changed* /dev/null/inferredProject1* @@ -395,7 +422,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "preferences": { @@ -410,7 +437,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 2, + "request_seq": 3, "success": true } After Request @@ -430,7 +457,7 @@ Projects:: Info seq [hh:mm:ss:mss] request: { - "seq": 3, + "seq": 4, "type": "request", "arguments": { "file": "/home/src/workspaces/project/packages/app/lib/index.ts", @@ -443,13 +470,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "syntacticDiagnosticsSync", - "request_seq": 3, + "request_seq": 4, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 4, + "seq": 5, "type": "request", "arguments": { "file": "/home/src/workspaces/project/packages/app/lib/index.ts", @@ -462,7 +489,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "semanticDiagnosticsSync", - "request_seq": 4, + "request_seq": 5, "success": true, "body": [ { @@ -484,7 +511,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 5, + "seq": 6, "type": "request", "arguments": { "file": "/home/src/workspaces/project/packages/app/lib/index.ts", @@ -497,13 +524,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "suggestionDiagnosticsSync", - "request_seq": 5, + "request_seq": 6, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 6, + "seq": 7, "type": "request", "arguments": { "file": "/home/src/workspaces/project/packages/app/lib/index.ts", @@ -529,7 +556,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "getCodeFixes", - "request_seq": 6, + "request_seq": 7, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -561,12 +588,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: + {"pollingInterval":500} /home/src/workspaces/project/jsconfig.json: {"pollingInterval":2000} /home/src/workspaces/project/packages/app/package.json: diff --git a/tests/baselines/reference/tsserver/fourslashServer/autoImportCrossProject_baseUrl_toDist.js b/tests/baselines/reference/tsserver/fourslashServer/autoImportCrossProject_baseUrl_toDist.js index bd18dd1d7f18a..c29b44e3c4f5d 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/autoImportCrossProject_baseUrl_toDist.js +++ b/tests/baselines/reference/tsserver/fourslashServer/autoImportCrossProject_baseUrl_toDist.js @@ -1,16 +1,37 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "lib": [ + "es5" + ], + "module": "esnext", + "moduleResolution": "node10", + "noEmit": true, + "baseUrl": "/home/src/workspaces/project/web", + "target": "es5", + "newLine": "crlf", + "skipDefaultLibCheck": true, + "outDir": "/home/src/workspaces/project/common/dist", + "composite": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/home/src/workspaces/project/common/src/MyModule.ts] export function square(n: number) { return n * 2; @@ -19,6 +40,7 @@ export function square(n: number) { //// [/home/src/workspaces/project/common/tsconfig.json] { "compilerOptions": { + "lib": ["es5"], "module": "commonjs", "outDir": "dist", "composite": true @@ -37,6 +59,7 @@ import { square } from "../../common/dist/src/MyModule"; //// [/home/src/workspaces/project/web/tsconfig.json] { "compilerOptions": { + "lib": ["es5"], "module": "esnext", "moduleResolution": "node", "noEmit": true, @@ -49,7 +72,7 @@ import { square } from "../../common/dist/src/MyModule"; Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/home/src/workspaces/project/common/tsconfig.json" @@ -64,6 +87,9 @@ Info seq [hh:mm:ss:mss] Config: /home/src/workspaces/project/common/tsconfig.js "/home/src/workspaces/project/common/src/MyModule.ts" ], "options": { + "lib": [ + "lib.es5.d.ts" + ], "module": 1, "outDir": "/home/src/workspaces/project/common/dist", "composite": true, @@ -78,7 +104,7 @@ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/p Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/common/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots @@ -90,18 +116,18 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text - /home/src/workspaces/project/common/tsconfig.json SVC-1-0 "{\n \"compilerOptions\": {\n \"module\": \"commonjs\",\n \"outDir\": \"dist\",\n \"composite\": true\n },\n \"include\": [\"src\"]\n}" + /home/src/workspaces/project/common/tsconfig.json SVC-1-0 "{\n \"compilerOptions\": {\n \"lib\": [\"es5\"],\n \"module\": \"commonjs\",\n \"outDir\": \"dist\",\n \"composite\": true\n },\n \"include\": [\"src\"]\n}" - ../../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../../tslibs/TS/Lib/lib.es5.d.ts' ../../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../../tslibs/TS/Lib/lib.es5.d.ts' tsconfig.json Root file specified for compilation @@ -122,7 +148,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -130,12 +156,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* + {"pollingInterval":500} /home/src/workspaces/project/common/jsconfig.json: *new* {"pollingInterval":2000} /home/src/workspaces/project/common/tsconfig.json: *new* @@ -168,15 +194,15 @@ Projects:: noOpenRef: true ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* @@ -187,7 +213,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "file": "/home/src/workspaces/project/web/src/Helper.ts" @@ -203,6 +229,9 @@ Info seq [hh:mm:ss:mss] Config: /home/src/workspaces/project/web/tsconfig.json "/home/src/workspaces/project/web/src/MyApp.ts" ], "options": { + "lib": [ + "lib.es5.d.ts" + ], "module": 99, "moduleResolution": 2, "noEmit": true, @@ -242,7 +271,7 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/web/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/web/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (6) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/web/src/Helper.ts SVC-1-0 "export function saveMe() {\n square(2);\n}" @@ -250,12 +279,12 @@ Info seq [hh:mm:ss:mss] Files (6) /home/src/workspaces/project/web/src/MyApp.ts Text-1 "import { square } from \"../../common/dist/src/MyModule\";" - ../../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../../tslibs/TS/Lib/lib.es5.d.ts' ../../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../../tslibs/TS/Lib/lib.es5.d.ts' src/Helper.ts Matched by include pattern 'src' in 'tsconfig.json' ../common/src/MyModule.ts @@ -284,11 +313,11 @@ Info seq [hh:mm:ss:mss] event: "diagnostics": [ { "start": { - "line": 4, + "line": 5, "offset": 25 }, "end": { - "line": 4, + "line": 5, "offset": 31 }, "text": "Option 'moduleResolution=node10' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '\"ignoreDeprecations\": \"6.0\"' to silence this error.\n Visit https://aka.ms/ts6 for migration information.", @@ -298,11 +327,11 @@ Info seq [hh:mm:ss:mss] event: }, { "start": { - "line": 6, + "line": 7, "offset": 5 }, "end": { - "line": 6, + "line": 7, "offset": 14 }, "text": "Option 'baseUrl' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '\"ignoreDeprecations\": \"6.0\"' to silence this error.\n Visit https://aka.ms/ts6 for migration information.", @@ -335,7 +364,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 1, + "request_seq": 2, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -343,12 +372,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: + {"pollingInterval":500} /home/src/workspaces/project/common/jsconfig.json: {"pollingInterval":2000} /home/src/workspaces/project/common/src/MyModule.ts: *new* @@ -399,17 +428,17 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *changed* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *changed* version: Text-1 containingProjects: 2 *changed* /dev/null/inferredProject1* /home/src/workspaces/project/web/tsconfig.json *new* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *changed* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *changed* version: Text-1 containingProjects: 2 *changed* /dev/null/inferredProject1* /home/src/workspaces/project/web/tsconfig.json *new* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *changed* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *changed* version: Text-1 containingProjects: 2 *changed* /dev/null/inferredProject1* @@ -433,7 +462,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "preferences": { @@ -449,7 +478,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 2, + "request_seq": 3, "success": true } After Request @@ -470,7 +499,7 @@ Projects:: Info seq [hh:mm:ss:mss] request: { - "seq": 3, + "seq": 4, "type": "request", "arguments": { "file": "/home/src/workspaces/project/web/src/Helper.ts", @@ -483,13 +512,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "syntacticDiagnosticsSync", - "request_seq": 3, + "request_seq": 4, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 4, + "seq": 5, "type": "request", "arguments": { "file": "/home/src/workspaces/project/web/src/Helper.ts", @@ -502,7 +531,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "semanticDiagnosticsSync", - "request_seq": 4, + "request_seq": 5, "success": true, "body": [ { @@ -524,7 +553,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 5, + "seq": 6, "type": "request", "arguments": { "file": "/home/src/workspaces/project/web/src/Helper.ts", @@ -537,13 +566,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "suggestionDiagnosticsSync", - "request_seq": 5, + "request_seq": 6, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 6, + "seq": 7, "type": "request", "arguments": { "file": "/home/src/workspaces/project/web/src/Helper.ts", @@ -562,7 +591,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "getCodeFixes", - "request_seq": 6, + "request_seq": 7, "success": true, "body": [ { diff --git a/tests/baselines/reference/tsserver/fourslashServer/autoImportCrossProject_paths_sharedOutDir.js b/tests/baselines/reference/tsserver/fourslashServer/autoImportCrossProject_paths_sharedOutDir.js index f766b160265aa..be34de951cd47 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/autoImportCrossProject_paths_sharedOutDir.js +++ b/tests/baselines/reference/tsserver/fourslashServer/autoImportCrossProject_paths_sharedOutDir.js @@ -1,16 +1,39 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "lib": [ + "es5" + ], + "module": "commonjs", + "baseUrl": "/home/src/workspaces/project", + "paths": { + "packages/*": [ + "./packages/*" + ] + }, + "outDir": "/home/src/workspaces/project/dist/packages/dep", + "target": "es5", + "newLine": "crlf", + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/home/src/workspaces/project/packages/app/index.ts] dep @@ -39,6 +62,7 @@ export const dep = 0; //// [/home/src/workspaces/project/tsconfig.base.json] { "compilerOptions": { + "lib": ["es5"], "module": "commonjs", "baseUrl": ".", "paths": { @@ -50,7 +74,7 @@ export const dep = 0; Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/home/src/workspaces/project/tsconfig.base.json" @@ -62,7 +86,7 @@ Info seq [hh:mm:ss:mss] Creating InferredProject: /dev/null/inferredProject1*, Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots @@ -72,18 +96,18 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text - /home/src/workspaces/project/tsconfig.base.json SVC-1-0 "{\n \"compilerOptions\": {\n \"module\": \"commonjs\",\n \"baseUrl\": \".\",\n \"paths\": {\n \"packages/*\": [\"./packages/*\"]\n }\n }\n}" + /home/src/workspaces/project/tsconfig.base.json SVC-1-0 "{\n \"compilerOptions\": {\n \"lib\": [\"es5\"],\n \"module\": \"commonjs\",\n \"baseUrl\": \".\",\n \"paths\": {\n \"packages/*\": [\"./packages/*\"]\n }\n }\n}" - ../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' tsconfig.base.json Root file specified for compilation @@ -100,7 +124,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -108,12 +132,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* + {"pollingInterval":500} /home/src/workspaces/project/jsconfig.json: *new* {"pollingInterval":2000} /home/src/workspaces/project/tsconfig.json: *new* @@ -132,15 +156,15 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* @@ -151,7 +175,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "file": "/home/src/workspaces/project/packages/app/index.ts" @@ -167,6 +191,9 @@ Info seq [hh:mm:ss:mss] Config: /home/src/workspaces/project/packages/app/tscon "/home/src/workspaces/project/packages/app/utils.ts" ], "options": { + "lib": [ + "lib.es5.d.ts" + ], "module": 1, "baseUrl": "/home/src/workspaces/project", "paths": { @@ -206,6 +233,9 @@ Info seq [hh:mm:ss:mss] Config: /home/src/workspaces/project/packages/dep/tscon "/home/src/workspaces/project/packages/dep/sub/folder/index.ts" ], "options": { + "lib": [ + "lib.es5.d.ts" + ], "module": 1, "baseUrl": "/home/src/workspaces/project", "paths": { @@ -238,7 +268,7 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/packages/app/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/packages/app/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (7) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/packages/app/index.ts SVC-1-0 "dep" @@ -247,12 +277,12 @@ Info seq [hh:mm:ss:mss] Files (7) /home/src/workspaces/project/packages/app/utils.ts Text-1 "import \"packages/dep\";" - ../../../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../../../tslibs/TS/Lib/lib.es5.d.ts' ../../../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../../../tslibs/TS/Lib/lib.es5.d.ts' index.ts Matched by default include pattern '**/*' ../dep/sub/folder/index.ts @@ -330,7 +360,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 1, + "request_seq": 2, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -338,12 +368,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: + {"pollingInterval":500} /home/src/workspaces/project/jsconfig.json: {"pollingInterval":2000} /home/src/workspaces/project/packages/app/tsconfig.json: *new* @@ -393,17 +423,17 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *changed* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *changed* version: Text-1 containingProjects: 2 *changed* /dev/null/inferredProject1* /home/src/workspaces/project/packages/app/tsconfig.json *new* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *changed* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *changed* version: Text-1 containingProjects: 2 *changed* /dev/null/inferredProject1* /home/src/workspaces/project/packages/app/tsconfig.json *new* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *changed* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *changed* version: Text-1 containingProjects: 2 *changed* /dev/null/inferredProject1* @@ -431,7 +461,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "preferences": {} @@ -443,12 +473,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 2, + "request_seq": 3, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 3, + "seq": 4, "type": "request", "arguments": { "file": "/home/src/workspaces/project/packages/app/index.ts", @@ -461,13 +491,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "syntacticDiagnosticsSync", - "request_seq": 3, + "request_seq": 4, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 4, + "seq": 5, "type": "request", "arguments": { "file": "/home/src/workspaces/project/packages/app/index.ts", @@ -480,7 +510,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "semanticDiagnosticsSync", - "request_seq": 4, + "request_seq": 5, "success": true, "body": [ { @@ -502,7 +532,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 5, + "seq": 6, "type": "request", "arguments": { "file": "/home/src/workspaces/project/packages/app/index.ts", @@ -515,13 +545,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "suggestionDiagnosticsSync", - "request_seq": 5, + "request_seq": 6, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 6, + "seq": 7, "type": "request", "arguments": { "file": "/home/src/workspaces/project/packages/app/index.ts", @@ -540,7 +570,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "getCodeFixes", - "request_seq": 6, + "request_seq": 7, "success": true, "body": [ { @@ -569,7 +599,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 7, + "seq": 8, "type": "request", "arguments": { "file": "/home/src/workspaces/project/packages/app/index.ts", @@ -586,7 +616,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 7, + "request_seq": 8, "success": true } After Request @@ -602,17 +632,17 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /dev/null/inferredProject1* /home/src/workspaces/project/packages/app/tsconfig.json -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /dev/null/inferredProject1* /home/src/workspaces/project/packages/app/tsconfig.json -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /dev/null/inferredProject1* @@ -640,7 +670,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 8, + "seq": 9, "type": "request", "arguments": { "file": "/home/src/workspaces/project/packages/app/index.ts", @@ -657,22 +687,22 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 8, + "request_seq": 9, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /dev/null/inferredProject1* /home/src/workspaces/project/packages/app/tsconfig.json -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /dev/null/inferredProject1* /home/src/workspaces/project/packages/app/tsconfig.json -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /dev/null/inferredProject1* diff --git a/tests/baselines/reference/tsserver/fourslashServer/autoImportCrossProject_paths_stripSrc.js b/tests/baselines/reference/tsserver/fourslashServer/autoImportCrossProject_paths_stripSrc.js index 29608533f69ec..53ed3b9c967b2 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/autoImportCrossProject_paths_stripSrc.js +++ b/tests/baselines/reference/tsserver/fourslashServer/autoImportCrossProject_paths_stripSrc.js @@ -1,16 +1,43 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "lib": [ + "es5" + ], + "outDir": "/home/src/workspaces/project/packages/dep/dist", + "rootDir": "/home/src/workspaces/project/packages/dep/src", + "module": "commonjs", + "target": "es5", + "newLine": "crlf", + "skipDefaultLibCheck": true, + "baseUrl": "/home/src/workspaces/project/packages/app", + "paths": { + "dep": [ + "../dep/src/main" + ], + "dep/*": [ + "../dep/src/*" + ] + } + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/home/src/workspaces/project/packages/app/package.json] { "name": "app", "dependencies": { "dep": "*" } } @@ -26,6 +53,7 @@ dep2; //// [/home/src/workspaces/project/packages/app/tsconfig.json] { "compilerOptions": { + "lib": ["es5"], "module": "commonjs", "outDir": "dist", "rootDir": "src", @@ -50,13 +78,13 @@ export const dep2 = 0; //// [/home/src/workspaces/project/packages/dep/tsconfig.json] { - "compilerOptions": { "outDir": "dist", "rootDir": "src", "module": "commonjs" } + "compilerOptions": { "lib": ["es5"], "outDir": "dist", "rootDir": "src", "module": "commonjs" } } Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/home/src/workspaces/project/packages/app/package.json" @@ -73,6 +101,9 @@ Info seq [hh:mm:ss:mss] Config: /home/src/workspaces/project/packages/app/tscon "/home/src/workspaces/project/packages/app/src/utils.ts" ], "options": { + "lib": [ + "lib.es5.d.ts" + ], "module": 1, "outDir": "/home/src/workspaces/project/packages/app/dist", "rootDir": "/home/src/workspaces/project/packages/app/src", @@ -117,6 +148,9 @@ Info seq [hh:mm:ss:mss] Config: /home/src/workspaces/project/packages/dep/tscon "/home/src/workspaces/project/packages/dep/src/sub/folder/index.ts" ], "options": { + "lib": [ + "lib.es5.d.ts" + ], "outDir": "/home/src/workspaces/project/packages/dep/dist", "rootDir": "/home/src/workspaces/project/packages/dep/src", "module": 1, @@ -130,7 +164,7 @@ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/p Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/packages/dep 1 undefined Project: /home/src/workspaces/project/packages/app/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/packages/dep 1 undefined Project: /home/src/workspaces/project/packages/app/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/packages/dep/src/sub/folder/index.ts 500 undefined WatchType: Closed Script info -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/packages/app/node_modules/@types 1 undefined Project: /home/src/workspaces/project/packages/app/tsconfig.json WatchType: Type roots @@ -144,7 +178,7 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/packages/app/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/packages/app/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (8) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/packages/dep/src/sub/folder/index.ts Text-1 "export const dep2 = 0;" @@ -154,12 +188,12 @@ Info seq [hh:mm:ss:mss] Files (8) /home/src/workspaces/project/packages/app/src/utils.ts Text-1 "dep2;" - ../../../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../../../tslibs/TS/Lib/lib.es5.d.ts' ../../../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../../../tslibs/TS/Lib/lib.es5.d.ts' ../dep/src/sub/folder/index.ts Imported via "./sub/folder" from file '../dep/src/main.ts' ../dep/src/main.ts @@ -192,11 +226,11 @@ Info seq [hh:mm:ss:mss] event: "diagnostics": [ { "start": { - "line": 6, + "line": 7, "offset": 5 }, "end": { - "line": 6, + "line": 7, "offset": 14 }, "text": "Option 'baseUrl' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '\"ignoreDeprecations\": \"6.0\"' to silence this error.\n Visit https://aka.ms/ts6 for migration information.", @@ -206,11 +240,11 @@ Info seq [hh:mm:ss:mss] event: }, { "start": { - "line": 12, + "line": 13, "offset": 18 }, "end": { - "line": 12, + "line": 13, "offset": 38 }, "text": "Referenced project '/home/src/workspaces/project/packages/dep' must have setting \"composite\": true.", @@ -220,11 +254,11 @@ Info seq [hh:mm:ss:mss] event: }, { "start": { - "line": 12, + "line": 13, "offset": 3 }, "end": { - "line": 12, + "line": 13, "offset": 15 }, "text": "',' expected.", @@ -254,18 +288,18 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/packages/app/package.json SVC-1-0 "{ \"name\": \"app\", \"dependencies\": { \"dep\": \"*\" } }" - ../../../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../../../tslibs/TS/Lib/lib.es5.d.ts' ../../../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../../../tslibs/TS/Lib/lib.es5.d.ts' package.json Root file specified for compilation @@ -287,7 +321,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -295,12 +329,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* + {"pollingInterval":500} /home/src/workspaces/project/jsconfig.json: *new* {"pollingInterval":2000} /home/src/workspaces/project/packages/app/jsconfig.json: *new* @@ -358,17 +392,17 @@ Projects:: noOpenRef: true ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 containingProjects: 2 /home/src/workspaces/project/packages/app/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 containingProjects: 2 /home/src/workspaces/project/packages/app/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* version: Text-1 containingProjects: 2 /home/src/workspaces/project/packages/app/tsconfig.json @@ -400,7 +434,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "file": "/home/src/workspaces/project/packages/app/src/index.ts" @@ -427,17 +461,17 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 1, + "request_seq": 2, "success": true } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: + {"pollingInterval":500} /home/src/workspaces/project/jsconfig.json: {"pollingInterval":2000} /home/src/workspaces/project/packages/app/jsconfig.json: @@ -497,17 +531,17 @@ Projects:: noOpenRef: false *changed* ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/packages/app/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/packages/app/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/packages/app/tsconfig.json @@ -540,7 +574,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "preferences": {} @@ -552,12 +586,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 2, + "request_seq": 3, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 3, + "seq": 4, "type": "request", "arguments": { "file": "/home/src/workspaces/project/packages/app/src/index.ts", @@ -570,13 +604,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "syntacticDiagnosticsSync", - "request_seq": 3, + "request_seq": 4, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 4, + "seq": 5, "type": "request", "arguments": { "file": "/home/src/workspaces/project/packages/app/src/index.ts", @@ -589,7 +623,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "semanticDiagnosticsSync", - "request_seq": 4, + "request_seq": 5, "success": true, "body": [ { @@ -611,7 +645,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 5, + "seq": 6, "type": "request", "arguments": { "file": "/home/src/workspaces/project/packages/app/src/index.ts", @@ -624,13 +658,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "suggestionDiagnosticsSync", - "request_seq": 5, + "request_seq": 6, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 6, + "seq": 7, "type": "request", "arguments": { "file": "/home/src/workspaces/project/packages/app/src/index.ts", @@ -649,7 +683,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "getCodeFixes", - "request_seq": 6, + "request_seq": 7, "success": true, "body": [ { @@ -689,7 +723,7 @@ Projects:: Info seq [hh:mm:ss:mss] request: { - "seq": 7, + "seq": 8, "type": "request", "arguments": { "file": "/home/src/workspaces/project/packages/app/src/index.ts", @@ -706,7 +740,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 7, + "request_seq": 8, "success": true } After Request @@ -722,17 +756,17 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/packages/app/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/packages/app/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/packages/app/tsconfig.json @@ -764,7 +798,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 8, + "seq": 9, "type": "request", "arguments": { "file": "/home/src/workspaces/project/packages/app/src/index.ts", @@ -781,22 +815,22 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 8, + "request_seq": 9, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/packages/app/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/packages/app/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/packages/app/tsconfig.json @@ -828,7 +862,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 9, + "seq": 10, "type": "request", "arguments": { "file": "/home/src/workspaces/project/packages/app/src/utils.ts" @@ -841,7 +875,7 @@ Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/workspac Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/packages/app/tsconfig.json projectStateVersion: 2 projectProgramVersion: 1 structureChanged: false structureIsReused:: Completely Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/packages/app/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (8) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/packages/dep/src/sub/folder/index.ts Text-1 "export const dep2 = 0;" @@ -871,7 +905,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 9, + "request_seq": 10, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -879,12 +913,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: + {"pollingInterval":500} /home/src/workspaces/project/jsconfig.json: {"pollingInterval":2000} /home/src/workspaces/project/packages/app/jsconfig.json: @@ -943,17 +977,17 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/packages/app/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/packages/app/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/packages/app/tsconfig.json @@ -986,7 +1020,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 10, + "seq": 11, "type": "request", "arguments": { "preferences": {} @@ -998,12 +1032,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 10, + "request_seq": 11, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 11, + "seq": 12, "type": "request", "arguments": { "file": "/home/src/workspaces/project/packages/app/src/utils.ts", @@ -1016,13 +1050,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "syntacticDiagnosticsSync", - "request_seq": 11, + "request_seq": 12, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 12, + "seq": 13, "type": "request", "arguments": { "file": "/home/src/workspaces/project/packages/app/src/utils.ts", @@ -1035,7 +1069,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "semanticDiagnosticsSync", - "request_seq": 12, + "request_seq": 13, "success": true, "body": [ { @@ -1057,7 +1091,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 13, + "seq": 14, "type": "request", "arguments": { "file": "/home/src/workspaces/project/packages/app/src/utils.ts", @@ -1070,13 +1104,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "suggestionDiagnosticsSync", - "request_seq": 13, + "request_seq": 14, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 14, + "seq": 15, "type": "request", "arguments": { "file": "/home/src/workspaces/project/packages/app/src/utils.ts", @@ -1095,7 +1129,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "getCodeFixes", - "request_seq": 14, + "request_seq": 15, "success": true, "body": [ { @@ -1124,7 +1158,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 15, + "seq": 16, "type": "request", "arguments": { "file": "/home/src/workspaces/project/packages/app/src/utils.ts", @@ -1141,7 +1175,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 15, + "request_seq": 16, "success": true } After Request @@ -1157,17 +1191,17 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/packages/app/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/packages/app/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/packages/app/tsconfig.json @@ -1199,7 +1233,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 16, + "seq": 17, "type": "request", "arguments": { "file": "/home/src/workspaces/project/packages/app/src/utils.ts", @@ -1216,22 +1250,22 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 16, + "request_seq": 17, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/packages/app/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/packages/app/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/packages/app/tsconfig.json diff --git a/tests/baselines/reference/tsserver/fourslashServer/autoImportCrossProject_paths_toDist.js b/tests/baselines/reference/tsserver/fourslashServer/autoImportCrossProject_paths_toDist.js index 8b89f06a8933b..d10578139e936 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/autoImportCrossProject_paths_toDist.js +++ b/tests/baselines/reference/tsserver/fourslashServer/autoImportCrossProject_paths_toDist.js @@ -1,16 +1,43 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "lib": [ + "es5" + ], + "outDir": "/home/src/workspaces/project/packages/dep/dist", + "rootDir": "/home/src/workspaces/project/packages/dep/src", + "module": "commonjs", + "target": "es5", + "newLine": "crlf", + "skipDefaultLibCheck": true, + "baseUrl": "/home/src/workspaces/project/packages/app", + "paths": { + "dep": [ + "../dep/src/main" + ], + "dep/dist/*": [ + "../dep/src/*" + ] + } + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/home/src/workspaces/project/packages/app/package.json] { "name": "app", "dependencies": { "dep": "*" } } @@ -26,6 +53,7 @@ dep2; //// [/home/src/workspaces/project/packages/app/tsconfig.json] { "compilerOptions": { + "lib": ["es5"], "module": "commonjs", "outDir": "dist", "rootDir": "src", @@ -50,13 +78,13 @@ export const dep2 = 0; //// [/home/src/workspaces/project/packages/dep/tsconfig.json] { - "compilerOptions": { "outDir": "dist", "rootDir": "src", "module": "commonjs" } + "compilerOptions": { "lib": ["es5"], "outDir": "dist", "rootDir": "src", "module": "commonjs" } } Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/home/src/workspaces/project/packages/app/package.json" @@ -73,6 +101,9 @@ Info seq [hh:mm:ss:mss] Config: /home/src/workspaces/project/packages/app/tscon "/home/src/workspaces/project/packages/app/src/utils.ts" ], "options": { + "lib": [ + "lib.es5.d.ts" + ], "module": 1, "outDir": "/home/src/workspaces/project/packages/app/dist", "rootDir": "/home/src/workspaces/project/packages/app/src", @@ -117,6 +148,9 @@ Info seq [hh:mm:ss:mss] Config: /home/src/workspaces/project/packages/dep/tscon "/home/src/workspaces/project/packages/dep/src/sub/folder/index.ts" ], "options": { + "lib": [ + "lib.es5.d.ts" + ], "outDir": "/home/src/workspaces/project/packages/dep/dist", "rootDir": "/home/src/workspaces/project/packages/dep/src", "module": 1, @@ -130,7 +164,7 @@ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/p Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/packages/dep 1 undefined Project: /home/src/workspaces/project/packages/app/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/packages/dep 1 undefined Project: /home/src/workspaces/project/packages/app/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/packages/dep/src/sub/folder/index.ts 500 undefined WatchType: Closed Script info -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/packages/app/node_modules/@types 1 undefined Project: /home/src/workspaces/project/packages/app/tsconfig.json WatchType: Type roots @@ -144,7 +178,7 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/packages/app/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/packages/app/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (8) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/packages/dep/src/sub/folder/index.ts Text-1 "export const dep2 = 0;" @@ -154,12 +188,12 @@ Info seq [hh:mm:ss:mss] Files (8) /home/src/workspaces/project/packages/app/src/utils.ts Text-1 "dep2;" - ../../../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../../../tslibs/TS/Lib/lib.es5.d.ts' ../../../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../../../tslibs/TS/Lib/lib.es5.d.ts' ../dep/src/sub/folder/index.ts Imported via "./sub/folder" from file '../dep/src/main.ts' ../dep/src/main.ts @@ -192,11 +226,11 @@ Info seq [hh:mm:ss:mss] event: "diagnostics": [ { "start": { - "line": 6, + "line": 7, "offset": 5 }, "end": { - "line": 6, + "line": 7, "offset": 14 }, "text": "Option 'baseUrl' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '\"ignoreDeprecations\": \"6.0\"' to silence this error.\n Visit https://aka.ms/ts6 for migration information.", @@ -206,11 +240,11 @@ Info seq [hh:mm:ss:mss] event: }, { "start": { - "line": 12, + "line": 13, "offset": 18 }, "end": { - "line": 12, + "line": 13, "offset": 38 }, "text": "Referenced project '/home/src/workspaces/project/packages/dep' must have setting \"composite\": true.", @@ -220,11 +254,11 @@ Info seq [hh:mm:ss:mss] event: }, { "start": { - "line": 12, + "line": 13, "offset": 3 }, "end": { - "line": 12, + "line": 13, "offset": 15 }, "text": "',' expected.", @@ -254,18 +288,18 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/packages/app/package.json SVC-1-0 "{ \"name\": \"app\", \"dependencies\": { \"dep\": \"*\" } }" - ../../../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../../../tslibs/TS/Lib/lib.es5.d.ts' ../../../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../../../tslibs/TS/Lib/lib.es5.d.ts' package.json Root file specified for compilation @@ -287,7 +321,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -295,12 +329,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* + {"pollingInterval":500} /home/src/workspaces/project/jsconfig.json: *new* {"pollingInterval":2000} /home/src/workspaces/project/packages/app/jsconfig.json: *new* @@ -358,17 +392,17 @@ Projects:: noOpenRef: true ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 containingProjects: 2 /home/src/workspaces/project/packages/app/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 containingProjects: 2 /home/src/workspaces/project/packages/app/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* version: Text-1 containingProjects: 2 /home/src/workspaces/project/packages/app/tsconfig.json @@ -400,7 +434,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "file": "/home/src/workspaces/project/packages/app/src/index.ts" @@ -427,17 +461,17 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 1, + "request_seq": 2, "success": true } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: + {"pollingInterval":500} /home/src/workspaces/project/jsconfig.json: {"pollingInterval":2000} /home/src/workspaces/project/packages/app/jsconfig.json: @@ -497,17 +531,17 @@ Projects:: noOpenRef: false *changed* ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/packages/app/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/packages/app/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/packages/app/tsconfig.json @@ -540,7 +574,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "preferences": {} @@ -552,12 +586,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 2, + "request_seq": 3, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 3, + "seq": 4, "type": "request", "arguments": { "file": "/home/src/workspaces/project/packages/app/src/index.ts", @@ -570,13 +604,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "syntacticDiagnosticsSync", - "request_seq": 3, + "request_seq": 4, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 4, + "seq": 5, "type": "request", "arguments": { "file": "/home/src/workspaces/project/packages/app/src/index.ts", @@ -589,7 +623,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "semanticDiagnosticsSync", - "request_seq": 4, + "request_seq": 5, "success": true, "body": [ { @@ -611,7 +645,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 5, + "seq": 6, "type": "request", "arguments": { "file": "/home/src/workspaces/project/packages/app/src/index.ts", @@ -624,13 +658,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "suggestionDiagnosticsSync", - "request_seq": 5, + "request_seq": 6, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 6, + "seq": 7, "type": "request", "arguments": { "file": "/home/src/workspaces/project/packages/app/src/index.ts", @@ -649,7 +683,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "getCodeFixes", - "request_seq": 6, + "request_seq": 7, "success": true, "body": [ { @@ -689,7 +723,7 @@ Projects:: Info seq [hh:mm:ss:mss] request: { - "seq": 7, + "seq": 8, "type": "request", "arguments": { "file": "/home/src/workspaces/project/packages/app/src/index.ts", @@ -706,7 +740,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 7, + "request_seq": 8, "success": true } After Request @@ -722,17 +756,17 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/packages/app/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/packages/app/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/packages/app/tsconfig.json @@ -764,7 +798,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 8, + "seq": 9, "type": "request", "arguments": { "file": "/home/src/workspaces/project/packages/app/src/index.ts", @@ -781,22 +815,22 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 8, + "request_seq": 9, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/packages/app/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/packages/app/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/packages/app/tsconfig.json @@ -828,7 +862,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 9, + "seq": 10, "type": "request", "arguments": { "file": "/home/src/workspaces/project/packages/app/src/utils.ts" @@ -841,7 +875,7 @@ Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/workspac Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/packages/app/tsconfig.json projectStateVersion: 2 projectProgramVersion: 1 structureChanged: false structureIsReused:: Completely Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/packages/app/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (8) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/packages/dep/src/sub/folder/index.ts Text-1 "export const dep2 = 0;" @@ -871,7 +905,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 9, + "request_seq": 10, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -879,12 +913,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: + {"pollingInterval":500} /home/src/workspaces/project/jsconfig.json: {"pollingInterval":2000} /home/src/workspaces/project/packages/app/jsconfig.json: @@ -943,17 +977,17 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/packages/app/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/packages/app/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/packages/app/tsconfig.json @@ -986,7 +1020,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 10, + "seq": 11, "type": "request", "arguments": { "preferences": {} @@ -998,12 +1032,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 10, + "request_seq": 11, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 11, + "seq": 12, "type": "request", "arguments": { "file": "/home/src/workspaces/project/packages/app/src/utils.ts", @@ -1016,13 +1050,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "syntacticDiagnosticsSync", - "request_seq": 11, + "request_seq": 12, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 12, + "seq": 13, "type": "request", "arguments": { "file": "/home/src/workspaces/project/packages/app/src/utils.ts", @@ -1035,7 +1069,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "semanticDiagnosticsSync", - "request_seq": 12, + "request_seq": 13, "success": true, "body": [ { @@ -1057,7 +1091,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 13, + "seq": 14, "type": "request", "arguments": { "file": "/home/src/workspaces/project/packages/app/src/utils.ts", @@ -1070,13 +1104,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "suggestionDiagnosticsSync", - "request_seq": 13, + "request_seq": 14, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 14, + "seq": 15, "type": "request", "arguments": { "file": "/home/src/workspaces/project/packages/app/src/utils.ts", @@ -1095,7 +1129,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "getCodeFixes", - "request_seq": 14, + "request_seq": 15, "success": true, "body": [ { @@ -1124,7 +1158,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 15, + "seq": 16, "type": "request", "arguments": { "file": "/home/src/workspaces/project/packages/app/src/utils.ts", @@ -1141,7 +1175,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 15, + "request_seq": 16, "success": true } After Request @@ -1157,17 +1191,17 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/packages/app/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/packages/app/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/packages/app/tsconfig.json @@ -1199,7 +1233,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 16, + "seq": 17, "type": "request", "arguments": { "file": "/home/src/workspaces/project/packages/app/src/utils.ts", @@ -1216,22 +1250,22 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 16, + "request_seq": 17, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/packages/app/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/packages/app/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/packages/app/tsconfig.json diff --git a/tests/baselines/reference/tsserver/fourslashServer/autoImportCrossProject_paths_toDist2.js b/tests/baselines/reference/tsserver/fourslashServer/autoImportCrossProject_paths_toDist2.js index 121c1708b8567..4d16c41d8d809 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/autoImportCrossProject_paths_toDist2.js +++ b/tests/baselines/reference/tsserver/fourslashServer/autoImportCrossProject_paths_toDist2.js @@ -1,16 +1,41 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "lib": [ + "es5" + ], + "module": "esnext", + "moduleResolution": "node10", + "noEmit": true, + "paths": { + "@common/*": [ + "../common/dist/src/*" + ] + }, + "target": "es5", + "newLine": "crlf", + "skipDefaultLibCheck": true, + "outDir": "/home/src/workspaces/project/common/dist", + "composite": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/home/src/workspaces/project/common/src/MyModule.ts] export function square(n: number) { return n * 2; @@ -19,6 +44,7 @@ export function square(n: number) { //// [/home/src/workspaces/project/common/tsconfig.json] { "compilerOptions": { + "lib": ["es5"], "module": "commonjs", "outDir": "dist", "composite": true @@ -37,6 +63,7 @@ import { square } from "@common/MyModule"; //// [/home/src/workspaces/project/web/tsconfig.json] { "compilerOptions": { + "lib": ["es5"], "module": "esnext", "moduleResolution": "node", "noEmit": true, @@ -51,7 +78,7 @@ import { square } from "@common/MyModule"; Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/home/src/workspaces/project/common/tsconfig.json" @@ -66,6 +93,9 @@ Info seq [hh:mm:ss:mss] Config: /home/src/workspaces/project/common/tsconfig.js "/home/src/workspaces/project/common/src/MyModule.ts" ], "options": { + "lib": [ + "lib.es5.d.ts" + ], "module": 1, "outDir": "/home/src/workspaces/project/common/dist", "composite": true, @@ -80,7 +110,7 @@ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/p Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/common/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots @@ -92,18 +122,18 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text - /home/src/workspaces/project/common/tsconfig.json SVC-1-0 "{\n \"compilerOptions\": {\n \"module\": \"commonjs\",\n \"outDir\": \"dist\",\n \"composite\": true\n },\n \"include\": [\"src\"]\n}" + /home/src/workspaces/project/common/tsconfig.json SVC-1-0 "{\n \"compilerOptions\": {\n \"lib\": [\"es5\"],\n \"module\": \"commonjs\",\n \"outDir\": \"dist\",\n \"composite\": true\n },\n \"include\": [\"src\"]\n}" - ../../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../../tslibs/TS/Lib/lib.es5.d.ts' ../../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../../tslibs/TS/Lib/lib.es5.d.ts' tsconfig.json Root file specified for compilation @@ -124,7 +154,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -132,12 +162,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* + {"pollingInterval":500} /home/src/workspaces/project/common/jsconfig.json: *new* {"pollingInterval":2000} /home/src/workspaces/project/common/tsconfig.json: *new* @@ -170,15 +200,15 @@ Projects:: noOpenRef: true ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* @@ -189,7 +219,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "file": "/home/src/workspaces/project/web/src/Helper.ts" @@ -205,6 +235,9 @@ Info seq [hh:mm:ss:mss] Config: /home/src/workspaces/project/web/tsconfig.json "/home/src/workspaces/project/web/src/MyApp.ts" ], "options": { + "lib": [ + "lib.es5.d.ts" + ], "module": 99, "moduleResolution": 2, "noEmit": true, @@ -249,7 +282,7 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/web/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/web/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (6) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/web/src/Helper.ts SVC-1-0 "export function saveMe() {\n square(2);\n}" @@ -257,12 +290,12 @@ Info seq [hh:mm:ss:mss] Files (6) /home/src/workspaces/project/web/src/MyApp.ts Text-1 "import { square } from \"@common/MyModule\";" - ../../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../../tslibs/TS/Lib/lib.es5.d.ts' ../../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../../tslibs/TS/Lib/lib.es5.d.ts' src/Helper.ts Matched by include pattern 'src' in 'tsconfig.json' ../common/src/MyModule.ts @@ -291,11 +324,11 @@ Info seq [hh:mm:ss:mss] event: "diagnostics": [ { "start": { - "line": 4, + "line": 5, "offset": 25 }, "end": { - "line": 4, + "line": 5, "offset": 31 }, "text": "Option 'moduleResolution=node10' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '\"ignoreDeprecations\": \"6.0\"' to silence this error.\n Visit https://aka.ms/ts6 for migration information.", @@ -328,7 +361,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 1, + "request_seq": 2, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -336,12 +369,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: + {"pollingInterval":500} /home/src/workspaces/project/common/jsconfig.json: {"pollingInterval":2000} /home/src/workspaces/project/common/src/MyModule.ts: *new* @@ -392,17 +425,17 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *changed* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *changed* version: Text-1 containingProjects: 2 *changed* /dev/null/inferredProject1* /home/src/workspaces/project/web/tsconfig.json *new* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *changed* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *changed* version: Text-1 containingProjects: 2 *changed* /dev/null/inferredProject1* /home/src/workspaces/project/web/tsconfig.json *new* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *changed* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *changed* version: Text-1 containingProjects: 2 *changed* /dev/null/inferredProject1* @@ -426,7 +459,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "preferences": { @@ -442,7 +475,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 2, + "request_seq": 3, "success": true } After Request @@ -463,7 +496,7 @@ Projects:: Info seq [hh:mm:ss:mss] request: { - "seq": 3, + "seq": 4, "type": "request", "arguments": { "file": "/home/src/workspaces/project/web/src/Helper.ts", @@ -476,13 +509,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "syntacticDiagnosticsSync", - "request_seq": 3, + "request_seq": 4, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 4, + "seq": 5, "type": "request", "arguments": { "file": "/home/src/workspaces/project/web/src/Helper.ts", @@ -495,7 +528,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "semanticDiagnosticsSync", - "request_seq": 4, + "request_seq": 5, "success": true, "body": [ { @@ -517,7 +550,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 5, + "seq": 6, "type": "request", "arguments": { "file": "/home/src/workspaces/project/web/src/Helper.ts", @@ -530,13 +563,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "suggestionDiagnosticsSync", - "request_seq": 5, + "request_seq": 6, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 6, + "seq": 7, "type": "request", "arguments": { "file": "/home/src/workspaces/project/web/src/Helper.ts", @@ -555,7 +588,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "getCodeFixes", - "request_seq": 6, + "request_seq": 7, "success": true, "body": [ { diff --git a/tests/baselines/reference/tsserver/fourslashServer/autoImportCrossProject_paths_toSrc.js b/tests/baselines/reference/tsserver/fourslashServer/autoImportCrossProject_paths_toSrc.js index 24d32776119cf..b08e6f2618b64 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/autoImportCrossProject_paths_toSrc.js +++ b/tests/baselines/reference/tsserver/fourslashServer/autoImportCrossProject_paths_toSrc.js @@ -1,16 +1,43 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "lib": [ + "es5" + ], + "outDir": "/home/src/workspaces/project/packages/dep/dist", + "rootDir": "/home/src/workspaces/project/packages/dep/src", + "module": "commonjs", + "target": "es5", + "newLine": "crlf", + "skipDefaultLibCheck": true, + "baseUrl": "/home/src/workspaces/project/packages/app", + "paths": { + "dep": [ + "../dep/src/main" + ], + "dep/*": [ + "../dep/*" + ] + } + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/home/src/workspaces/project/packages/app/package.json] { "name": "app", "dependencies": { "dep": "*" } } @@ -26,6 +53,7 @@ dep2; //// [/home/src/workspaces/project/packages/app/tsconfig.json] { "compilerOptions": { + "lib": ["es5"], "module": "commonjs", "outDir": "dist", "rootDir": "src", @@ -50,13 +78,13 @@ export const dep2 = 0; //// [/home/src/workspaces/project/packages/dep/tsconfig.json] { - "compilerOptions": { "outDir": "dist", "rootDir": "src", "module": "commonjs" } + "compilerOptions": { "lib": ["es5"], "outDir": "dist", "rootDir": "src", "module": "commonjs" } } Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/home/src/workspaces/project/packages/app/package.json" @@ -73,6 +101,9 @@ Info seq [hh:mm:ss:mss] Config: /home/src/workspaces/project/packages/app/tscon "/home/src/workspaces/project/packages/app/src/utils.ts" ], "options": { + "lib": [ + "lib.es5.d.ts" + ], "module": 1, "outDir": "/home/src/workspaces/project/packages/app/dist", "rootDir": "/home/src/workspaces/project/packages/app/src", @@ -117,6 +148,9 @@ Info seq [hh:mm:ss:mss] Config: /home/src/workspaces/project/packages/dep/tscon "/home/src/workspaces/project/packages/dep/src/sub/folder/index.ts" ], "options": { + "lib": [ + "lib.es5.d.ts" + ], "outDir": "/home/src/workspaces/project/packages/dep/dist", "rootDir": "/home/src/workspaces/project/packages/dep/src", "module": 1, @@ -130,7 +164,7 @@ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/p Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/packages/dep 1 undefined Project: /home/src/workspaces/project/packages/app/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/packages/dep 1 undefined Project: /home/src/workspaces/project/packages/app/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/packages/dep/src/sub/folder/index.ts 500 undefined WatchType: Closed Script info -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/packages/app/node_modules/@types 1 undefined Project: /home/src/workspaces/project/packages/app/tsconfig.json WatchType: Type roots @@ -144,7 +178,7 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/packages/app/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/packages/app/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (8) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/packages/dep/src/sub/folder/index.ts Text-1 "export const dep2 = 0;" @@ -154,12 +188,12 @@ Info seq [hh:mm:ss:mss] Files (8) /home/src/workspaces/project/packages/app/src/utils.ts Text-1 "dep2;" - ../../../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../../../tslibs/TS/Lib/lib.es5.d.ts' ../../../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../../../tslibs/TS/Lib/lib.es5.d.ts' ../dep/src/sub/folder/index.ts Imported via "./sub/folder" from file '../dep/src/main.ts' ../dep/src/main.ts @@ -192,11 +226,11 @@ Info seq [hh:mm:ss:mss] event: "diagnostics": [ { "start": { - "line": 6, + "line": 7, "offset": 5 }, "end": { - "line": 6, + "line": 7, "offset": 14 }, "text": "Option 'baseUrl' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '\"ignoreDeprecations\": \"6.0\"' to silence this error.\n Visit https://aka.ms/ts6 for migration information.", @@ -206,11 +240,11 @@ Info seq [hh:mm:ss:mss] event: }, { "start": { - "line": 12, + "line": 13, "offset": 18 }, "end": { - "line": 12, + "line": 13, "offset": 38 }, "text": "Referenced project '/home/src/workspaces/project/packages/dep' must have setting \"composite\": true.", @@ -220,11 +254,11 @@ Info seq [hh:mm:ss:mss] event: }, { "start": { - "line": 12, + "line": 13, "offset": 3 }, "end": { - "line": 12, + "line": 13, "offset": 15 }, "text": "',' expected.", @@ -254,18 +288,18 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/packages/app/package.json SVC-1-0 "{ \"name\": \"app\", \"dependencies\": { \"dep\": \"*\" } }" - ../../../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../../../tslibs/TS/Lib/lib.es5.d.ts' ../../../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../../../tslibs/TS/Lib/lib.es5.d.ts' package.json Root file specified for compilation @@ -287,7 +321,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -295,12 +329,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* + {"pollingInterval":500} /home/src/workspaces/project/jsconfig.json: *new* {"pollingInterval":2000} /home/src/workspaces/project/packages/app/jsconfig.json: *new* @@ -358,17 +392,17 @@ Projects:: noOpenRef: true ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 containingProjects: 2 /home/src/workspaces/project/packages/app/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 containingProjects: 2 /home/src/workspaces/project/packages/app/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* version: Text-1 containingProjects: 2 /home/src/workspaces/project/packages/app/tsconfig.json @@ -400,7 +434,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "file": "/home/src/workspaces/project/packages/app/src/index.ts" @@ -427,17 +461,17 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 1, + "request_seq": 2, "success": true } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: + {"pollingInterval":500} /home/src/workspaces/project/jsconfig.json: {"pollingInterval":2000} /home/src/workspaces/project/packages/app/jsconfig.json: @@ -497,17 +531,17 @@ Projects:: noOpenRef: false *changed* ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/packages/app/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/packages/app/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/packages/app/tsconfig.json @@ -540,7 +574,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "preferences": {} @@ -552,12 +586,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 2, + "request_seq": 3, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 3, + "seq": 4, "type": "request", "arguments": { "file": "/home/src/workspaces/project/packages/app/src/index.ts", @@ -570,13 +604,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "syntacticDiagnosticsSync", - "request_seq": 3, + "request_seq": 4, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 4, + "seq": 5, "type": "request", "arguments": { "file": "/home/src/workspaces/project/packages/app/src/index.ts", @@ -589,7 +623,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "semanticDiagnosticsSync", - "request_seq": 4, + "request_seq": 5, "success": true, "body": [ { @@ -611,7 +645,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 5, + "seq": 6, "type": "request", "arguments": { "file": "/home/src/workspaces/project/packages/app/src/index.ts", @@ -624,13 +658,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "suggestionDiagnosticsSync", - "request_seq": 5, + "request_seq": 6, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 6, + "seq": 7, "type": "request", "arguments": { "file": "/home/src/workspaces/project/packages/app/src/index.ts", @@ -649,7 +683,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "getCodeFixes", - "request_seq": 6, + "request_seq": 7, "success": true, "body": [ { @@ -689,7 +723,7 @@ Projects:: Info seq [hh:mm:ss:mss] request: { - "seq": 7, + "seq": 8, "type": "request", "arguments": { "file": "/home/src/workspaces/project/packages/app/src/index.ts", @@ -706,7 +740,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 7, + "request_seq": 8, "success": true } After Request @@ -722,17 +756,17 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/packages/app/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/packages/app/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/packages/app/tsconfig.json @@ -764,7 +798,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 8, + "seq": 9, "type": "request", "arguments": { "file": "/home/src/workspaces/project/packages/app/src/index.ts", @@ -781,22 +815,22 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 8, + "request_seq": 9, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/packages/app/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/packages/app/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/packages/app/tsconfig.json @@ -828,7 +862,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 9, + "seq": 10, "type": "request", "arguments": { "file": "/home/src/workspaces/project/packages/app/src/utils.ts" @@ -841,7 +875,7 @@ Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/workspac Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/packages/app/tsconfig.json projectStateVersion: 2 projectProgramVersion: 1 structureChanged: false structureIsReused:: Completely Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/packages/app/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (8) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/packages/dep/src/sub/folder/index.ts Text-1 "export const dep2 = 0;" @@ -871,7 +905,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 9, + "request_seq": 10, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -879,12 +913,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: + {"pollingInterval":500} /home/src/workspaces/project/jsconfig.json: {"pollingInterval":2000} /home/src/workspaces/project/packages/app/jsconfig.json: @@ -943,17 +977,17 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/packages/app/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/packages/app/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/packages/app/tsconfig.json @@ -986,7 +1020,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 10, + "seq": 11, "type": "request", "arguments": { "preferences": {} @@ -998,12 +1032,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 10, + "request_seq": 11, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 11, + "seq": 12, "type": "request", "arguments": { "file": "/home/src/workspaces/project/packages/app/src/utils.ts", @@ -1016,13 +1050,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "syntacticDiagnosticsSync", - "request_seq": 11, + "request_seq": 12, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 12, + "seq": 13, "type": "request", "arguments": { "file": "/home/src/workspaces/project/packages/app/src/utils.ts", @@ -1035,7 +1069,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "semanticDiagnosticsSync", - "request_seq": 12, + "request_seq": 13, "success": true, "body": [ { @@ -1057,7 +1091,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 13, + "seq": 14, "type": "request", "arguments": { "file": "/home/src/workspaces/project/packages/app/src/utils.ts", @@ -1070,13 +1104,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "suggestionDiagnosticsSync", - "request_seq": 13, + "request_seq": 14, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 14, + "seq": 15, "type": "request", "arguments": { "file": "/home/src/workspaces/project/packages/app/src/utils.ts", @@ -1095,7 +1129,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "getCodeFixes", - "request_seq": 14, + "request_seq": 15, "success": true, "body": [ { @@ -1124,7 +1158,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 15, + "seq": 16, "type": "request", "arguments": { "file": "/home/src/workspaces/project/packages/app/src/utils.ts", @@ -1141,7 +1175,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 15, + "request_seq": 16, "success": true } After Request @@ -1157,17 +1191,17 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/packages/app/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/packages/app/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/packages/app/tsconfig.json @@ -1199,7 +1233,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 16, + "seq": 17, "type": "request", "arguments": { "file": "/home/src/workspaces/project/packages/app/src/utils.ts", @@ -1216,22 +1250,22 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 16, + "request_seq": 17, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/packages/app/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/packages/app/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/packages/app/tsconfig.json diff --git a/tests/baselines/reference/tsserver/fourslashServer/autoImportCrossProject_symlinks_stripSrc.js b/tests/baselines/reference/tsserver/fourslashServer/autoImportCrossProject_symlinks_stripSrc.js index e99ed631c5507..fcaee63a3340e 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/autoImportCrossProject_symlinks_stripSrc.js +++ b/tests/baselines/reference/tsserver/fourslashServer/autoImportCrossProject_symlinks_stripSrc.js @@ -1,16 +1,40 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "lib": [ + "es5" + ], + "outDir": "/home/src/workspaces/project/packages/dep/dist", + "rootDir": "/home/src/workspaces/project/packages/dep/src", + "module": "commonjs", + "target": "es5", + "newLine": "crlf", + "skipDefaultLibCheck": true, + "baseUrl": "/home/src/workspaces/project/packages/app", + "paths": { + "dep/*": [ + "../dep/src/*" + ] + } + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/home/src/workspaces/project/packages/app/node_modules/dep] symlink(/home/src/workspaces/project/packages/dep) //// [/home/src/workspaces/project/packages/app/package.json] { "name": "app", "dependencies": { "dep": "*" } } @@ -21,6 +45,7 @@ dep //// [/home/src/workspaces/project/packages/app/tsconfig.json] { "compilerOptions": { + "lib": ["es5"], "module": "commonjs", "outDir": "dist", "rootDir": "src", @@ -43,13 +68,13 @@ export const dep = 0; //// [/home/src/workspaces/project/packages/dep/tsconfig.json] { - "compilerOptions": { "outDir": "dist", "rootDir": "src", "module": "commonjs" } + "compilerOptions": { "lib": ["es5"], "outDir": "dist", "rootDir": "src", "module": "commonjs" } } Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/home/src/workspaces/project/packages/app/package.json" @@ -64,6 +89,9 @@ Info seq [hh:mm:ss:mss] Config: /home/src/workspaces/project/packages/app/tscon "/home/src/workspaces/project/packages/app/src/index.ts" ], "options": { + "lib": [ + "lib.es5.d.ts" + ], "module": 1, "outDir": "/home/src/workspaces/project/packages/app/dist", "rootDir": "/home/src/workspaces/project/packages/app/src", @@ -103,6 +131,9 @@ Info seq [hh:mm:ss:mss] Config: /home/src/workspaces/project/packages/dep/tscon "/home/src/workspaces/project/packages/dep/src/sub/folder/index.ts" ], "options": { + "lib": [ + "lib.es5.d.ts" + ], "outDir": "/home/src/workspaces/project/packages/dep/dist", "rootDir": "/home/src/workspaces/project/packages/dep/src", "module": 1, @@ -112,7 +143,7 @@ Info seq [hh:mm:ss:mss] Config: /home/src/workspaces/project/packages/dep/tscon Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/packages/dep/tsconfig.json 2000 undefined Project: /home/src/workspaces/project/packages/app/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/packages/dep 1 undefined Config: /home/src/workspaces/project/packages/dep/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/packages/dep 1 undefined Config: /home/src/workspaces/project/packages/dep/tsconfig.json WatchType: Wild card directory -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/packages/app/node_modules/@types 1 undefined Project: /home/src/workspaces/project/packages/app/tsconfig.json WatchType: Type roots @@ -126,18 +157,18 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/packages/app/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/packages/app/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/packages/app/src/index.ts Text-1 "dep" - ../../../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../../../tslibs/TS/Lib/lib.es5.d.ts' ../../../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../../../tslibs/TS/Lib/lib.es5.d.ts' src/index.ts Matched by default include pattern '**/*' @@ -162,11 +193,11 @@ Info seq [hh:mm:ss:mss] event: "diagnostics": [ { "start": { - "line": 6, + "line": 7, "offset": 5 }, "end": { - "line": 6, + "line": 7, "offset": 14 }, "text": "Option 'baseUrl' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '\"ignoreDeprecations\": \"6.0\"' to silence this error.\n Visit https://aka.ms/ts6 for migration information.", @@ -176,11 +207,11 @@ Info seq [hh:mm:ss:mss] event: }, { "start": { - "line": 11, + "line": 12, "offset": 18 }, "end": { - "line": 11, + "line": 12, "offset": 38 }, "text": "Referenced project '/home/src/workspaces/project/packages/dep' must have setting \"composite\": true.", @@ -190,11 +221,11 @@ Info seq [hh:mm:ss:mss] event: }, { "start": { - "line": 11, + "line": 12, "offset": 3 }, "end": { - "line": 11, + "line": 12, "offset": 15 }, "text": "',' expected.", @@ -224,18 +255,18 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/packages/app/package.json SVC-1-0 "{ \"name\": \"app\", \"dependencies\": { \"dep\": \"*\" } }" - ../../../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../../../tslibs/TS/Lib/lib.es5.d.ts' ../../../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../../../tslibs/TS/Lib/lib.es5.d.ts' package.json Root file specified for compilation @@ -257,7 +288,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -265,12 +296,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* + {"pollingInterval":500} /home/src/workspaces/project/jsconfig.json: *new* {"pollingInterval":2000} /home/src/workspaces/project/packages/app/jsconfig.json: *new* @@ -319,17 +350,17 @@ Projects:: noOpenRef: true ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 containingProjects: 2 /home/src/workspaces/project/packages/app/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 containingProjects: 2 /home/src/workspaces/project/packages/app/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* version: Text-1 containingProjects: 2 /home/src/workspaces/project/packages/app/tsconfig.json @@ -345,7 +376,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "file": "/home/src/workspaces/project/packages/app/src/index.ts" @@ -372,17 +403,17 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 1, + "request_seq": 2, "success": true } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: + {"pollingInterval":500} /home/src/workspaces/project/jsconfig.json: {"pollingInterval":2000} /home/src/workspaces/project/packages/app/jsconfig.json: @@ -433,17 +464,17 @@ Projects:: noOpenRef: false *changed* ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/packages/app/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/packages/app/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/packages/app/tsconfig.json @@ -460,7 +491,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "preferences": {} @@ -472,12 +503,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 2, + "request_seq": 3, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 3, + "seq": 4, "type": "request", "arguments": { "file": "/home/src/workspaces/project/packages/app/src/index.ts", @@ -490,13 +521,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "syntacticDiagnosticsSync", - "request_seq": 3, + "request_seq": 4, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 4, + "seq": 5, "type": "request", "arguments": { "file": "/home/src/workspaces/project/packages/app/src/index.ts", @@ -509,7 +540,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "semanticDiagnosticsSync", - "request_seq": 4, + "request_seq": 5, "success": true, "body": [ { @@ -531,7 +562,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 5, + "seq": 6, "type": "request", "arguments": { "file": "/home/src/workspaces/project/packages/app/src/index.ts", @@ -544,13 +575,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "suggestionDiagnosticsSync", - "request_seq": 5, + "request_seq": 6, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 6, + "seq": 7, "type": "request", "arguments": { "file": "/home/src/workspaces/project/packages/app/src/index.ts", @@ -592,7 +623,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "getCodeFixes", - "request_seq": 6, + "request_seq": 7, "success": true, "performanceData": { "updateGraphDurationMs": *, @@ -625,12 +656,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: + {"pollingInterval":500} /home/src/workspaces/project/jsconfig.json: {"pollingInterval":2000} /home/src/workspaces/project/packages/app/jsconfig.json: @@ -687,17 +718,17 @@ Projects:: autoImportProviderHost: /dev/null/autoImportProviderProject1* *changed* ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/packages/app/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/packages/app/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/packages/app/tsconfig.json @@ -721,7 +752,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 7, + "seq": 8, "type": "request", "arguments": { "file": "/home/src/workspaces/project/packages/app/src/index.ts", @@ -738,7 +769,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 7, + "request_seq": 8, "success": true } After Request @@ -757,17 +788,17 @@ Projects:: autoImportProviderHost: /dev/null/autoImportProviderProject1* ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/packages/app/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/packages/app/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/packages/app/tsconfig.json @@ -791,7 +822,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 8, + "seq": 9, "type": "request", "arguments": { "file": "/home/src/workspaces/project/packages/app/src/index.ts", @@ -808,22 +839,22 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 8, + "request_seq": 9, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/packages/app/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/packages/app/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/packages/app/tsconfig.json diff --git a/tests/baselines/reference/tsserver/fourslashServer/autoImportCrossProject_symlinks_toDist.js b/tests/baselines/reference/tsserver/fourslashServer/autoImportCrossProject_symlinks_toDist.js index e5bb5e2b106fc..47717fd5b1dae 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/autoImportCrossProject_symlinks_toDist.js +++ b/tests/baselines/reference/tsserver/fourslashServer/autoImportCrossProject_symlinks_toDist.js @@ -1,16 +1,40 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "lib": [ + "es5" + ], + "outDir": "/home/src/workspaces/project/packages/dep/dist", + "rootDir": "/home/src/workspaces/project/packages/dep/src", + "module": "commonjs", + "target": "es5", + "newLine": "crlf", + "skipDefaultLibCheck": true, + "baseUrl": "/home/src/workspaces/project/packages/app", + "paths": { + "dep/dist/*": [ + "../dep/src/*" + ] + } + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/home/src/workspaces/project/packages/app/node_modules/dep] symlink(/home/src/workspaces/project/packages/dep) //// [/home/src/workspaces/project/packages/app/package.json] { "name": "app", "dependencies": { "dep": "*" } } @@ -21,6 +45,7 @@ dep //// [/home/src/workspaces/project/packages/app/tsconfig.json] { "compilerOptions": { + "lib": ["es5"], "module": "commonjs", "outDir": "dist", "rootDir": "src", @@ -43,13 +68,13 @@ export const dep = 0; //// [/home/src/workspaces/project/packages/dep/tsconfig.json] { - "compilerOptions": { "outDir": "dist", "rootDir": "src", "module": "commonjs" } + "compilerOptions": { "lib": ["es5"], "outDir": "dist", "rootDir": "src", "module": "commonjs" } } Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/home/src/workspaces/project/packages/app/package.json" @@ -64,6 +89,9 @@ Info seq [hh:mm:ss:mss] Config: /home/src/workspaces/project/packages/app/tscon "/home/src/workspaces/project/packages/app/src/index.ts" ], "options": { + "lib": [ + "lib.es5.d.ts" + ], "module": 1, "outDir": "/home/src/workspaces/project/packages/app/dist", "rootDir": "/home/src/workspaces/project/packages/app/src", @@ -103,6 +131,9 @@ Info seq [hh:mm:ss:mss] Config: /home/src/workspaces/project/packages/dep/tscon "/home/src/workspaces/project/packages/dep/src/sub/folder/index.ts" ], "options": { + "lib": [ + "lib.es5.d.ts" + ], "outDir": "/home/src/workspaces/project/packages/dep/dist", "rootDir": "/home/src/workspaces/project/packages/dep/src", "module": 1, @@ -112,7 +143,7 @@ Info seq [hh:mm:ss:mss] Config: /home/src/workspaces/project/packages/dep/tscon Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/packages/dep/tsconfig.json 2000 undefined Project: /home/src/workspaces/project/packages/app/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/packages/dep 1 undefined Config: /home/src/workspaces/project/packages/dep/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/packages/dep 1 undefined Config: /home/src/workspaces/project/packages/dep/tsconfig.json WatchType: Wild card directory -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/packages/app/node_modules/@types 1 undefined Project: /home/src/workspaces/project/packages/app/tsconfig.json WatchType: Type roots @@ -126,18 +157,18 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/packages/app/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/packages/app/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/packages/app/src/index.ts Text-1 "dep" - ../../../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../../../tslibs/TS/Lib/lib.es5.d.ts' ../../../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../../../tslibs/TS/Lib/lib.es5.d.ts' src/index.ts Matched by default include pattern '**/*' @@ -162,11 +193,11 @@ Info seq [hh:mm:ss:mss] event: "diagnostics": [ { "start": { - "line": 6, + "line": 7, "offset": 5 }, "end": { - "line": 6, + "line": 7, "offset": 14 }, "text": "Option 'baseUrl' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '\"ignoreDeprecations\": \"6.0\"' to silence this error.\n Visit https://aka.ms/ts6 for migration information.", @@ -176,11 +207,11 @@ Info seq [hh:mm:ss:mss] event: }, { "start": { - "line": 11, + "line": 12, "offset": 18 }, "end": { - "line": 11, + "line": 12, "offset": 38 }, "text": "Referenced project '/home/src/workspaces/project/packages/dep' must have setting \"composite\": true.", @@ -190,11 +221,11 @@ Info seq [hh:mm:ss:mss] event: }, { "start": { - "line": 11, + "line": 12, "offset": 3 }, "end": { - "line": 11, + "line": 12, "offset": 15 }, "text": "',' expected.", @@ -224,18 +255,18 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/packages/app/package.json SVC-1-0 "{ \"name\": \"app\", \"dependencies\": { \"dep\": \"*\" } }" - ../../../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../../../tslibs/TS/Lib/lib.es5.d.ts' ../../../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../../../tslibs/TS/Lib/lib.es5.d.ts' package.json Root file specified for compilation @@ -257,7 +288,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -265,12 +296,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* + {"pollingInterval":500} /home/src/workspaces/project/jsconfig.json: *new* {"pollingInterval":2000} /home/src/workspaces/project/packages/app/jsconfig.json: *new* @@ -319,17 +350,17 @@ Projects:: noOpenRef: true ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 containingProjects: 2 /home/src/workspaces/project/packages/app/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 containingProjects: 2 /home/src/workspaces/project/packages/app/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* version: Text-1 containingProjects: 2 /home/src/workspaces/project/packages/app/tsconfig.json @@ -345,7 +376,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "file": "/home/src/workspaces/project/packages/app/src/index.ts" @@ -372,17 +403,17 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 1, + "request_seq": 2, "success": true } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: + {"pollingInterval":500} /home/src/workspaces/project/jsconfig.json: {"pollingInterval":2000} /home/src/workspaces/project/packages/app/jsconfig.json: @@ -433,17 +464,17 @@ Projects:: noOpenRef: false *changed* ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/packages/app/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/packages/app/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/packages/app/tsconfig.json @@ -460,7 +491,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "preferences": {} @@ -472,12 +503,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 2, + "request_seq": 3, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 3, + "seq": 4, "type": "request", "arguments": { "file": "/home/src/workspaces/project/packages/app/src/index.ts", @@ -490,13 +521,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "syntacticDiagnosticsSync", - "request_seq": 3, + "request_seq": 4, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 4, + "seq": 5, "type": "request", "arguments": { "file": "/home/src/workspaces/project/packages/app/src/index.ts", @@ -509,7 +540,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "semanticDiagnosticsSync", - "request_seq": 4, + "request_seq": 5, "success": true, "body": [ { @@ -531,7 +562,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 5, + "seq": 6, "type": "request", "arguments": { "file": "/home/src/workspaces/project/packages/app/src/index.ts", @@ -544,13 +575,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "suggestionDiagnosticsSync", - "request_seq": 5, + "request_seq": 6, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 6, + "seq": 7, "type": "request", "arguments": { "file": "/home/src/workspaces/project/packages/app/src/index.ts", @@ -592,7 +623,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "getCodeFixes", - "request_seq": 6, + "request_seq": 7, "success": true, "performanceData": { "updateGraphDurationMs": *, @@ -625,12 +656,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: + {"pollingInterval":500} /home/src/workspaces/project/jsconfig.json: {"pollingInterval":2000} /home/src/workspaces/project/packages/app/jsconfig.json: @@ -687,17 +718,17 @@ Projects:: autoImportProviderHost: /dev/null/autoImportProviderProject1* *changed* ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/packages/app/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/packages/app/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/packages/app/tsconfig.json @@ -721,7 +752,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 7, + "seq": 8, "type": "request", "arguments": { "file": "/home/src/workspaces/project/packages/app/src/index.ts", @@ -738,7 +769,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 7, + "request_seq": 8, "success": true } After Request @@ -757,17 +788,17 @@ Projects:: autoImportProviderHost: /dev/null/autoImportProviderProject1* ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/packages/app/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/packages/app/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/packages/app/tsconfig.json @@ -791,7 +822,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 8, + "seq": 9, "type": "request", "arguments": { "file": "/home/src/workspaces/project/packages/app/src/index.ts", @@ -808,22 +839,22 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 8, + "request_seq": 9, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/packages/app/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/packages/app/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/packages/app/tsconfig.json diff --git a/tests/baselines/reference/tsserver/fourslashServer/autoImportCrossProject_symlinks_toSrc.js b/tests/baselines/reference/tsserver/fourslashServer/autoImportCrossProject_symlinks_toSrc.js index 6c1f1073b3220..1ab2f97f123f2 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/autoImportCrossProject_symlinks_toSrc.js +++ b/tests/baselines/reference/tsserver/fourslashServer/autoImportCrossProject_symlinks_toSrc.js @@ -1,16 +1,35 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "lib": [ + "es5" + ], + "outDir": "/home/src/workspaces/project/packages/dep/dist", + "rootDir": "/home/src/workspaces/project/packages/dep/src", + "module": "commonjs", + "target": "es5", + "newLine": "crlf", + "skipDefaultLibCheck": true, + "baseUrl": "/home/src/workspaces/project/packages/app" + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/home/src/workspaces/project/packages/app/node_modules/dep] symlink(/home/src/workspaces/project/packages/dep) //// [/home/src/workspaces/project/packages/app/package.json] { "name": "app", "dependencies": { "dep": "*" } } @@ -21,6 +40,7 @@ dep //// [/home/src/workspaces/project/packages/app/tsconfig.json] { "compilerOptions": { + "lib": ["es5"], "module": "commonjs", "outDir": "dist", "rootDir": "src", @@ -40,13 +60,13 @@ export const dep = 0; //// [/home/src/workspaces/project/packages/dep/tsconfig.json] { - "compilerOptions": { "outDir": "dist", "rootDir": "src", "module": "commonjs" } + "compilerOptions": { "lib": ["es5"], "outDir": "dist", "rootDir": "src", "module": "commonjs" } } Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/home/src/workspaces/project/packages/app/package.json" @@ -61,6 +81,9 @@ Info seq [hh:mm:ss:mss] Config: /home/src/workspaces/project/packages/app/tscon "/home/src/workspaces/project/packages/app/src/index.ts" ], "options": { + "lib": [ + "lib.es5.d.ts" + ], "module": 1, "outDir": "/home/src/workspaces/project/packages/app/dist", "rootDir": "/home/src/workspaces/project/packages/app/src", @@ -94,6 +117,9 @@ Info seq [hh:mm:ss:mss] Config: /home/src/workspaces/project/packages/dep/tscon "/home/src/workspaces/project/packages/dep/src/sub/folder/index.ts" ], "options": { + "lib": [ + "lib.es5.d.ts" + ], "outDir": "/home/src/workspaces/project/packages/dep/dist", "rootDir": "/home/src/workspaces/project/packages/dep/src", "module": 1, @@ -103,7 +129,7 @@ Info seq [hh:mm:ss:mss] Config: /home/src/workspaces/project/packages/dep/tscon Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/packages/dep/tsconfig.json 2000 undefined Project: /home/src/workspaces/project/packages/app/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/packages/dep 1 undefined Config: /home/src/workspaces/project/packages/dep/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/packages/dep 1 undefined Config: /home/src/workspaces/project/packages/dep/tsconfig.json WatchType: Wild card directory -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/packages/app/node_modules/@types 1 undefined Project: /home/src/workspaces/project/packages/app/tsconfig.json WatchType: Type roots @@ -117,18 +143,18 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/packages/app/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/packages/app/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/packages/app/src/index.ts Text-1 "dep" - ../../../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../../../tslibs/TS/Lib/lib.es5.d.ts' ../../../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../../../tslibs/TS/Lib/lib.es5.d.ts' src/index.ts Matched by default include pattern '**/*' @@ -153,11 +179,11 @@ Info seq [hh:mm:ss:mss] event: "diagnostics": [ { "start": { - "line": 6, + "line": 7, "offset": 5 }, "end": { - "line": 6, + "line": 7, "offset": 14 }, "text": "Option 'baseUrl' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '\"ignoreDeprecations\": \"6.0\"' to silence this error.\n Visit https://aka.ms/ts6 for migration information.", @@ -167,11 +193,11 @@ Info seq [hh:mm:ss:mss] event: }, { "start": { - "line": 8, + "line": 9, "offset": 18 }, "end": { - "line": 8, + "line": 9, "offset": 38 }, "text": "Referenced project '/home/src/workspaces/project/packages/dep' must have setting \"composite\": true.", @@ -181,11 +207,11 @@ Info seq [hh:mm:ss:mss] event: }, { "start": { - "line": 8, + "line": 9, "offset": 3 }, "end": { - "line": 8, + "line": 9, "offset": 15 }, "text": "',' expected.", @@ -215,18 +241,18 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/packages/app/package.json SVC-1-0 "{ \"name\": \"app\", \"dependencies\": { \"dep\": \"*\" } }" - ../../../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../../../tslibs/TS/Lib/lib.es5.d.ts' ../../../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../../../tslibs/TS/Lib/lib.es5.d.ts' package.json Root file specified for compilation @@ -248,7 +274,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -256,12 +282,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* + {"pollingInterval":500} /home/src/workspaces/project/jsconfig.json: *new* {"pollingInterval":2000} /home/src/workspaces/project/packages/app/jsconfig.json: *new* @@ -310,17 +336,17 @@ Projects:: noOpenRef: true ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 containingProjects: 2 /home/src/workspaces/project/packages/app/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 containingProjects: 2 /home/src/workspaces/project/packages/app/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* version: Text-1 containingProjects: 2 /home/src/workspaces/project/packages/app/tsconfig.json @@ -336,7 +362,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "file": "/home/src/workspaces/project/packages/app/src/index.ts" @@ -363,17 +389,17 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 1, + "request_seq": 2, "success": true } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: + {"pollingInterval":500} /home/src/workspaces/project/jsconfig.json: {"pollingInterval":2000} /home/src/workspaces/project/packages/app/jsconfig.json: @@ -424,17 +450,17 @@ Projects:: noOpenRef: false *changed* ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/packages/app/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/packages/app/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/packages/app/tsconfig.json @@ -451,7 +477,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "preferences": {} @@ -463,12 +489,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 2, + "request_seq": 3, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 3, + "seq": 4, "type": "request", "arguments": { "file": "/home/src/workspaces/project/packages/app/src/index.ts", @@ -481,13 +507,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "syntacticDiagnosticsSync", - "request_seq": 3, + "request_seq": 4, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 4, + "seq": 5, "type": "request", "arguments": { "file": "/home/src/workspaces/project/packages/app/src/index.ts", @@ -500,7 +526,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "semanticDiagnosticsSync", - "request_seq": 4, + "request_seq": 5, "success": true, "body": [ { @@ -522,7 +548,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 5, + "seq": 6, "type": "request", "arguments": { "file": "/home/src/workspaces/project/packages/app/src/index.ts", @@ -535,13 +561,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "suggestionDiagnosticsSync", - "request_seq": 5, + "request_seq": 6, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 6, + "seq": 7, "type": "request", "arguments": { "file": "/home/src/workspaces/project/packages/app/src/index.ts", @@ -583,7 +609,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "getCodeFixes", - "request_seq": 6, + "request_seq": 7, "success": true, "performanceData": { "updateGraphDurationMs": *, @@ -616,12 +642,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: + {"pollingInterval":500} /home/src/workspaces/project/jsconfig.json: {"pollingInterval":2000} /home/src/workspaces/project/packages/app/jsconfig.json: @@ -678,17 +704,17 @@ Projects:: autoImportProviderHost: /dev/null/autoImportProviderProject1* *changed* ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/packages/app/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/packages/app/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/packages/app/tsconfig.json @@ -712,7 +738,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 7, + "seq": 8, "type": "request", "arguments": { "file": "/home/src/workspaces/project/packages/app/src/index.ts", @@ -729,7 +755,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 7, + "request_seq": 8, "success": true } After Request @@ -748,17 +774,17 @@ Projects:: autoImportProviderHost: /dev/null/autoImportProviderProject1* ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/packages/app/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/packages/app/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/packages/app/tsconfig.json @@ -782,7 +808,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 8, + "seq": 9, "type": "request", "arguments": { "file": "/home/src/workspaces/project/packages/app/src/index.ts", @@ -799,22 +825,22 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 8, + "request_seq": 9, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/packages/app/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/packages/app/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/packages/app/tsconfig.json diff --git a/tests/baselines/reference/tsserver/fourslashServer/autoImportFileExcludePatterns1.js b/tests/baselines/reference/tsserver/fourslashServer/autoImportFileExcludePatterns1.js index 05bbb9a3acfef..b0a878209a656 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/autoImportFileExcludePatterns1.js +++ b/tests/baselines/reference/tsserver/fourslashServer/autoImportFileExcludePatterns1.js @@ -1,16 +1,32 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "target": "es5", + "newLine": "crlf", + "module": "commonjs", + "lib": [ + "es5" + ], + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/home/src/workspaces/project/index.ts] S3 @@ -29,7 +45,7 @@ export * from "./clients/s3"; Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/home/src/workspaces/project/node_modules/aws-sdk/package.json" @@ -43,7 +59,7 @@ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/p Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/aws-sdk/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots @@ -57,18 +73,18 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/node_modules/aws-sdk/package.json SVC-1-0 "{ \"name\": \"aws-sdk\", \"version\": \"2.0.0\", \"main\": \"index.js\" }" - ../../../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../../../tslibs/TS/Lib/lib.es5.d.ts' ../../../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../../../tslibs/TS/Lib/lib.es5.d.ts' package.json Root file specified for compilation @@ -85,7 +101,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -93,12 +109,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* + {"pollingInterval":500} /home/src/workspaces/project/node_modules/aws-sdk/jsconfig.json: *new* {"pollingInterval":2000} /home/src/workspaces/project/node_modules/aws-sdk/tsconfig.json: *new* @@ -124,15 +140,15 @@ Projects:: projectProgramVersion: 1 ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* @@ -143,7 +159,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts" @@ -162,18 +178,18 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject2* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject2*' (Inferred) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/index.ts SVC-1-0 "S3" - ../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' index.ts Root file specified for compilation @@ -223,7 +239,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 1, + "request_seq": 2, "success": true, "performanceData": { "updateGraphDurationMs": *, @@ -232,12 +248,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: + {"pollingInterval":500} /home/src/workspaces/project/jsconfig.json: *new* {"pollingInterval":2000} /home/src/workspaces/project/node_modules/aws-sdk/clients/package.json: *new* @@ -288,17 +304,17 @@ Projects:: autoImportProviderHost: /dev/null/autoImportProviderProject1* ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *changed* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *changed* version: Text-1 containingProjects: 2 *changed* /dev/null/inferredProject1* /dev/null/inferredProject2* *new* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *changed* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *changed* version: Text-1 containingProjects: 2 *changed* /dev/null/inferredProject1* /dev/null/inferredProject2* *new* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *changed* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *changed* version: Text-1 containingProjects: 2 *changed* /dev/null/inferredProject1* @@ -322,7 +338,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "preferences": { @@ -339,7 +355,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 2, + "request_seq": 3, "success": true } After Request @@ -358,7 +374,7 @@ Projects:: Info seq [hh:mm:ss:mss] request: { - "seq": 3, + "seq": 4, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -370,6 +386,16 @@ Info seq [hh:mm:ss:mss] request: Info seq [hh:mm:ss:mss] getCompletionData: Get current token: * Info seq [hh:mm:ss:mss] getCompletionData: Is inside comment: * Info seq [hh:mm:ss:mss] getCompletionData: Get previous token: * +Info seq [hh:mm:ss:mss] AutoImportProviderProject: found 1 root files in 1 dependencies 0 referenced projects in * ms +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/autoImportProviderProject1* +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/autoImportProviderProject1* projectStateVersion: 2 projectProgramVersion: 1 structureChanged: false structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Same program as before +Info seq [hh:mm:ss:mss] getExportInfoMap: cache miss or empty; calculating new results +Info seq [hh:mm:ss:mss] forEachExternalModuleToImportFrom autoImportProvider: * +Info seq [hh:mm:ss:mss] getExportInfoMap: done in * ms +Info seq [hh:mm:ss:mss] collectAutoImports: resolved 0 module specifiers, plus 0 ambient and 0 from cache +Info seq [hh:mm:ss:mss] collectAutoImports: response is complete +Info seq [hh:mm:ss:mss] collectAutoImports: * Info seq [hh:mm:ss:mss] getCompletionData: Semantic work: * Info seq [hh:mm:ss:mss] getCompletionsAtPosition: getCompletionEntriesFromSymbols: * Info seq [hh:mm:ss:mss] response: @@ -377,10 +403,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "completionInfo", - "request_seq": 3, + "request_seq": 4, "success": true, + "performanceData": { + "updateGraphDurationMs": * + }, "body": { - "flags": 0, + "flags": 1, "isGlobalCompletion": true, "isMemberCompletion": false, "isNewIdentifierLocation": false, @@ -1057,9 +1086,23 @@ Info seq [hh:mm:ss:mss] response: ] } } +After Request +Projects:: +/dev/null/autoImportProviderProject1* (AutoImportProvider) *changed* + projectStateVersion: 2 + projectProgramVersion: 1 + dirty: false *changed* +/dev/null/inferredProject1* (Inferred) + projectStateVersion: 1 + projectProgramVersion: 1 +/dev/null/inferredProject2* (Inferred) + projectStateVersion: 1 + projectProgramVersion: 1 + autoImportProviderHost: /dev/null/autoImportProviderProject1* + Info seq [hh:mm:ss:mss] request: { - "seq": 4, + "seq": 5, "type": "request", "arguments": { "preferences": { @@ -1075,12 +1118,26 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 4, + "request_seq": 5, "success": true } +After Request +Projects:: +/dev/null/autoImportProviderProject1* (AutoImportProvider) *changed* + projectStateVersion: 3 *changed* + projectProgramVersion: 1 + dirty: true *changed* +/dev/null/inferredProject1* (Inferred) + projectStateVersion: 1 + projectProgramVersion: 1 +/dev/null/inferredProject2* (Inferred) + projectStateVersion: 1 + projectProgramVersion: 1 + autoImportProviderHost: /dev/null/autoImportProviderProject1* + Info seq [hh:mm:ss:mss] request: { - "seq": 5, + "seq": 6, "type": "request", "arguments": { "preferences": { @@ -1096,12 +1153,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 5, + "request_seq": 6, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 6, + "seq": 7, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -1114,13 +1171,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "syntacticDiagnosticsSync", - "request_seq": 6, + "request_seq": 7, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 7, + "seq": 8, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -1133,7 +1190,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "semanticDiagnosticsSync", - "request_seq": 7, + "request_seq": 8, "success": true, "body": [ { @@ -1155,7 +1212,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 8, + "seq": 9, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -1168,13 +1225,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "suggestionDiagnosticsSync", - "request_seq": 8, + "request_seq": 9, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 9, + "seq": 10, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -1190,7 +1247,7 @@ Info seq [hh:mm:ss:mss] request: } Info seq [hh:mm:ss:mss] AutoImportProviderProject: found 1 root files in 1 dependencies 0 referenced projects in * ms Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/autoImportProviderProject1* -Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/autoImportProviderProject1* projectStateVersion: 2 projectProgramVersion: 1 structureChanged: false structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/autoImportProviderProject1* projectStateVersion: 3 projectProgramVersion: 1 structureChanged: false structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Same program as before Info seq [hh:mm:ss:mss] forEachExternalModuleToImportFrom autoImportProvider: * Info seq [hh:mm:ss:mss] response: @@ -1198,7 +1255,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "getCodeFixes", - "request_seq": 9, + "request_seq": 10, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -1208,7 +1265,7 @@ Info seq [hh:mm:ss:mss] response: After Request Projects:: /dev/null/autoImportProviderProject1* (AutoImportProvider) *changed* - projectStateVersion: 2 + projectStateVersion: 3 projectProgramVersion: 1 dirty: false *changed* /dev/null/inferredProject1* (Inferred) diff --git a/tests/baselines/reference/tsserver/fourslashServer/autoImportFileExcludePatterns2.js b/tests/baselines/reference/tsserver/fourslashServer/autoImportFileExcludePatterns2.js index 13f24f69708ce..0715d6f2e8775 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/autoImportFileExcludePatterns2.js +++ b/tests/baselines/reference/tsserver/fourslashServer/autoImportFileExcludePatterns2.js @@ -1,16 +1,32 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "target": "es5", + "newLine": "crlf", + "lib": [ + "es5" + ], + "module": "commonjs", + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/home/src/workspaces/project/index.ts] S3 @@ -29,7 +45,7 @@ export * from "./clients/s3"; Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/home/src/workspaces/project/node_modules/aws-sdk/package.json" @@ -43,7 +59,7 @@ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/p Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/aws-sdk/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots @@ -57,18 +73,18 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/node_modules/aws-sdk/package.json SVC-1-0 "{ \"name\": \"aws-sdk\", \"version\": \"2.0.0\", \"main\": \"index.js\" }" - ../../../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../../../tslibs/TS/Lib/lib.es5.d.ts' ../../../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../../../tslibs/TS/Lib/lib.es5.d.ts' package.json Root file specified for compilation @@ -85,7 +101,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -93,12 +109,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* + {"pollingInterval":500} /home/src/workspaces/project/node_modules/aws-sdk/jsconfig.json: *new* {"pollingInterval":2000} /home/src/workspaces/project/node_modules/aws-sdk/tsconfig.json: *new* @@ -124,15 +140,15 @@ Projects:: projectProgramVersion: 1 ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* @@ -143,7 +159,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts" @@ -162,18 +178,18 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject2* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject2*' (Inferred) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/index.ts SVC-1-0 "S3" - ../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' index.ts Root file specified for compilation @@ -223,7 +239,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 1, + "request_seq": 2, "success": true, "performanceData": { "updateGraphDurationMs": *, @@ -232,12 +248,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: + {"pollingInterval":500} /home/src/workspaces/project/jsconfig.json: *new* {"pollingInterval":2000} /home/src/workspaces/project/node_modules/aws-sdk/clients/package.json: *new* @@ -288,17 +304,17 @@ Projects:: autoImportProviderHost: /dev/null/autoImportProviderProject1* ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *changed* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *changed* version: Text-1 containingProjects: 2 *changed* /dev/null/inferredProject1* /dev/null/inferredProject2* *new* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *changed* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *changed* version: Text-1 containingProjects: 2 *changed* /dev/null/inferredProject1* /dev/null/inferredProject2* *new* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *changed* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *changed* version: Text-1 containingProjects: 2 *changed* /dev/null/inferredProject1* @@ -322,7 +338,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "preferences": { @@ -339,7 +355,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 2, + "request_seq": 3, "success": true } After Request @@ -358,7 +374,7 @@ Projects:: Info seq [hh:mm:ss:mss] request: { - "seq": 3, + "seq": 4, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -370,6 +386,16 @@ Info seq [hh:mm:ss:mss] request: Info seq [hh:mm:ss:mss] getCompletionData: Get current token: * Info seq [hh:mm:ss:mss] getCompletionData: Is inside comment: * Info seq [hh:mm:ss:mss] getCompletionData: Get previous token: * +Info seq [hh:mm:ss:mss] AutoImportProviderProject: found 1 root files in 1 dependencies 0 referenced projects in * ms +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/autoImportProviderProject1* +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/autoImportProviderProject1* projectStateVersion: 2 projectProgramVersion: 1 structureChanged: false structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Same program as before +Info seq [hh:mm:ss:mss] getExportInfoMap: cache miss or empty; calculating new results +Info seq [hh:mm:ss:mss] forEachExternalModuleToImportFrom autoImportProvider: * +Info seq [hh:mm:ss:mss] getExportInfoMap: done in * ms +Info seq [hh:mm:ss:mss] collectAutoImports: resolved 0 module specifiers, plus 0 ambient and 0 from cache +Info seq [hh:mm:ss:mss] collectAutoImports: response is complete +Info seq [hh:mm:ss:mss] collectAutoImports: * Info seq [hh:mm:ss:mss] getCompletionData: Semantic work: * Info seq [hh:mm:ss:mss] getCompletionsAtPosition: getCompletionEntriesFromSymbols: * Info seq [hh:mm:ss:mss] response: @@ -377,10 +403,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "completionInfo", - "request_seq": 3, + "request_seq": 4, "success": true, + "performanceData": { + "updateGraphDurationMs": * + }, "body": { - "flags": 0, + "flags": 1, "isGlobalCompletion": true, "isMemberCompletion": false, "isNewIdentifierLocation": false, @@ -1057,9 +1086,23 @@ Info seq [hh:mm:ss:mss] response: ] } } +After Request +Projects:: +/dev/null/autoImportProviderProject1* (AutoImportProvider) *changed* + projectStateVersion: 2 + projectProgramVersion: 1 + dirty: false *changed* +/dev/null/inferredProject1* (Inferred) + projectStateVersion: 1 + projectProgramVersion: 1 +/dev/null/inferredProject2* (Inferred) + projectStateVersion: 1 + projectProgramVersion: 1 + autoImportProviderHost: /dev/null/autoImportProviderProject1* + Info seq [hh:mm:ss:mss] request: { - "seq": 4, + "seq": 5, "type": "request", "arguments": { "preferences": { @@ -1075,12 +1118,26 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 4, + "request_seq": 5, "success": true } +After Request +Projects:: +/dev/null/autoImportProviderProject1* (AutoImportProvider) *changed* + projectStateVersion: 3 *changed* + projectProgramVersion: 1 + dirty: true *changed* +/dev/null/inferredProject1* (Inferred) + projectStateVersion: 1 + projectProgramVersion: 1 +/dev/null/inferredProject2* (Inferred) + projectStateVersion: 1 + projectProgramVersion: 1 + autoImportProviderHost: /dev/null/autoImportProviderProject1* + Info seq [hh:mm:ss:mss] request: { - "seq": 5, + "seq": 6, "type": "request", "arguments": { "preferences": { @@ -1096,12 +1153,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 5, + "request_seq": 6, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 6, + "seq": 7, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -1114,13 +1171,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "syntacticDiagnosticsSync", - "request_seq": 6, + "request_seq": 7, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 7, + "seq": 8, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -1133,7 +1190,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "semanticDiagnosticsSync", - "request_seq": 7, + "request_seq": 8, "success": true, "body": [ { @@ -1155,7 +1212,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 8, + "seq": 9, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -1168,13 +1225,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "suggestionDiagnosticsSync", - "request_seq": 8, + "request_seq": 9, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 9, + "seq": 10, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -1190,7 +1247,7 @@ Info seq [hh:mm:ss:mss] request: } Info seq [hh:mm:ss:mss] AutoImportProviderProject: found 1 root files in 1 dependencies 0 referenced projects in * ms Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/autoImportProviderProject1* -Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/autoImportProviderProject1* projectStateVersion: 2 projectProgramVersion: 1 structureChanged: false structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/autoImportProviderProject1* projectStateVersion: 3 projectProgramVersion: 1 structureChanged: false structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Same program as before Info seq [hh:mm:ss:mss] forEachExternalModuleToImportFrom autoImportProvider: * Info seq [hh:mm:ss:mss] response: @@ -1198,7 +1255,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "getCodeFixes", - "request_seq": 9, + "request_seq": 10, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -1208,7 +1265,7 @@ Info seq [hh:mm:ss:mss] response: After Request Projects:: /dev/null/autoImportProviderProject1* (AutoImportProvider) *changed* - projectStateVersion: 2 + projectStateVersion: 3 projectProgramVersion: 1 dirty: false *changed* /dev/null/inferredProject1* (Inferred) diff --git a/tests/baselines/reference/tsserver/fourslashServer/autoImportFileExcludePatterns_networkPaths.js b/tests/baselines/reference/tsserver/fourslashServer/autoImportFileExcludePatterns_networkPaths.js index 96bd598d171f9..d7bd8816227fe 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/autoImportFileExcludePatterns_networkPaths.js +++ b/tests/baselines/reference/tsserver/fourslashServer/autoImportFileExcludePatterns_networkPaths.js @@ -1,16 +1,32 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "target": "es5", + "newLine": "crlf", + "lib": [ + "es5" + ], + "module": "commonjs", + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [//tsclient/home/src/solution/project/index.ts] S3 @@ -29,7 +45,7 @@ export * from "./clients/s3"; Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "//tsclient/home/src/solution/project/node_modules/aws-sdk/package.json" @@ -43,7 +59,7 @@ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: //tsclient/home/src/so Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: //tsclient/home/src/solution/project/node_modules/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: //tsclient/home/src/solution/project/node_modules/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: //tsclient/home/src/solution/project/node_modules/aws-sdk/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots @@ -57,18 +73,18 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: //t Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text //tsclient/home/src/solution/project/node_modules/aws-sdk/package.json SVC-1-0 "{ \"name\": \"aws-sdk\", \"version\": \"2.0.0\", \"main\": \"index.js\" }" - /home/src/tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + /home/src/tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions /home/src/tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '/home/src/tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '/home/src/tslibs/TS/Lib/lib.es5.d.ts' /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '/home/src/tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '/home/src/tslibs/TS/Lib/lib.es5.d.ts' package.json Root file specified for compilation @@ -85,7 +101,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -101,12 +117,12 @@ watchedFiles:: {"pollingInterval":2000} //tsclient/home/src/solution/project/node_modules/tsconfig.json: *new* {"pollingInterval":2000} -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* + {"pollingInterval":500} watchedDirectoriesRecursive:: //tsclient/home/src/solution/node_modules/@types: *new* @@ -128,22 +144,22 @@ ScriptInfos:: version: SVC-1-0 containingProjects: 1 /dev/null/inferredProject1* *default* -/home/src/tslibs/TS/Lib/lib.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "file": "//tsclient/home/src/solution/project/index.ts" @@ -162,18 +178,18 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: //t Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject2* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject2*' (Inferred) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text //tsclient/home/src/solution/project/index.ts SVC-1-0 "S3" - /home/src/tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + /home/src/tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions /home/src/tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '/home/src/tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '/home/src/tslibs/TS/Lib/lib.es5.d.ts' /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '/home/src/tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '/home/src/tslibs/TS/Lib/lib.es5.d.ts' index.ts Root file specified for compilation @@ -223,7 +239,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 1, + "request_seq": 2, "success": true, "performanceData": { "updateGraphDurationMs": *, @@ -254,12 +270,12 @@ watchedFiles:: {"pollingInterval":250} //tsclient/home/src/solution/project/tsconfig.json: *new* {"pollingInterval":2000} -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: + {"pollingInterval":500} watchedDirectoriesRecursive:: //tsclient/home/src/solution/node_modules/@types: @@ -304,17 +320,17 @@ ScriptInfos:: version: SVC-1-0 containingProjects: 1 /dev/null/inferredProject1* *default* -/home/src/tslibs/TS/Lib/lib.d.ts *changed* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *changed* version: Text-1 containingProjects: 2 *changed* /dev/null/inferredProject1* /dev/null/inferredProject2* *new* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *changed* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *changed* version: Text-1 containingProjects: 2 *changed* /dev/null/inferredProject1* /dev/null/inferredProject2* *new* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *changed* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *changed* version: Text-1 containingProjects: 2 *changed* /dev/null/inferredProject1* @@ -322,7 +338,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "preferences": { @@ -339,7 +355,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 2, + "request_seq": 3, "success": true } After Request @@ -358,7 +374,7 @@ Projects:: Info seq [hh:mm:ss:mss] request: { - "seq": 3, + "seq": 4, "type": "request", "arguments": { "file": "//tsclient/home/src/solution/project/index.ts", @@ -370,6 +386,16 @@ Info seq [hh:mm:ss:mss] request: Info seq [hh:mm:ss:mss] getCompletionData: Get current token: * Info seq [hh:mm:ss:mss] getCompletionData: Is inside comment: * Info seq [hh:mm:ss:mss] getCompletionData: Get previous token: * +Info seq [hh:mm:ss:mss] AutoImportProviderProject: found 1 root files in 1 dependencies 0 referenced projects in * ms +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/autoImportProviderProject1* +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/autoImportProviderProject1* projectStateVersion: 2 projectProgramVersion: 1 structureChanged: false structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Same program as before +Info seq [hh:mm:ss:mss] getExportInfoMap: cache miss or empty; calculating new results +Info seq [hh:mm:ss:mss] forEachExternalModuleToImportFrom autoImportProvider: * +Info seq [hh:mm:ss:mss] getExportInfoMap: done in * ms +Info seq [hh:mm:ss:mss] collectAutoImports: resolved 0 module specifiers, plus 0 ambient and 0 from cache +Info seq [hh:mm:ss:mss] collectAutoImports: response is complete +Info seq [hh:mm:ss:mss] collectAutoImports: * Info seq [hh:mm:ss:mss] getCompletionData: Semantic work: * Info seq [hh:mm:ss:mss] getCompletionsAtPosition: getCompletionEntriesFromSymbols: * Info seq [hh:mm:ss:mss] response: @@ -377,10 +403,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "completionInfo", - "request_seq": 3, + "request_seq": 4, "success": true, + "performanceData": { + "updateGraphDurationMs": * + }, "body": { - "flags": 0, + "flags": 1, "isGlobalCompletion": true, "isMemberCompletion": false, "isNewIdentifierLocation": false, @@ -1057,9 +1086,23 @@ Info seq [hh:mm:ss:mss] response: ] } } +After Request +Projects:: +/dev/null/autoImportProviderProject1* (AutoImportProvider) *changed* + projectStateVersion: 2 + projectProgramVersion: 1 + dirty: false *changed* +/dev/null/inferredProject1* (Inferred) + projectStateVersion: 1 + projectProgramVersion: 1 +/dev/null/inferredProject2* (Inferred) + projectStateVersion: 1 + projectProgramVersion: 1 + autoImportProviderHost: /dev/null/autoImportProviderProject1* + Info seq [hh:mm:ss:mss] request: { - "seq": 4, + "seq": 5, "type": "request", "arguments": { "preferences": { @@ -1075,12 +1118,26 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 4, + "request_seq": 5, "success": true } +After Request +Projects:: +/dev/null/autoImportProviderProject1* (AutoImportProvider) *changed* + projectStateVersion: 3 *changed* + projectProgramVersion: 1 + dirty: true *changed* +/dev/null/inferredProject1* (Inferred) + projectStateVersion: 1 + projectProgramVersion: 1 +/dev/null/inferredProject2* (Inferred) + projectStateVersion: 1 + projectProgramVersion: 1 + autoImportProviderHost: /dev/null/autoImportProviderProject1* + Info seq [hh:mm:ss:mss] request: { - "seq": 5, + "seq": 6, "type": "request", "arguments": { "preferences": { @@ -1096,12 +1153,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 5, + "request_seq": 6, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 6, + "seq": 7, "type": "request", "arguments": { "file": "//tsclient/home/src/solution/project/index.ts", @@ -1114,13 +1171,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "syntacticDiagnosticsSync", - "request_seq": 6, + "request_seq": 7, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 7, + "seq": 8, "type": "request", "arguments": { "file": "//tsclient/home/src/solution/project/index.ts", @@ -1133,7 +1190,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "semanticDiagnosticsSync", - "request_seq": 7, + "request_seq": 8, "success": true, "body": [ { @@ -1155,7 +1212,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 8, + "seq": 9, "type": "request", "arguments": { "file": "//tsclient/home/src/solution/project/index.ts", @@ -1168,13 +1225,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "suggestionDiagnosticsSync", - "request_seq": 8, + "request_seq": 9, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 9, + "seq": 10, "type": "request", "arguments": { "file": "//tsclient/home/src/solution/project/index.ts", @@ -1190,7 +1247,7 @@ Info seq [hh:mm:ss:mss] request: } Info seq [hh:mm:ss:mss] AutoImportProviderProject: found 1 root files in 1 dependencies 0 referenced projects in * ms Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/autoImportProviderProject1* -Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/autoImportProviderProject1* projectStateVersion: 2 projectProgramVersion: 1 structureChanged: false structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/autoImportProviderProject1* projectStateVersion: 3 projectProgramVersion: 1 structureChanged: false structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Same program as before Info seq [hh:mm:ss:mss] forEachExternalModuleToImportFrom autoImportProvider: * Info seq [hh:mm:ss:mss] response: @@ -1198,7 +1255,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "getCodeFixes", - "request_seq": 9, + "request_seq": 10, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -1208,7 +1265,7 @@ Info seq [hh:mm:ss:mss] response: After Request Projects:: /dev/null/autoImportProviderProject1* (AutoImportProvider) *changed* - projectStateVersion: 2 + projectStateVersion: 3 projectProgramVersion: 1 dirty: false *changed* /dev/null/inferredProject1* (Inferred) diff --git a/tests/baselines/reference/tsserver/fourslashServer/autoImportFileExcludePatterns_symlinks.js b/tests/baselines/reference/tsserver/fourslashServer/autoImportFileExcludePatterns_symlinks.js index dc7b19a5fa6fe..23671218b35ea 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/autoImportFileExcludePatterns_symlinks.js +++ b/tests/baselines/reference/tsserver/fourslashServer/autoImportFileExcludePatterns_symlinks.js @@ -1,16 +1,32 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "target": "es5", + "newLine": "crlf", + "lib": [ + "es5" + ], + "module": "commonjs", + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/home/src/workspaces/project/index.ts] ServerRuntimeMetaFunction @@ -31,7 +47,7 @@ export declare function ServerRuntimeMetaFunction(): void; Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/home/src/workspaces/project/node_modules/.store/@remix-run-server-runtime-virtual-c72daf0d/package/package.json" @@ -49,7 +65,7 @@ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/p Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/.store/@remix-run-server-runtime-virtual-c72daf0d/package/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots @@ -67,18 +83,18 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/node_modules/.store/@remix-run-server-runtime-virtual-c72daf0d/package/package.json SVC-1-0 "{\n \"name\": \"@remix-run/server-runtime\",\n \"version\": \"0.0.0\",\n \"main\": \"index.js\"\n}" - ../../../../../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../../../../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../../../../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../../../../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../../../../../tslibs/TS/Lib/lib.es5.d.ts' ../../../../../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../../../../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../../../../../tslibs/TS/Lib/lib.es5.d.ts' package.json Root file specified for compilation @@ -95,7 +111,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -103,12 +119,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* + {"pollingInterval":500} /home/src/workspaces/project/node_modules/.store/@remix-run-server-runtime-virtual-c72daf0d/jsconfig.json: *new* {"pollingInterval":2000} /home/src/workspaces/project/node_modules/.store/@remix-run-server-runtime-virtual-c72daf0d/package/jsconfig.json: *new* @@ -146,15 +162,15 @@ Projects:: projectProgramVersion: 1 ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* @@ -165,7 +181,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts" @@ -184,18 +200,18 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject2* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject2*' (Inferred) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/index.ts SVC-1-0 "ServerRuntimeMetaFunction" - ../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' index.ts Root file specified for compilation @@ -238,7 +254,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 1, + "request_seq": 2, "success": true, "performanceData": { "updateGraphDurationMs": *, @@ -247,12 +263,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: + {"pollingInterval":500} /home/src/workspaces/project/jsconfig.json: *new* {"pollingInterval":2000} /home/src/workspaces/project/node_modules/.store/@remix-run-server-runtime-virtual-c72daf0d/jsconfig.json: @@ -309,17 +325,17 @@ Projects:: autoImportProviderHost: /dev/null/autoImportProviderProject1* ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *changed* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *changed* version: Text-1 containingProjects: 2 *changed* /dev/null/inferredProject1* /dev/null/inferredProject2* *new* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *changed* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *changed* version: Text-1 containingProjects: 2 *changed* /dev/null/inferredProject1* /dev/null/inferredProject2* *new* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *changed* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *changed* version: Text-1 containingProjects: 2 *changed* /dev/null/inferredProject1* @@ -339,7 +355,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "preferences": { @@ -356,7 +372,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 2, + "request_seq": 3, "success": true } After Request @@ -375,7 +391,7 @@ Projects:: Info seq [hh:mm:ss:mss] request: { - "seq": 3, + "seq": 4, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -404,7 +420,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "completionInfo", - "request_seq": 3, + "request_seq": 4, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -1103,7 +1119,7 @@ Projects:: Info seq [hh:mm:ss:mss] request: { - "seq": 4, + "seq": 5, "type": "request", "arguments": { "preferences": { @@ -1119,7 +1135,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 4, + "request_seq": 5, "success": true } After Request @@ -1138,7 +1154,7 @@ Projects:: Info seq [hh:mm:ss:mss] request: { - "seq": 5, + "seq": 6, "type": "request", "arguments": { "preferences": { @@ -1154,12 +1170,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 5, + "request_seq": 6, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 6, + "seq": 7, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -1172,13 +1188,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "syntacticDiagnosticsSync", - "request_seq": 6, + "request_seq": 7, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 7, + "seq": 8, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -1191,7 +1207,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "semanticDiagnosticsSync", - "request_seq": 7, + "request_seq": 8, "success": true, "body": [ { @@ -1213,7 +1229,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 8, + "seq": 9, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -1226,13 +1242,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "suggestionDiagnosticsSync", - "request_seq": 8, + "request_seq": 9, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 9, + "seq": 10, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -1256,7 +1272,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "getCodeFixes", - "request_seq": 9, + "request_seq": 10, "success": true, "performanceData": { "updateGraphDurationMs": * diff --git a/tests/baselines/reference/tsserver/fourslashServer/autoImportFileExcludePatterns_symlinks2.js b/tests/baselines/reference/tsserver/fourslashServer/autoImportFileExcludePatterns_symlinks2.js index 7f279606fe0a6..5307025442ca7 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/autoImportFileExcludePatterns_symlinks2.js +++ b/tests/baselines/reference/tsserver/fourslashServer/autoImportFileExcludePatterns_symlinks2.js @@ -1,16 +1,32 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "target": "es5", + "newLine": "crlf", + "lib": [ + "es5" + ], + "module": "commonjs", + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [c:/workspaces/project/index.ts] ServerRuntimeMetaFunction @@ -37,7 +53,7 @@ export declare function ServerRuntimeMetaFunction(): void; Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "c:/workspaces/project/node_modules/.store/aws-sdk-virtual-adfe098/package/package.json" @@ -55,7 +71,7 @@ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: c:/workspaces/project/ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: c:/workspaces/project/node_modules/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: c:/workspaces/project/node_modules/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: c:/workspaces/project/node_modules/.store/aws-sdk-virtual-adfe098/package/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots @@ -73,18 +89,18 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: c:/ Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text c:/workspaces/project/node_modules/.store/aws-sdk-virtual-adfe098/package/package.json SVC-1-0 "{ \"name\": \"aws-sdk\", \"version\": \"2.0.0\", \"main\": \"index.js\" }" - /home/src/tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + /home/src/tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions /home/src/tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '/home/src/tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '/home/src/tslibs/TS/Lib/lib.es5.d.ts' /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '/home/src/tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '/home/src/tslibs/TS/Lib/lib.es5.d.ts' package.json Root file specified for compilation @@ -101,7 +117,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -109,12 +125,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* + {"pollingInterval":500} c:/workspaces/project/node_modules/.store/aws-sdk-virtual-adfe098/jsconfig.json: *new* {"pollingInterval":2000} c:/workspaces/project/node_modules/.store/aws-sdk-virtual-adfe098/package/jsconfig.json: *new* @@ -152,15 +168,15 @@ Projects:: projectProgramVersion: 1 ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* @@ -171,7 +187,7 @@ c:/workspaces/project/node_modules/.store/aws-sdk-virtual-adfe098/package/packag Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "file": "c:/workspaces/project/index.ts" @@ -190,18 +206,18 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: c:/ Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject2* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject2*' (Inferred) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text c:/workspaces/project/index.ts SVC-1-0 "ServerRuntimeMetaFunction" - /home/src/tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + /home/src/tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions /home/src/tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '/home/src/tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '/home/src/tslibs/TS/Lib/lib.es5.d.ts' /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '/home/src/tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '/home/src/tslibs/TS/Lib/lib.es5.d.ts' index.ts Root file specified for compilation @@ -249,7 +265,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 1, + "request_seq": 2, "success": true, "performanceData": { "updateGraphDurationMs": *, @@ -258,12 +274,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: + {"pollingInterval":500} c:/workspaces/project/jsconfig.json: *new* {"pollingInterval":2000} c:/workspaces/project/node_modules/.store/aws-sdk-virtual-adfe098/jsconfig.json: @@ -324,17 +340,17 @@ Projects:: autoImportProviderHost: /dev/null/autoImportProviderProject1* ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *changed* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *changed* version: Text-1 containingProjects: 2 *changed* /dev/null/inferredProject1* /dev/null/inferredProject2* *new* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *changed* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *changed* version: Text-1 containingProjects: 2 *changed* /dev/null/inferredProject1* /dev/null/inferredProject2* *new* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *changed* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *changed* version: Text-1 containingProjects: 2 *changed* /dev/null/inferredProject1* @@ -358,7 +374,7 @@ c:/workspaces/project/node_modules/@remix-run/server-runtime/index.d.ts *new* Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "preferences": { @@ -375,7 +391,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 2, + "request_seq": 3, "success": true } After Request @@ -394,7 +410,7 @@ Projects:: Info seq [hh:mm:ss:mss] request: { - "seq": 3, + "seq": 4, "type": "request", "arguments": { "file": "c:/workspaces/project/index.ts", @@ -423,7 +439,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "completionInfo", - "request_seq": 3, + "request_seq": 4, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -1122,7 +1138,7 @@ Projects:: Info seq [hh:mm:ss:mss] request: { - "seq": 4, + "seq": 5, "type": "request", "arguments": { "preferences": { @@ -1138,7 +1154,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 4, + "request_seq": 5, "success": true } After Request @@ -1157,7 +1173,7 @@ Projects:: Info seq [hh:mm:ss:mss] request: { - "seq": 5, + "seq": 6, "type": "request", "arguments": { "preferences": { @@ -1173,12 +1189,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 5, + "request_seq": 6, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 6, + "seq": 7, "type": "request", "arguments": { "file": "c:/workspaces/project/index.ts", @@ -1191,13 +1207,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "syntacticDiagnosticsSync", - "request_seq": 6, + "request_seq": 7, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 7, + "seq": 8, "type": "request", "arguments": { "file": "c:/workspaces/project/index.ts", @@ -1210,7 +1226,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "semanticDiagnosticsSync", - "request_seq": 7, + "request_seq": 8, "success": true, "body": [ { @@ -1232,7 +1248,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 8, + "seq": 9, "type": "request", "arguments": { "file": "c:/workspaces/project/index.ts", @@ -1245,13 +1261,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "suggestionDiagnosticsSync", - "request_seq": 8, + "request_seq": 9, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 9, + "seq": 10, "type": "request", "arguments": { "file": "c:/workspaces/project/index.ts", @@ -1275,7 +1291,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "getCodeFixes", - "request_seq": 9, + "request_seq": 10, "success": true, "performanceData": { "updateGraphDurationMs": * diff --git a/tests/baselines/reference/tsserver/fourslashServer/autoImportFileExcludePatterns_windowsPaths.js b/tests/baselines/reference/tsserver/fourslashServer/autoImportFileExcludePatterns_windowsPaths.js index 8ff7f33f15033..43153bf698f0e 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/autoImportFileExcludePatterns_windowsPaths.js +++ b/tests/baselines/reference/tsserver/fourslashServer/autoImportFileExcludePatterns_windowsPaths.js @@ -1,16 +1,32 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "target": "es5", + "newLine": "crlf", + "lib": [ + "es5" + ], + "module": "commonjs", + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [c:/workspaces/project/index.ts] S3 @@ -29,7 +45,7 @@ export * from "./clients/s3"; Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "c:/workspaces/project/node_modules/aws-sdk/package.json" @@ -43,7 +59,7 @@ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: c:/workspaces/project/ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: c:/workspaces/project/node_modules/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: c:/workspaces/project/node_modules/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: c:/workspaces/project/node_modules/aws-sdk/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots @@ -57,18 +73,18 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: c:/ Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text c:/workspaces/project/node_modules/aws-sdk/package.json SVC-1-0 "{ \"name\": \"aws-sdk\", \"version\": \"2.0.0\", \"main\": \"index.js\" }" - /home/src/tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + /home/src/tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions /home/src/tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '/home/src/tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '/home/src/tslibs/TS/Lib/lib.es5.d.ts' /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '/home/src/tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '/home/src/tslibs/TS/Lib/lib.es5.d.ts' package.json Root file specified for compilation @@ -85,7 +101,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -93,12 +109,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* + {"pollingInterval":500} c:/workspaces/project/node_modules/aws-sdk/jsconfig.json: *new* {"pollingInterval":2000} c:/workspaces/project/node_modules/aws-sdk/tsconfig.json: *new* @@ -124,15 +140,15 @@ Projects:: projectProgramVersion: 1 ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* @@ -143,7 +159,7 @@ c:/workspaces/project/node_modules/aws-sdk/package.json (Open) *new* Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "file": "c:/workspaces/project/index.ts" @@ -162,18 +178,18 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: c:/ Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject2* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject2*' (Inferred) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text c:/workspaces/project/index.ts SVC-1-0 "S3" - /home/src/tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + /home/src/tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions /home/src/tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '/home/src/tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '/home/src/tslibs/TS/Lib/lib.es5.d.ts' /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '/home/src/tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '/home/src/tslibs/TS/Lib/lib.es5.d.ts' index.ts Root file specified for compilation @@ -223,7 +239,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 1, + "request_seq": 2, "success": true, "performanceData": { "updateGraphDurationMs": *, @@ -232,12 +248,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: + {"pollingInterval":500} c:/workspaces/project/jsconfig.json: *new* {"pollingInterval":2000} c:/workspaces/project/node_modules/aws-sdk/clients/package.json: *new* @@ -288,17 +304,17 @@ Projects:: autoImportProviderHost: /dev/null/autoImportProviderProject1* ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *changed* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *changed* version: Text-1 containingProjects: 2 *changed* /dev/null/inferredProject1* /dev/null/inferredProject2* *new* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *changed* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *changed* version: Text-1 containingProjects: 2 *changed* /dev/null/inferredProject1* /dev/null/inferredProject2* *new* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *changed* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *changed* version: Text-1 containingProjects: 2 *changed* /dev/null/inferredProject1* @@ -322,7 +338,7 @@ c:/workspaces/project/node_modules/aws-sdk/package.json (Open) Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "preferences": { @@ -339,7 +355,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 2, + "request_seq": 3, "success": true } After Request @@ -358,7 +374,7 @@ Projects:: Info seq [hh:mm:ss:mss] request: { - "seq": 3, + "seq": 4, "type": "request", "arguments": { "file": "c:/workspaces/project/index.ts", @@ -370,6 +386,16 @@ Info seq [hh:mm:ss:mss] request: Info seq [hh:mm:ss:mss] getCompletionData: Get current token: * Info seq [hh:mm:ss:mss] getCompletionData: Is inside comment: * Info seq [hh:mm:ss:mss] getCompletionData: Get previous token: * +Info seq [hh:mm:ss:mss] AutoImportProviderProject: found 1 root files in 1 dependencies 0 referenced projects in * ms +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/autoImportProviderProject1* +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/autoImportProviderProject1* projectStateVersion: 2 projectProgramVersion: 1 structureChanged: false structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Same program as before +Info seq [hh:mm:ss:mss] getExportInfoMap: cache miss or empty; calculating new results +Info seq [hh:mm:ss:mss] forEachExternalModuleToImportFrom autoImportProvider: * +Info seq [hh:mm:ss:mss] getExportInfoMap: done in * ms +Info seq [hh:mm:ss:mss] collectAutoImports: resolved 0 module specifiers, plus 0 ambient and 0 from cache +Info seq [hh:mm:ss:mss] collectAutoImports: response is complete +Info seq [hh:mm:ss:mss] collectAutoImports: * Info seq [hh:mm:ss:mss] getCompletionData: Semantic work: * Info seq [hh:mm:ss:mss] getCompletionsAtPosition: getCompletionEntriesFromSymbols: * Info seq [hh:mm:ss:mss] response: @@ -377,10 +403,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "completionInfo", - "request_seq": 3, + "request_seq": 4, "success": true, + "performanceData": { + "updateGraphDurationMs": * + }, "body": { - "flags": 0, + "flags": 1, "isGlobalCompletion": true, "isMemberCompletion": false, "isNewIdentifierLocation": false, @@ -1057,9 +1086,23 @@ Info seq [hh:mm:ss:mss] response: ] } } +After Request +Projects:: +/dev/null/autoImportProviderProject1* (AutoImportProvider) *changed* + projectStateVersion: 2 + projectProgramVersion: 1 + dirty: false *changed* +/dev/null/inferredProject1* (Inferred) + projectStateVersion: 1 + projectProgramVersion: 1 +/dev/null/inferredProject2* (Inferred) + projectStateVersion: 1 + projectProgramVersion: 1 + autoImportProviderHost: /dev/null/autoImportProviderProject1* + Info seq [hh:mm:ss:mss] request: { - "seq": 4, + "seq": 5, "type": "request", "arguments": { "preferences": { @@ -1075,12 +1118,26 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 4, + "request_seq": 5, "success": true } +After Request +Projects:: +/dev/null/autoImportProviderProject1* (AutoImportProvider) *changed* + projectStateVersion: 3 *changed* + projectProgramVersion: 1 + dirty: true *changed* +/dev/null/inferredProject1* (Inferred) + projectStateVersion: 1 + projectProgramVersion: 1 +/dev/null/inferredProject2* (Inferred) + projectStateVersion: 1 + projectProgramVersion: 1 + autoImportProviderHost: /dev/null/autoImportProviderProject1* + Info seq [hh:mm:ss:mss] request: { - "seq": 5, + "seq": 6, "type": "request", "arguments": { "preferences": { @@ -1096,12 +1153,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 5, + "request_seq": 6, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 6, + "seq": 7, "type": "request", "arguments": { "file": "c:/workspaces/project/index.ts", @@ -1114,13 +1171,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "syntacticDiagnosticsSync", - "request_seq": 6, + "request_seq": 7, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 7, + "seq": 8, "type": "request", "arguments": { "file": "c:/workspaces/project/index.ts", @@ -1133,7 +1190,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "semanticDiagnosticsSync", - "request_seq": 7, + "request_seq": 8, "success": true, "body": [ { @@ -1155,7 +1212,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 8, + "seq": 9, "type": "request", "arguments": { "file": "c:/workspaces/project/index.ts", @@ -1168,13 +1225,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "suggestionDiagnosticsSync", - "request_seq": 8, + "request_seq": 9, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 9, + "seq": 10, "type": "request", "arguments": { "file": "c:/workspaces/project/index.ts", @@ -1190,7 +1247,7 @@ Info seq [hh:mm:ss:mss] request: } Info seq [hh:mm:ss:mss] AutoImportProviderProject: found 1 root files in 1 dependencies 0 referenced projects in * ms Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/autoImportProviderProject1* -Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/autoImportProviderProject1* projectStateVersion: 2 projectProgramVersion: 1 structureChanged: false structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/autoImportProviderProject1* projectStateVersion: 3 projectProgramVersion: 1 structureChanged: false structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Same program as before Info seq [hh:mm:ss:mss] forEachExternalModuleToImportFrom autoImportProvider: * Info seq [hh:mm:ss:mss] response: @@ -1198,7 +1255,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "getCodeFixes", - "request_seq": 9, + "request_seq": 10, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -1208,7 +1265,7 @@ Info seq [hh:mm:ss:mss] response: After Request Projects:: /dev/null/autoImportProviderProject1* (AutoImportProvider) *changed* - projectStateVersion: 2 + projectStateVersion: 3 projectProgramVersion: 1 dirty: false *changed* /dev/null/inferredProject1* (Inferred) diff --git a/tests/baselines/reference/tsserver/fourslashServer/autoImportNodeModuleSymlinkRenamed.js b/tests/baselines/reference/tsserver/fourslashServer/autoImportNodeModuleSymlinkRenamed.js index fdb0a266e5f60..fd63a30c7d5ba 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/autoImportNodeModuleSymlinkRenamed.js +++ b/tests/baselines/reference/tsserver/fourslashServer/autoImportNodeModuleSymlinkRenamed.js @@ -1,16 +1,37 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "lib": [ + "es5" + ], + "composite": true, + "module": "esnext", + "moduleResolution": "bundler", + "rootDir": "/home/src/workspaces/solution/packages/web/src", + "outDir": "/home/src/workspaces/solution/packages/web/dist", + "emitDeclarationOnly": true, + "target": "es5", + "newLine": "crlf", + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/home/src/workspaces/solution/node_modules/@monorepo/utils] symlink(/home/src/workspaces/solution/packages/utils) //// [/home/src/workspaces/solution/node_modules/utils] symlink(/home/src/workspaces/solution/packages/utils) //// [/home/src/workspaces/solution/node_modules/web] symlink(/home/src/workspaces/solution/packages/web) @@ -33,6 +54,7 @@ export function gainUtility() { return 0; } //// [/home/src/workspaces/solution/packages/utils/tsconfig.json] { "compilerOptions": { + "lib": ["es5"], "composite": true, "module": "nodenext", "rootDir": "src", @@ -56,6 +78,7 @@ gainUtility //// [/home/src/workspaces/solution/packages/web/tsconfig.json] { "compilerOptions": { + "lib": ["es5"], "composite": true, "module": "esnext", "moduleResolution": "bundler", @@ -72,7 +95,7 @@ gainUtility Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/home/src/workspaces/solution/package.json" @@ -84,7 +107,7 @@ Info seq [hh:mm:ss:mss] Creating InferredProject: /dev/null/inferredProject1*, Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/solution/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/solution/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/solution/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots @@ -94,18 +117,18 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/solution/package.json SVC-1-0 "{\n \"name\": \"monorepo\",\n \"workspaces\": [\"packages/*\"]\n}" - ../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' package.json Root file specified for compilation @@ -123,7 +146,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -131,12 +154,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* + {"pollingInterval":500} /home/src/workspaces/solution/jsconfig.json: *new* {"pollingInterval":2000} /home/src/workspaces/solution/package.json: *new* @@ -157,15 +180,15 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* @@ -176,7 +199,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "file": "/home/src/workspaces/solution/packages/web/src/index.ts" @@ -191,6 +214,9 @@ Info seq [hh:mm:ss:mss] Config: /home/src/workspaces/solution/packages/web/tsco "/home/src/workspaces/solution/packages/web/src/index.ts" ], "options": { + "lib": [ + "lib.es5.d.ts" + ], "composite": true, "module": 99, "moduleResolution": 100, @@ -224,6 +250,9 @@ Info seq [hh:mm:ss:mss] Config: /home/src/workspaces/solution/packages/utils/ts "/home/src/workspaces/solution/packages/utils/src/index.ts" ], "options": { + "lib": [ + "lib.es5.d.ts" + ], "composite": true, "module": 199, "rootDir": "/home/src/workspaces/solution/packages/utils/src", @@ -245,18 +274,18 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/solution/packages/web/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/solution/packages/web/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/solution/packages/web/src/index.ts SVC-1-0 "gainUtility" - ../../../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../../../tslibs/TS/Lib/lib.es5.d.ts' ../../../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../../../tslibs/TS/Lib/lib.es5.d.ts' src/index.ts Matched by include pattern 'src' in 'tsconfig.json' @@ -319,7 +348,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 1, + "request_seq": 2, "success": true, "performanceData": { "updateGraphDurationMs": *, @@ -328,12 +357,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: + {"pollingInterval":500} /home/src/workspaces/solution/jsconfig.json: {"pollingInterval":2000} /home/src/workspaces/solution/package.json: @@ -379,17 +408,17 @@ Projects:: autoImportProviderHost: /dev/null/autoImportProviderProject1* ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *changed* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *changed* version: Text-1 containingProjects: 2 *changed* /dev/null/inferredProject1* /home/src/workspaces/solution/packages/web/tsconfig.json *new* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *changed* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *changed* version: Text-1 containingProjects: 2 *changed* /dev/null/inferredProject1* /home/src/workspaces/solution/packages/web/tsconfig.json *new* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *changed* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *changed* version: Text-1 containingProjects: 2 *changed* /dev/null/inferredProject1* @@ -409,7 +438,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "preferences": { @@ -424,7 +453,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 2, + "request_seq": 3, "success": true } After Request @@ -444,7 +473,7 @@ Projects:: Info seq [hh:mm:ss:mss] request: { - "seq": 3, + "seq": 4, "type": "request", "arguments": { "file": "/home/src/workspaces/solution/packages/web/src/index.ts", @@ -457,13 +486,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "syntacticDiagnosticsSync", - "request_seq": 3, + "request_seq": 4, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 4, + "seq": 5, "type": "request", "arguments": { "file": "/home/src/workspaces/solution/packages/web/src/index.ts", @@ -476,7 +505,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "semanticDiagnosticsSync", - "request_seq": 4, + "request_seq": 5, "success": true, "body": [ { @@ -498,7 +527,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 5, + "seq": 6, "type": "request", "arguments": { "file": "/home/src/workspaces/solution/packages/web/src/index.ts", @@ -511,13 +540,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "suggestionDiagnosticsSync", - "request_seq": 5, + "request_seq": 6, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 6, + "seq": 7, "type": "request", "arguments": { "file": "/home/src/workspaces/solution/packages/web/src/index.ts", @@ -543,7 +572,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "getCodeFixes", - "request_seq": 6, + "request_seq": 7, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -575,12 +604,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: + {"pollingInterval":500} /home/src/workspaces/solution/jsconfig.json: {"pollingInterval":2000} /home/src/workspaces/solution/package.json: diff --git a/tests/baselines/reference/tsserver/fourslashServer/autoImportPackageJsonFilterExistingImport1.js b/tests/baselines/reference/tsserver/fourslashServer/autoImportPackageJsonFilterExistingImport1.js index d93c56426aa81..b7bdaec3ac074 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/autoImportPackageJsonFilterExistingImport1.js +++ b/tests/baselines/reference/tsserver/fourslashServer/autoImportPackageJsonFilterExistingImport1.js @@ -1,16 +1,32 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "target": "es5", + "newLine": "crlf", + "lib": [ + "es5" + ], + "module": "preserve", + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/home/src/workspaces/project/index.ts] import { useState } from "react"; useMemo @@ -25,7 +41,7 @@ export declare function useState(): void; Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/home/src/workspaces/project/node_modules/@types/react/index.d.ts" @@ -47,7 +63,7 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspa Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types/react 0 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types/react 0 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types/react/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution @@ -67,18 +83,18 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/node_modules/@types/react/index.d.ts SVC-1-0 "export declare function useMemo(): void;\nexport declare function useState(): void;" - ../../../../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../../../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../../../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../../../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../../../../tslibs/TS/Lib/lib.es5.d.ts' ../../../../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../../../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../../../../tslibs/TS/Lib/lib.es5.d.ts' index.d.ts Root file specified for compilation Entry point for implicit type library 'react' @@ -96,7 +112,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -104,12 +120,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* + {"pollingInterval":500} /home/src/workspaces/project/node_modules/@types/jsconfig.json: *new* {"pollingInterval":2000} /home/src/workspaces/project/node_modules/@types/package.json: *new* @@ -157,15 +173,15 @@ Projects:: projectProgramVersion: 1 ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* @@ -176,7 +192,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts" @@ -201,19 +217,19 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject2* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject2*' (Inferred) Info seq [hh:mm:ss:mss] Files (5) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/node_modules/@types/react/index.d.ts SVC-1-0 "export declare function useMemo(): void;\nexport declare function useState(): void;" /home/src/workspaces/project/index.ts SVC-1-0 "import { useState } from \"react\";\nuseMemo" - ../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' node_modules/@types/react/index.d.ts Imported via "react" from file 'index.ts' Entry point for implicit type library 'react' @@ -231,18 +247,18 @@ Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /home/src/workspaces/p Info seq [hh:mm:ss:mss] `remove Project:: Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts + /home/src/tslibs/TS/Lib/lib.es5.d.ts /home/src/tslibs/TS/Lib/lib.decorators.d.ts /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts /home/src/workspaces/project/node_modules/@types/react/index.d.ts - ../../../../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../../../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../../../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../../../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../../../../tslibs/TS/Lib/lib.es5.d.ts' ../../../../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../../../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../../../../tslibs/TS/Lib/lib.es5.d.ts' index.d.ts Root file specified for compilation Entry point for implicit type library 'react' @@ -282,7 +298,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 1, + "request_seq": 2, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -290,12 +306,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: + {"pollingInterval":500} /home/src/workspaces/project/jsconfig.json: *new* {"pollingInterval":2000} /home/src/workspaces/project/node_modules/@types/package.json: @@ -373,17 +389,17 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *changed* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *changed* version: Text-1 containingProjects: 1 *changed* /dev/null/inferredProject2* *new* /dev/null/inferredProject1* *deleted* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *changed* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *changed* version: Text-1 containingProjects: 1 *changed* /dev/null/inferredProject2* *new* /dev/null/inferredProject1* *deleted* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *changed* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *changed* version: Text-1 containingProjects: 1 *changed* /dev/null/inferredProject2* *new* @@ -400,7 +416,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "preferences": {} @@ -412,12 +428,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 2, + "request_seq": 3, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 3, + "seq": 4, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -430,13 +446,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "syntacticDiagnosticsSync", - "request_seq": 3, + "request_seq": 4, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 4, + "seq": 5, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -449,7 +465,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "semanticDiagnosticsSync", - "request_seq": 4, + "request_seq": 5, "success": true, "body": [ { @@ -471,7 +487,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 5, + "seq": 6, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -484,7 +500,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "suggestionDiagnosticsSync", - "request_seq": 5, + "request_seq": 6, "success": true, "body": [ { @@ -507,7 +523,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 6, + "seq": 7, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -526,7 +542,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "getCodeFixes", - "request_seq": 6, + "request_seq": 7, "success": true, "body": [ { @@ -555,7 +571,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 7, + "seq": 8, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -574,7 +590,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "getCodeFixes", - "request_seq": 7, + "request_seq": 8, "success": true, "body": [ { @@ -603,7 +619,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 8, + "seq": 9, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -620,7 +636,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 8, + "request_seq": 9, "success": true } After Request @@ -632,15 +648,15 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* @@ -655,7 +671,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 9, + "seq": 10, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -672,20 +688,20 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 9, + "request_seq": 10, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* @@ -700,7 +716,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 10, + "seq": 11, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -717,20 +733,20 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 10, + "request_seq": 11, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* @@ -745,7 +761,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 11, + "seq": 12, "type": "request", "arguments": { "preferences": {} @@ -757,12 +773,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 11, + "request_seq": 12, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 12, + "seq": 13, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -774,7 +790,7 @@ Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferred Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject2* projectStateVersion: 2 projectProgramVersion: 1 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject2*' (Inferred) Info seq [hh:mm:ss:mss] Files (5) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/index.ts SVC-1-3 "useMemo" @@ -786,7 +802,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "syntacticDiagnosticsSync", - "request_seq": 12, + "request_seq": 13, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -803,7 +819,7 @@ Projects:: Info seq [hh:mm:ss:mss] request: { - "seq": 13, + "seq": 14, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -816,7 +832,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "semanticDiagnosticsSync", - "request_seq": 13, + "request_seq": 14, "success": true, "body": [ { @@ -838,7 +854,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 14, + "seq": 15, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -851,13 +867,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "suggestionDiagnosticsSync", - "request_seq": 14, + "request_seq": 15, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 15, + "seq": 16, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -876,7 +892,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "getCodeFixes", - "request_seq": 15, + "request_seq": 16, "success": true, "body": [] } \ No newline at end of file diff --git a/tests/baselines/reference/tsserver/fourslashServer/autoImportPackageJsonFilterExistingImport2.js b/tests/baselines/reference/tsserver/fourslashServer/autoImportPackageJsonFilterExistingImport2.js index a38c6d2ce17cd..9dd42fb32254d 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/autoImportPackageJsonFilterExistingImport2.js +++ b/tests/baselines/reference/tsserver/fourslashServer/autoImportPackageJsonFilterExistingImport2.js @@ -1,16 +1,32 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "target": "es5", + "newLine": "crlf", + "lib": [ + "es5" + ], + "module": "preserve", + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/home/src/workspaces/project/index.ts] useMemo @@ -24,7 +40,7 @@ export declare function useState(): void; Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/home/src/workspaces/project/node_modules/@types/react/index.d.ts" @@ -46,7 +62,7 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspa Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types/react 0 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types/react 0 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types/react/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution @@ -66,18 +82,18 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/node_modules/@types/react/index.d.ts SVC-1-0 "export declare function useMemo(): void;\nexport declare function useState(): void;" - ../../../../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../../../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../../../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../../../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../../../../tslibs/TS/Lib/lib.es5.d.ts' ../../../../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../../../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../../../../tslibs/TS/Lib/lib.es5.d.ts' index.d.ts Root file specified for compilation Entry point for implicit type library 'react' @@ -95,7 +111,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -103,12 +119,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* + {"pollingInterval":500} /home/src/workspaces/project/node_modules/@types/jsconfig.json: *new* {"pollingInterval":2000} /home/src/workspaces/project/node_modules/@types/package.json: *new* @@ -156,15 +172,15 @@ Projects:: projectProgramVersion: 1 ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* @@ -175,7 +191,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts" @@ -200,19 +216,19 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject2* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject2*' (Inferred) Info seq [hh:mm:ss:mss] Files (5) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/index.ts SVC-1-0 "useMemo" /home/src/workspaces/project/node_modules/@types/react/index.d.ts SVC-1-0 "export declare function useMemo(): void;\nexport declare function useState(): void;" - ../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' index.ts Root file specified for compilation node_modules/@types/react/index.d.ts @@ -229,18 +245,18 @@ Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /home/src/workspaces/p Info seq [hh:mm:ss:mss] `remove Project:: Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts + /home/src/tslibs/TS/Lib/lib.es5.d.ts /home/src/tslibs/TS/Lib/lib.decorators.d.ts /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts /home/src/workspaces/project/node_modules/@types/react/index.d.ts - ../../../../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../../../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../../../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../../../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../../../../tslibs/TS/Lib/lib.es5.d.ts' ../../../../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../../../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../../../../tslibs/TS/Lib/lib.es5.d.ts' index.d.ts Root file specified for compilation Entry point for implicit type library 'react' @@ -280,7 +296,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 1, + "request_seq": 2, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -288,12 +304,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: + {"pollingInterval":500} /home/src/workspaces/project/jsconfig.json: *new* {"pollingInterval":2000} /home/src/workspaces/project/node_modules/@types/package.json: @@ -371,17 +387,17 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *changed* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *changed* version: Text-1 containingProjects: 1 *changed* /dev/null/inferredProject2* *new* /dev/null/inferredProject1* *deleted* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *changed* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *changed* version: Text-1 containingProjects: 1 *changed* /dev/null/inferredProject2* *new* /dev/null/inferredProject1* *deleted* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *changed* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *changed* version: Text-1 containingProjects: 1 *changed* /dev/null/inferredProject2* *new* @@ -398,7 +414,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "preferences": {} @@ -410,12 +426,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 2, + "request_seq": 3, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 3, + "seq": 4, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -428,13 +444,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "syntacticDiagnosticsSync", - "request_seq": 3, + "request_seq": 4, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 4, + "seq": 5, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -447,7 +463,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "semanticDiagnosticsSync", - "request_seq": 4, + "request_seq": 5, "success": true, "body": [ { @@ -469,7 +485,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 5, + "seq": 6, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -482,13 +498,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "suggestionDiagnosticsSync", - "request_seq": 5, + "request_seq": 6, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 6, + "seq": 7, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -507,13 +523,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "getCodeFixes", - "request_seq": 6, + "request_seq": 7, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 7, + "seq": 8, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -530,7 +546,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 7, + "request_seq": 8, "success": true } After Request @@ -542,15 +558,15 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* @@ -565,7 +581,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 8, + "seq": 9, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -582,20 +598,20 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 8, + "request_seq": 9, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* @@ -610,7 +626,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 9, + "seq": 10, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -625,13 +641,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 9, + "request_seq": 10, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 10, + "seq": 11, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -648,20 +664,20 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 10, + "request_seq": 11, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* @@ -676,7 +692,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 11, + "seq": 12, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -691,13 +707,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 11, + "request_seq": 12, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 12, + "seq": 13, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -714,20 +730,20 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 12, + "request_seq": 13, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* @@ -742,7 +758,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 13, + "seq": 14, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -757,13 +773,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 13, + "request_seq": 14, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 14, + "seq": 15, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -780,20 +796,20 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 14, + "request_seq": 15, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* @@ -808,7 +824,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 15, + "seq": 16, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -823,13 +839,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 15, + "request_seq": 16, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 16, + "seq": 17, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -846,20 +862,20 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 16, + "request_seq": 17, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* @@ -874,7 +890,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 17, + "seq": 18, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -889,13 +905,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 17, + "request_seq": 18, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 18, + "seq": 19, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -912,20 +928,20 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 18, + "request_seq": 19, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* @@ -940,7 +956,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 19, + "seq": 20, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -955,13 +971,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 19, + "request_seq": 20, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 20, + "seq": 21, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -978,20 +994,20 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 20, + "request_seq": 21, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* @@ -1006,7 +1022,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 21, + "seq": 22, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -1021,13 +1037,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 21, + "request_seq": 22, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 22, + "seq": 23, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -1044,20 +1060,20 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 22, + "request_seq": 23, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* @@ -1072,7 +1088,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 23, + "seq": 24, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -1087,13 +1103,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 23, + "request_seq": 24, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 24, + "seq": 25, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -1110,20 +1126,20 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 24, + "request_seq": 25, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* @@ -1138,7 +1154,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 25, + "seq": 26, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -1153,13 +1169,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 25, + "request_seq": 26, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 26, + "seq": 27, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -1176,20 +1192,20 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 26, + "request_seq": 27, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* @@ -1204,7 +1220,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 27, + "seq": 28, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -1219,13 +1235,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 27, + "request_seq": 28, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 28, + "seq": 29, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -1242,20 +1258,20 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 28, + "request_seq": 29, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* @@ -1270,7 +1286,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 29, + "seq": 30, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -1285,13 +1301,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 29, + "request_seq": 30, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 30, + "seq": 31, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -1308,20 +1324,20 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 30, + "request_seq": 31, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* @@ -1336,7 +1352,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 31, + "seq": 32, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -1351,13 +1367,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 31, + "request_seq": 32, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 32, + "seq": 33, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -1374,20 +1390,20 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 32, + "request_seq": 33, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* @@ -1402,7 +1418,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 33, + "seq": 34, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -1417,13 +1433,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 33, + "request_seq": 34, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 34, + "seq": 35, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -1440,20 +1456,20 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 34, + "request_seq": 35, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* @@ -1468,7 +1484,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 35, + "seq": 36, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -1483,13 +1499,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 35, + "request_seq": 36, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 36, + "seq": 37, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -1506,20 +1522,20 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 36, + "request_seq": 37, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* @@ -1534,7 +1550,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 37, + "seq": 38, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -1549,13 +1565,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 37, + "request_seq": 38, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 38, + "seq": 39, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -1572,20 +1588,20 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 38, + "request_seq": 39, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* @@ -1600,7 +1616,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 39, + "seq": 40, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -1615,13 +1631,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 39, + "request_seq": 40, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 40, + "seq": 41, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -1638,20 +1654,20 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 40, + "request_seq": 41, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* @@ -1666,7 +1682,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 41, + "seq": 42, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -1681,13 +1697,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 41, + "request_seq": 42, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 42, + "seq": 43, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -1704,20 +1720,20 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 42, + "request_seq": 43, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* @@ -1732,7 +1748,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 43, + "seq": 44, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -1747,13 +1763,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 43, + "request_seq": 44, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 44, + "seq": 45, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -1770,20 +1786,20 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 44, + "request_seq": 45, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* @@ -1798,7 +1814,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 45, + "seq": 46, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -1813,13 +1829,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 45, + "request_seq": 46, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 46, + "seq": 47, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -1836,20 +1852,20 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 46, + "request_seq": 47, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* @@ -1864,7 +1880,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 47, + "seq": 48, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -1879,13 +1895,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 47, + "request_seq": 48, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 48, + "seq": 49, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -1902,20 +1918,20 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 48, + "request_seq": 49, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* @@ -1930,7 +1946,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 49, + "seq": 50, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -1945,13 +1961,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 49, + "request_seq": 50, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 50, + "seq": 51, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -1968,20 +1984,20 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 50, + "request_seq": 51, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* @@ -1996,7 +2012,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 51, + "seq": 52, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -2011,13 +2027,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 51, + "request_seq": 52, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 52, + "seq": 53, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -2034,20 +2050,20 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 52, + "request_seq": 53, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* @@ -2062,7 +2078,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 53, + "seq": 54, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -2077,13 +2093,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 53, + "request_seq": 54, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 54, + "seq": 55, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -2100,20 +2116,20 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 54, + "request_seq": 55, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* @@ -2128,7 +2144,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 55, + "seq": 56, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -2143,13 +2159,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 55, + "request_seq": 56, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 56, + "seq": 57, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -2166,20 +2182,20 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 56, + "request_seq": 57, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* @@ -2194,7 +2210,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 57, + "seq": 58, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -2209,13 +2225,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 57, + "request_seq": 58, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 58, + "seq": 59, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -2232,20 +2248,20 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 58, + "request_seq": 59, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* @@ -2260,7 +2276,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 59, + "seq": 60, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -2275,13 +2291,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 59, + "request_seq": 60, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 60, + "seq": 61, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -2298,20 +2314,20 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 60, + "request_seq": 61, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* @@ -2326,7 +2342,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 61, + "seq": 62, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -2341,13 +2357,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 61, + "request_seq": 62, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 62, + "seq": 63, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -2364,20 +2380,20 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 62, + "request_seq": 63, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* @@ -2392,7 +2408,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 63, + "seq": 64, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -2407,13 +2423,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 63, + "request_seq": 64, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 64, + "seq": 65, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -2430,20 +2446,20 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 64, + "request_seq": 65, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* @@ -2458,7 +2474,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 65, + "seq": 66, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -2473,13 +2489,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 65, + "request_seq": 66, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 66, + "seq": 67, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -2496,20 +2512,20 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 66, + "request_seq": 67, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* @@ -2524,7 +2540,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 67, + "seq": 68, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -2539,13 +2555,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 67, + "request_seq": 68, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 68, + "seq": 69, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -2562,20 +2578,20 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 68, + "request_seq": 69, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* @@ -2590,7 +2606,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 69, + "seq": 70, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -2605,13 +2621,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 69, + "request_seq": 70, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 70, + "seq": 71, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -2628,20 +2644,20 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 70, + "request_seq": 71, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* @@ -2656,7 +2672,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 71, + "seq": 72, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -2671,13 +2687,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 71, + "request_seq": 72, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 72, + "seq": 73, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -2694,20 +2710,20 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 72, + "request_seq": 73, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* @@ -2722,7 +2738,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 73, + "seq": 74, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -2737,7 +2753,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 73, + "request_seq": 74, "success": true, "body": [ { @@ -2755,7 +2771,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 74, + "seq": 75, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -2772,20 +2788,20 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 74, + "request_seq": 75, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* @@ -2800,7 +2816,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 75, + "seq": 76, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -2817,20 +2833,20 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 75, + "request_seq": 76, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* @@ -2845,7 +2861,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 76, + "seq": 77, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -2860,7 +2876,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 76, + "request_seq": 77, "success": true, "body": [ { @@ -2878,7 +2894,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 77, + "seq": 78, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -2895,20 +2911,20 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 77, + "request_seq": 78, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* @@ -2923,7 +2939,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 78, + "seq": 79, "type": "request", "arguments": { "preferences": {} @@ -2935,12 +2951,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 78, + "request_seq": 79, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 79, + "seq": 80, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -2952,7 +2968,7 @@ Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferred Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject2* projectStateVersion: 2 projectProgramVersion: 1 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject2*' (Inferred) Info seq [hh:mm:ss:mss] Files (5) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/node_modules/@types/react/index.d.ts SVC-1-0 "export declare function useMemo(): void;\nexport declare function useState(): void;" @@ -2964,7 +2980,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "syntacticDiagnosticsSync", - "request_seq": 79, + "request_seq": 80, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -2981,7 +2997,7 @@ Projects:: Info seq [hh:mm:ss:mss] request: { - "seq": 80, + "seq": 81, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -2994,7 +3010,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "semanticDiagnosticsSync", - "request_seq": 80, + "request_seq": 81, "success": true, "body": [ { @@ -3016,7 +3032,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 81, + "seq": 82, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -3029,7 +3045,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "suggestionDiagnosticsSync", - "request_seq": 81, + "request_seq": 82, "success": true, "body": [ { @@ -3052,7 +3068,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 82, + "seq": 83, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -3071,7 +3087,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "getCodeFixes", - "request_seq": 82, + "request_seq": 83, "success": true, "body": [ { @@ -3100,7 +3116,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 83, + "seq": 84, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -3119,7 +3135,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "getCodeFixes", - "request_seq": 83, + "request_seq": 84, "success": true, "body": [ { @@ -3148,7 +3164,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 84, + "seq": 85, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -3165,7 +3181,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 84, + "request_seq": 85, "success": true } After Request @@ -3177,15 +3193,15 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* @@ -3200,7 +3216,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 85, + "seq": 86, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -3217,20 +3233,20 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 85, + "request_seq": 86, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* diff --git a/tests/baselines/reference/tsserver/fourslashServer/autoImportPackageJsonFilterExistingImport3.js b/tests/baselines/reference/tsserver/fourslashServer/autoImportPackageJsonFilterExistingImport3.js index 57bde7a5e8e22..f08f7bdce74f8 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/autoImportPackageJsonFilterExistingImport3.js +++ b/tests/baselines/reference/tsserver/fourslashServer/autoImportPackageJsonFilterExistingImport3.js @@ -1,16 +1,32 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "target": "es5", + "newLine": "crlf", + "lib": [ + "es5" + ], + "module": "preserve", + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/home/src/workspaces/project/index.ts] readFile @@ -26,7 +42,7 @@ declare module "node:fs" { Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/home/src/workspaces/project/node_modules/@types/node/index.d.ts" @@ -48,7 +64,7 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspa Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types/node 0 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types/node 0 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types/node/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution @@ -68,18 +84,18 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/node_modules/@types/node/index.d.ts SVC-1-0 "declare module \"node:fs\" {\n export function readFile(): void;\n export function writeFile(): void;\n}" - ../../../../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../../../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../../../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../../../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../../../../tslibs/TS/Lib/lib.es5.d.ts' ../../../../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../../../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../../../../tslibs/TS/Lib/lib.es5.d.ts' index.d.ts Root file specified for compilation Entry point for implicit type library 'node' @@ -97,7 +113,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -105,12 +121,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* + {"pollingInterval":500} /home/src/workspaces/project/node_modules/@types/jsconfig.json: *new* {"pollingInterval":2000} /home/src/workspaces/project/node_modules/@types/node/jsconfig.json: *new* @@ -158,15 +174,15 @@ Projects:: projectProgramVersion: 1 ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* @@ -177,7 +193,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts" @@ -202,19 +218,19 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject2* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject2*' (Inferred) Info seq [hh:mm:ss:mss] Files (5) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/index.ts SVC-1-0 "readFile" /home/src/workspaces/project/node_modules/@types/node/index.d.ts SVC-1-0 "declare module \"node:fs\" {\n export function readFile(): void;\n export function writeFile(): void;\n}" - ../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' index.ts Root file specified for compilation node_modules/@types/node/index.d.ts @@ -231,18 +247,18 @@ Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /home/src/workspaces/p Info seq [hh:mm:ss:mss] `remove Project:: Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts + /home/src/tslibs/TS/Lib/lib.es5.d.ts /home/src/tslibs/TS/Lib/lib.decorators.d.ts /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts /home/src/workspaces/project/node_modules/@types/node/index.d.ts - ../../../../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../../../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../../../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../../../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../../../../tslibs/TS/Lib/lib.es5.d.ts' ../../../../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../../../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../../../../tslibs/TS/Lib/lib.es5.d.ts' index.d.ts Root file specified for compilation Entry point for implicit type library 'node' @@ -282,7 +298,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 1, + "request_seq": 2, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -290,12 +306,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: + {"pollingInterval":500} /home/src/workspaces/project/jsconfig.json: *new* {"pollingInterval":2000} /home/src/workspaces/project/node_modules/@types/node/package.json: @@ -373,17 +389,17 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *changed* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *changed* version: Text-1 containingProjects: 1 *changed* /dev/null/inferredProject2* *new* /dev/null/inferredProject1* *deleted* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *changed* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *changed* version: Text-1 containingProjects: 1 *changed* /dev/null/inferredProject2* *new* /dev/null/inferredProject1* *deleted* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *changed* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *changed* version: Text-1 containingProjects: 1 *changed* /dev/null/inferredProject2* *new* @@ -400,7 +416,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "preferences": {} @@ -412,12 +428,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 2, + "request_seq": 3, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 3, + "seq": 4, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -430,13 +446,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "syntacticDiagnosticsSync", - "request_seq": 3, + "request_seq": 4, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 4, + "seq": 5, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -449,7 +465,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "semanticDiagnosticsSync", - "request_seq": 4, + "request_seq": 5, "success": true, "body": [ { @@ -471,7 +487,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 5, + "seq": 6, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -484,13 +500,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "suggestionDiagnosticsSync", - "request_seq": 5, + "request_seq": 6, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 6, + "seq": 7, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -509,13 +525,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "getCodeFixes", - "request_seq": 6, + "request_seq": 7, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 7, + "seq": 8, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -532,7 +548,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 7, + "request_seq": 8, "success": true } After Request @@ -544,15 +560,15 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* @@ -567,7 +583,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 8, + "seq": 9, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -584,20 +600,20 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 8, + "request_seq": 9, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* @@ -612,7 +628,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 9, + "seq": 10, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -627,13 +643,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 9, + "request_seq": 10, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 10, + "seq": 11, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -650,20 +666,20 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 10, + "request_seq": 11, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* @@ -678,7 +694,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 11, + "seq": 12, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -693,13 +709,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 11, + "request_seq": 12, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 12, + "seq": 13, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -716,20 +732,20 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 12, + "request_seq": 13, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* @@ -744,7 +760,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 13, + "seq": 14, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -759,13 +775,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 13, + "request_seq": 14, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 14, + "seq": 15, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -782,20 +798,20 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 14, + "request_seq": 15, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* @@ -810,7 +826,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 15, + "seq": 16, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -825,13 +841,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 15, + "request_seq": 16, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 16, + "seq": 17, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -848,20 +864,20 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 16, + "request_seq": 17, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* @@ -876,7 +892,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 17, + "seq": 18, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -891,13 +907,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 17, + "request_seq": 18, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 18, + "seq": 19, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -914,20 +930,20 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 18, + "request_seq": 19, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* @@ -942,7 +958,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 19, + "seq": 20, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -957,13 +973,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 19, + "request_seq": 20, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 20, + "seq": 21, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -980,20 +996,20 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 20, + "request_seq": 21, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* @@ -1008,7 +1024,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 21, + "seq": 22, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -1023,13 +1039,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 21, + "request_seq": 22, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 22, + "seq": 23, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -1046,20 +1062,20 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 22, + "request_seq": 23, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* @@ -1074,7 +1090,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 23, + "seq": 24, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -1089,13 +1105,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 23, + "request_seq": 24, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 24, + "seq": 25, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -1112,20 +1128,20 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 24, + "request_seq": 25, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* @@ -1140,7 +1156,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 25, + "seq": 26, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -1155,13 +1171,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 25, + "request_seq": 26, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 26, + "seq": 27, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -1178,20 +1194,20 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 26, + "request_seq": 27, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* @@ -1206,7 +1222,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 27, + "seq": 28, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -1221,13 +1237,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 27, + "request_seq": 28, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 28, + "seq": 29, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -1244,20 +1260,20 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 28, + "request_seq": 29, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* @@ -1272,7 +1288,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 29, + "seq": 30, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -1287,13 +1303,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 29, + "request_seq": 30, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 30, + "seq": 31, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -1310,20 +1326,20 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 30, + "request_seq": 31, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* @@ -1338,7 +1354,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 31, + "seq": 32, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -1353,13 +1369,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 31, + "request_seq": 32, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 32, + "seq": 33, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -1376,20 +1392,20 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 32, + "request_seq": 33, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* @@ -1404,7 +1420,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 33, + "seq": 34, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -1419,13 +1435,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 33, + "request_seq": 34, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 34, + "seq": 35, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -1442,20 +1458,20 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 34, + "request_seq": 35, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* @@ -1470,7 +1486,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 35, + "seq": 36, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -1485,13 +1501,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 35, + "request_seq": 36, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 36, + "seq": 37, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -1508,20 +1524,20 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 36, + "request_seq": 37, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* @@ -1536,7 +1552,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 37, + "seq": 38, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -1551,13 +1567,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 37, + "request_seq": 38, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 38, + "seq": 39, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -1574,20 +1590,20 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 38, + "request_seq": 39, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* @@ -1602,7 +1618,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 39, + "seq": 40, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -1617,13 +1633,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 39, + "request_seq": 40, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 40, + "seq": 41, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -1640,20 +1656,20 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 40, + "request_seq": 41, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* @@ -1668,7 +1684,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 41, + "seq": 42, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -1683,13 +1699,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 41, + "request_seq": 42, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 42, + "seq": 43, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -1706,20 +1722,20 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 42, + "request_seq": 43, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* @@ -1734,7 +1750,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 43, + "seq": 44, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -1749,13 +1765,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 43, + "request_seq": 44, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 44, + "seq": 45, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -1772,20 +1788,20 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 44, + "request_seq": 45, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* @@ -1800,7 +1816,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 45, + "seq": 46, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -1815,13 +1831,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 45, + "request_seq": 46, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 46, + "seq": 47, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -1838,20 +1854,20 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 46, + "request_seq": 47, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* @@ -1866,7 +1882,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 47, + "seq": 48, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -1881,13 +1897,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 47, + "request_seq": 48, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 48, + "seq": 49, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -1904,20 +1920,20 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 48, + "request_seq": 49, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* @@ -1932,7 +1948,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 49, + "seq": 50, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -1947,13 +1963,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 49, + "request_seq": 50, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 50, + "seq": 51, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -1970,20 +1986,20 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 50, + "request_seq": 51, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* @@ -1998,7 +2014,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 51, + "seq": 52, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -2013,13 +2029,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 51, + "request_seq": 52, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 52, + "seq": 53, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -2036,20 +2052,20 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 52, + "request_seq": 53, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* @@ -2064,7 +2080,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 53, + "seq": 54, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -2079,13 +2095,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 53, + "request_seq": 54, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 54, + "seq": 55, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -2102,20 +2118,20 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 54, + "request_seq": 55, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* @@ -2130,7 +2146,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 55, + "seq": 56, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -2145,13 +2161,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 55, + "request_seq": 56, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 56, + "seq": 57, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -2168,20 +2184,20 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 56, + "request_seq": 57, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* @@ -2196,7 +2212,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 57, + "seq": 58, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -2211,13 +2227,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 57, + "request_seq": 58, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 58, + "seq": 59, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -2234,20 +2250,20 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 58, + "request_seq": 59, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* @@ -2262,7 +2278,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 59, + "seq": 60, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -2277,13 +2293,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 59, + "request_seq": 60, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 60, + "seq": 61, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -2300,20 +2316,20 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 60, + "request_seq": 61, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* @@ -2328,7 +2344,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 61, + "seq": 62, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -2343,13 +2359,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 61, + "request_seq": 62, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 62, + "seq": 63, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -2366,20 +2382,20 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 62, + "request_seq": 63, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* @@ -2394,7 +2410,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 63, + "seq": 64, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -2409,13 +2425,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 63, + "request_seq": 64, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 64, + "seq": 65, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -2432,20 +2448,20 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 64, + "request_seq": 65, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* @@ -2460,7 +2476,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 65, + "seq": 66, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -2475,13 +2491,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 65, + "request_seq": 66, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 66, + "seq": 67, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -2498,20 +2514,20 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 66, + "request_seq": 67, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* @@ -2526,7 +2542,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 67, + "seq": 68, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -2541,13 +2557,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 67, + "request_seq": 68, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 68, + "seq": 69, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -2564,20 +2580,20 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 68, + "request_seq": 69, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* @@ -2592,7 +2608,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 69, + "seq": 70, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -2607,13 +2623,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 69, + "request_seq": 70, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 70, + "seq": 71, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -2630,20 +2646,20 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 70, + "request_seq": 71, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* @@ -2658,7 +2674,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 71, + "seq": 72, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -2673,13 +2689,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 71, + "request_seq": 72, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 72, + "seq": 73, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -2696,20 +2712,20 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 72, + "request_seq": 73, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* @@ -2724,7 +2740,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 73, + "seq": 74, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -2739,13 +2755,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 73, + "request_seq": 74, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 74, + "seq": 75, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -2762,20 +2778,20 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 74, + "request_seq": 75, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* @@ -2790,7 +2806,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 75, + "seq": 76, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -2805,13 +2821,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 75, + "request_seq": 76, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 76, + "seq": 77, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -2828,20 +2844,20 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 76, + "request_seq": 77, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* @@ -2856,7 +2872,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 77, + "seq": 78, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -2871,13 +2887,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 77, + "request_seq": 78, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 78, + "seq": 79, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -2894,20 +2910,20 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 78, + "request_seq": 79, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* @@ -2922,7 +2938,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 79, + "seq": 80, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -2937,7 +2953,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 79, + "request_seq": 80, "success": true, "body": [ { @@ -2955,7 +2971,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 80, + "seq": 81, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -2972,20 +2988,20 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 80, + "request_seq": 81, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* @@ -3000,7 +3016,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 81, + "seq": 82, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -3017,20 +3033,20 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 81, + "request_seq": 82, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* @@ -3045,7 +3061,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 82, + "seq": 83, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -3060,7 +3076,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 82, + "request_seq": 83, "success": true, "body": [ { @@ -3078,7 +3094,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 83, + "seq": 84, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -3095,20 +3111,20 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 83, + "request_seq": 84, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* @@ -3123,7 +3139,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 84, + "seq": 85, "type": "request", "arguments": { "preferences": {} @@ -3135,12 +3151,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 84, + "request_seq": 85, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 85, + "seq": 86, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -3152,7 +3168,7 @@ Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferred Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject2* projectStateVersion: 2 projectProgramVersion: 1 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject2*' (Inferred) Info seq [hh:mm:ss:mss] Files (5) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/index.ts SVC-1-40 "import { writeFile } from \"node:fs\";\nreadFile" @@ -3164,7 +3180,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "syntacticDiagnosticsSync", - "request_seq": 85, + "request_seq": 86, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -3181,7 +3197,7 @@ Projects:: Info seq [hh:mm:ss:mss] request: { - "seq": 86, + "seq": 87, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -3194,7 +3210,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "semanticDiagnosticsSync", - "request_seq": 86, + "request_seq": 87, "success": true, "body": [ { @@ -3216,7 +3232,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 87, + "seq": 88, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -3229,7 +3245,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "suggestionDiagnosticsSync", - "request_seq": 87, + "request_seq": 88, "success": true, "body": [ { @@ -3252,7 +3268,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 88, + "seq": 89, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -3271,7 +3287,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "getCodeFixes", - "request_seq": 88, + "request_seq": 89, "success": true, "body": [ { @@ -3300,7 +3316,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 89, + "seq": 90, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -3319,7 +3335,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "getCodeFixes", - "request_seq": 89, + "request_seq": 90, "success": true, "body": [ { @@ -3348,7 +3364,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 90, + "seq": 91, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -3365,7 +3381,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 90, + "request_seq": 91, "success": true } After Request @@ -3377,15 +3393,15 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* @@ -3400,7 +3416,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 91, + "seq": 92, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -3417,20 +3433,20 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 91, + "request_seq": 92, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* diff --git a/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider1.js b/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider1.js index d5339918129ac..f71b3dc6247c4 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider1.js +++ b/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider1.js @@ -1,16 +1,31 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "lib": [ + "es5" + ], + "target": "es5", + "newLine": "crlf", + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/home/src/workspaces/project/index.ts] PatternValidator @@ -24,12 +39,12 @@ export class PatternValidator {} { "dependencies": { "@angular/forms": "*" } } //// [/home/src/workspaces/project/tsconfig.json] -{} +{ "compilerOptions": { "lib": ["es5"] } } Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/home/src/workspaces/project/node_modules/@angular/forms/package.json" @@ -45,7 +60,7 @@ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/p Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@angular/forms/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots @@ -61,18 +76,18 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/node_modules/@angular/forms/package.json SVC-1-0 "{ \"name\": \"@angular/forms\", \"typings\": \"./forms.d.ts\" }" - ../../../../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../../../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../../../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../../../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../../../../tslibs/TS/Lib/lib.es5.d.ts' ../../../../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../../../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../../../../tslibs/TS/Lib/lib.es5.d.ts' package.json Root file specified for compilation @@ -89,7 +104,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -97,12 +112,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* + {"pollingInterval":500} /home/src/workspaces/project/node_modules/@angular/forms/jsconfig.json: *new* {"pollingInterval":2000} /home/src/workspaces/project/node_modules/@angular/forms/tsconfig.json: *new* @@ -134,15 +149,15 @@ Projects:: projectProgramVersion: 1 ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* @@ -153,7 +168,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts" @@ -168,6 +183,9 @@ Info seq [hh:mm:ss:mss] Config: /home/src/workspaces/project/tsconfig.json : { "/home/src/workspaces/project/index.ts" ], "options": { + "lib": [ + "lib.es5.d.ts" + ], "configFilePath": "/home/src/workspaces/project/tsconfig.json" } } @@ -191,18 +209,18 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/index.ts SVC-1-0 "PatternValidator" - ../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' index.ts Matched by default include pattern '**/*' @@ -265,7 +283,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 1, + "request_seq": 2, "success": true, "performanceData": { "updateGraphDurationMs": *, @@ -274,12 +292,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: + {"pollingInterval":500} /home/src/workspaces/project/node_modules/@angular/forms/forms.d.ts: *new* {"pollingInterval":500} /home/src/workspaces/project/node_modules/@angular/forms/jsconfig.json: @@ -330,17 +348,17 @@ Projects:: autoImportProviderHost: /dev/null/autoImportProviderProject1* ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *changed* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *changed* version: Text-1 containingProjects: 2 *changed* /dev/null/inferredProject1* /home/src/workspaces/project/tsconfig.json *new* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *changed* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *changed* version: Text-1 containingProjects: 2 *changed* /dev/null/inferredProject1* /home/src/workspaces/project/tsconfig.json *new* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *changed* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *changed* version: Text-1 containingProjects: 2 *changed* /dev/null/inferredProject1* @@ -360,7 +378,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "formatOptions": { @@ -396,12 +414,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 2, + "request_seq": 3, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 3, + "seq": 4, "type": "request", "arguments": { "preferences": {} @@ -413,12 +431,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 3, + "request_seq": 4, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 4, + "seq": 5, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -431,13 +449,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "syntacticDiagnosticsSync", - "request_seq": 4, + "request_seq": 5, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 5, + "seq": 6, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -450,7 +468,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "semanticDiagnosticsSync", - "request_seq": 5, + "request_seq": 6, "success": true, "body": [ { @@ -472,7 +490,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 6, + "seq": 7, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -485,13 +503,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "suggestionDiagnosticsSync", - "request_seq": 6, + "request_seq": 7, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 7, + "seq": 8, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -513,7 +531,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "getCodeFixes", - "request_seq": 7, + "request_seq": 8, "success": true, "body": [ { @@ -542,12 +560,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: + {"pollingInterval":500} /home/src/workspaces/project/node_modules/@angular/forms/forms.d.ts: {"pollingInterval":500} /home/src/workspaces/project/node_modules/@angular/forms/jsconfig.json: @@ -589,7 +607,7 @@ watchedDirectoriesRecursive:: Info seq [hh:mm:ss:mss] request: { - "seq": 8, + "seq": 9, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -606,7 +624,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 8, + "request_seq": 9, "success": true } After Request @@ -624,17 +642,17 @@ Projects:: autoImportProviderHost: /dev/null/autoImportProviderProject1* ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /dev/null/inferredProject1* /home/src/workspaces/project/tsconfig.json -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /dev/null/inferredProject1* /home/src/workspaces/project/tsconfig.json -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /dev/null/inferredProject1* @@ -654,7 +672,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 9, + "seq": 10, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -671,22 +689,22 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 9, + "request_seq": 10, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /dev/null/inferredProject1* /home/src/workspaces/project/tsconfig.json -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /dev/null/inferredProject1* /home/src/workspaces/project/tsconfig.json -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /dev/null/inferredProject1* diff --git a/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider2.js b/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider2.js index 1077a0e0db1ca..d6acfc0e1a874 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider2.js +++ b/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider2.js @@ -1,16 +1,31 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "lib": [ + "es5" + ], + "target": "es5", + "newLine": "crlf", + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/home/src/workspaces/project/index.ts] IndirectDependency @@ -31,12 +46,12 @@ export declare class IndirectDependency { "dependencies": { "direct-dependency": "*" } } //// [/home/src/workspaces/project/tsconfig.json] -{} +{ "compilerOptions": { "lib": ["es5"] } } Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/home/src/workspaces/project/node_modules/direct-dependency/package.json" @@ -50,7 +65,7 @@ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/p Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/direct-dependency/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots @@ -64,18 +79,18 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/node_modules/direct-dependency/package.json SVC-1-0 "{ \"name\": \"direct-dependency\", \"dependencies\": { \"indirect-dependency\": \"*\" } }" - ../../../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../../../tslibs/TS/Lib/lib.es5.d.ts' ../../../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../../../tslibs/TS/Lib/lib.es5.d.ts' package.json Root file specified for compilation @@ -92,7 +107,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -100,12 +115,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* + {"pollingInterval":500} /home/src/workspaces/project/node_modules/direct-dependency/jsconfig.json: *new* {"pollingInterval":2000} /home/src/workspaces/project/node_modules/direct-dependency/tsconfig.json: *new* @@ -131,15 +146,15 @@ Projects:: projectProgramVersion: 1 ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* @@ -150,7 +165,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts" @@ -165,6 +180,9 @@ Info seq [hh:mm:ss:mss] Config: /home/src/workspaces/project/tsconfig.json : { "/home/src/workspaces/project/index.ts" ], "options": { + "lib": [ + "lib.es5.d.ts" + ], "configFilePath": "/home/src/workspaces/project/tsconfig.json" } } @@ -188,18 +206,18 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/index.ts SVC-1-0 "IndirectDependency" - ../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' index.ts Matched by default include pattern '**/*' @@ -269,7 +287,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 1, + "request_seq": 2, "success": true, "performanceData": { "updateGraphDurationMs": *, @@ -278,12 +296,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: + {"pollingInterval":500} /home/src/workspaces/project/node_modules/direct-dependency/index.d.ts: *new* {"pollingInterval":500} /home/src/workspaces/project/node_modules/direct-dependency/jsconfig.json: @@ -334,17 +352,17 @@ Projects:: autoImportProviderHost: /dev/null/autoImportProviderProject1* ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *changed* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *changed* version: Text-1 containingProjects: 2 *changed* /dev/null/inferredProject1* /home/src/workspaces/project/tsconfig.json *new* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *changed* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *changed* version: Text-1 containingProjects: 2 *changed* /dev/null/inferredProject1* /home/src/workspaces/project/tsconfig.json *new* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *changed* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *changed* version: Text-1 containingProjects: 2 *changed* /dev/null/inferredProject1* @@ -368,7 +386,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "formatOptions": { @@ -404,12 +422,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 2, + "request_seq": 3, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 3, + "seq": 4, "type": "request", "arguments": { "preferences": {} @@ -421,12 +439,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 3, + "request_seq": 4, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 4, + "seq": 5, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -439,13 +457,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "syntacticDiagnosticsSync", - "request_seq": 4, + "request_seq": 5, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 5, + "seq": 6, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -458,7 +476,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "semanticDiagnosticsSync", - "request_seq": 5, + "request_seq": 6, "success": true, "body": [ { @@ -480,7 +498,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 6, + "seq": 7, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -493,13 +511,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "suggestionDiagnosticsSync", - "request_seq": 6, + "request_seq": 7, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 7, + "seq": 8, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -519,7 +537,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "getCodeFixes", - "request_seq": 7, + "request_seq": 8, "success": true, "body": [] } \ No newline at end of file diff --git a/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider3.js b/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider3.js index 4cc1786037d63..2a2bb02c5b031 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider3.js +++ b/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider3.js @@ -1,16 +1,32 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "lib": [ + "es5" + ], + "target": "esnext", + "composite": true, + "newLine": "crlf", + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/home/src/workspaces/project/node_modules/common-dependency/index.d.ts] export declare class CommonDependency {} @@ -33,15 +49,15 @@ export declare class PackageDependency { "peerDependencies": { "package-dependency": "*" } } //// [/home/src/workspaces/project/packages/a/tsconfig.json] -{ "compilerOptions": { "target": "esnext", "composite": true } } +{ "compilerOptions": { "lib": ["es5"], "target": "esnext", "composite": true } } //// [/home/src/workspaces/project/tsconfig.json] -{ "files": [], "references": [{ "path": "packages/a" }] } +{ "compilerOptions": { "lib": ["es5"] }, "files": [], "references": [{ "path": "packages/a" }] } Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/home/src/workspaces/project/node_modules/common-dependency/package.json" @@ -55,7 +71,7 @@ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/p Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/common-dependency/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots @@ -69,18 +85,18 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/node_modules/common-dependency/package.json SVC-1-0 "{ \"name\": \"common-dependency\" }" - ../../../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../../../tslibs/TS/Lib/lib.es5.d.ts' ../../../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../../../tslibs/TS/Lib/lib.es5.d.ts' package.json Root file specified for compilation @@ -97,7 +113,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -105,12 +121,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* + {"pollingInterval":500} /home/src/workspaces/project/node_modules/common-dependency/jsconfig.json: *new* {"pollingInterval":2000} /home/src/workspaces/project/node_modules/common-dependency/tsconfig.json: *new* @@ -136,15 +152,15 @@ Projects:: projectProgramVersion: 1 ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* @@ -155,7 +171,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "file": "/home/src/workspaces/project/packages/a/index.ts" @@ -170,6 +186,9 @@ Info seq [hh:mm:ss:mss] Config: /home/src/workspaces/project/packages/a/tsconfi "/home/src/workspaces/project/packages/a/index.ts" ], "options": { + "lib": [ + "lib.es5.d.ts" + ], "target": 99, "composite": true, "configFilePath": "/home/src/workspaces/project/packages/a/tsconfig.json" @@ -188,7 +207,6 @@ Info seq [hh:mm:ss:mss] event: Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/packages/a 1 undefined Config: /home/src/workspaces/project/packages/a/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/packages/a 1 undefined Config: /home/src/workspaces/project/packages/a/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/workspaces/project/packages/a/tsconfig.json -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.esnext.full.d.ts 500 undefined Project: /home/src/workspaces/project/packages/a/tsconfig.json WatchType: Missing file Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/packages/a/node_modules/@types 1 undefined Project: /home/src/workspaces/project/packages/a/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/packages/a/node_modules/@types 1 undefined Project: /home/src/workspaces/project/packages/a/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/packages/node_modules/@types 1 undefined Project: /home/src/workspaces/project/packages/a/tsconfig.json WatchType: Type roots @@ -199,10 +217,19 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspa Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/node_modules/@types 1 undefined Project: /home/src/workspaces/project/packages/a/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/packages/a/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/packages/a/tsconfig.json' (Configured) -Info seq [hh:mm:ss:mss] Files (1) +Info seq [hh:mm:ss:mss] Files (4) + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text + /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/packages/a/index.ts SVC-1-0 "" + ../../../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions + ../../../../tslibs/TS/Lib/lib.decorators.d.ts + Library referenced via 'decorators' from file '../../../../tslibs/TS/Lib/lib.es5.d.ts' + ../../../../tslibs/TS/Lib/lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../../../../tslibs/TS/Lib/lib.es5.d.ts' index.ts Matched by default include pattern '**/*' @@ -246,71 +273,7 @@ Info seq [hh:mm:ss:mss] event: "body": { "triggerFile": "/home/src/workspaces/project/packages/a/index.ts", "configFile": "/home/src/workspaces/project/packages/a/tsconfig.json", - "diagnostics": [ - { - "text": "File '/home/src/tslibs/TS/Lib/lib.esnext.full.d.ts' not found.\n The file is in the program because:\n Default library for target 'esnext'", - "code": 6053, - "category": "error", - "relatedInformation": [ - { - "span": { - "start": { - "line": 1, - "offset": 34 - }, - "end": { - "line": 1, - "offset": 42 - }, - "file": "/home/src/workspaces/project/packages/a/tsconfig.json" - }, - "message": "File is default library for target specified here.", - "category": "message", - "code": 1426 - } - ] - }, - { - "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" - } - ] + "diagnostics": [] } } Info seq [hh:mm:ss:mss] getConfigFileNameForFile:: File: /home/src/workspaces/project/packages/a/tsconfig.json ProjectRootPath: undefined:: Result: /home/src/workspaces/project/tsconfig.json @@ -318,7 +281,7 @@ Info seq [hh:mm:ss:mss] Creating ConfiguredProject: /home/src/workspaces/projec Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/tsconfig.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] getConfigFileNameForFile:: File: /home/src/workspaces/project/tsconfig.json ProjectRootPath: undefined:: Result: undefined Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/packages/a/tsconfig.json' (Configured) -Info seq [hh:mm:ss:mss] Files (1) +Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Project '/dev/null/autoImportProviderProject1*' (AutoImportProvider) @@ -343,7 +306,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 1, + "request_seq": 2, "success": true, "performanceData": { "updateGraphDurationMs": *, @@ -352,13 +315,11 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} -/home/src/tslibs/TS/Lib/lib.esnext.full.d.ts: *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts: {"pollingInterval":500} /home/src/workspaces/project/node_modules/common-dependency/index.d.ts: *new* {"pollingInterval":500} @@ -421,18 +382,21 @@ Projects:: initialLoadPending: true ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *changed* version: Text-1 - containingProjects: 1 + containingProjects: 2 *changed* /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts + /home/src/workspaces/project/packages/a/tsconfig.json *new* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *changed* version: Text-1 - containingProjects: 1 + containingProjects: 2 *changed* /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts + /home/src/workspaces/project/packages/a/tsconfig.json *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *changed* version: Text-1 - containingProjects: 1 + containingProjects: 2 *changed* /dev/null/inferredProject1* + /home/src/workspaces/project/packages/a/tsconfig.json *new* /home/src/workspaces/project/node_modules/common-dependency/index.d.ts *new* version: Text-1 containingProjects: 1 @@ -452,7 +416,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "preferences": { @@ -466,7 +430,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 2, + "request_seq": 3, "success": true } After Request @@ -490,7 +454,7 @@ Projects:: Info seq [hh:mm:ss:mss] request: { - "seq": 3, + "seq": 4, "type": "request", "arguments": { "file": "/home/src/workspaces/project/packages/a/index.ts", @@ -521,7 +485,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "completionInfo", - "request_seq": 3, + "request_seq": 4, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -544,6 +508,18 @@ Info seq [hh:mm:ss:mss] response: "kindModifiers": "", "sortText": "15" }, + { + "name": "Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "ArrayBuffer", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "as", "kind": "keyword", @@ -580,6 +556,12 @@ Info seq [hh:mm:ss:mss] response: "kindModifiers": "", "sortText": "15" }, + { + "name": "Boolean", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "break", "kind": "keyword", @@ -616,6 +598,18 @@ Info seq [hh:mm:ss:mss] response: "kindModifiers": "", "sortText": "15" }, + { + "name": "DataView", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Date", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "debugger", "kind": "keyword", @@ -628,6 +622,18 @@ Info seq [hh:mm:ss:mss] response: "kindModifiers": "", "sortText": "15" }, + { + "name": "decodeURI", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "decodeURIComponent", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "default", "kind": "keyword", @@ -652,12 +658,42 @@ Info seq [hh:mm:ss:mss] response: "kindModifiers": "", "sortText": "15" }, + { + "name": "encodeURI", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "encodeURIComponent", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "enum", "kind": "keyword", "kindModifiers": "", "sortText": "15" }, + { + "name": "Error", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "eval", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "EvalError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "export", "kind": "keyword", @@ -682,6 +718,18 @@ Info seq [hh:mm:ss:mss] response: "kindModifiers": "", "sortText": "15" }, + { + "name": "Float32Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Float64Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "for", "kind": "keyword", @@ -694,6 +742,12 @@ Info seq [hh:mm:ss:mss] response: "kindModifiers": "", "sortText": "15" }, + { + "name": "Function", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "globalThis", "kind": "module", @@ -730,18 +784,66 @@ Info seq [hh:mm:ss:mss] response: "kindModifiers": "", "sortText": "15" }, + { + "name": "Infinity", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "instanceof", "kind": "keyword", "kindModifiers": "", "sortText": "15" }, + { + "name": "Int8Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Int16Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Int32Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "interface", "kind": "keyword", "kindModifiers": "", "sortText": "15" }, + { + "name": "Intl", + "kind": "module", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "isFinite", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "isNaN", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "JSON", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "keyof", "kind": "keyword", @@ -754,6 +856,12 @@ Info seq [hh:mm:ss:mss] response: "kindModifiers": "", "sortText": "15" }, + { + "name": "Math", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "module", "kind": "keyword", @@ -766,6 +874,12 @@ Info seq [hh:mm:ss:mss] response: "kindModifiers": "", "sortText": "15" }, + { + "name": "NaN", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "never", "kind": "keyword", @@ -790,24 +904,66 @@ Info seq [hh:mm:ss:mss] response: "kindModifiers": "", "sortText": "15" }, + { + "name": "Number", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "object", "kind": "keyword", "kindModifiers": "", "sortText": "15" }, + { + "name": "Object", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "package", "kind": "keyword", "kindModifiers": "", "sortText": "15" }, + { + "name": "parseFloat", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "parseInt", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "RangeError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "readonly", "kind": "keyword", "kindModifiers": "", "sortText": "15" }, + { + "name": "ReferenceError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "RegExp", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "return", "kind": "keyword", @@ -826,6 +982,12 @@ Info seq [hh:mm:ss:mss] response: "kindModifiers": "", "sortText": "15" }, + { + "name": "String", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "super", "kind": "keyword", @@ -844,6 +1006,12 @@ Info seq [hh:mm:ss:mss] response: "kindModifiers": "", "sortText": "15" }, + { + "name": "SyntaxError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "this", "kind": "keyword", @@ -874,12 +1042,42 @@ Info seq [hh:mm:ss:mss] response: "kindModifiers": "", "sortText": "15" }, + { + "name": "TypeError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "typeof", "kind": "keyword", "kindModifiers": "", "sortText": "15" }, + { + "name": "Uint8Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Uint8ClampedArray", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Uint16Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Uint32Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "undefined", "kind": "var", @@ -898,6 +1096,12 @@ Info seq [hh:mm:ss:mss] response: "kindModifiers": "", "sortText": "15" }, + { + "name": "URIError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "using", "kind": "keyword", @@ -977,6 +1181,18 @@ Info seq [hh:mm:ss:mss] response: "fileName": "/home/src/workspaces/project/node_modules/package-dependency/index.d.ts", "isPackageJsonImport": true } + }, + { + "name": "escape", + "kind": "function", + "kindModifiers": "deprecated,declare", + "sortText": "z15" + }, + { + "name": "unescape", + "kind": "function", + "kindModifiers": "deprecated,declare", + "sortText": "z15" } ], "defaultCommitCharacters": [ @@ -988,13 +1204,11 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} -/home/src/tslibs/TS/Lib/lib.esnext.full.d.ts: +/home/src/tslibs/TS/Lib/lib.es5.d.ts: {"pollingInterval":500} /home/src/workspaces/project/node_modules/common-dependency/index.d.ts: {"pollingInterval":500} diff --git a/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider4.js b/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider4.js index 6c66566c62e37..74d2ec446c1be 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider4.js +++ b/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider4.js @@ -1,16 +1,34 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "lib": [ + "es5" + ], + "outDir": "/home/src/workspaces/project/b/out", + "composite": true, + "target": "esnext", + "newLine": "crlf", + "skipDefaultLibCheck": true, + "module": "commonjs" + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/home/src/workspaces/project/a/index.ts] new Shape @@ -19,7 +37,7 @@ new Shape { "dependencies": { "b": "*" } } //// [/home/src/workspaces/project/a/tsconfig.json] -{ "compilerOptions": { "module": "commonjs", "target": "esnext" }, "references": [{ "path": "../b" }] } +{ "compilerOptions": { "lib": ["es5"], "module": "commonjs", "target": "esnext" }, "references": [{ "path": "../b" }] } //// [/home/src/workspaces/project/b/index.ts] export class Shape {} @@ -28,12 +46,12 @@ export class Shape {} { "types": "out/index.d.ts" } //// [/home/src/workspaces/project/b/tsconfig.json] -{ "compilerOptions": { "outDir": "out", "composite": true } } +{ "compilerOptions": { "lib": ["es5"], "outDir": "out", "composite": true } } Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/home/src/workspaces/project/a/package.json" @@ -48,6 +66,9 @@ Info seq [hh:mm:ss:mss] Config: /home/src/workspaces/project/a/tsconfig.json : "/home/src/workspaces/project/a/index.ts" ], "options": { + "lib": [ + "lib.es5.d.ts" + ], "module": 1, "target": 99, "configFilePath": "/home/src/workspaces/project/a/tsconfig.json" @@ -78,6 +99,9 @@ Info seq [hh:mm:ss:mss] Config: /home/src/workspaces/project/b/tsconfig.json : "/home/src/workspaces/project/b/index.ts" ], "options": { + "lib": [ + "lib.es5.d.ts" + ], "outDir": "/home/src/workspaces/project/b/out", "composite": true, "configFilePath": "/home/src/workspaces/project/b/tsconfig.json" @@ -86,7 +110,9 @@ Info seq [hh:mm:ss:mss] Config: /home/src/workspaces/project/b/tsconfig.json : Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/b/tsconfig.json 2000 undefined Project: /home/src/workspaces/project/a/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/b 1 undefined Config: /home/src/workspaces/project/b/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/b 1 undefined Config: /home/src/workspaces/project/b/tsconfig.json WatchType: Wild card directory -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.esnext.full.d.ts 500 undefined Project: /home/src/workspaces/project/a/tsconfig.json WatchType: Missing file +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/a/node_modules/@types 1 undefined Project: /home/src/workspaces/project/a/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/a/node_modules/@types 1 undefined Project: /home/src/workspaces/project/a/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /home/src/workspaces/project/a/tsconfig.json WatchType: Type roots @@ -95,10 +121,19 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspa Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/node_modules/@types 1 undefined Project: /home/src/workspaces/project/a/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/a/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/a/tsconfig.json' (Configured) -Info seq [hh:mm:ss:mss] Files (1) +Info seq [hh:mm:ss:mss] Files (4) + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text + /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/a/index.ts Text-1 "new Shape" + ../../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions + ../../../tslibs/TS/Lib/lib.decorators.d.ts + Library referenced via 'decorators' from file '../../../tslibs/TS/Lib/lib.es5.d.ts' + ../../../tslibs/TS/Lib/lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../../../tslibs/TS/Lib/lib.es5.d.ts' index.ts Matched by default include pattern '**/*' @@ -120,71 +155,7 @@ Info seq [hh:mm:ss:mss] event: "body": { "triggerFile": "/home/src/workspaces/project/a/package.json", "configFile": "/home/src/workspaces/project/a/tsconfig.json", - "diagnostics": [ - { - "text": "File '/home/src/tslibs/TS/Lib/lib.esnext.full.d.ts' not found.\n The file is in the program because:\n Default library for target 'esnext'", - "code": 6053, - "category": "error", - "relatedInformation": [ - { - "span": { - "start": { - "line": 1, - "offset": 56 - }, - "end": { - "line": 1, - "offset": 64 - }, - "file": "/home/src/workspaces/project/a/tsconfig.json" - }, - "message": "File is default library for target specified here.", - "category": "message", - "code": 1426 - } - ] - }, - { - "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" - } - ] + "diagnostics": [] } } Info seq [hh:mm:ss:mss] getConfigFileNameForFile:: File: /home/src/workspaces/project/a/tsconfig.json ProjectRootPath: undefined:: Result: undefined @@ -193,9 +164,6 @@ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/p Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/a/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/a/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots @@ -205,18 +173,18 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/a/package.json SVC-1-0 "{ \"dependencies\": { \"b\": \"*\" } }" - ../../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../../tslibs/TS/Lib/lib.es5.d.ts' ../../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../../tslibs/TS/Lib/lib.es5.d.ts' package.json Root file specified for compilation @@ -237,7 +205,7 @@ Info seq [hh:mm:ss:mss] Files (1) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/a/tsconfig.json' (Configured) -Info seq [hh:mm:ss:mss] Files (1) +Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) @@ -256,7 +224,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": *, @@ -265,13 +233,11 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} -/home/src/tslibs/TS/Lib/lib.esnext.full.d.ts: *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* {"pollingInterval":500} /home/src/workspaces/project/a/index.ts: *new* {"pollingInterval":500} @@ -319,17 +285,20 @@ Projects:: noOpenRef: true ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* - version: Text-1 - containingProjects: 1 - /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/a/tsconfig.json /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/a/tsconfig.json + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/a/tsconfig.json /dev/null/inferredProject1* /home/src/workspaces/project/a/index.ts *new* version: Text-1 @@ -346,7 +315,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "file": "/home/src/workspaces/project/a/index.ts" @@ -356,7 +325,7 @@ Info seq [hh:mm:ss:mss] request: Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /home/src/workspaces/project/a/index.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] getConfigFileNameForFile:: File: /home/src/workspaces/project/a/index.ts ProjectRootPath: undefined:: Result: /home/src/workspaces/project/a/tsconfig.json Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/a/tsconfig.json' (Configured) -Info seq [hh:mm:ss:mss] Files (1) +Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) @@ -377,18 +346,16 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 1, + "request_seq": 2, "success": true } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} -/home/src/tslibs/TS/Lib/lib.esnext.full.d.ts: +/home/src/tslibs/TS/Lib/lib.es5.d.ts: {"pollingInterval":500} /home/src/workspaces/project/a/jsconfig.json: {"pollingInterval":2000} @@ -438,17 +405,20 @@ Projects:: noOpenRef: false *changed* ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts - version: Text-1 - containingProjects: 1 - /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/a/tsconfig.json /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/a/tsconfig.json + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.es5.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/a/tsconfig.json /dev/null/inferredProject1* /home/src/workspaces/project/a/index.ts (Open) *changed* open: true *changed* @@ -466,7 +436,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "preferences": {} @@ -478,12 +448,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 2, + "request_seq": 3, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 3, + "seq": 4, "type": "request", "arguments": { "file": "/home/src/workspaces/project/a/index.ts", @@ -496,13 +466,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "syntacticDiagnosticsSync", - "request_seq": 3, + "request_seq": 4, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 4, + "seq": 5, "type": "request", "arguments": { "file": "/home/src/workspaces/project/a/index.ts", @@ -515,7 +485,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "semanticDiagnosticsSync", - "request_seq": 4, + "request_seq": 5, "success": true, "body": [ { @@ -537,7 +507,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 5, + "seq": 6, "type": "request", "arguments": { "file": "/home/src/workspaces/project/a/index.ts", @@ -550,13 +520,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "suggestionDiagnosticsSync", - "request_seq": 5, + "request_seq": 6, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 6, + "seq": 7, "type": "request", "arguments": { "file": "/home/src/workspaces/project/a/index.ts", @@ -591,7 +561,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "getCodeFixes", - "request_seq": 6, + "request_seq": 7, "success": true, "performanceData": { "updateGraphDurationMs": *, @@ -624,13 +594,11 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} -/home/src/tslibs/TS/Lib/lib.esnext.full.d.ts: +/home/src/tslibs/TS/Lib/lib.es5.d.ts: {"pollingInterval":500} /home/src/workspaces/project/a/jsconfig.json: {"pollingInterval":2000} @@ -681,17 +649,20 @@ Projects:: autoImportProviderHost: /dev/null/autoImportProviderProject2* *changed* ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts - version: Text-1 - containingProjects: 1 - /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/a/tsconfig.json /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/a/tsconfig.json + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.es5.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/a/tsconfig.json /dev/null/inferredProject1* /home/src/workspaces/project/a/index.ts (Open) version: Text-1 @@ -709,7 +680,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 7, + "seq": 8, "type": "request", "arguments": { "file": "/home/src/workspaces/project/a/index.ts", @@ -726,7 +697,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 7, + "request_seq": 8, "success": true } After Request @@ -748,17 +719,20 @@ Projects:: autoImportProviderHost: /dev/null/autoImportProviderProject2* ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts - version: Text-1 - containingProjects: 1 - /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/a/tsconfig.json /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/a/tsconfig.json + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.es5.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/a/tsconfig.json /dev/null/inferredProject1* /home/src/workspaces/project/a/index.ts (Open) *changed* version: SVC-2-1 *changed* @@ -776,7 +750,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 8, + "seq": 9, "type": "request", "arguments": { "file": "/home/src/workspaces/project/a/index.ts", @@ -793,22 +767,25 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 8, + "request_seq": 9, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts - version: Text-1 - containingProjects: 1 - /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/a/tsconfig.json /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/a/tsconfig.json + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.es5.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/a/tsconfig.json /dev/null/inferredProject1* /home/src/workspaces/project/a/index.ts (Open) *changed* version: SVC-2-2 *changed* diff --git a/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider5.js b/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider5.js index 94ad6bd3029b6..5124dfe711500 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider5.js +++ b/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider5.js @@ -1,16 +1,31 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "target": "es5", + "newLine": "crlf", + "lib": [ + "es5" + ], + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/home/src/workspaces/project/index.ts] useForm @@ -29,7 +44,7 @@ export declare function useForm(): void; Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/home/src/workspaces/project/package.json" @@ -41,7 +56,7 @@ Info seq [hh:mm:ss:mss] Creating InferredProject: /dev/null/inferredProject1*, Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots @@ -51,18 +66,18 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/package.json SVC-1-0 "{ \"dependencies\": { \"react-hook-form\": \"*\" } }" - ../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' package.json Root file specified for compilation @@ -106,7 +121,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": *, @@ -115,12 +130,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* + {"pollingInterval":500} /home/src/workspaces/project/jsconfig.json: *new* {"pollingInterval":2000} /home/src/workspaces/project/node_modules/react-hook-form/dist/index.d.ts: *new* @@ -154,15 +169,15 @@ Projects:: autoImportProviderHost: /dev/null/autoImportProviderProject1* ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* @@ -181,7 +196,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts" @@ -198,18 +213,18 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject2* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject2*' (Inferred) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/index.ts SVC-1-0 "useForm" - ../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' index.ts Root file specified for compilation @@ -260,7 +275,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 1, + "request_seq": 2, "success": true, "performanceData": { "updateGraphDurationMs": *, @@ -269,12 +284,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: + {"pollingInterval":500} /home/src/workspaces/project/jsconfig.json: {"pollingInterval":2000} /home/src/workspaces/project/node_modules/react-hook-form/dist/index.d.ts: @@ -320,17 +335,17 @@ Projects:: autoImportProviderHost: /dev/null/autoImportProviderProject2* ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *changed* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *changed* version: Text-1 containingProjects: 2 *changed* /dev/null/inferredProject1* /dev/null/inferredProject2* *new* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *changed* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *changed* version: Text-1 containingProjects: 2 *changed* /dev/null/inferredProject1* /dev/null/inferredProject2* *new* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *changed* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *changed* version: Text-1 containingProjects: 2 *changed* /dev/null/inferredProject1* @@ -356,7 +371,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "preferences": {} @@ -368,12 +383,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 2, + "request_seq": 3, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 3, + "seq": 4, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -386,13 +401,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "syntacticDiagnosticsSync", - "request_seq": 3, + "request_seq": 4, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 4, + "seq": 5, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -405,7 +420,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "semanticDiagnosticsSync", - "request_seq": 4, + "request_seq": 5, "success": true, "body": [ { @@ -427,7 +442,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 5, + "seq": 6, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -440,13 +455,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "suggestionDiagnosticsSync", - "request_seq": 5, + "request_seq": 6, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 6, + "seq": 7, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -468,7 +483,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "getCodeFixes", - "request_seq": 6, + "request_seq": 7, "success": true, "body": [ { @@ -519,12 +534,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: + {"pollingInterval":500} /home/src/workspaces/project/jsconfig.json: {"pollingInterval":2000} /home/src/workspaces/project/node_modules/react-hook-form/dist/index.d.ts: @@ -556,7 +571,7 @@ watchedDirectoriesRecursive:: Info seq [hh:mm:ss:mss] request: { - "seq": 7, + "seq": 8, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -573,7 +588,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 7, + "request_seq": 8, "success": true } After Request @@ -595,17 +610,17 @@ Projects:: autoImportProviderHost: /dev/null/autoImportProviderProject2* ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /dev/null/inferredProject1* /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /dev/null/inferredProject1* /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /dev/null/inferredProject1* @@ -631,7 +646,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 8, + "seq": 9, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -648,22 +663,22 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 8, + "request_seq": 9, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /dev/null/inferredProject1* /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /dev/null/inferredProject1* /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /dev/null/inferredProject1* @@ -689,7 +704,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 9, + "seq": 10, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -706,22 +721,22 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 9, + "request_seq": 10, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /dev/null/inferredProject1* /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /dev/null/inferredProject1* /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /dev/null/inferredProject1* @@ -747,7 +762,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 10, + "seq": 11, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -764,22 +779,22 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 10, + "request_seq": 11, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /dev/null/inferredProject1* /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /dev/null/inferredProject1* /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /dev/null/inferredProject1* diff --git a/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider6.js b/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider6.js index fc1f1e830fc31..e4b496c20cd32 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider6.js +++ b/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider6.js @@ -1,118 +1,32 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.es2015.collection.d.ts] -lib.es2015.collection.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.es2015.core.d.ts] -lib.es2015.core.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.es2015.d.ts] -lib.es2015.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.es2015.generator.d.ts] -lib.es2015.generator.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.es2015.iterable.d.ts] -lib.es2015.iterable.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.es2015.promise.d.ts] -lib.es2015.promise.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.es2015.proxy.d.ts] -lib.es2015.proxy.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.es2015.reflect.d.ts] -lib.es2015.reflect.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.es2015.symbol.d.ts] -lib.es2015.symbol.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.es2015.symbol.wellknown.d.ts] -lib.es2015.symbol.wellknown.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.es2016.array.include.d.ts] -lib.es2016.array.include.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.es2016.d.ts] -lib.es2016.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.es2016.intl.d.ts] -lib.es2016.intl.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.es2017.arraybuffer.d.ts] -lib.es2017.arraybuffer.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.es2017.d.ts] -lib.es2017.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.es2017.date.d.ts] -lib.es2017.date.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.es2017.intl.d.ts] -lib.es2017.intl.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.es2017.object.d.ts] -lib.es2017.object.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.es2017.sharedmemory.d.ts] -lib.es2017.sharedmemory.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.es2017.string.d.ts] -lib.es2017.string.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.es2017.typedarrays.d.ts] -lib.es2017.typedarrays.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.es2018.asyncgenerator.d.ts] -lib.es2018.asyncgenerator.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.es2018.asynciterable.d.ts] -lib.es2018.asynciterable.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.es2018.d.ts] -lib.es2018.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.es2018.intl.d.ts] -lib.es2018.intl.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.es2018.promise.d.ts] -lib.es2018.promise.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.es2018.regexp.d.ts] -lib.es2018.regexp.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.es2019.array.d.ts] -lib.es2019.array.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.es2019.d.ts] -lib.es2019.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.es2019.intl.d.ts] -lib.es2019.intl.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.es2019.object.d.ts] -lib.es2019.object.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.es2019.string.d.ts] -lib.es2019.string.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.es2019.symbol.d.ts] -lib.es2019.symbol.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.es5.d.ts] -lib.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "module": "commonjs", + "lib": [ + "es2019" + ], + "target": "es5", + "newLine": "crlf", + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/home/src/workspaces/project/index.ts] Component @@ -131,7 +45,7 @@ import "react"; Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/home/src/workspaces/project/tsconfig.json" @@ -217,7 +131,7 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (38) - /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.es2015.d.ts Text-1 lib.es2015.d.ts-Text /home/src/tslibs/TS/Lib/lib.es2016.d.ts Text-1 lib.es2016.d.ts-Text /home/src/tslibs/TS/Lib/lib.es2017.d.ts Text-1 lib.es2017.d.ts-Text @@ -370,7 +284,6 @@ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/p Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types/react/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution @@ -381,20 +294,128 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspa Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) -Info seq [hh:mm:ss:mss] Files (5) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text +Info seq [hh:mm:ss:mss] Files (38) + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es2015.d.ts Text-1 lib.es2015.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es2016.d.ts Text-1 lib.es2016.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es2017.d.ts Text-1 lib.es2017.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es2018.d.ts Text-1 lib.es2018.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es2019.d.ts Text-1 lib.es2019.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es2015.core.d.ts Text-1 lib.es2015.core.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es2015.collection.d.ts Text-1 lib.es2015.collection.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es2015.generator.d.ts Text-1 lib.es2015.generator.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es2015.iterable.d.ts Text-1 lib.es2015.iterable.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es2015.promise.d.ts Text-1 lib.es2015.promise.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es2015.proxy.d.ts Text-1 lib.es2015.proxy.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es2015.reflect.d.ts Text-1 lib.es2015.reflect.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es2015.symbol.d.ts Text-1 lib.es2015.symbol.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es2015.symbol.wellknown.d.ts Text-1 lib.es2015.symbol.wellknown.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es2016.array.include.d.ts Text-1 lib.es2016.array.include.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es2016.intl.d.ts Text-1 lib.es2016.intl.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es2017.arraybuffer.d.ts Text-1 lib.es2017.arraybuffer.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es2017.date.d.ts Text-1 lib.es2017.date.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es2017.object.d.ts Text-1 lib.es2017.object.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es2017.sharedmemory.d.ts Text-1 lib.es2017.sharedmemory.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es2017.string.d.ts Text-1 lib.es2017.string.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es2017.intl.d.ts Text-1 lib.es2017.intl.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es2017.typedarrays.d.ts Text-1 lib.es2017.typedarrays.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es2018.asyncgenerator.d.ts Text-1 lib.es2018.asyncgenerator.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es2018.asynciterable.d.ts Text-1 lib.es2018.asynciterable.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es2018.intl.d.ts Text-1 lib.es2018.intl.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es2018.promise.d.ts Text-1 lib.es2018.promise.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es2018.regexp.d.ts Text-1 lib.es2018.regexp.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es2019.array.d.ts Text-1 lib.es2019.array.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es2019.object.d.ts Text-1 lib.es2019.object.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es2019.string.d.ts Text-1 lib.es2019.string.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es2019.symbol.d.ts Text-1 lib.es2019.symbol.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es2019.intl.d.ts Text-1 lib.es2019.intl.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/tsconfig.json SVC-1-0 "{ \"compilerOptions\": { \"module\": \"commonjs\", \"lib\": [\"es2019\"] } }" /home/src/workspaces/project/node_modules/@types/react/index.d.ts Text-1 "export declare function Component(): void;" - ../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../tslibs/TS/Lib/lib.es5.d.ts + Library referenced via 'es5' from file '../../tslibs/TS/Lib/lib.es2015.d.ts' + ../../tslibs/TS/Lib/lib.es2015.d.ts + Library referenced via 'es2015' from file '../../tslibs/TS/Lib/lib.es2016.d.ts' + ../../tslibs/TS/Lib/lib.es2016.d.ts + Library referenced via 'es2016' from file '../../tslibs/TS/Lib/lib.es2017.d.ts' + ../../tslibs/TS/Lib/lib.es2017.d.ts + Library referenced via 'es2017' from file '../../tslibs/TS/Lib/lib.es2018.d.ts' + ../../tslibs/TS/Lib/lib.es2018.d.ts + Library referenced via 'es2018' from file '../../tslibs/TS/Lib/lib.es2019.d.ts' + ../../tslibs/TS/Lib/lib.es2019.d.ts + Library 'lib.es2019.d.ts' specified in compilerOptions + ../../tslibs/TS/Lib/lib.es2015.core.d.ts + Library referenced via 'es2015.core' from file '../../tslibs/TS/Lib/lib.es2015.d.ts' + ../../tslibs/TS/Lib/lib.es2015.collection.d.ts + Library referenced via 'es2015.collection' from file '../../tslibs/TS/Lib/lib.es2015.d.ts' + ../../tslibs/TS/Lib/lib.es2015.generator.d.ts + Library referenced via 'es2015.generator' from file '../../tslibs/TS/Lib/lib.es2015.d.ts' + ../../tslibs/TS/Lib/lib.es2015.iterable.d.ts + Library referenced via 'es2015.iterable' from file '../../tslibs/TS/Lib/lib.es2015.d.ts' + Library referenced via 'es2015.iterable' from file '../../tslibs/TS/Lib/lib.es2015.generator.d.ts' + Library referenced via 'es2015.iterable' from file '../../tslibs/TS/Lib/lib.es2018.asynciterable.d.ts' + Library referenced via 'es2015.iterable' from file '../../tslibs/TS/Lib/lib.es2019.object.d.ts' + ../../tslibs/TS/Lib/lib.es2015.promise.d.ts + Library referenced via 'es2015.promise' from file '../../tslibs/TS/Lib/lib.es2015.d.ts' + ../../tslibs/TS/Lib/lib.es2015.proxy.d.ts + Library referenced via 'es2015.proxy' from file '../../tslibs/TS/Lib/lib.es2015.d.ts' + ../../tslibs/TS/Lib/lib.es2015.reflect.d.ts + Library referenced via 'es2015.reflect' from file '../../tslibs/TS/Lib/lib.es2015.d.ts' + ../../tslibs/TS/Lib/lib.es2015.symbol.d.ts + Library referenced via 'es2015.symbol' from file '../../tslibs/TS/Lib/lib.es2015.iterable.d.ts' + Library referenced via 'es2015.symbol' from file '../../tslibs/TS/Lib/lib.es2015.d.ts' + Library referenced via 'es2015.symbol' from file '../../tslibs/TS/Lib/lib.es2015.symbol.wellknown.d.ts' + Library referenced via 'es2015.symbol' from file '../../tslibs/TS/Lib/lib.es2017.sharedmemory.d.ts' + Library referenced via 'es2015.symbol' from file '../../tslibs/TS/Lib/lib.es2018.asynciterable.d.ts' + ../../tslibs/TS/Lib/lib.es2015.symbol.wellknown.d.ts + Library referenced via 'es2015.symbol.wellknown' from file '../../tslibs/TS/Lib/lib.es2015.d.ts' + Library referenced via 'es2015.symbol.wellknown' from file '../../tslibs/TS/Lib/lib.es2017.sharedmemory.d.ts' + ../../tslibs/TS/Lib/lib.es2016.array.include.d.ts + Library referenced via 'es2016.array.include' from file '../../tslibs/TS/Lib/lib.es2016.d.ts' + ../../tslibs/TS/Lib/lib.es2016.intl.d.ts + Library referenced via 'es2016.intl' from file '../../tslibs/TS/Lib/lib.es2016.d.ts' + ../../tslibs/TS/Lib/lib.es2017.arraybuffer.d.ts + Library referenced via 'es2017.arraybuffer' from file '../../tslibs/TS/Lib/lib.es2017.d.ts' + ../../tslibs/TS/Lib/lib.es2017.date.d.ts + Library referenced via 'es2017.date' from file '../../tslibs/TS/Lib/lib.es2017.d.ts' + ../../tslibs/TS/Lib/lib.es2017.object.d.ts + Library referenced via 'es2017.object' from file '../../tslibs/TS/Lib/lib.es2017.d.ts' + ../../tslibs/TS/Lib/lib.es2017.sharedmemory.d.ts + Library referenced via 'es2017.sharedmemory' from file '../../tslibs/TS/Lib/lib.es2017.d.ts' + ../../tslibs/TS/Lib/lib.es2017.string.d.ts + Library referenced via 'es2017.string' from file '../../tslibs/TS/Lib/lib.es2017.d.ts' + ../../tslibs/TS/Lib/lib.es2017.intl.d.ts + Library referenced via 'es2017.intl' from file '../../tslibs/TS/Lib/lib.es2017.d.ts' + ../../tslibs/TS/Lib/lib.es2017.typedarrays.d.ts + Library referenced via 'es2017.typedarrays' from file '../../tslibs/TS/Lib/lib.es2017.d.ts' + ../../tslibs/TS/Lib/lib.es2018.asyncgenerator.d.ts + Library referenced via 'es2018.asyncgenerator' from file '../../tslibs/TS/Lib/lib.es2018.d.ts' + ../../tslibs/TS/Lib/lib.es2018.asynciterable.d.ts + Library referenced via 'es2018.asynciterable' from file '../../tslibs/TS/Lib/lib.es2018.d.ts' + Library referenced via 'es2018.asynciterable' from file '../../tslibs/TS/Lib/lib.es2018.asyncgenerator.d.ts' + ../../tslibs/TS/Lib/lib.es2018.intl.d.ts + Library referenced via 'es2018.intl' from file '../../tslibs/TS/Lib/lib.es2018.d.ts' + ../../tslibs/TS/Lib/lib.es2018.promise.d.ts + Library referenced via 'es2018.promise' from file '../../tslibs/TS/Lib/lib.es2018.d.ts' + ../../tslibs/TS/Lib/lib.es2018.regexp.d.ts + Library referenced via 'es2018.regexp' from file '../../tslibs/TS/Lib/lib.es2018.d.ts' + ../../tslibs/TS/Lib/lib.es2019.array.d.ts + Library referenced via 'es2019.array' from file '../../tslibs/TS/Lib/lib.es2019.d.ts' + ../../tslibs/TS/Lib/lib.es2019.object.d.ts + Library referenced via 'es2019.object' from file '../../tslibs/TS/Lib/lib.es2019.d.ts' + ../../tslibs/TS/Lib/lib.es2019.string.d.ts + Library referenced via 'es2019.string' from file '../../tslibs/TS/Lib/lib.es2019.d.ts' + ../../tslibs/TS/Lib/lib.es2019.symbol.d.ts + Library referenced via 'es2019.symbol' from file '../../tslibs/TS/Lib/lib.es2019.d.ts' + ../../tslibs/TS/Lib/lib.es2019.intl.d.ts + Library referenced via 'es2019.intl' from file '../../tslibs/TS/Lib/lib.es2019.d.ts' ../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' tsconfig.json Root file specified for compilation node_modules/@types/react/index.d.ts @@ -407,7 +428,7 @@ Info seq [hh:mm:ss:mss] Files (38) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) -Info seq [hh:mm:ss:mss] Files (5) +Info seq [hh:mm:ss:mss] Files (38) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Open files: @@ -418,7 +439,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -426,8 +447,6 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* @@ -546,10 +565,6 @@ Projects:: noOpenRef: true ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* - version: Text-1 - containingProjects: 1 - /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 containingProjects: 2 @@ -562,140 +577,174 @@ ScriptInfos:: /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.es2015.collection.d.ts *new* version: Text-1 - containingProjects: 1 + containingProjects: 2 /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.es2015.core.d.ts *new* version: Text-1 - containingProjects: 1 + containingProjects: 2 /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.es2015.d.ts *new* version: Text-1 - containingProjects: 1 + containingProjects: 2 /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.es2015.generator.d.ts *new* version: Text-1 - containingProjects: 1 + containingProjects: 2 /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.es2015.iterable.d.ts *new* version: Text-1 - containingProjects: 1 + containingProjects: 2 /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.es2015.promise.d.ts *new* version: Text-1 - containingProjects: 1 + containingProjects: 2 /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.es2015.proxy.d.ts *new* version: Text-1 - containingProjects: 1 + containingProjects: 2 /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.es2015.reflect.d.ts *new* version: Text-1 - containingProjects: 1 + containingProjects: 2 /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.es2015.symbol.d.ts *new* version: Text-1 - containingProjects: 1 + containingProjects: 2 /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.es2015.symbol.wellknown.d.ts *new* version: Text-1 - containingProjects: 1 + containingProjects: 2 /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.es2016.array.include.d.ts *new* version: Text-1 - containingProjects: 1 + containingProjects: 2 /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.es2016.d.ts *new* version: Text-1 - containingProjects: 1 + containingProjects: 2 /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.es2016.intl.d.ts *new* version: Text-1 - containingProjects: 1 + containingProjects: 2 /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.es2017.arraybuffer.d.ts *new* version: Text-1 - containingProjects: 1 + containingProjects: 2 /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.es2017.d.ts *new* version: Text-1 - containingProjects: 1 + containingProjects: 2 /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.es2017.date.d.ts *new* version: Text-1 - containingProjects: 1 + containingProjects: 2 /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.es2017.intl.d.ts *new* version: Text-1 - containingProjects: 1 + containingProjects: 2 /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.es2017.object.d.ts *new* version: Text-1 - containingProjects: 1 + containingProjects: 2 /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.es2017.sharedmemory.d.ts *new* version: Text-1 - containingProjects: 1 + containingProjects: 2 /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.es2017.string.d.ts *new* version: Text-1 - containingProjects: 1 + containingProjects: 2 /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.es2017.typedarrays.d.ts *new* version: Text-1 - containingProjects: 1 + containingProjects: 2 /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.es2018.asyncgenerator.d.ts *new* version: Text-1 - containingProjects: 1 + containingProjects: 2 /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.es2018.asynciterable.d.ts *new* version: Text-1 - containingProjects: 1 + containingProjects: 2 /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.es2018.d.ts *new* version: Text-1 - containingProjects: 1 + containingProjects: 2 /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.es2018.intl.d.ts *new* version: Text-1 - containingProjects: 1 + containingProjects: 2 /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.es2018.promise.d.ts *new* version: Text-1 - containingProjects: 1 + containingProjects: 2 /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.es2018.regexp.d.ts *new* version: Text-1 - containingProjects: 1 + containingProjects: 2 /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.es2019.array.d.ts *new* version: Text-1 - containingProjects: 1 + containingProjects: 2 /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.es2019.d.ts *new* version: Text-1 - containingProjects: 1 + containingProjects: 2 /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.es2019.intl.d.ts *new* version: Text-1 - containingProjects: 1 + containingProjects: 2 /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.es2019.object.d.ts *new* version: Text-1 - containingProjects: 1 + containingProjects: 2 /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.es2019.string.d.ts *new* version: Text-1 - containingProjects: 1 + containingProjects: 2 /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.es2019.symbol.d.ts *new* version: Text-1 - containingProjects: 1 + containingProjects: 2 /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.es5.d.ts *new* version: Text-1 - containingProjects: 1 + containingProjects: 2 /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* /home/src/workspaces/project/index.ts *new* version: Text-1 containingProjects: 1 @@ -712,7 +761,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts" @@ -726,7 +775,7 @@ Info seq [hh:mm:ss:mss] Files (38) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) -Info seq [hh:mm:ss:mss] Files (5) +Info seq [hh:mm:ss:mss] Files (38) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Open files: @@ -739,13 +788,11 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 1, + "request_seq": 2, "success": true } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: @@ -866,10 +913,6 @@ Projects:: noOpenRef: false *changed* ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts - version: Text-1 - containingProjects: 1 - /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 @@ -882,140 +925,174 @@ ScriptInfos:: /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.es2015.collection.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.es2015.core.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.es2015.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.es2015.generator.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.es2015.iterable.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.es2015.promise.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.es2015.proxy.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.es2015.reflect.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.es2015.symbol.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.es2015.symbol.wellknown.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.es2016.array.include.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.es2016.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.es2016.intl.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.es2017.arraybuffer.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.es2017.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.es2017.date.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.es2017.intl.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.es2017.object.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.es2017.sharedmemory.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.es2017.string.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.es2017.typedarrays.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.es2018.asyncgenerator.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.es2018.asynciterable.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.es2018.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.es2018.intl.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.es2018.promise.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.es2018.regexp.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.es2019.array.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.es2019.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.es2019.intl.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.es2019.object.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.es2019.string.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.es2019.symbol.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* /home/src/workspaces/project/index.ts (Open) *changed* open: true *changed* version: Text-1 @@ -1033,7 +1110,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "preferences": { @@ -1047,7 +1124,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 2, + "request_seq": 3, "success": true } After Request @@ -1062,7 +1139,7 @@ Projects:: Info seq [hh:mm:ss:mss] request: { - "seq": 3, + "seq": 4, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -1088,7 +1165,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "completionInfo", - "request_seq": 3, + "request_seq": 4, "success": true, "body": { "flags": 9, @@ -1850,8 +1927,6 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: diff --git a/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider7.js b/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider7.js index 9a3af305fcc0b..bd84019d4ce1b 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider7.js +++ b/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider7.js @@ -1,16 +1,32 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "lib": [ + "es5" + ], + "module": "commonjs", + "target": "es5", + "newLine": "crlf", + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/home/src/workspaces/project/node_modules/mylib] symlink(/home/src/workspaces/project/packages/mylib) //// [/home/src/workspaces/project/package.json] { "dependencies": { "mylib": "file:packages/mylib" } } @@ -37,12 +53,12 @@ const a = new MyClass(); const b = new MyClass2(); //// [/home/src/workspaces/project/tsconfig.json] -{ "compilerOptions": { "module": "commonjs" } } +{ "compilerOptions": { "lib": ["es5"], "module": "commonjs" } } Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/home/src/workspaces/project/tsconfig.json" @@ -61,6 +77,9 @@ Info seq [hh:mm:ss:mss] Config: /home/src/workspaces/project/tsconfig.json : { "/home/src/workspaces/project/src/index.ts" ], "options": { + "lib": [ + "lib.es5.d.ts" + ], "module": 1, "configFilePath": "/home/src/workspaces/project/tsconfig.json" } @@ -85,7 +104,7 @@ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/p Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/packages 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/packages 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots @@ -95,7 +114,7 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (8) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/packages/mylib/mySubDir/myClass.ts Text-1 "export class MyClass {}" @@ -105,12 +124,12 @@ Info seq [hh:mm:ss:mss] Files (8) /home/src/workspaces/project/src/index.ts Text-1 "\nconst a = new MyClass();\nconst b = new MyClass2();" - ../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' packages/mylib/mySubDir/myClass.ts Imported via "./myClass" from file 'packages/mylib/mySubDir/index.ts' Matched by default include pattern '**/*' @@ -157,18 +176,18 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text - /home/src/workspaces/project/tsconfig.json SVC-1-0 "{ \"compilerOptions\": { \"module\": \"commonjs\" } }" + /home/src/workspaces/project/tsconfig.json SVC-1-0 "{ \"compilerOptions\": { \"lib\": [\"es5\"], \"module\": \"commonjs\" } }" - ../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' tsconfig.json Root file specified for compilation @@ -218,7 +237,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": *, @@ -227,12 +246,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* + {"pollingInterval":500} /home/src/workspaces/project/jsconfig.json: *new* {"pollingInterval":2000} /home/src/workspaces/project/package.json: *new* @@ -277,17 +296,17 @@ Projects:: noOpenRef: true ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -323,7 +342,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/index.ts" @@ -354,17 +373,17 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 1, + "request_seq": 2, "success": true } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: + {"pollingInterval":500} /home/src/workspaces/project/jsconfig.json: {"pollingInterval":2000} /home/src/workspaces/project/package.json: @@ -411,17 +430,17 @@ Projects:: noOpenRef: false *changed* ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -458,7 +477,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "formatOptions": { @@ -494,12 +513,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 2, + "request_seq": 3, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 3, + "seq": 4, "type": "request", "arguments": { "preferences": { @@ -515,7 +534,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 3, + "request_seq": 4, "success": true } After Request @@ -534,7 +553,7 @@ Projects:: Info seq [hh:mm:ss:mss] request: { - "seq": 4, + "seq": 5, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/index.ts", @@ -561,7 +580,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "completionInfo", - "request_seq": 4, + "request_seq": 5, "success": true, "body": { "flags": 9, @@ -1289,12 +1308,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: + {"pollingInterval":500} /home/src/workspaces/project/jsconfig.json: {"pollingInterval":2000} /home/src/workspaces/project/package.json: @@ -1341,7 +1360,7 @@ Projects:: Info seq [hh:mm:ss:mss] request: { - "seq": 5, + "seq": 6, "type": "request", "arguments": { "preferences": { @@ -1357,12 +1376,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 5, + "request_seq": 6, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 6, + "seq": 7, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/index.ts", @@ -1387,7 +1406,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "completionEntryDetails-full", - "request_seq": 6, + "request_seq": 7, "success": true, "body": [ { @@ -1466,7 +1485,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 7, + "seq": 8, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/index.ts", @@ -1483,7 +1502,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 7, + "request_seq": 8, "success": true } After Request @@ -1503,17 +1522,17 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json diff --git a/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider8.js b/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider8.js index e79a94b48d009..68d607fd94c05 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider8.js +++ b/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider8.js @@ -1,16 +1,32 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "lib": [ + "es5" + ], + "module": "commonjs", + "target": "es5", + "newLine": "crlf", + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/home/src/workspaces/project/node_modules/mylib] symlink(/home/src/workspaces/project/packages/mylib) //// [/home/src/workspaces/project/package.json] { "dependencies": { "mylib": "file:packages/mylib" } } @@ -37,12 +53,12 @@ const a = new MyClass(); const b = new MyClass2(); //// [/home/src/workspaces/project/tsconfig.json] -{ "compilerOptions": { "module": "commonjs" } } +{ "compilerOptions": { "lib": ["es5"], "module": "commonjs" } } Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/home/src/workspaces/project/tsconfig.json" @@ -61,6 +77,9 @@ Info seq [hh:mm:ss:mss] Config: /home/src/workspaces/project/tsconfig.json : { "/home/src/workspaces/project/src/index.ts" ], "options": { + "lib": [ + "lib.es5.d.ts" + ], "module": 1, "configFilePath": "/home/src/workspaces/project/tsconfig.json" } @@ -85,7 +104,7 @@ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/p Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/packages 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/packages 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots @@ -95,7 +114,7 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (8) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/packages/mylib/mySubDir/myClass.ts Text-1 "export class MyClass {}" @@ -105,12 +124,12 @@ Info seq [hh:mm:ss:mss] Files (8) /home/src/workspaces/project/src/index.ts Text-1 "\nconst a = new MyClass();\nconst b = new MyClass2();" - ../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' packages/mylib/mySubDir/myClass.ts Imported via "./myClass" from file 'packages/mylib/mySubDir/index.ts' Matched by default include pattern '**/*' @@ -157,18 +176,18 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text - /home/src/workspaces/project/tsconfig.json SVC-1-0 "{ \"compilerOptions\": { \"module\": \"commonjs\" } }" + /home/src/workspaces/project/tsconfig.json SVC-1-0 "{ \"compilerOptions\": { \"lib\": [\"es5\"], \"module\": \"commonjs\" } }" - ../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' tsconfig.json Root file specified for compilation @@ -218,7 +237,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": *, @@ -227,12 +246,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* + {"pollingInterval":500} /home/src/workspaces/project/jsconfig.json: *new* {"pollingInterval":2000} /home/src/workspaces/project/package.json: *new* @@ -277,17 +296,17 @@ Projects:: noOpenRef: true ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -323,7 +342,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/index.ts" @@ -354,17 +373,17 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 1, + "request_seq": 2, "success": true } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: + {"pollingInterval":500} /home/src/workspaces/project/jsconfig.json: {"pollingInterval":2000} /home/src/workspaces/project/package.json: @@ -411,17 +430,17 @@ Projects:: noOpenRef: false *changed* ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -458,7 +477,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "formatOptions": { @@ -494,12 +513,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 2, + "request_seq": 3, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 3, + "seq": 4, "type": "request", "arguments": { "preferences": { @@ -515,7 +534,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 3, + "request_seq": 4, "success": true } After Request @@ -534,7 +553,7 @@ Projects:: Info seq [hh:mm:ss:mss] request: { - "seq": 4, + "seq": 5, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/index.ts", @@ -561,7 +580,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "completionInfo", - "request_seq": 4, + "request_seq": 5, "success": true, "body": { "flags": 9, @@ -1289,12 +1308,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: + {"pollingInterval":500} /home/src/workspaces/project/jsconfig.json: {"pollingInterval":2000} /home/src/workspaces/project/package.json: @@ -1341,7 +1360,7 @@ Projects:: Info seq [hh:mm:ss:mss] request: { - "seq": 5, + "seq": 6, "type": "request", "arguments": { "preferences": { @@ -1357,12 +1376,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 5, + "request_seq": 6, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 6, + "seq": 7, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/index.ts", @@ -1387,7 +1406,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "completionEntryDetails-full", - "request_seq": 6, + "request_seq": 7, "success": true, "body": [ { @@ -1466,7 +1485,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 7, + "seq": 8, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/index.ts", @@ -1483,7 +1502,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 7, + "request_seq": 8, "success": true } After Request @@ -1503,17 +1522,17 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json diff --git a/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider9.js b/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider9.js index e9f2cf7a10cae..61cc65c7f23f5 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider9.js +++ b/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider9.js @@ -1,16 +1,32 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "target": "es5", + "newLine": "crlf", + "lib": [ + "es5" + ], + "module": "preserve", + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/home/src/workspaces/project/index.ts] Lib1 @@ -100,7 +116,7 @@ export class Lib9 {} Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts" @@ -112,7 +128,7 @@ Info seq [hh:mm:ss:mss] Creating InferredProject: /dev/null/inferredProject1*, Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots @@ -122,18 +138,18 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/index.ts SVC-1-0 "Lib1" - ../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' index.ts Root file specified for compilation @@ -152,7 +168,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -160,12 +176,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* + {"pollingInterval":500} /home/src/workspaces/project/jsconfig.json: *new* {"pollingInterval":2000} /home/src/workspaces/project/package.json: *new* @@ -186,15 +202,15 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* @@ -205,7 +221,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "preferences": { @@ -220,7 +236,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 1, + "request_seq": 2, "success": true } After Request @@ -232,7 +248,7 @@ Projects:: Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -245,13 +261,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "syntacticDiagnosticsSync", - "request_seq": 2, + "request_seq": 3, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 3, + "seq": 4, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -264,7 +280,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "semanticDiagnosticsSync", - "request_seq": 3, + "request_seq": 4, "success": true, "body": [ { @@ -286,7 +302,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 4, + "seq": 5, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -299,13 +315,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "suggestionDiagnosticsSync", - "request_seq": 4, + "request_seq": 5, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 5, + "seq": 6, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -325,7 +341,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "getCodeFixes", - "request_seq": 5, + "request_seq": 6, "success": true, "body": [] } @@ -338,7 +354,7 @@ Projects:: Info seq [hh:mm:ss:mss] request: { - "seq": 6, + "seq": 7, "type": "request", "arguments": { "preferences": { @@ -353,12 +369,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 6, + "request_seq": 7, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 7, + "seq": 8, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -371,13 +387,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "syntacticDiagnosticsSync", - "request_seq": 7, + "request_seq": 8, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 8, + "seq": 9, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -390,7 +406,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "semanticDiagnosticsSync", - "request_seq": 8, + "request_seq": 9, "success": true, "body": [ { @@ -412,7 +428,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 9, + "seq": 10, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -425,13 +441,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "suggestionDiagnosticsSync", - "request_seq": 9, + "request_seq": 10, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 10, + "seq": 11, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -450,13 +466,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "getCodeFixes", - "request_seq": 10, + "request_seq": 11, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 11, + "seq": 12, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -473,7 +489,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 11, + "request_seq": 12, "success": true } After Request @@ -485,15 +501,15 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* @@ -504,7 +520,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 12, + "seq": 13, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -521,20 +537,20 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 12, + "request_seq": 13, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* @@ -545,7 +561,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 13, + "seq": 14, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -560,13 +576,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 13, + "request_seq": 14, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 14, + "seq": 15, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -583,20 +599,20 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 14, + "request_seq": 15, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* @@ -607,7 +623,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 15, + "seq": 16, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -622,13 +638,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 15, + "request_seq": 16, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 16, + "seq": 17, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -645,20 +661,20 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 16, + "request_seq": 17, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* @@ -669,7 +685,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 17, + "seq": 18, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -684,13 +700,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 17, + "request_seq": 18, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 18, + "seq": 19, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -707,20 +723,20 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 18, + "request_seq": 19, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* @@ -731,7 +747,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 19, + "seq": 20, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -746,13 +762,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 19, + "request_seq": 20, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 20, + "seq": 21, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -769,20 +785,20 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 20, + "request_seq": 21, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* @@ -793,7 +809,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 21, + "seq": 22, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -808,13 +824,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 21, + "request_seq": 22, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 22, + "seq": 23, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -831,20 +847,20 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 22, + "request_seq": 23, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* @@ -855,7 +871,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 23, + "seq": 24, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -870,13 +886,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 23, + "request_seq": 24, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 24, + "seq": 25, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -893,20 +909,20 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 24, + "request_seq": 25, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* @@ -917,7 +933,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 25, + "seq": 26, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -932,13 +948,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 25, + "request_seq": 26, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 26, + "seq": 27, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -955,20 +971,20 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 26, + "request_seq": 27, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* @@ -979,7 +995,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 27, + "seq": 28, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -994,13 +1010,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 27, + "request_seq": 28, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 28, + "seq": 29, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -1017,20 +1033,20 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 28, + "request_seq": 29, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* @@ -1041,7 +1057,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 29, + "seq": 30, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -1056,7 +1072,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 29, + "request_seq": 30, "success": true, "body": [ { @@ -1074,7 +1090,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 30, + "seq": 31, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -1091,20 +1107,20 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 30, + "request_seq": 31, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* @@ -1115,7 +1131,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 31, + "seq": 32, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -1132,20 +1148,20 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 31, + "request_seq": 32, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* @@ -1156,7 +1172,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 32, + "seq": 33, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -1171,13 +1187,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 32, + "request_seq": 33, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 33, + "seq": 34, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -1194,20 +1210,20 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 33, + "request_seq": 34, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* @@ -1218,7 +1234,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 34, + "seq": 35, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -1233,13 +1249,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 34, + "request_seq": 35, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 35, + "seq": 36, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -1256,20 +1272,20 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 35, + "request_seq": 36, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* @@ -1280,7 +1296,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 36, + "seq": 37, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -1295,13 +1311,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 36, + "request_seq": 37, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 37, + "seq": 38, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -1318,20 +1334,20 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 37, + "request_seq": 38, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* @@ -1342,7 +1358,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 38, + "seq": 39, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -1357,13 +1373,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 38, + "request_seq": 39, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 39, + "seq": 40, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -1380,20 +1396,20 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 39, + "request_seq": 40, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* @@ -1404,7 +1420,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 40, + "seq": 41, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -1419,13 +1435,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 40, + "request_seq": 41, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 41, + "seq": 42, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -1442,20 +1458,20 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 41, + "request_seq": 42, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* @@ -1466,7 +1482,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 42, + "seq": 43, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -1481,13 +1497,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 42, + "request_seq": 43, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 43, + "seq": 44, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -1504,20 +1520,20 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 43, + "request_seq": 44, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* @@ -1528,7 +1544,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 44, + "seq": 45, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -1543,13 +1559,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 44, + "request_seq": 45, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 45, + "seq": 46, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -1566,20 +1582,20 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 45, + "request_seq": 46, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* @@ -1590,7 +1606,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 46, + "seq": 47, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -1605,13 +1621,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 46, + "request_seq": 47, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 47, + "seq": 48, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -1628,20 +1644,20 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 47, + "request_seq": 48, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* @@ -1652,7 +1668,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 48, + "seq": 49, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -1667,13 +1683,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 48, + "request_seq": 49, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 49, + "seq": 50, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -1690,20 +1706,20 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 49, + "request_seq": 50, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* @@ -1714,7 +1730,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 50, + "seq": 51, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -1729,13 +1745,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 50, + "request_seq": 51, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 51, + "seq": 52, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -1752,20 +1768,20 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 51, + "request_seq": 52, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* @@ -1776,7 +1792,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 52, + "seq": 53, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -1791,13 +1807,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 52, + "request_seq": 53, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 53, + "seq": 54, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -1814,20 +1830,20 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 53, + "request_seq": 54, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* @@ -1838,7 +1854,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 54, + "seq": 55, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -1853,13 +1869,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 54, + "request_seq": 55, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 55, + "seq": 56, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -1876,20 +1892,20 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 55, + "request_seq": 56, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* @@ -1900,7 +1916,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 56, + "seq": 57, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -1915,7 +1931,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 56, + "request_seq": 57, "success": true, "body": [ { @@ -1933,7 +1949,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 57, + "seq": 58, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -1950,20 +1966,20 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 57, + "request_seq": 58, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* @@ -1974,7 +1990,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 58, + "seq": 59, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -1991,20 +2007,20 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 58, + "request_seq": 59, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* @@ -2015,7 +2031,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 59, + "seq": 60, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -2030,7 +2046,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 59, + "request_seq": 60, "success": true, "body": [ { @@ -2048,7 +2064,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 60, + "seq": 61, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -2065,20 +2081,20 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 60, + "request_seq": 61, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* @@ -2089,7 +2105,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 61, + "seq": 62, "type": "request", "arguments": { "preferences": { @@ -2104,12 +2120,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 61, + "request_seq": 62, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 62, + "seq": 63, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -2126,19 +2142,19 @@ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/p Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 2 projectProgramVersion: 1 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (5) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/node_modules/lib2/index.d.ts Text-1 "export class Lib2 {}" /home/src/workspaces/project/index.ts SVC-1-27 "import { } from 'lib2';\nLib1" - ../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' node_modules/lib2/index.d.ts Imported via 'lib2' from file 'index.ts' index.ts @@ -2150,7 +2166,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "syntacticDiagnosticsSync", - "request_seq": 62, + "request_seq": 63, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -2159,12 +2175,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: + {"pollingInterval":500} /home/src/workspaces/project/jsconfig.json: {"pollingInterval":2000} /home/src/workspaces/project/node_modules/lib2/index.d.ts: *new* @@ -2193,15 +2209,15 @@ Projects:: autoImportProviderHost: undefined *changed* ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* @@ -2216,7 +2232,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 63, + "seq": 64, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -2229,7 +2245,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "semanticDiagnosticsSync", - "request_seq": 63, + "request_seq": 64, "success": true, "body": [ { @@ -2251,7 +2267,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 64, + "seq": 65, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -2264,13 +2280,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "suggestionDiagnosticsSync", - "request_seq": 64, + "request_seq": 65, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 65, + "seq": 66, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -2352,7 +2368,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "getCodeFixes", - "request_seq": 65, + "request_seq": 66, "success": true, "performanceData": { "updateGraphDurationMs": *, @@ -2385,12 +2401,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: + {"pollingInterval":500} /home/src/workspaces/project/jsconfig.json: {"pollingInterval":2000} /home/src/workspaces/project/node_modules/lib1/index.d.ts: *new* @@ -2462,15 +2478,15 @@ Projects:: autoImportProviderHost: /dev/null/autoImportProviderProject1* *changed* ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* diff --git a/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider_exportMap1.js b/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider_exportMap1.js index ff12c948516ec..cc7bd0dd0d6ec 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider_exportMap1.js +++ b/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider_exportMap1.js @@ -1,16 +1,32 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "lib": [ + "es5" + ], + "module": "nodenext", + "target": "es5", + "newLine": "crlf", + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/home/src/workspaces/project/node_modules/dependency/lib/index.d.ts] export function fooFromIndex(): void; @@ -46,6 +62,7 @@ fooFrom //// [/home/src/workspaces/project/tsconfig.json] { "compilerOptions": { + "lib": ["es5"], "module": "nodenext" } } @@ -53,7 +70,7 @@ fooFrom Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/home/src/workspaces/project/tsconfig.json" @@ -68,6 +85,9 @@ Info seq [hh:mm:ss:mss] Config: /home/src/workspaces/project/tsconfig.json : { "/home/src/workspaces/project/src/foo.ts" ], "options": { + "lib": [ + "lib.es5.d.ts" + ], "module": 199, "configFilePath": "/home/src/workspaces/project/tsconfig.json" } @@ -86,19 +106,33 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspa Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project 1 undefined Config: /home/src/workspaces/project/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/src/foo.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/src/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.esnext.full.d.ts 500 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Missing file Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) -Info seq [hh:mm:ss:mss] Files (1) +Info seq [hh:mm:ss:mss] Files (4) + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text + /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/src/foo.ts Text-1 "fooFrom" + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions + ../../tslibs/TS/Lib/lib.decorators.d.ts + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' + ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' src/foo.ts Matched by default include pattern '**/*' File is ECMAScript module because 'package.json' has field "type" with value "module" @@ -121,62 +155,16 @@ Info seq [hh:mm:ss:mss] event: "body": { "triggerFile": "/home/src/workspaces/project/tsconfig.json", "configFile": "/home/src/workspaces/project/tsconfig.json", - "diagnostics": [ - { - "text": "File '/home/src/tslibs/TS/Lib/lib.esnext.full.d.ts' not found.\n The file is in the program because:\n Default library for target 'esnext'", - "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" - } - ] + "diagnostics": [] } } Info seq [hh:mm:ss:mss] getConfigFileNameForFile:: File: /home/src/workspaces/project/tsconfig.json ProjectRootPath: undefined:: Result: undefined Info seq [hh:mm:ss:mss] Creating InferredProject: /dev/null/inferredProject1*, currentDirectory: /home/src/workspaces/project Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots @@ -184,18 +172,18 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text - /home/src/workspaces/project/tsconfig.json SVC-1-0 "{\n \"compilerOptions\": {\n \"module\": \"nodenext\"\n }\n}" + /home/src/workspaces/project/tsconfig.json SVC-1-0 "{\n \"compilerOptions\": {\n \"lib\": [\"es5\"],\n \"module\": \"nodenext\"\n }\n}" - ../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' tsconfig.json Root file specified for compilation @@ -224,7 +212,7 @@ Info seq [hh:mm:ss:mss] Files (2) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) -Info seq [hh:mm:ss:mss] Files (1) +Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) @@ -243,7 +231,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": *, @@ -252,14 +240,21 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} -/home/src/tslibs/TS/Lib/lib.esnext.full.d.ts: *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/package.json: *new* + {"pollingInterval":2000} + {"pollingInterval":2000} +/home/src/tslibs/TS/package.json: *new* + {"pollingInterval":2000} + {"pollingInterval":2000} +/home/src/tslibs/package.json: *new* + {"pollingInterval":2000} + {"pollingInterval":2000} /home/src/workspaces/project/jsconfig.json: *new* {"pollingInterval":2000} /home/src/workspaces/project/node_modules/dependency/lib/index.d.ts: *new* @@ -304,17 +299,20 @@ Projects:: noOpenRef: true ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* - version: Text-1 - containingProjects: 1 - /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/workspaces/project/node_modules/dependency/lib/index.d.ts *new* version: Text-1 @@ -335,7 +333,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/foo.ts" @@ -345,7 +343,7 @@ Info seq [hh:mm:ss:mss] request: Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /home/src/workspaces/project/src/foo.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] getConfigFileNameForFile:: File: /home/src/workspaces/project/src/foo.ts ProjectRootPath: undefined:: Result: /home/src/workspaces/project/tsconfig.json Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) -Info seq [hh:mm:ss:mss] Files (1) +Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) @@ -366,19 +364,26 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 1, + "request_seq": 2, "success": true } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} -/home/src/tslibs/TS/Lib/lib.esnext.full.d.ts: +/home/src/tslibs/TS/Lib/lib.es5.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} +/home/src/tslibs/TS/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} +/home/src/tslibs/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} /home/src/workspaces/project/jsconfig.json: {"pollingInterval":2000} /home/src/workspaces/project/node_modules/dependency/lib/index.d.ts: @@ -425,17 +430,20 @@ Projects:: noOpenRef: false *changed* ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts - version: Text-1 - containingProjects: 1 - /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.es5.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/workspaces/project/node_modules/dependency/lib/index.d.ts version: Text-1 @@ -457,7 +465,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "preferences": { @@ -473,7 +481,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 2, + "request_seq": 3, "success": true } After Request @@ -492,7 +500,7 @@ Projects:: Info seq [hh:mm:ss:mss] request: { - "seq": 3, + "seq": 4, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/foo.ts", @@ -539,7 +547,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "completionInfo", - "request_seq": 3, + "request_seq": 4, "success": true, "performanceData": { "updateGraphDurationMs": *, @@ -573,6 +581,18 @@ Info seq [hh:mm:ss:mss] response: "kindModifiers": "", "sortText": "15" }, + { + "name": "Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "ArrayBuffer", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "as", "kind": "keyword", @@ -609,6 +629,12 @@ Info seq [hh:mm:ss:mss] response: "kindModifiers": "", "sortText": "15" }, + { + "name": "Boolean", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "break", "kind": "keyword", @@ -645,6 +671,18 @@ Info seq [hh:mm:ss:mss] response: "kindModifiers": "", "sortText": "15" }, + { + "name": "DataView", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Date", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "debugger", "kind": "keyword", @@ -657,6 +695,18 @@ Info seq [hh:mm:ss:mss] response: "kindModifiers": "", "sortText": "15" }, + { + "name": "decodeURI", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "decodeURIComponent", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "default", "kind": "keyword", @@ -681,12 +731,42 @@ Info seq [hh:mm:ss:mss] response: "kindModifiers": "", "sortText": "15" }, + { + "name": "encodeURI", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "encodeURIComponent", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "enum", "kind": "keyword", "kindModifiers": "", "sortText": "15" }, + { + "name": "Error", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "eval", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "EvalError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "export", "kind": "keyword", @@ -711,6 +791,18 @@ Info seq [hh:mm:ss:mss] response: "kindModifiers": "", "sortText": "15" }, + { + "name": "Float32Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Float64Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "for", "kind": "keyword", @@ -723,6 +815,12 @@ Info seq [hh:mm:ss:mss] response: "kindModifiers": "", "sortText": "15" }, + { + "name": "Function", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "globalThis", "kind": "module", @@ -759,18 +857,66 @@ Info seq [hh:mm:ss:mss] response: "kindModifiers": "", "sortText": "15" }, + { + "name": "Infinity", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "instanceof", "kind": "keyword", "kindModifiers": "", "sortText": "15" }, + { + "name": "Int8Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Int16Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Int32Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "interface", "kind": "keyword", "kindModifiers": "", "sortText": "15" }, + { + "name": "Intl", + "kind": "module", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "isFinite", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "isNaN", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "JSON", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "keyof", "kind": "keyword", @@ -783,6 +929,12 @@ Info seq [hh:mm:ss:mss] response: "kindModifiers": "", "sortText": "15" }, + { + "name": "Math", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "module", "kind": "keyword", @@ -795,6 +947,12 @@ Info seq [hh:mm:ss:mss] response: "kindModifiers": "", "sortText": "15" }, + { + "name": "NaN", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "never", "kind": "keyword", @@ -819,24 +977,66 @@ Info seq [hh:mm:ss:mss] response: "kindModifiers": "", "sortText": "15" }, + { + "name": "Number", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "object", "kind": "keyword", "kindModifiers": "", "sortText": "15" }, + { + "name": "Object", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "package", "kind": "keyword", "kindModifiers": "", "sortText": "15" }, + { + "name": "parseFloat", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "parseInt", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "RangeError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "readonly", "kind": "keyword", "kindModifiers": "", "sortText": "15" }, + { + "name": "ReferenceError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "RegExp", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "return", "kind": "keyword", @@ -855,6 +1055,12 @@ Info seq [hh:mm:ss:mss] response: "kindModifiers": "", "sortText": "15" }, + { + "name": "String", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "super", "kind": "keyword", @@ -873,6 +1079,12 @@ Info seq [hh:mm:ss:mss] response: "kindModifiers": "", "sortText": "15" }, + { + "name": "SyntaxError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "this", "kind": "keyword", @@ -903,12 +1115,42 @@ Info seq [hh:mm:ss:mss] response: "kindModifiers": "", "sortText": "15" }, + { + "name": "TypeError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "typeof", "kind": "keyword", "kindModifiers": "", "sortText": "15" }, + { + "name": "Uint8Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Uint8ClampedArray", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Uint16Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Uint32Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "undefined", "kind": "var", @@ -927,6 +1169,12 @@ Info seq [hh:mm:ss:mss] response: "kindModifiers": "", "sortText": "15" }, + { + "name": "URIError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "using", "kind": "keyword", @@ -1006,6 +1254,18 @@ Info seq [hh:mm:ss:mss] response: "fileName": "/home/src/workspaces/project/node_modules/dependency/lib/lol.d.ts", "isPackageJsonImport": true } + }, + { + "name": "escape", + "kind": "function", + "kindModifiers": "deprecated,declare", + "sortText": "z15" + }, + { + "name": "unescape", + "kind": "function", + "kindModifiers": "deprecated,declare", + "sortText": "z15" } ], "defaultCommitCharacters": [ @@ -1017,14 +1277,21 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} -/home/src/tslibs/TS/Lib/lib.esnext.full.d.ts: +/home/src/tslibs/TS/Lib/lib.es5.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} +/home/src/tslibs/TS/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} +/home/src/tslibs/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} /home/src/workspaces/project/jsconfig.json: {"pollingInterval":2000} /home/src/workspaces/project/node_modules/dependency/lib/index.d.ts: @@ -1075,17 +1342,20 @@ Projects:: autoImportProviderHost: /dev/null/autoImportProviderProject2* *changed* ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts - version: Text-1 - containingProjects: 1 - /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.es5.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/workspaces/project/node_modules/dependency/lib/index.d.ts *changed* version: Text-1 diff --git a/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider_exportMap2.js b/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider_exportMap2.js index 1829d3fe26653..b684e889c9729 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider_exportMap2.js +++ b/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider_exportMap2.js @@ -1,16 +1,33 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "lib": [ + "es5" + ], + "module": "commonjs", + "moduleResolution": "node10", + "target": "es5", + "newLine": "crlf", + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/home/src/workspaces/project/node_modules/dependency/lib/index.d.ts] export function fooFromIndex(): void; @@ -47,15 +64,16 @@ fooFrom //// [/home/src/workspaces/project/tsconfig.json] { "compilerOptions": { - "module": "commonjs" - "moduleResolution": "node10", + "lib": ["es5"], + "module": "commonjs", + "moduleResolution": "node10" } } Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/home/src/workspaces/project/tsconfig.json" @@ -70,6 +88,9 @@ Info seq [hh:mm:ss:mss] Config: /home/src/workspaces/project/tsconfig.json : { "/home/src/workspaces/project/src/foo.ts" ], "options": { + "lib": [ + "lib.es5.d.ts" + ], "module": 1, "moduleResolution": 2, "configFilePath": "/home/src/workspaces/project/tsconfig.json" @@ -89,7 +110,7 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspa Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project 1 undefined Config: /home/src/workspaces/project/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/src/foo.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots @@ -99,18 +120,18 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/src/foo.ts Text-1 "fooFrom" - ../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' src/foo.ts Matched by default include pattern '**/*' @@ -135,31 +156,17 @@ Info seq [hh:mm:ss:mss] event: "diagnostics": [ { "start": { - "line": 4, + "line": 5, "offset": 25 }, "end": { - "line": 4, + "line": 5, "offset": 33 }, "text": "Option 'moduleResolution=node10' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '\"ignoreDeprecations\": \"6.0\"' to silence this error.\n Visit https://aka.ms/ts6 for migration information.", "code": 5107, "category": "error", "fileName": "/home/src/workspaces/project/tsconfig.json" - }, - { - "start": { - "line": 4, - "offset": 5 - }, - "end": { - "line": 4, - "offset": 23 - }, - "text": "',' expected.", - "code": 1005, - "category": "error", - "fileName": "/home/src/workspaces/project/tsconfig.json" } ] } @@ -175,43 +182,38 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text - /home/src/workspaces/project/tsconfig.json SVC-1-0 "{\n \"compilerOptions\": {\n \"module\": \"commonjs\"\n \"moduleResolution\": \"node10\",\n }\n}" + /home/src/workspaces/project/tsconfig.json SVC-1-0 "{\n \"compilerOptions\": {\n \"lib\": [\"es5\"],\n \"module\": \"commonjs\",\n \"moduleResolution\": \"node10\"\n }\n}" - ../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' tsconfig.json Root file specified for compilation Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/package.json 250 undefined WatchType: package.json file -Info seq [hh:mm:ss:mss] AutoImportProviderProject: found 2 root files in 1 dependencies 0 referenced projects in * ms +Info seq [hh:mm:ss:mss] AutoImportProviderProject: found 1 root files in 1 dependencies 0 referenced projects in * ms Info seq [hh:mm:ss:mss] Creating AutoImportProviderProject: /dev/null/autoImportProviderProject1*, currentDirectory: /home/src/workspaces/project Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/dependency/lib/index.d.ts 500 undefined WatchType: Closed Script info -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/dependency/lib/lol.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/autoImportProviderProject1* Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/dependency/lib/package.json 2000 undefined Project: /dev/null/autoImportProviderProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/dependency/package.json 2000 undefined Project: /dev/null/autoImportProviderProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/autoImportProviderProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/autoImportProviderProject1*' (AutoImportProvider) -Info seq [hh:mm:ss:mss] Files (2) +Info seq [hh:mm:ss:mss] Files (1) /home/src/workspaces/project/node_modules/dependency/lib/index.d.ts Text-1 "export function fooFromIndex(): void;" - /home/src/workspaces/project/node_modules/dependency/lib/lol.d.ts Text-1 "export function fooFromLol(): void;" node_modules/dependency/lib/index.d.ts Root file specified for compilation File is ECMAScript module because 'node_modules/dependency/package.json' has field "type" with value "module" - node_modules/dependency/lib/lol.d.ts - Root file specified for compilation - File is ECMAScript module because 'node_modules/dependency/package.json' has field "type" with value "module" Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) @@ -223,7 +225,7 @@ Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Project '/dev/null/autoImportProviderProject1*' (AutoImportProvider) -Info seq [hh:mm:ss:mss] Files (2) +Info seq [hh:mm:ss:mss] Files (1) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Open files: @@ -234,7 +236,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": *, @@ -243,18 +245,16 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* + {"pollingInterval":500} /home/src/workspaces/project/jsconfig.json: *new* {"pollingInterval":2000} /home/src/workspaces/project/node_modules/dependency/lib/index.d.ts: *new* {"pollingInterval":500} -/home/src/workspaces/project/node_modules/dependency/lib/lol.d.ts: *new* - {"pollingInterval":500} /home/src/workspaces/project/node_modules/dependency/lib/package.json: *new* {"pollingInterval":2000} /home/src/workspaces/project/node_modules/dependency/package.json: *new* @@ -290,17 +290,17 @@ Projects:: noOpenRef: true ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -309,10 +309,6 @@ ScriptInfos:: version: Text-1 containingProjects: 1 /dev/null/autoImportProviderProject1* -/home/src/workspaces/project/node_modules/dependency/lib/lol.d.ts *new* - version: Text-1 - containingProjects: 1 - /dev/null/autoImportProviderProject1* /home/src/workspaces/project/src/foo.ts *new* version: Text-1 containingProjects: 1 @@ -324,7 +320,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/foo.ts" @@ -342,7 +338,7 @@ Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Project '/dev/null/autoImportProviderProject1*' (AutoImportProvider) -Info seq [hh:mm:ss:mss] Files (2) +Info seq [hh:mm:ss:mss] Files (1) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Open files: @@ -355,23 +351,21 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 1, + "request_seq": 2, "success": true } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: + {"pollingInterval":500} /home/src/workspaces/project/jsconfig.json: {"pollingInterval":2000} /home/src/workspaces/project/node_modules/dependency/lib/index.d.ts: {"pollingInterval":500} -/home/src/workspaces/project/node_modules/dependency/lib/lol.d.ts: - {"pollingInterval":500} /home/src/workspaces/project/node_modules/dependency/lib/package.json: {"pollingInterval":2000} /home/src/workspaces/project/node_modules/dependency/package.json: @@ -409,17 +403,17 @@ Projects:: noOpenRef: false *changed* ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -428,10 +422,6 @@ ScriptInfos:: version: Text-1 containingProjects: 1 /dev/null/autoImportProviderProject1* -/home/src/workspaces/project/node_modules/dependency/lib/lol.d.ts - version: Text-1 - containingProjects: 1 - /dev/null/autoImportProviderProject1* /home/src/workspaces/project/src/foo.ts (Open) *changed* open: true *changed* version: Text-1 @@ -444,7 +434,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "preferences": { @@ -460,7 +450,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 2, + "request_seq": 3, "success": true } After Request @@ -479,7 +469,7 @@ Projects:: Info seq [hh:mm:ss:mss] request: { - "seq": 3, + "seq": 4, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/foo.ts", @@ -522,7 +512,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "completionInfo", - "request_seq": 3, + "request_seq": 4, "success": true, "performanceData": { "updateGraphDurationMs": *, @@ -1230,18 +1220,16 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: + {"pollingInterval":500} /home/src/workspaces/project/jsconfig.json: {"pollingInterval":2000} /home/src/workspaces/project/node_modules/dependency/lib/index.d.ts: {"pollingInterval":500} -/home/src/workspaces/project/node_modules/dependency/lib/lol.d.ts: - {"pollingInterval":500} /home/src/workspaces/project/node_modules/dependency/lib/package.json: {"pollingInterval":2000} {"pollingInterval":2000} *new* @@ -1283,17 +1271,17 @@ Projects:: autoImportProviderHost: /dev/null/autoImportProviderProject2* *changed* ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -1303,10 +1291,6 @@ ScriptInfos:: containingProjects: 2 *changed* /dev/null/autoImportProviderProject1* /dev/null/autoImportProviderProject2* *new* -/home/src/workspaces/project/node_modules/dependency/lib/lol.d.ts - version: Text-1 - containingProjects: 1 - /dev/null/autoImportProviderProject1* /home/src/workspaces/project/src/foo.ts (Open) version: Text-1 containingProjects: 1 diff --git a/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider_exportMap3.js b/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider_exportMap3.js index cc00f6b1f0e15..5704f08a5b000 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider_exportMap3.js +++ b/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider_exportMap3.js @@ -1,16 +1,32 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "module": "nodenext", + "lib": [ + "es5" + ], + "target": "es5", + "newLine": "crlf", + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/home/src/workspaces/project/node_modules/dependency/lib/index.d.ts] export function fooFromIndex(): void; @@ -39,14 +55,15 @@ fooFrom //// [/home/src/workspaces/project/tsconfig.json] { "compilerOptions": { - "module": "nodenext" + "module": "nodenext", + "lib": ["es5"] } } Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/home/src/workspaces/project/tsconfig.json" @@ -62,6 +79,9 @@ Info seq [hh:mm:ss:mss] Config: /home/src/workspaces/project/tsconfig.json : { ], "options": { "module": 199, + "lib": [ + "lib.es5.d.ts" + ], "configFilePath": "/home/src/workspaces/project/tsconfig.json" } } @@ -79,19 +99,33 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspa Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project 1 undefined Config: /home/src/workspaces/project/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/src/foo.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/src/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.esnext.full.d.ts 500 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Missing file Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) -Info seq [hh:mm:ss:mss] Files (1) +Info seq [hh:mm:ss:mss] Files (4) + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text + /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/src/foo.ts Text-1 "fooFrom" + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions + ../../tslibs/TS/Lib/lib.decorators.d.ts + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' + ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' src/foo.ts Matched by default include pattern '**/*' File is ECMAScript module because 'package.json' has field "type" with value "module" @@ -114,62 +148,16 @@ Info seq [hh:mm:ss:mss] event: "body": { "triggerFile": "/home/src/workspaces/project/tsconfig.json", "configFile": "/home/src/workspaces/project/tsconfig.json", - "diagnostics": [ - { - "text": "File '/home/src/tslibs/TS/Lib/lib.esnext.full.d.ts' not found.\n The file is in the program because:\n Default library for target 'esnext'", - "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" - } - ] + "diagnostics": [] } } Info seq [hh:mm:ss:mss] getConfigFileNameForFile:: File: /home/src/workspaces/project/tsconfig.json ProjectRootPath: undefined:: Result: undefined Info seq [hh:mm:ss:mss] Creating InferredProject: /dev/null/inferredProject1*, currentDirectory: /home/src/workspaces/project Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots @@ -177,18 +165,18 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text - /home/src/workspaces/project/tsconfig.json SVC-1-0 "{\n \"compilerOptions\": {\n \"module\": \"nodenext\"\n }\n}" + /home/src/workspaces/project/tsconfig.json SVC-1-0 "{\n \"compilerOptions\": {\n \"module\": \"nodenext\",\n \"lib\": [\"es5\"]\n }\n}" - ../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' tsconfig.json Root file specified for compilation @@ -210,12 +198,14 @@ Info seq [hh:mm:ss:mss] Files (2) node_modules/dependency/lib/index.d.ts Root file specified for compilation + File is CommonJS module because 'node_modules/dependency/package.json' does not have field "type" node_modules/dependency/lib/lol.d.ts Root file specified for compilation + File is CommonJS module because 'node_modules/dependency/package.json' does not have field "type" Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) -Info seq [hh:mm:ss:mss] Files (1) +Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) @@ -234,7 +224,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": *, @@ -243,14 +233,21 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} -/home/src/tslibs/TS/Lib/lib.esnext.full.d.ts: *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/package.json: *new* + {"pollingInterval":2000} + {"pollingInterval":2000} +/home/src/tslibs/TS/package.json: *new* + {"pollingInterval":2000} + {"pollingInterval":2000} +/home/src/tslibs/package.json: *new* + {"pollingInterval":2000} + {"pollingInterval":2000} /home/src/workspaces/project/jsconfig.json: *new* {"pollingInterval":2000} /home/src/workspaces/project/node_modules/dependency/lib/index.d.ts: *new* @@ -295,17 +292,20 @@ Projects:: noOpenRef: true ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* - version: Text-1 - containingProjects: 1 - /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/workspaces/project/node_modules/dependency/lib/index.d.ts *new* version: Text-1 @@ -326,7 +326,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/foo.ts" @@ -336,7 +336,7 @@ Info seq [hh:mm:ss:mss] request: Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /home/src/workspaces/project/src/foo.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] getConfigFileNameForFile:: File: /home/src/workspaces/project/src/foo.ts ProjectRootPath: undefined:: Result: /home/src/workspaces/project/tsconfig.json Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) -Info seq [hh:mm:ss:mss] Files (1) +Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) @@ -357,19 +357,26 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 1, + "request_seq": 2, "success": true } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} -/home/src/tslibs/TS/Lib/lib.esnext.full.d.ts: +/home/src/tslibs/TS/Lib/lib.es5.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} +/home/src/tslibs/TS/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} +/home/src/tslibs/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} /home/src/workspaces/project/jsconfig.json: {"pollingInterval":2000} /home/src/workspaces/project/node_modules/dependency/lib/index.d.ts: @@ -416,17 +423,20 @@ Projects:: noOpenRef: false *changed* ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts - version: Text-1 - containingProjects: 1 - /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.es5.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/workspaces/project/node_modules/dependency/lib/index.d.ts version: Text-1 @@ -448,7 +458,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "preferences": { @@ -464,7 +474,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 2, + "request_seq": 3, "success": true } After Request @@ -483,7 +493,7 @@ Projects:: Info seq [hh:mm:ss:mss] request: { - "seq": 3, + "seq": 4, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/foo.ts", @@ -530,7 +540,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "completionInfo", - "request_seq": 3, + "request_seq": 4, "success": true, "performanceData": { "updateGraphDurationMs": *, @@ -564,6 +574,18 @@ Info seq [hh:mm:ss:mss] response: "kindModifiers": "", "sortText": "15" }, + { + "name": "Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "ArrayBuffer", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "as", "kind": "keyword", @@ -600,6 +622,12 @@ Info seq [hh:mm:ss:mss] response: "kindModifiers": "", "sortText": "15" }, + { + "name": "Boolean", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "break", "kind": "keyword", @@ -636,6 +664,18 @@ Info seq [hh:mm:ss:mss] response: "kindModifiers": "", "sortText": "15" }, + { + "name": "DataView", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Date", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "debugger", "kind": "keyword", @@ -648,6 +688,18 @@ Info seq [hh:mm:ss:mss] response: "kindModifiers": "", "sortText": "15" }, + { + "name": "decodeURI", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "decodeURIComponent", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "default", "kind": "keyword", @@ -672,12 +724,42 @@ Info seq [hh:mm:ss:mss] response: "kindModifiers": "", "sortText": "15" }, + { + "name": "encodeURI", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "encodeURIComponent", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "enum", "kind": "keyword", "kindModifiers": "", "sortText": "15" }, + { + "name": "Error", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "eval", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "EvalError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "export", "kind": "keyword", @@ -702,6 +784,18 @@ Info seq [hh:mm:ss:mss] response: "kindModifiers": "", "sortText": "15" }, + { + "name": "Float32Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Float64Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "for", "kind": "keyword", @@ -714,6 +808,12 @@ Info seq [hh:mm:ss:mss] response: "kindModifiers": "", "sortText": "15" }, + { + "name": "Function", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "globalThis", "kind": "module", @@ -750,18 +850,66 @@ Info seq [hh:mm:ss:mss] response: "kindModifiers": "", "sortText": "15" }, + { + "name": "Infinity", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "instanceof", "kind": "keyword", "kindModifiers": "", "sortText": "15" }, + { + "name": "Int8Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Int16Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Int32Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "interface", "kind": "keyword", "kindModifiers": "", "sortText": "15" }, + { + "name": "Intl", + "kind": "module", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "isFinite", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "isNaN", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "JSON", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "keyof", "kind": "keyword", @@ -774,6 +922,12 @@ Info seq [hh:mm:ss:mss] response: "kindModifiers": "", "sortText": "15" }, + { + "name": "Math", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "module", "kind": "keyword", @@ -786,6 +940,12 @@ Info seq [hh:mm:ss:mss] response: "kindModifiers": "", "sortText": "15" }, + { + "name": "NaN", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "never", "kind": "keyword", @@ -810,24 +970,66 @@ Info seq [hh:mm:ss:mss] response: "kindModifiers": "", "sortText": "15" }, + { + "name": "Number", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "object", "kind": "keyword", "kindModifiers": "", "sortText": "15" }, + { + "name": "Object", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "package", "kind": "keyword", "kindModifiers": "", "sortText": "15" }, + { + "name": "parseFloat", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "parseInt", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "RangeError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "readonly", "kind": "keyword", "kindModifiers": "", "sortText": "15" }, + { + "name": "ReferenceError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "RegExp", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "return", "kind": "keyword", @@ -846,6 +1048,12 @@ Info seq [hh:mm:ss:mss] response: "kindModifiers": "", "sortText": "15" }, + { + "name": "String", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "super", "kind": "keyword", @@ -864,6 +1072,12 @@ Info seq [hh:mm:ss:mss] response: "kindModifiers": "", "sortText": "15" }, + { + "name": "SyntaxError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "this", "kind": "keyword", @@ -894,12 +1108,42 @@ Info seq [hh:mm:ss:mss] response: "kindModifiers": "", "sortText": "15" }, + { + "name": "TypeError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "typeof", "kind": "keyword", "kindModifiers": "", "sortText": "15" }, + { + "name": "Uint8Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Uint8ClampedArray", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Uint16Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Uint32Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "undefined", "kind": "var", @@ -918,6 +1162,12 @@ Info seq [hh:mm:ss:mss] response: "kindModifiers": "", "sortText": "15" }, + { + "name": "URIError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "using", "kind": "keyword", @@ -975,6 +1225,18 @@ Info seq [hh:mm:ss:mss] response: "fileName": "/home/src/workspaces/project/node_modules/dependency/lib/lol.d.ts", "isPackageJsonImport": true } + }, + { + "name": "escape", + "kind": "function", + "kindModifiers": "deprecated,declare", + "sortText": "z15" + }, + { + "name": "unescape", + "kind": "function", + "kindModifiers": "deprecated,declare", + "sortText": "z15" } ], "defaultCommitCharacters": [ @@ -986,14 +1248,21 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} -/home/src/tslibs/TS/Lib/lib.esnext.full.d.ts: +/home/src/tslibs/TS/Lib/lib.es5.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} +/home/src/tslibs/TS/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} +/home/src/tslibs/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} /home/src/workspaces/project/jsconfig.json: {"pollingInterval":2000} /home/src/workspaces/project/node_modules/dependency/lib/index.d.ts: @@ -1044,17 +1313,20 @@ Projects:: autoImportProviderHost: /dev/null/autoImportProviderProject2* *changed* ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts - version: Text-1 - containingProjects: 1 - /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.es5.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/workspaces/project/node_modules/dependency/lib/index.d.ts *changed* version: Text-1 diff --git a/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider_exportMap4.js b/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider_exportMap4.js index 1e7affe612b50..efc0516a838a7 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider_exportMap4.js +++ b/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider_exportMap4.js @@ -1,16 +1,32 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "module": "nodenext", + "lib": [ + "es5" + ], + "target": "es5", + "newLine": "crlf", + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/home/src/workspaces/project/node_modules/dependency/lib/index.d.ts] export function fooFromIndex(): void; @@ -42,14 +58,15 @@ fooFrom //// [/home/src/workspaces/project/tsconfig.json] { "compilerOptions": { - "module": "nodenext" + "module": "nodenext", + "lib": ["es5"] } } Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/home/src/workspaces/project/tsconfig.json" @@ -65,6 +82,9 @@ Info seq [hh:mm:ss:mss] Config: /home/src/workspaces/project/tsconfig.json : { ], "options": { "module": 199, + "lib": [ + "lib.es5.d.ts" + ], "configFilePath": "/home/src/workspaces/project/tsconfig.json" } } @@ -82,19 +102,33 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspa Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project 1 undefined Config: /home/src/workspaces/project/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/src/foo.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/src/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.esnext.full.d.ts 500 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Missing file Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) -Info seq [hh:mm:ss:mss] Files (1) +Info seq [hh:mm:ss:mss] Files (4) + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text + /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/src/foo.ts Text-1 "fooFrom" + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions + ../../tslibs/TS/Lib/lib.decorators.d.ts + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' + ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' src/foo.ts Matched by default include pattern '**/*' File is ECMAScript module because 'package.json' has field "type" with value "module" @@ -117,62 +151,16 @@ Info seq [hh:mm:ss:mss] event: "body": { "triggerFile": "/home/src/workspaces/project/tsconfig.json", "configFile": "/home/src/workspaces/project/tsconfig.json", - "diagnostics": [ - { - "text": "File '/home/src/tslibs/TS/Lib/lib.esnext.full.d.ts' not found.\n The file is in the program because:\n Default library for target 'esnext'", - "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" - } - ] + "diagnostics": [] } } Info seq [hh:mm:ss:mss] getConfigFileNameForFile:: File: /home/src/workspaces/project/tsconfig.json ProjectRootPath: undefined:: Result: undefined Info seq [hh:mm:ss:mss] Creating InferredProject: /dev/null/inferredProject1*, currentDirectory: /home/src/workspaces/project Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots @@ -180,18 +168,18 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text - /home/src/workspaces/project/tsconfig.json SVC-1-0 "{\n \"compilerOptions\": {\n \"module\": \"nodenext\"\n }\n}" + /home/src/workspaces/project/tsconfig.json SVC-1-0 "{\n \"compilerOptions\": {\n \"module\": \"nodenext\",\n \"lib\": [\"es5\"]\n }\n}" - ../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' tsconfig.json Root file specified for compilation @@ -215,7 +203,7 @@ Info seq [hh:mm:ss:mss] Files (1) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) -Info seq [hh:mm:ss:mss] Files (1) +Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) @@ -234,7 +222,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": *, @@ -243,14 +231,21 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} -/home/src/tslibs/TS/Lib/lib.esnext.full.d.ts: *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/package.json: *new* + {"pollingInterval":2000} + {"pollingInterval":2000} +/home/src/tslibs/TS/package.json: *new* + {"pollingInterval":2000} + {"pollingInterval":2000} +/home/src/tslibs/package.json: *new* + {"pollingInterval":2000} + {"pollingInterval":2000} /home/src/workspaces/project/jsconfig.json: *new* {"pollingInterval":2000} /home/src/workspaces/project/node_modules/dependency/lib/index.d.ts: *new* @@ -293,17 +288,20 @@ Projects:: noOpenRef: true ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* - version: Text-1 - containingProjects: 1 - /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/workspaces/project/node_modules/dependency/lib/index.d.ts *new* version: Text-1 @@ -320,7 +318,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/foo.ts" @@ -330,7 +328,7 @@ Info seq [hh:mm:ss:mss] request: Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /home/src/workspaces/project/src/foo.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] getConfigFileNameForFile:: File: /home/src/workspaces/project/src/foo.ts ProjectRootPath: undefined:: Result: /home/src/workspaces/project/tsconfig.json Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) -Info seq [hh:mm:ss:mss] Files (1) +Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) @@ -351,19 +349,26 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 1, + "request_seq": 2, "success": true } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} -/home/src/tslibs/TS/Lib/lib.esnext.full.d.ts: +/home/src/tslibs/TS/Lib/lib.es5.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} +/home/src/tslibs/TS/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} +/home/src/tslibs/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} /home/src/workspaces/project/jsconfig.json: {"pollingInterval":2000} /home/src/workspaces/project/node_modules/dependency/lib/index.d.ts: @@ -408,17 +413,20 @@ Projects:: noOpenRef: false *changed* ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts - version: Text-1 - containingProjects: 1 - /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.es5.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/workspaces/project/node_modules/dependency/lib/index.d.ts version: Text-1 @@ -436,7 +444,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "preferences": { @@ -452,7 +460,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 2, + "request_seq": 3, "success": true } After Request @@ -471,7 +479,7 @@ Projects:: Info seq [hh:mm:ss:mss] request: { - "seq": 3, + "seq": 4, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/foo.ts", @@ -514,7 +522,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "completionInfo", - "request_seq": 3, + "request_seq": 4, "success": true, "performanceData": { "updateGraphDurationMs": *, @@ -548,6 +556,18 @@ Info seq [hh:mm:ss:mss] response: "kindModifiers": "", "sortText": "15" }, + { + "name": "Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "ArrayBuffer", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "as", "kind": "keyword", @@ -584,6 +604,12 @@ Info seq [hh:mm:ss:mss] response: "kindModifiers": "", "sortText": "15" }, + { + "name": "Boolean", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "break", "kind": "keyword", @@ -620,6 +646,18 @@ Info seq [hh:mm:ss:mss] response: "kindModifiers": "", "sortText": "15" }, + { + "name": "DataView", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Date", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "debugger", "kind": "keyword", @@ -632,6 +670,18 @@ Info seq [hh:mm:ss:mss] response: "kindModifiers": "", "sortText": "15" }, + { + "name": "decodeURI", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "decodeURIComponent", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "default", "kind": "keyword", @@ -656,12 +706,42 @@ Info seq [hh:mm:ss:mss] response: "kindModifiers": "", "sortText": "15" }, + { + "name": "encodeURI", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "encodeURIComponent", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "enum", "kind": "keyword", "kindModifiers": "", "sortText": "15" }, + { + "name": "Error", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "eval", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "EvalError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "export", "kind": "keyword", @@ -686,6 +766,18 @@ Info seq [hh:mm:ss:mss] response: "kindModifiers": "", "sortText": "15" }, + { + "name": "Float32Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Float64Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "for", "kind": "keyword", @@ -698,6 +790,12 @@ Info seq [hh:mm:ss:mss] response: "kindModifiers": "", "sortText": "15" }, + { + "name": "Function", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "globalThis", "kind": "module", @@ -734,18 +832,66 @@ Info seq [hh:mm:ss:mss] response: "kindModifiers": "", "sortText": "15" }, + { + "name": "Infinity", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "instanceof", "kind": "keyword", "kindModifiers": "", "sortText": "15" }, + { + "name": "Int8Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Int16Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Int32Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "interface", "kind": "keyword", "kindModifiers": "", "sortText": "15" }, + { + "name": "Intl", + "kind": "module", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "isFinite", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "isNaN", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "JSON", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "keyof", "kind": "keyword", @@ -758,6 +904,12 @@ Info seq [hh:mm:ss:mss] response: "kindModifiers": "", "sortText": "15" }, + { + "name": "Math", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "module", "kind": "keyword", @@ -770,6 +922,12 @@ Info seq [hh:mm:ss:mss] response: "kindModifiers": "", "sortText": "15" }, + { + "name": "NaN", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "never", "kind": "keyword", @@ -794,24 +952,66 @@ Info seq [hh:mm:ss:mss] response: "kindModifiers": "", "sortText": "15" }, + { + "name": "Number", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "object", "kind": "keyword", "kindModifiers": "", "sortText": "15" }, + { + "name": "Object", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "package", "kind": "keyword", "kindModifiers": "", "sortText": "15" }, + { + "name": "parseFloat", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "parseInt", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "RangeError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "readonly", "kind": "keyword", "kindModifiers": "", "sortText": "15" }, + { + "name": "ReferenceError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "RegExp", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "return", "kind": "keyword", @@ -830,6 +1030,12 @@ Info seq [hh:mm:ss:mss] response: "kindModifiers": "", "sortText": "15" }, + { + "name": "String", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "super", "kind": "keyword", @@ -848,6 +1054,12 @@ Info seq [hh:mm:ss:mss] response: "kindModifiers": "", "sortText": "15" }, + { + "name": "SyntaxError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "this", "kind": "keyword", @@ -878,12 +1090,42 @@ Info seq [hh:mm:ss:mss] response: "kindModifiers": "", "sortText": "15" }, + { + "name": "TypeError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "typeof", "kind": "keyword", "kindModifiers": "", "sortText": "15" }, + { + "name": "Uint8Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Uint8ClampedArray", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Uint16Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Uint32Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "undefined", "kind": "var", @@ -902,6 +1144,12 @@ Info seq [hh:mm:ss:mss] response: "kindModifiers": "", "sortText": "15" }, + { + "name": "URIError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "using", "kind": "keyword", @@ -959,6 +1207,18 @@ Info seq [hh:mm:ss:mss] response: "fileName": "/home/src/workspaces/project/node_modules/dependency/lib/index.d.ts", "isPackageJsonImport": true } + }, + { + "name": "escape", + "kind": "function", + "kindModifiers": "deprecated,declare", + "sortText": "z15" + }, + { + "name": "unescape", + "kind": "function", + "kindModifiers": "deprecated,declare", + "sortText": "z15" } ], "defaultCommitCharacters": [ @@ -970,14 +1230,21 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} -/home/src/tslibs/TS/Lib/lib.esnext.full.d.ts: +/home/src/tslibs/TS/Lib/lib.es5.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} +/home/src/tslibs/TS/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} +/home/src/tslibs/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} /home/src/workspaces/project/jsconfig.json: {"pollingInterval":2000} /home/src/workspaces/project/node_modules/dependency/lib/index.d.ts: @@ -1026,17 +1293,20 @@ Projects:: autoImportProviderHost: /dev/null/autoImportProviderProject2* *changed* ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts - version: Text-1 - containingProjects: 1 - /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.es5.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/workspaces/project/node_modules/dependency/lib/index.d.ts *changed* version: Text-1 diff --git a/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider_exportMap5.js b/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider_exportMap5.js index 43856a8a56f67..ef412e6267976 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider_exportMap5.js +++ b/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider_exportMap5.js @@ -1,16 +1,32 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "module": "nodenext", + "lib": [ + "es5" + ], + "target": "es5", + "newLine": "crlf", + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/home/src/workspaces/project/node_modules/@types/dependency/lib/index.d.ts] export declare function fooFromIndex(): void; @@ -59,14 +75,15 @@ fooFrom //// [/home/src/workspaces/project/tsconfig.json] { "compilerOptions": { - "module": "nodenext" + "module": "nodenext", + "lib": ["es5"] } } Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/home/src/workspaces/project/tsconfig.json" @@ -82,6 +99,9 @@ Info seq [hh:mm:ss:mss] Config: /home/src/workspaces/project/tsconfig.json : { ], "options": { "module": 199, + "lib": [ + "lib.es5.d.ts" + ], "configFilePath": "/home/src/workspaces/project/tsconfig.json" } } @@ -106,21 +126,35 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types/dependency/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/dependency/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types/dependency/lib/index.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/src/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types/dependency/lib/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.esnext.full.d.ts 500 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Missing file Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) -Info seq [hh:mm:ss:mss] Files (2) +Info seq [hh:mm:ss:mss] Files (5) + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text + /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/src/foo.ts Text-1 "fooFrom" /home/src/workspaces/project/node_modules/@types/dependency/lib/index.d.ts Text-1 "export declare function fooFromIndex(): void;" + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions + ../../tslibs/TS/Lib/lib.decorators.d.ts + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' + ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' src/foo.ts Matched by default include pattern '**/*' File is ECMAScript module because 'package.json' has field "type" with value "module" @@ -146,53 +180,7 @@ Info seq [hh:mm:ss:mss] event: "body": { "triggerFile": "/home/src/workspaces/project/tsconfig.json", "configFile": "/home/src/workspaces/project/tsconfig.json", - "diagnostics": [ - { - "text": "File '/home/src/tslibs/TS/Lib/lib.esnext.full.d.ts' not found.\n The file is in the program because:\n Default library for target 'esnext'", - "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" - } - ] + "diagnostics": [] } } Info seq [hh:mm:ss:mss] getConfigFileNameForFile:: File: /home/src/workspaces/project/tsconfig.json ProjectRootPath: undefined:: Result: undefined @@ -205,9 +193,9 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspa Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types/dependency/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/dependency/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types/dependency/lib/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots @@ -216,19 +204,19 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (5) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text - /home/src/workspaces/project/tsconfig.json SVC-1-0 "{\n \"compilerOptions\": {\n \"module\": \"nodenext\"\n }\n}" + /home/src/workspaces/project/tsconfig.json SVC-1-0 "{\n \"compilerOptions\": {\n \"module\": \"nodenext\",\n \"lib\": [\"es5\"]\n }\n}" /home/src/workspaces/project/node_modules/@types/dependency/lib/index.d.ts Text-1 "export declare function fooFromIndex(): void;" - ../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' tsconfig.json Root file specified for compilation node_modules/@types/dependency/lib/index.d.ts @@ -255,7 +243,7 @@ Info seq [hh:mm:ss:mss] Files (1) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) -Info seq [hh:mm:ss:mss] Files (2) +Info seq [hh:mm:ss:mss] Files (5) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) @@ -274,7 +262,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": *, @@ -283,14 +271,21 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} -/home/src/tslibs/TS/Lib/lib.esnext.full.d.ts: *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/package.json: *new* + {"pollingInterval":2000} + {"pollingInterval":2000} +/home/src/tslibs/TS/package.json: *new* + {"pollingInterval":2000} + {"pollingInterval":2000} +/home/src/tslibs/package.json: *new* + {"pollingInterval":2000} + {"pollingInterval":2000} /home/src/workspaces/project/jsconfig.json: *new* {"pollingInterval":2000} /home/src/workspaces/project/node_modules/@types/dependency/lib/index.d.ts: *new* @@ -348,17 +343,20 @@ Projects:: noOpenRef: true ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* - version: Text-1 - containingProjects: 1 - /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/workspaces/project/node_modules/@types/dependency/lib/index.d.ts *new* version: Text-1 @@ -380,7 +378,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/foo.ts" @@ -390,7 +388,7 @@ Info seq [hh:mm:ss:mss] request: Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /home/src/workspaces/project/src/foo.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] getConfigFileNameForFile:: File: /home/src/workspaces/project/src/foo.ts ProjectRootPath: undefined:: Result: /home/src/workspaces/project/tsconfig.json Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) -Info seq [hh:mm:ss:mss] Files (2) +Info seq [hh:mm:ss:mss] Files (5) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) @@ -411,19 +409,26 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 1, + "request_seq": 2, "success": true } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} -/home/src/tslibs/TS/Lib/lib.esnext.full.d.ts: +/home/src/tslibs/TS/Lib/lib.es5.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} +/home/src/tslibs/TS/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} +/home/src/tslibs/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} /home/src/workspaces/project/jsconfig.json: {"pollingInterval":2000} /home/src/workspaces/project/node_modules/@types/dependency/lib/index.d.ts: @@ -483,17 +488,20 @@ Projects:: noOpenRef: false *changed* ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts - version: Text-1 - containingProjects: 1 - /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.es5.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/workspaces/project/node_modules/@types/dependency/lib/index.d.ts version: Text-1 @@ -516,7 +524,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "preferences": { @@ -532,7 +540,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 2, + "request_seq": 3, "success": true } After Request @@ -551,7 +559,7 @@ Projects:: Info seq [hh:mm:ss:mss] request: { - "seq": 3, + "seq": 4, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/foo.ts", @@ -594,7 +602,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "completionInfo", - "request_seq": 3, + "request_seq": 4, "success": true, "performanceData": { "updateGraphDurationMs": *, @@ -628,6 +636,18 @@ Info seq [hh:mm:ss:mss] response: "kindModifiers": "", "sortText": "15" }, + { + "name": "Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "ArrayBuffer", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "as", "kind": "keyword", @@ -664,6 +684,12 @@ Info seq [hh:mm:ss:mss] response: "kindModifiers": "", "sortText": "15" }, + { + "name": "Boolean", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "break", "kind": "keyword", @@ -700,6 +726,18 @@ Info seq [hh:mm:ss:mss] response: "kindModifiers": "", "sortText": "15" }, + { + "name": "DataView", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Date", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "debugger", "kind": "keyword", @@ -712,6 +750,18 @@ Info seq [hh:mm:ss:mss] response: "kindModifiers": "", "sortText": "15" }, + { + "name": "decodeURI", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "decodeURIComponent", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "default", "kind": "keyword", @@ -736,12 +786,42 @@ Info seq [hh:mm:ss:mss] response: "kindModifiers": "", "sortText": "15" }, + { + "name": "encodeURI", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "encodeURIComponent", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "enum", "kind": "keyword", "kindModifiers": "", "sortText": "15" }, + { + "name": "Error", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "eval", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "EvalError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "export", "kind": "keyword", @@ -766,6 +846,18 @@ Info seq [hh:mm:ss:mss] response: "kindModifiers": "", "sortText": "15" }, + { + "name": "Float32Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Float64Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "for", "kind": "keyword", @@ -778,6 +870,12 @@ Info seq [hh:mm:ss:mss] response: "kindModifiers": "", "sortText": "15" }, + { + "name": "Function", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "globalThis", "kind": "module", @@ -814,18 +912,66 @@ Info seq [hh:mm:ss:mss] response: "kindModifiers": "", "sortText": "15" }, + { + "name": "Infinity", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "instanceof", "kind": "keyword", "kindModifiers": "", "sortText": "15" }, + { + "name": "Int8Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Int16Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Int32Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "interface", "kind": "keyword", "kindModifiers": "", "sortText": "15" }, + { + "name": "Intl", + "kind": "module", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "isFinite", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "isNaN", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "JSON", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "keyof", "kind": "keyword", @@ -838,6 +984,12 @@ Info seq [hh:mm:ss:mss] response: "kindModifiers": "", "sortText": "15" }, + { + "name": "Math", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "module", "kind": "keyword", @@ -850,6 +1002,12 @@ Info seq [hh:mm:ss:mss] response: "kindModifiers": "", "sortText": "15" }, + { + "name": "NaN", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "never", "kind": "keyword", @@ -874,24 +1032,66 @@ Info seq [hh:mm:ss:mss] response: "kindModifiers": "", "sortText": "15" }, + { + "name": "Number", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "object", "kind": "keyword", "kindModifiers": "", "sortText": "15" }, + { + "name": "Object", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "package", "kind": "keyword", "kindModifiers": "", "sortText": "15" }, + { + "name": "parseFloat", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "parseInt", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "RangeError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "readonly", "kind": "keyword", "kindModifiers": "", "sortText": "15" }, + { + "name": "ReferenceError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "RegExp", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "return", "kind": "keyword", @@ -910,6 +1110,12 @@ Info seq [hh:mm:ss:mss] response: "kindModifiers": "", "sortText": "15" }, + { + "name": "String", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "super", "kind": "keyword", @@ -928,6 +1134,12 @@ Info seq [hh:mm:ss:mss] response: "kindModifiers": "", "sortText": "15" }, + { + "name": "SyntaxError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "this", "kind": "keyword", @@ -958,12 +1170,42 @@ Info seq [hh:mm:ss:mss] response: "kindModifiers": "", "sortText": "15" }, + { + "name": "TypeError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "typeof", "kind": "keyword", "kindModifiers": "", "sortText": "15" }, + { + "name": "Uint8Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Uint8ClampedArray", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Uint16Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Uint32Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "undefined", "kind": "var", @@ -982,6 +1224,12 @@ Info seq [hh:mm:ss:mss] response: "kindModifiers": "", "sortText": "15" }, + { + "name": "URIError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "using", "kind": "keyword", @@ -1059,6 +1307,18 @@ Info seq [hh:mm:ss:mss] response: "fileName": "/home/src/workspaces/project/node_modules/@types/dependency/lib/lol.d.ts", "isPackageJsonImport": true } + }, + { + "name": "escape", + "kind": "function", + "kindModifiers": "deprecated,declare", + "sortText": "z15" + }, + { + "name": "unescape", + "kind": "function", + "kindModifiers": "deprecated,declare", + "sortText": "z15" } ], "defaultCommitCharacters": [ @@ -1070,14 +1330,21 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} -/home/src/tslibs/TS/Lib/lib.esnext.full.d.ts: +/home/src/tslibs/TS/Lib/lib.es5.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} +/home/src/tslibs/TS/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} +/home/src/tslibs/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} /home/src/workspaces/project/jsconfig.json: {"pollingInterval":2000} /home/src/workspaces/project/node_modules/@types/dependency/lib/index.d.ts: @@ -1140,17 +1407,20 @@ Projects:: autoImportProviderHost: /dev/null/autoImportProviderProject2* *changed* ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts - version: Text-1 - containingProjects: 1 - /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.es5.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/workspaces/project/node_modules/@types/dependency/lib/index.d.ts version: Text-1 diff --git a/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider_exportMap6.js b/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider_exportMap6.js index 154badd241e75..031ea9a272579 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider_exportMap6.js +++ b/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider_exportMap6.js @@ -1,16 +1,32 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "module": "nodenext", + "lib": [ + "es5" + ], + "target": "es5", + "newLine": "crlf", + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/home/src/workspaces/project/node_modules/@types/dependency/lib/index.d.ts] export declare function fooFromAtTypesIndex(): void; @@ -68,14 +84,15 @@ fooFrom //// [/home/src/workspaces/project/tsconfig.json] { "compilerOptions": { - "module": "nodenext" + "module": "nodenext", + "lib": ["es5"] } } Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/home/src/workspaces/project/tsconfig.json" @@ -91,6 +108,9 @@ Info seq [hh:mm:ss:mss] Config: /home/src/workspaces/project/tsconfig.json : { ], "options": { "module": 199, + "lib": [ + "lib.es5.d.ts" + ], "configFilePath": "/home/src/workspaces/project/tsconfig.json" } } @@ -115,21 +135,35 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types/dependency/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/dependency/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/dependency/lib/index.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/src/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/dependency/lib/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.esnext.full.d.ts 500 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Missing file Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) -Info seq [hh:mm:ss:mss] Files (2) +Info seq [hh:mm:ss:mss] Files (5) + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text + /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/src/foo.ts Text-1 "fooFrom" /home/src/workspaces/project/node_modules/dependency/lib/index.d.ts Text-1 "export declare function fooFromIndex(): void" + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions + ../../tslibs/TS/Lib/lib.decorators.d.ts + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' + ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' src/foo.ts Matched by default include pattern '**/*' File is ECMAScript module because 'package.json' has field "type" with value "module" @@ -155,53 +189,7 @@ Info seq [hh:mm:ss:mss] event: "body": { "triggerFile": "/home/src/workspaces/project/tsconfig.json", "configFile": "/home/src/workspaces/project/tsconfig.json", - "diagnostics": [ - { - "text": "File '/home/src/tslibs/TS/Lib/lib.esnext.full.d.ts' not found.\n The file is in the program because:\n Default library for target 'esnext'", - "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" - } - ] + "diagnostics": [] } } Info seq [hh:mm:ss:mss] getConfigFileNameForFile:: File: /home/src/workspaces/project/tsconfig.json ProjectRootPath: undefined:: Result: undefined @@ -214,9 +202,9 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspa Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types/dependency/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/dependency/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/dependency/lib/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots @@ -225,19 +213,19 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (5) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text - /home/src/workspaces/project/tsconfig.json SVC-1-0 "{\n \"compilerOptions\": {\n \"module\": \"nodenext\"\n }\n}" + /home/src/workspaces/project/tsconfig.json SVC-1-0 "{\n \"compilerOptions\": {\n \"module\": \"nodenext\",\n \"lib\": [\"es5\"]\n }\n}" /home/src/workspaces/project/node_modules/dependency/lib/index.d.ts Text-1 "export declare function fooFromIndex(): void" - ../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' tsconfig.json Root file specified for compilation node_modules/dependency/lib/index.d.ts @@ -264,7 +252,7 @@ Info seq [hh:mm:ss:mss] Files (1) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) -Info seq [hh:mm:ss:mss] Files (2) +Info seq [hh:mm:ss:mss] Files (5) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) @@ -283,7 +271,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": *, @@ -292,14 +280,21 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} -/home/src/tslibs/TS/Lib/lib.esnext.full.d.ts: *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/package.json: *new* + {"pollingInterval":2000} + {"pollingInterval":2000} +/home/src/tslibs/TS/package.json: *new* + {"pollingInterval":2000} + {"pollingInterval":2000} +/home/src/tslibs/package.json: *new* + {"pollingInterval":2000} + {"pollingInterval":2000} /home/src/workspaces/project/jsconfig.json: *new* {"pollingInterval":2000} /home/src/workspaces/project/node_modules/@types/dependency/package.json: *new* @@ -357,17 +352,20 @@ Projects:: noOpenRef: true ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* - version: Text-1 - containingProjects: 1 - /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/workspaces/project/node_modules/dependency/lib/index.d.ts *new* version: Text-1 @@ -389,7 +387,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/foo.ts" @@ -399,7 +397,7 @@ Info seq [hh:mm:ss:mss] request: Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /home/src/workspaces/project/src/foo.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] getConfigFileNameForFile:: File: /home/src/workspaces/project/src/foo.ts ProjectRootPath: undefined:: Result: /home/src/workspaces/project/tsconfig.json Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) -Info seq [hh:mm:ss:mss] Files (2) +Info seq [hh:mm:ss:mss] Files (5) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) @@ -420,19 +418,26 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 1, + "request_seq": 2, "success": true } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} -/home/src/tslibs/TS/Lib/lib.esnext.full.d.ts: +/home/src/tslibs/TS/Lib/lib.es5.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} +/home/src/tslibs/TS/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} +/home/src/tslibs/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} /home/src/workspaces/project/jsconfig.json: {"pollingInterval":2000} /home/src/workspaces/project/node_modules/@types/dependency/package.json: @@ -492,17 +497,20 @@ Projects:: noOpenRef: false *changed* ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts - version: Text-1 - containingProjects: 1 - /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.es5.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/workspaces/project/node_modules/dependency/lib/index.d.ts version: Text-1 @@ -525,7 +533,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "preferences": { @@ -541,7 +549,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 2, + "request_seq": 3, "success": true } After Request @@ -560,7 +568,7 @@ Projects:: Info seq [hh:mm:ss:mss] request: { - "seq": 3, + "seq": 4, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/foo.ts", @@ -603,7 +611,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "completionInfo", - "request_seq": 3, + "request_seq": 4, "success": true, "performanceData": { "updateGraphDurationMs": *, @@ -637,6 +645,18 @@ Info seq [hh:mm:ss:mss] response: "kindModifiers": "", "sortText": "15" }, + { + "name": "Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "ArrayBuffer", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "as", "kind": "keyword", @@ -673,6 +693,12 @@ Info seq [hh:mm:ss:mss] response: "kindModifiers": "", "sortText": "15" }, + { + "name": "Boolean", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "break", "kind": "keyword", @@ -709,6 +735,18 @@ Info seq [hh:mm:ss:mss] response: "kindModifiers": "", "sortText": "15" }, + { + "name": "DataView", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Date", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "debugger", "kind": "keyword", @@ -721,6 +759,18 @@ Info seq [hh:mm:ss:mss] response: "kindModifiers": "", "sortText": "15" }, + { + "name": "decodeURI", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "decodeURIComponent", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "default", "kind": "keyword", @@ -745,12 +795,42 @@ Info seq [hh:mm:ss:mss] response: "kindModifiers": "", "sortText": "15" }, + { + "name": "encodeURI", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "encodeURIComponent", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "enum", "kind": "keyword", "kindModifiers": "", "sortText": "15" }, + { + "name": "Error", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "eval", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "EvalError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "export", "kind": "keyword", @@ -775,6 +855,18 @@ Info seq [hh:mm:ss:mss] response: "kindModifiers": "", "sortText": "15" }, + { + "name": "Float32Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Float64Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "for", "kind": "keyword", @@ -787,6 +879,12 @@ Info seq [hh:mm:ss:mss] response: "kindModifiers": "", "sortText": "15" }, + { + "name": "Function", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "globalThis", "kind": "module", @@ -823,18 +921,66 @@ Info seq [hh:mm:ss:mss] response: "kindModifiers": "", "sortText": "15" }, + { + "name": "Infinity", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "instanceof", "kind": "keyword", "kindModifiers": "", "sortText": "15" }, + { + "name": "Int8Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Int16Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Int32Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "interface", "kind": "keyword", "kindModifiers": "", "sortText": "15" }, + { + "name": "Intl", + "kind": "module", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "isFinite", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "isNaN", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "JSON", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "keyof", "kind": "keyword", @@ -847,6 +993,12 @@ Info seq [hh:mm:ss:mss] response: "kindModifiers": "", "sortText": "15" }, + { + "name": "Math", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "module", "kind": "keyword", @@ -859,6 +1011,12 @@ Info seq [hh:mm:ss:mss] response: "kindModifiers": "", "sortText": "15" }, + { + "name": "NaN", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "never", "kind": "keyword", @@ -883,24 +1041,66 @@ Info seq [hh:mm:ss:mss] response: "kindModifiers": "", "sortText": "15" }, + { + "name": "Number", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "object", "kind": "keyword", "kindModifiers": "", "sortText": "15" }, + { + "name": "Object", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "package", "kind": "keyword", "kindModifiers": "", "sortText": "15" }, + { + "name": "parseFloat", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "parseInt", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "RangeError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "readonly", "kind": "keyword", "kindModifiers": "", "sortText": "15" }, + { + "name": "ReferenceError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "RegExp", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "return", "kind": "keyword", @@ -919,6 +1119,12 @@ Info seq [hh:mm:ss:mss] response: "kindModifiers": "", "sortText": "15" }, + { + "name": "String", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "super", "kind": "keyword", @@ -937,6 +1143,12 @@ Info seq [hh:mm:ss:mss] response: "kindModifiers": "", "sortText": "15" }, + { + "name": "SyntaxError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "this", "kind": "keyword", @@ -967,12 +1179,42 @@ Info seq [hh:mm:ss:mss] response: "kindModifiers": "", "sortText": "15" }, + { + "name": "TypeError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "typeof", "kind": "keyword", "kindModifiers": "", "sortText": "15" }, + { + "name": "Uint8Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Uint8ClampedArray", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Uint16Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Uint32Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "undefined", "kind": "var", @@ -991,6 +1233,12 @@ Info seq [hh:mm:ss:mss] response: "kindModifiers": "", "sortText": "15" }, + { + "name": "URIError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "using", "kind": "keyword", @@ -1068,6 +1316,18 @@ Info seq [hh:mm:ss:mss] response: "fileName": "/home/src/workspaces/project/node_modules/dependency/lib/lol.d.ts", "isPackageJsonImport": true } + }, + { + "name": "escape", + "kind": "function", + "kindModifiers": "deprecated,declare", + "sortText": "z15" + }, + { + "name": "unescape", + "kind": "function", + "kindModifiers": "deprecated,declare", + "sortText": "z15" } ], "defaultCommitCharacters": [ @@ -1079,14 +1339,21 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} -/home/src/tslibs/TS/Lib/lib.esnext.full.d.ts: +/home/src/tslibs/TS/Lib/lib.es5.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} +/home/src/tslibs/TS/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} +/home/src/tslibs/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} /home/src/workspaces/project/jsconfig.json: {"pollingInterval":2000} /home/src/workspaces/project/node_modules/@types/dependency/package.json: @@ -1149,17 +1416,20 @@ Projects:: autoImportProviderHost: /dev/null/autoImportProviderProject2* *changed* ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts - version: Text-1 - containingProjects: 1 - /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.es5.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/workspaces/project/node_modules/dependency/lib/index.d.ts version: Text-1 diff --git a/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider_exportMap7.js b/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider_exportMap7.js index 73d58713fe1ef..6733226ba1f9a 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider_exportMap7.js +++ b/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider_exportMap7.js @@ -1,16 +1,32 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "module": "nodenext", + "lib": [ + "es5" + ], + "target": "es5", + "newLine": "crlf", + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/home/src/workspaces/project/node_modules/dependency/lib/index.d.ts] export function fooFromIndex(): void; @@ -49,14 +65,15 @@ fooFrom //// [/home/src/workspaces/project/tsconfig.json] { "compilerOptions": { - "module": "nodenext" + "module": "nodenext", + "lib": ["es5"] } } Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/home/src/workspaces/project/tsconfig.json" @@ -73,6 +90,9 @@ Info seq [hh:mm:ss:mss] Config: /home/src/workspaces/project/tsconfig.json : { ], "options": { "module": 199, + "lib": [ + "lib.es5.d.ts" + ], "configFilePath": "/home/src/workspaces/project/tsconfig.json" } } @@ -92,25 +112,39 @@ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/p Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/src/foo.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/dependency/lib/index.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/src 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/src 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/dependency/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/dependency/lib/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/src/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.esnext.full.d.ts 500 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Missing file Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) -Info seq [hh:mm:ss:mss] Files (3) +Info seq [hh:mm:ss:mss] Files (6) + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text + /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/node_modules/dependency/lib/index.d.ts Text-1 "export function fooFromIndex(): void;" /home/src/workspaces/project/src/bar.ts Text-1 "import { fooFromIndex } from \"dependency\";" /home/src/workspaces/project/src/foo.ts Text-1 "fooFrom" + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions + ../../tslibs/TS/Lib/lib.decorators.d.ts + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' + ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' node_modules/dependency/lib/index.d.ts Imported via "dependency" from file 'src/bar.ts' with packageId 'dependency/lib/index.d.ts@1.0.0' File is ECMAScript module because 'node_modules/dependency/package.json' has field "type" with value "module" @@ -139,62 +173,16 @@ Info seq [hh:mm:ss:mss] event: "body": { "triggerFile": "/home/src/workspaces/project/tsconfig.json", "configFile": "/home/src/workspaces/project/tsconfig.json", - "diagnostics": [ - { - "text": "File '/home/src/tslibs/TS/Lib/lib.esnext.full.d.ts' not found.\n The file is in the program because:\n Default library for target 'esnext'", - "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" - } - ] + "diagnostics": [] } } Info seq [hh:mm:ss:mss] getConfigFileNameForFile:: File: /home/src/workspaces/project/tsconfig.json ProjectRootPath: undefined:: Result: undefined Info seq [hh:mm:ss:mss] Creating InferredProject: /dev/null/inferredProject1*, currentDirectory: /home/src/workspaces/project Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots @@ -202,18 +190,18 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text - /home/src/workspaces/project/tsconfig.json SVC-1-0 "{\n \"compilerOptions\": {\n \"module\": \"nodenext\"\n }\n}" + /home/src/workspaces/project/tsconfig.json SVC-1-0 "{\n \"compilerOptions\": {\n \"module\": \"nodenext\",\n \"lib\": [\"es5\"]\n }\n}" - ../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' tsconfig.json Root file specified for compilation @@ -241,7 +229,7 @@ Info seq [hh:mm:ss:mss] Files (2) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) -Info seq [hh:mm:ss:mss] Files (3) +Info seq [hh:mm:ss:mss] Files (6) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) @@ -260,7 +248,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": *, @@ -269,14 +257,21 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} -/home/src/tslibs/TS/Lib/lib.esnext.full.d.ts: *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/package.json: *new* + {"pollingInterval":2000} + {"pollingInterval":2000} +/home/src/tslibs/TS/package.json: *new* + {"pollingInterval":2000} + {"pollingInterval":2000} +/home/src/tslibs/package.json: *new* + {"pollingInterval":2000} + {"pollingInterval":2000} /home/src/workspaces/project/jsconfig.json: *new* {"pollingInterval":2000} /home/src/workspaces/project/node_modules/dependency/lib/index.d.ts: *new* @@ -327,17 +322,20 @@ Projects:: noOpenRef: true ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* - version: Text-1 - containingProjects: 1 - /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/workspaces/project/node_modules/dependency/lib/index.d.ts *new* version: Text-1 @@ -363,7 +361,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/foo.ts" @@ -373,7 +371,7 @@ Info seq [hh:mm:ss:mss] request: Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /home/src/workspaces/project/src/foo.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] getConfigFileNameForFile:: File: /home/src/workspaces/project/src/foo.ts ProjectRootPath: undefined:: Result: /home/src/workspaces/project/tsconfig.json Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) -Info seq [hh:mm:ss:mss] Files (3) +Info seq [hh:mm:ss:mss] Files (6) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) @@ -394,19 +392,26 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 1, + "request_seq": 2, "success": true } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} -/home/src/tslibs/TS/Lib/lib.esnext.full.d.ts: +/home/src/tslibs/TS/Lib/lib.es5.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} +/home/src/tslibs/TS/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} +/home/src/tslibs/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} /home/src/workspaces/project/jsconfig.json: {"pollingInterval":2000} /home/src/workspaces/project/node_modules/dependency/lib/index.d.ts: @@ -459,17 +464,20 @@ Projects:: noOpenRef: false *changed* ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts - version: Text-1 - containingProjects: 1 - /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.es5.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/workspaces/project/node_modules/dependency/lib/index.d.ts version: Text-1 @@ -496,7 +504,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "preferences": { @@ -512,7 +520,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 2, + "request_seq": 3, "success": true } After Request @@ -531,7 +539,7 @@ Projects:: Info seq [hh:mm:ss:mss] request: { - "seq": 3, + "seq": 4, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/foo.ts", @@ -574,7 +582,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "completionInfo", - "request_seq": 3, + "request_seq": 4, "success": true, "performanceData": { "updateGraphDurationMs": *, @@ -608,6 +616,18 @@ Info seq [hh:mm:ss:mss] response: "kindModifiers": "", "sortText": "15" }, + { + "name": "Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "ArrayBuffer", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "as", "kind": "keyword", @@ -644,6 +664,12 @@ Info seq [hh:mm:ss:mss] response: "kindModifiers": "", "sortText": "15" }, + { + "name": "Boolean", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "break", "kind": "keyword", @@ -680,6 +706,18 @@ Info seq [hh:mm:ss:mss] response: "kindModifiers": "", "sortText": "15" }, + { + "name": "DataView", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Date", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "debugger", "kind": "keyword", @@ -692,6 +730,18 @@ Info seq [hh:mm:ss:mss] response: "kindModifiers": "", "sortText": "15" }, + { + "name": "decodeURI", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "decodeURIComponent", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "default", "kind": "keyword", @@ -716,12 +766,42 @@ Info seq [hh:mm:ss:mss] response: "kindModifiers": "", "sortText": "15" }, + { + "name": "encodeURI", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "encodeURIComponent", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "enum", "kind": "keyword", "kindModifiers": "", "sortText": "15" }, + { + "name": "Error", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "eval", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "EvalError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "export", "kind": "keyword", @@ -746,6 +826,18 @@ Info seq [hh:mm:ss:mss] response: "kindModifiers": "", "sortText": "15" }, + { + "name": "Float32Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Float64Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "for", "kind": "keyword", @@ -758,6 +850,12 @@ Info seq [hh:mm:ss:mss] response: "kindModifiers": "", "sortText": "15" }, + { + "name": "Function", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "globalThis", "kind": "module", @@ -794,18 +892,66 @@ Info seq [hh:mm:ss:mss] response: "kindModifiers": "", "sortText": "15" }, + { + "name": "Infinity", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "instanceof", "kind": "keyword", "kindModifiers": "", "sortText": "15" }, + { + "name": "Int8Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Int16Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Int32Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "interface", "kind": "keyword", "kindModifiers": "", "sortText": "15" }, + { + "name": "Intl", + "kind": "module", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "isFinite", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "isNaN", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "JSON", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "keyof", "kind": "keyword", @@ -818,6 +964,12 @@ Info seq [hh:mm:ss:mss] response: "kindModifiers": "", "sortText": "15" }, + { + "name": "Math", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "module", "kind": "keyword", @@ -830,6 +982,12 @@ Info seq [hh:mm:ss:mss] response: "kindModifiers": "", "sortText": "15" }, + { + "name": "NaN", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "never", "kind": "keyword", @@ -854,24 +1012,66 @@ Info seq [hh:mm:ss:mss] response: "kindModifiers": "", "sortText": "15" }, + { + "name": "Number", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "object", "kind": "keyword", "kindModifiers": "", "sortText": "15" }, + { + "name": "Object", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "package", "kind": "keyword", "kindModifiers": "", "sortText": "15" }, + { + "name": "parseFloat", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "parseInt", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "RangeError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "readonly", "kind": "keyword", "kindModifiers": "", "sortText": "15" }, + { + "name": "ReferenceError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "RegExp", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "return", "kind": "keyword", @@ -890,6 +1090,12 @@ Info seq [hh:mm:ss:mss] response: "kindModifiers": "", "sortText": "15" }, + { + "name": "String", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "super", "kind": "keyword", @@ -908,6 +1114,12 @@ Info seq [hh:mm:ss:mss] response: "kindModifiers": "", "sortText": "15" }, + { + "name": "SyntaxError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "this", "kind": "keyword", @@ -938,12 +1150,42 @@ Info seq [hh:mm:ss:mss] response: "kindModifiers": "", "sortText": "15" }, + { + "name": "TypeError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "typeof", "kind": "keyword", "kindModifiers": "", "sortText": "15" }, + { + "name": "Uint8Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Uint8ClampedArray", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Uint16Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Uint32Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "undefined", "kind": "var", @@ -962,6 +1204,12 @@ Info seq [hh:mm:ss:mss] response: "kindModifiers": "", "sortText": "15" }, + { + "name": "URIError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "using", "kind": "keyword", @@ -1039,6 +1287,18 @@ Info seq [hh:mm:ss:mss] response: "fileName": "/home/src/workspaces/project/node_modules/dependency/lib/lol.d.ts", "isPackageJsonImport": true } + }, + { + "name": "escape", + "kind": "function", + "kindModifiers": "deprecated,declare", + "sortText": "z15" + }, + { + "name": "unescape", + "kind": "function", + "kindModifiers": "deprecated,declare", + "sortText": "z15" } ], "defaultCommitCharacters": [ @@ -1050,14 +1310,21 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} -/home/src/tslibs/TS/Lib/lib.esnext.full.d.ts: +/home/src/tslibs/TS/Lib/lib.es5.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} +/home/src/tslibs/TS/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} +/home/src/tslibs/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} /home/src/workspaces/project/jsconfig.json: {"pollingInterval":2000} /home/src/workspaces/project/node_modules/dependency/lib/index.d.ts: @@ -1114,17 +1381,20 @@ Projects:: autoImportProviderHost: /dev/null/autoImportProviderProject2* *changed* ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts - version: Text-1 - containingProjects: 1 - /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.es5.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/workspaces/project/node_modules/dependency/lib/index.d.ts version: Text-1 diff --git a/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider_exportMap8.js b/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider_exportMap8.js index e67c941839ed3..298b9bfa33888 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider_exportMap8.js +++ b/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider_exportMap8.js @@ -1,16 +1,32 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "module": "nodenext", + "lib": [ + "es5" + ], + "target": "es5", + "newLine": "crlf", + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/home/src/workspaces/project/node_modules/dependency/lib/index.d.ts] export function fooFromIndex(): void; @@ -50,14 +66,15 @@ fooFrom //// [/home/src/workspaces/project/tsconfig.json] { "compilerOptions": { - "module": "nodenext" + "module": "nodenext", + "lib": ["es5"] } } Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/home/src/workspaces/project/tsconfig.json" @@ -75,6 +92,9 @@ Info seq [hh:mm:ss:mss] Config: /home/src/workspaces/project/tsconfig.json : { ], "options": { "module": 199, + "lib": [ + "lib.es5.d.ts" + ], "configFilePath": "/home/src/workspaces/project/tsconfig.json" } } @@ -94,6 +114,9 @@ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/p Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/src/foo.cts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/src/foo.mts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/src 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/src 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Failed Lookup Locations @@ -102,20 +125,31 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspa Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/node_modules 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/dependency/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/src/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.esnext.full.d.ts 500 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Missing file Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) -Info seq [hh:mm:ss:mss] Files (3) +Info seq [hh:mm:ss:mss] Files (6) + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text + /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/src/bar.ts Text-1 "import { fooFromIndex } from \"dependency\";" /home/src/workspaces/project/src/foo.cts Text-1 "fooFrom" /home/src/workspaces/project/src/foo.mts Text-1 "fooFrom" + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions + ../../tslibs/TS/Lib/lib.decorators.d.ts + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' + ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' src/bar.ts Matched by default include pattern '**/*' File is ECMAScript module because 'package.json' has field "type" with value "module" @@ -142,62 +176,16 @@ Info seq [hh:mm:ss:mss] event: "body": { "triggerFile": "/home/src/workspaces/project/tsconfig.json", "configFile": "/home/src/workspaces/project/tsconfig.json", - "diagnostics": [ - { - "text": "File '/home/src/tslibs/TS/Lib/lib.esnext.full.d.ts' not found.\n The file is in the program because:\n Default library for target 'esnext'", - "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" - } - ] + "diagnostics": [] } } Info seq [hh:mm:ss:mss] getConfigFileNameForFile:: File: /home/src/workspaces/project/tsconfig.json ProjectRootPath: undefined:: Result: undefined Info seq [hh:mm:ss:mss] Creating InferredProject: /dev/null/inferredProject1*, currentDirectory: /home/src/workspaces/project Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots @@ -205,18 +193,18 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text - /home/src/workspaces/project/tsconfig.json SVC-1-0 "{\n \"compilerOptions\": {\n \"module\": \"nodenext\"\n }\n}" + /home/src/workspaces/project/tsconfig.json SVC-1-0 "{\n \"compilerOptions\": {\n \"module\": \"nodenext\",\n \"lib\": [\"es5\"]\n }\n}" - ../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' tsconfig.json Root file specified for compilation @@ -245,7 +233,7 @@ Info seq [hh:mm:ss:mss] Files (2) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) -Info seq [hh:mm:ss:mss] Files (3) +Info seq [hh:mm:ss:mss] Files (6) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) @@ -264,7 +252,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": *, @@ -273,14 +261,21 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} -/home/src/tslibs/TS/Lib/lib.esnext.full.d.ts: *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/package.json: *new* + {"pollingInterval":2000} + {"pollingInterval":2000} +/home/src/tslibs/TS/package.json: *new* + {"pollingInterval":2000} + {"pollingInterval":2000} +/home/src/tslibs/package.json: *new* + {"pollingInterval":2000} + {"pollingInterval":2000} /home/src/workspaces/project/jsconfig.json: *new* {"pollingInterval":2000} /home/src/workspaces/project/node_modules/dependency/lib/index.d.ts: *new* @@ -336,17 +331,20 @@ Projects:: noOpenRef: true ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* - version: Text-1 - containingProjects: 1 - /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/workspaces/project/node_modules/dependency/lib/index.d.ts *new* version: Text-1 @@ -375,7 +373,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/foo.cts" @@ -385,7 +383,7 @@ Info seq [hh:mm:ss:mss] request: Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /home/src/workspaces/project/src/foo.cts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] getConfigFileNameForFile:: File: /home/src/workspaces/project/src/foo.cts ProjectRootPath: undefined:: Result: /home/src/workspaces/project/tsconfig.json Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) -Info seq [hh:mm:ss:mss] Files (3) +Info seq [hh:mm:ss:mss] Files (6) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) @@ -406,19 +404,26 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 1, + "request_seq": 2, "success": true } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} -/home/src/tslibs/TS/Lib/lib.esnext.full.d.ts: +/home/src/tslibs/TS/Lib/lib.es5.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} +/home/src/tslibs/TS/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} +/home/src/tslibs/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} /home/src/workspaces/project/jsconfig.json: {"pollingInterval":2000} /home/src/workspaces/project/node_modules/dependency/lib/index.d.ts: @@ -476,17 +481,20 @@ Projects:: noOpenRef: false *changed* ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts - version: Text-1 - containingProjects: 1 - /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.es5.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/workspaces/project/node_modules/dependency/lib/index.d.ts version: Text-1 @@ -516,7 +524,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "preferences": { @@ -532,7 +540,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 2, + "request_seq": 3, "success": true } After Request @@ -551,7 +559,7 @@ Projects:: Info seq [hh:mm:ss:mss] request: { - "seq": 3, + "seq": 4, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/foo.cts", @@ -598,7 +606,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "completionInfo", - "request_seq": 3, + "request_seq": 4, "success": true, "performanceData": { "updateGraphDurationMs": *, @@ -632,6 +640,18 @@ Info seq [hh:mm:ss:mss] response: "kindModifiers": "", "sortText": "15" }, + { + "name": "Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "ArrayBuffer", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "as", "kind": "keyword", @@ -668,6 +688,12 @@ Info seq [hh:mm:ss:mss] response: "kindModifiers": "", "sortText": "15" }, + { + "name": "Boolean", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "break", "kind": "keyword", @@ -704,6 +730,18 @@ Info seq [hh:mm:ss:mss] response: "kindModifiers": "", "sortText": "15" }, + { + "name": "DataView", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Date", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "debugger", "kind": "keyword", @@ -716,6 +754,18 @@ Info seq [hh:mm:ss:mss] response: "kindModifiers": "", "sortText": "15" }, + { + "name": "decodeURI", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "decodeURIComponent", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "default", "kind": "keyword", @@ -740,12 +790,42 @@ Info seq [hh:mm:ss:mss] response: "kindModifiers": "", "sortText": "15" }, + { + "name": "encodeURI", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "encodeURIComponent", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "enum", "kind": "keyword", "kindModifiers": "", "sortText": "15" }, + { + "name": "Error", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "eval", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "EvalError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "export", "kind": "keyword", @@ -770,6 +850,18 @@ Info seq [hh:mm:ss:mss] response: "kindModifiers": "", "sortText": "15" }, + { + "name": "Float32Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Float64Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "for", "kind": "keyword", @@ -782,6 +874,12 @@ Info seq [hh:mm:ss:mss] response: "kindModifiers": "", "sortText": "15" }, + { + "name": "Function", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "globalThis", "kind": "module", @@ -818,18 +916,66 @@ Info seq [hh:mm:ss:mss] response: "kindModifiers": "", "sortText": "15" }, + { + "name": "Infinity", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "instanceof", "kind": "keyword", "kindModifiers": "", "sortText": "15" }, + { + "name": "Int8Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Int16Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Int32Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "interface", "kind": "keyword", "kindModifiers": "", "sortText": "15" }, + { + "name": "Intl", + "kind": "module", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "isFinite", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "isNaN", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "JSON", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "keyof", "kind": "keyword", @@ -842,6 +988,12 @@ Info seq [hh:mm:ss:mss] response: "kindModifiers": "", "sortText": "15" }, + { + "name": "Math", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "module", "kind": "keyword", @@ -854,6 +1006,12 @@ Info seq [hh:mm:ss:mss] response: "kindModifiers": "", "sortText": "15" }, + { + "name": "NaN", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "never", "kind": "keyword", @@ -878,24 +1036,66 @@ Info seq [hh:mm:ss:mss] response: "kindModifiers": "", "sortText": "15" }, + { + "name": "Number", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "object", "kind": "keyword", "kindModifiers": "", "sortText": "15" }, + { + "name": "Object", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "package", "kind": "keyword", "kindModifiers": "", "sortText": "15" }, + { + "name": "parseFloat", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "parseInt", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "RangeError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "readonly", "kind": "keyword", "kindModifiers": "", "sortText": "15" }, + { + "name": "ReferenceError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "RegExp", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "return", "kind": "keyword", @@ -914,6 +1114,12 @@ Info seq [hh:mm:ss:mss] response: "kindModifiers": "", "sortText": "15" }, + { + "name": "String", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "super", "kind": "keyword", @@ -932,6 +1138,12 @@ Info seq [hh:mm:ss:mss] response: "kindModifiers": "", "sortText": "15" }, + { + "name": "SyntaxError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "this", "kind": "keyword", @@ -962,12 +1174,42 @@ Info seq [hh:mm:ss:mss] response: "kindModifiers": "", "sortText": "15" }, + { + "name": "TypeError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "typeof", "kind": "keyword", "kindModifiers": "", "sortText": "15" }, + { + "name": "Uint8Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Uint8ClampedArray", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Uint16Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Uint32Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "undefined", "kind": "var", @@ -986,6 +1228,12 @@ Info seq [hh:mm:ss:mss] response: "kindModifiers": "", "sortText": "15" }, + { + "name": "URIError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "using", "kind": "keyword", @@ -1043,6 +1291,18 @@ Info seq [hh:mm:ss:mss] response: "fileName": "/home/src/workspaces/project/node_modules/dependency/lib/lol.d.ts", "isPackageJsonImport": true } + }, + { + "name": "escape", + "kind": "function", + "kindModifiers": "deprecated,declare", + "sortText": "z15" + }, + { + "name": "unescape", + "kind": "function", + "kindModifiers": "deprecated,declare", + "sortText": "z15" } ], "defaultCommitCharacters": [ @@ -1054,14 +1314,21 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} -/home/src/tslibs/TS/Lib/lib.esnext.full.d.ts: +/home/src/tslibs/TS/Lib/lib.es5.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} +/home/src/tslibs/TS/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} +/home/src/tslibs/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} /home/src/workspaces/project/jsconfig.json: {"pollingInterval":2000} /home/src/workspaces/project/node_modules/dependency/lib/index.d.ts: @@ -1122,17 +1389,20 @@ Projects:: autoImportProviderHost: /dev/null/autoImportProviderProject2* *changed* ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts - version: Text-1 - containingProjects: 1 - /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.es5.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/workspaces/project/node_modules/dependency/lib/index.d.ts *changed* version: Text-1 @@ -1163,7 +1433,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 4, + "seq": 5, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/foo.mts" @@ -1173,7 +1443,7 @@ Info seq [hh:mm:ss:mss] request: Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /home/src/workspaces/project/src/foo.mts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] getConfigFileNameForFile:: File: /home/src/workspaces/project/src/foo.mts ProjectRootPath: undefined:: Result: /home/src/workspaces/project/tsconfig.json Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) -Info seq [hh:mm:ss:mss] Files (3) +Info seq [hh:mm:ss:mss] Files (6) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Project '/dev/null/autoImportProviderProject2*' (AutoImportProvider) @@ -1200,19 +1470,26 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 4, + "request_seq": 5, "success": true } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} -/home/src/tslibs/TS/Lib/lib.esnext.full.d.ts: +/home/src/tslibs/TS/Lib/lib.es5.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} +/home/src/tslibs/TS/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} +/home/src/tslibs/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} /home/src/workspaces/project/jsconfig.json: {"pollingInterval":2000} /home/src/workspaces/project/node_modules/dependency/lib/index.d.ts: @@ -1258,17 +1535,20 @@ watchedDirectoriesRecursive:: {} ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts - version: Text-1 - containingProjects: 1 - /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.es5.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/workspaces/project/node_modules/dependency/lib/index.d.ts version: Text-1 @@ -1300,7 +1580,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 5, + "seq": 6, "type": "request", "arguments": { "preferences": { @@ -1316,12 +1596,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 5, + "request_seq": 6, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 6, + "seq": 7, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/foo.mts", @@ -1350,7 +1630,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "completionInfo", - "request_seq": 6, + "request_seq": 7, "success": true, "body": { "flags": 9, @@ -1380,6 +1660,18 @@ Info seq [hh:mm:ss:mss] response: "kindModifiers": "", "sortText": "15" }, + { + "name": "Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "ArrayBuffer", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "as", "kind": "keyword", @@ -1416,6 +1708,12 @@ Info seq [hh:mm:ss:mss] response: "kindModifiers": "", "sortText": "15" }, + { + "name": "Boolean", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "break", "kind": "keyword", @@ -1452,6 +1750,18 @@ Info seq [hh:mm:ss:mss] response: "kindModifiers": "", "sortText": "15" }, + { + "name": "DataView", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Date", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "debugger", "kind": "keyword", @@ -1464,6 +1774,18 @@ Info seq [hh:mm:ss:mss] response: "kindModifiers": "", "sortText": "15" }, + { + "name": "decodeURI", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "decodeURIComponent", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "default", "kind": "keyword", @@ -1488,12 +1810,42 @@ Info seq [hh:mm:ss:mss] response: "kindModifiers": "", "sortText": "15" }, + { + "name": "encodeURI", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "encodeURIComponent", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "enum", "kind": "keyword", "kindModifiers": "", "sortText": "15" }, + { + "name": "Error", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "eval", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "EvalError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "export", "kind": "keyword", @@ -1518,6 +1870,18 @@ Info seq [hh:mm:ss:mss] response: "kindModifiers": "", "sortText": "15" }, + { + "name": "Float32Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Float64Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "for", "kind": "keyword", @@ -1530,6 +1894,12 @@ Info seq [hh:mm:ss:mss] response: "kindModifiers": "", "sortText": "15" }, + { + "name": "Function", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "globalThis", "kind": "module", @@ -1566,18 +1936,66 @@ Info seq [hh:mm:ss:mss] response: "kindModifiers": "", "sortText": "15" }, + { + "name": "Infinity", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "instanceof", "kind": "keyword", "kindModifiers": "", "sortText": "15" }, + { + "name": "Int8Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Int16Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Int32Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "interface", "kind": "keyword", "kindModifiers": "", "sortText": "15" }, + { + "name": "Intl", + "kind": "module", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "isFinite", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "isNaN", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "JSON", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "keyof", "kind": "keyword", @@ -1590,6 +2008,12 @@ Info seq [hh:mm:ss:mss] response: "kindModifiers": "", "sortText": "15" }, + { + "name": "Math", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "module", "kind": "keyword", @@ -1602,6 +2026,12 @@ Info seq [hh:mm:ss:mss] response: "kindModifiers": "", "sortText": "15" }, + { + "name": "NaN", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "never", "kind": "keyword", @@ -1626,24 +2056,66 @@ Info seq [hh:mm:ss:mss] response: "kindModifiers": "", "sortText": "15" }, + { + "name": "Number", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "object", "kind": "keyword", "kindModifiers": "", "sortText": "15" }, + { + "name": "Object", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "package", "kind": "keyword", "kindModifiers": "", "sortText": "15" }, + { + "name": "parseFloat", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "parseInt", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "RangeError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "readonly", "kind": "keyword", "kindModifiers": "", "sortText": "15" }, + { + "name": "ReferenceError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "RegExp", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "return", "kind": "keyword", @@ -1662,6 +2134,12 @@ Info seq [hh:mm:ss:mss] response: "kindModifiers": "", "sortText": "15" }, + { + "name": "String", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "super", "kind": "keyword", @@ -1680,6 +2158,12 @@ Info seq [hh:mm:ss:mss] response: "kindModifiers": "", "sortText": "15" }, + { + "name": "SyntaxError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "this", "kind": "keyword", @@ -1710,12 +2194,42 @@ Info seq [hh:mm:ss:mss] response: "kindModifiers": "", "sortText": "15" }, + { + "name": "TypeError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "typeof", "kind": "keyword", "kindModifiers": "", "sortText": "15" }, + { + "name": "Uint8Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Uint8ClampedArray", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Uint16Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Uint32Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "undefined", "kind": "var", @@ -1734,6 +2248,12 @@ Info seq [hh:mm:ss:mss] response: "kindModifiers": "", "sortText": "15" }, + { + "name": "URIError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "using", "kind": "keyword", @@ -1791,6 +2311,18 @@ Info seq [hh:mm:ss:mss] response: "fileName": "/home/src/workspaces/project/node_modules/dependency/lib/index.d.ts", "isPackageJsonImport": true } + }, + { + "name": "escape", + "kind": "function", + "kindModifiers": "deprecated,declare", + "sortText": "z15" + }, + { + "name": "unescape", + "kind": "function", + "kindModifiers": "deprecated,declare", + "sortText": "z15" } ], "defaultCommitCharacters": [ @@ -1802,14 +2334,21 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} -/home/src/tslibs/TS/Lib/lib.esnext.full.d.ts: +/home/src/tslibs/TS/Lib/lib.es5.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} +/home/src/tslibs/TS/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} +/home/src/tslibs/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} /home/src/workspaces/project/jsconfig.json: {"pollingInterval":2000} /home/src/workspaces/project/node_modules/dependency/lib/index.d.ts: diff --git a/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider_exportMap9.js b/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider_exportMap9.js index 05aab220f1f85..1d9ea1fd039ff 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider_exportMap9.js +++ b/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider_exportMap9.js @@ -1,16 +1,32 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "module": "nodenext", + "lib": [ + "es5" + ], + "target": "es5", + "newLine": "crlf", + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/home/src/workspaces/project/node_modules/dependency/lib/index.d.ts] export function fooFromIndex(): void; @@ -44,14 +60,15 @@ fooFrom //// [/home/src/workspaces/project/tsconfig.json] { "compilerOptions": { - "module": "nodenext" + "module": "nodenext", + "lib": ["es5"] } } Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/home/src/workspaces/project/tsconfig.json" @@ -68,6 +85,9 @@ Info seq [hh:mm:ss:mss] Config: /home/src/workspaces/project/tsconfig.json : { ], "options": { "module": 199, + "lib": [ + "lib.es5.d.ts" + ], "configFilePath": "/home/src/workspaces/project/tsconfig.json" } } @@ -86,6 +106,9 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/src/bar.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/src/foo.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/src 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/src 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Failed Lookup Locations @@ -94,19 +117,30 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspa Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/node_modules 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/dependency/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/src/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.esnext.full.d.ts 500 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Missing file Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) -Info seq [hh:mm:ss:mss] Files (2) +Info seq [hh:mm:ss:mss] Files (5) + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text + /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/src/bar.ts Text-1 "import { fooFromIndex } from \"dependency\";" /home/src/workspaces/project/src/foo.ts Text-1 "fooFrom" + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions + ../../tslibs/TS/Lib/lib.decorators.d.ts + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' + ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' src/bar.ts Matched by default include pattern '**/*' File is ECMAScript module because 'package.json' has field "type" with value "module" @@ -132,62 +166,16 @@ Info seq [hh:mm:ss:mss] event: "body": { "triggerFile": "/home/src/workspaces/project/tsconfig.json", "configFile": "/home/src/workspaces/project/tsconfig.json", - "diagnostics": [ - { - "text": "File '/home/src/tslibs/TS/Lib/lib.esnext.full.d.ts' not found.\n The file is in the program because:\n Default library for target 'esnext'", - "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" - } - ] + "diagnostics": [] } } Info seq [hh:mm:ss:mss] getConfigFileNameForFile:: File: /home/src/workspaces/project/tsconfig.json ProjectRootPath: undefined:: Result: undefined Info seq [hh:mm:ss:mss] Creating InferredProject: /dev/null/inferredProject1*, currentDirectory: /home/src/workspaces/project Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots @@ -195,18 +183,18 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text - /home/src/workspaces/project/tsconfig.json SVC-1-0 "{\n \"compilerOptions\": {\n \"module\": \"nodenext\"\n }\n}" + /home/src/workspaces/project/tsconfig.json SVC-1-0 "{\n \"compilerOptions\": {\n \"module\": \"nodenext\",\n \"lib\": [\"es5\"]\n }\n}" - ../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' tsconfig.json Root file specified for compilation @@ -230,7 +218,7 @@ Info seq [hh:mm:ss:mss] Files (1) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) -Info seq [hh:mm:ss:mss] Files (2) +Info seq [hh:mm:ss:mss] Files (5) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) @@ -249,7 +237,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": *, @@ -258,14 +246,21 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} -/home/src/tslibs/TS/Lib/lib.esnext.full.d.ts: *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/package.json: *new* + {"pollingInterval":2000} + {"pollingInterval":2000} +/home/src/tslibs/TS/package.json: *new* + {"pollingInterval":2000} + {"pollingInterval":2000} +/home/src/tslibs/package.json: *new* + {"pollingInterval":2000} + {"pollingInterval":2000} /home/src/workspaces/project/jsconfig.json: *new* {"pollingInterval":2000} /home/src/workspaces/project/node_modules/dependency/lib/index.d.ts: *new* @@ -317,17 +312,20 @@ Projects:: noOpenRef: true ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* - version: Text-1 - containingProjects: 1 - /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/workspaces/project/node_modules/dependency/lib/index.d.ts *new* version: Text-1 @@ -348,7 +346,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/foo.ts" @@ -358,7 +356,7 @@ Info seq [hh:mm:ss:mss] request: Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /home/src/workspaces/project/src/foo.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] getConfigFileNameForFile:: File: /home/src/workspaces/project/src/foo.ts ProjectRootPath: undefined:: Result: /home/src/workspaces/project/tsconfig.json Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) -Info seq [hh:mm:ss:mss] Files (2) +Info seq [hh:mm:ss:mss] Files (5) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) @@ -379,19 +377,26 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 1, + "request_seq": 2, "success": true } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} -/home/src/tslibs/TS/Lib/lib.esnext.full.d.ts: +/home/src/tslibs/TS/Lib/lib.es5.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} +/home/src/tslibs/TS/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} +/home/src/tslibs/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} /home/src/workspaces/project/jsconfig.json: {"pollingInterval":2000} /home/src/workspaces/project/node_modules/dependency/lib/index.d.ts: @@ -445,17 +450,20 @@ Projects:: noOpenRef: false *changed* ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts - version: Text-1 - containingProjects: 1 - /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.es5.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/workspaces/project/node_modules/dependency/lib/index.d.ts version: Text-1 @@ -477,7 +485,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "preferences": { @@ -493,7 +501,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 2, + "request_seq": 3, "success": true } After Request @@ -512,7 +520,7 @@ Projects:: Info seq [hh:mm:ss:mss] request: { - "seq": 3, + "seq": 4, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/foo.ts", @@ -555,7 +563,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "completionInfo", - "request_seq": 3, + "request_seq": 4, "success": true, "performanceData": { "updateGraphDurationMs": *, @@ -589,6 +597,18 @@ Info seq [hh:mm:ss:mss] response: "kindModifiers": "", "sortText": "15" }, + { + "name": "Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "ArrayBuffer", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "as", "kind": "keyword", @@ -625,6 +645,12 @@ Info seq [hh:mm:ss:mss] response: "kindModifiers": "", "sortText": "15" }, + { + "name": "Boolean", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "break", "kind": "keyword", @@ -661,6 +687,18 @@ Info seq [hh:mm:ss:mss] response: "kindModifiers": "", "sortText": "15" }, + { + "name": "DataView", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Date", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "debugger", "kind": "keyword", @@ -673,6 +711,18 @@ Info seq [hh:mm:ss:mss] response: "kindModifiers": "", "sortText": "15" }, + { + "name": "decodeURI", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "decodeURIComponent", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "default", "kind": "keyword", @@ -697,12 +747,42 @@ Info seq [hh:mm:ss:mss] response: "kindModifiers": "", "sortText": "15" }, + { + "name": "encodeURI", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "encodeURIComponent", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "enum", "kind": "keyword", "kindModifiers": "", "sortText": "15" }, + { + "name": "Error", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "eval", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "EvalError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "export", "kind": "keyword", @@ -727,6 +807,18 @@ Info seq [hh:mm:ss:mss] response: "kindModifiers": "", "sortText": "15" }, + { + "name": "Float32Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Float64Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "for", "kind": "keyword", @@ -739,6 +831,12 @@ Info seq [hh:mm:ss:mss] response: "kindModifiers": "", "sortText": "15" }, + { + "name": "Function", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "globalThis", "kind": "module", @@ -775,18 +873,66 @@ Info seq [hh:mm:ss:mss] response: "kindModifiers": "", "sortText": "15" }, + { + "name": "Infinity", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "instanceof", "kind": "keyword", "kindModifiers": "", "sortText": "15" }, + { + "name": "Int8Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Int16Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Int32Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "interface", "kind": "keyword", "kindModifiers": "", "sortText": "15" }, + { + "name": "Intl", + "kind": "module", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "isFinite", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "isNaN", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "JSON", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "keyof", "kind": "keyword", @@ -799,6 +945,12 @@ Info seq [hh:mm:ss:mss] response: "kindModifiers": "", "sortText": "15" }, + { + "name": "Math", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "module", "kind": "keyword", @@ -811,6 +963,12 @@ Info seq [hh:mm:ss:mss] response: "kindModifiers": "", "sortText": "15" }, + { + "name": "NaN", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "never", "kind": "keyword", @@ -835,24 +993,66 @@ Info seq [hh:mm:ss:mss] response: "kindModifiers": "", "sortText": "15" }, + { + "name": "Number", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "object", "kind": "keyword", "kindModifiers": "", "sortText": "15" }, + { + "name": "Object", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "package", "kind": "keyword", "kindModifiers": "", "sortText": "15" }, + { + "name": "parseFloat", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "parseInt", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "RangeError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "readonly", "kind": "keyword", "kindModifiers": "", "sortText": "15" }, + { + "name": "ReferenceError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "RegExp", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "return", "kind": "keyword", @@ -871,6 +1071,12 @@ Info seq [hh:mm:ss:mss] response: "kindModifiers": "", "sortText": "15" }, + { + "name": "String", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "super", "kind": "keyword", @@ -889,6 +1095,12 @@ Info seq [hh:mm:ss:mss] response: "kindModifiers": "", "sortText": "15" }, + { + "name": "SyntaxError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "this", "kind": "keyword", @@ -919,12 +1131,42 @@ Info seq [hh:mm:ss:mss] response: "kindModifiers": "", "sortText": "15" }, + { + "name": "TypeError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "typeof", "kind": "keyword", "kindModifiers": "", "sortText": "15" }, + { + "name": "Uint8Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Uint8ClampedArray", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Uint16Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Uint32Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "undefined", "kind": "var", @@ -943,6 +1185,12 @@ Info seq [hh:mm:ss:mss] response: "kindModifiers": "", "sortText": "15" }, + { + "name": "URIError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "using", "kind": "keyword", @@ -1000,6 +1248,18 @@ Info seq [hh:mm:ss:mss] response: "fileName": "/home/src/workspaces/project/node_modules/dependency/lib/index.d.ts", "isPackageJsonImport": true } + }, + { + "name": "escape", + "kind": "function", + "kindModifiers": "deprecated,declare", + "sortText": "z15" + }, + { + "name": "unescape", + "kind": "function", + "kindModifiers": "deprecated,declare", + "sortText": "z15" } ], "defaultCommitCharacters": [ @@ -1011,14 +1271,21 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} -/home/src/tslibs/TS/Lib/lib.esnext.full.d.ts: +/home/src/tslibs/TS/Lib/lib.es5.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} +/home/src/tslibs/TS/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} +/home/src/tslibs/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} /home/src/workspaces/project/jsconfig.json: {"pollingInterval":2000} /home/src/workspaces/project/node_modules/dependency/lib/index.d.ts: @@ -1075,17 +1342,20 @@ Projects:: autoImportProviderHost: /dev/null/autoImportProviderProject2* *changed* ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts - version: Text-1 - containingProjects: 1 - /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.es5.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/workspaces/project/node_modules/dependency/lib/index.d.ts *changed* version: Text-1 diff --git a/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider_globalTypingsCache.js b/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider_globalTypingsCache.js index 7153321a3af9b..aed8fbb45b0a8 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider_globalTypingsCache.js +++ b/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider_globalTypingsCache.js @@ -1,22 +1,41 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "module": "commonjs", + "lib": [ + "es5" + ], + "allowJs": true, + "checkJs": true, + "maxNodeModuleJsDepth": 2, + "target": "es5", + "newLine": "crlf", + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/home/src/Library/Caches/typescript/node_modules/@types/react-router-dom/index.d.ts] export class BrowserRouterFromDts {} //// [/home/src/Library/Caches/typescript/node_modules/@types/react-router-dom/package.json] { "name": "@types/react-router-dom", "version": "16.8.4", "types": "index.d.ts" } -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - //// [/home/src/workspaces/project/index.js] BrowserRouter @@ -34,12 +53,12 @@ export {}; { "dependencies": { "react-router-dom": "*" } } //// [/home/src/workspaces/project/tsconfig.json] -{ "compilerOptions": { "module": "commonjs", "allowJs": true, "checkJs": true, "maxNodeModuleJsDepth": 2 }, "typeAcquisition": { "enable": true } } +{ "compilerOptions": { "module": "commonjs", "lib": ["es5"], "allowJs": true, "checkJs": true, "maxNodeModuleJsDepth": 2 }, "typeAcquisition": { "enable": true } } Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/home/src/Library/Caches/typescript/node_modules/@types/react-router-dom/package.json" @@ -60,7 +79,7 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/Library/Caches/typescript/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/Library/Caches/typescript/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/Library/Caches/typescript/node_modules/@types/react-router-dom/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/Library/Caches/typescript/node_modules/@types/react-router-dom/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots @@ -78,19 +97,19 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (5) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/Library/Caches/typescript/node_modules/@types/react-router-dom/package.json SVC-1-0 "{ \"name\": \"@types/react-router-dom\", \"version\": \"16.8.4\", \"types\": \"index.d.ts\" }" /home/src/Library/Caches/typescript/node_modules/@types/react-router-dom/index.d.ts Text-1 "export class BrowserRouterFromDts {}" - ../../../../../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../../../../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../../../../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../../../../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../../../../../tslibs/TS/Lib/lib.es5.d.ts' ../../../../../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../../../../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../../../../../tslibs/TS/Lib/lib.es5.d.ts' package.json Root file specified for compilation index.d.ts @@ -109,7 +128,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -131,12 +150,12 @@ watchedFiles:: {"pollingInterval":2000} /home/src/Library/Caches/typescript/node_modules/tsconfig.json: *new* {"pollingInterval":2000} -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* + {"pollingInterval":500} watchedDirectoriesRecursive:: /home/src/Library/Caches/node_modules/@types: *new* @@ -170,22 +189,22 @@ ScriptInfos:: version: SVC-1-0 containingProjects: 1 /dev/null/inferredProject1* *default* -/home/src/tslibs/TS/Lib/lib.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.js" @@ -201,6 +220,9 @@ Info seq [hh:mm:ss:mss] Config: /home/src/workspaces/project/tsconfig.json : { ], "options": { "module": 1, + "lib": [ + "lib.es5.d.ts" + ], "allowJs": true, "checkJs": true, "maxNodeModuleJsDepth": 2, @@ -227,18 +249,18 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/index.js SVC-1-0 "BrowserRouter" - ../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' index.js Matched by default include pattern '**/*' @@ -306,7 +328,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 1, + "request_seq": 2, "success": true, "performanceData": { "updateGraphDurationMs": *, @@ -330,12 +352,12 @@ watchedFiles:: {"pollingInterval":2000} /home/src/Library/Caches/typescript/node_modules/tsconfig.json: {"pollingInterval":2000} -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: + {"pollingInterval":500} /home/src/workspaces/project/package.json: *new* {"pollingInterval":250} /home/src/workspaces/project/tsconfig.json: *new* @@ -387,17 +409,17 @@ ScriptInfos:: version: SVC-1-0 containingProjects: 1 /dev/null/inferredProject1* *default* -/home/src/tslibs/TS/Lib/lib.d.ts *changed* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *changed* version: Text-1 containingProjects: 2 *changed* /dev/null/inferredProject1* /home/src/workspaces/project/tsconfig.json *new* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *changed* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *changed* version: Text-1 containingProjects: 2 *changed* /dev/null/inferredProject1* /home/src/workspaces/project/tsconfig.json *new* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *changed* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *changed* version: Text-1 containingProjects: 2 *changed* /dev/null/inferredProject1* @@ -409,7 +431,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "preferences": { @@ -424,7 +446,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 2, + "request_seq": 3, "success": true } After Request @@ -443,7 +465,7 @@ Projects:: Info seq [hh:mm:ss:mss] request: { - "seq": 3, + "seq": 4, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.js", @@ -474,7 +496,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "completionInfo", - "request_seq": 3, + "request_seq": 4, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -1070,12 +1092,12 @@ watchedFiles:: {"pollingInterval":2000} /home/src/Library/Caches/typescript/node_modules/tsconfig.json: {"pollingInterval":2000} -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: + {"pollingInterval":500} /home/src/workspaces/project/package.json: {"pollingInterval":250} /home/src/workspaces/project/tsconfig.json: diff --git a/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider_importsMap1.js b/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider_importsMap1.js index 6d6a827fa7538..734173e144a2b 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider_importsMap1.js +++ b/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider_importsMap1.js @@ -1,16 +1,34 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "module": "nodenext", + "lib": [ + "es5" + ], + "rootDir": "/home/src/workspaces/project/src", + "outDir": "/home/src/workspaces/project/dist", + "target": "es5", + "newLine": "crlf", + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/home/src/workspaces/project/package.json] { "type": "module", @@ -35,6 +53,7 @@ export const isBrowser = false; { "compilerOptions": { "module": "nodenext", + "lib": ["es5"], "rootDir": "src", "outDir": "dist" } @@ -43,7 +62,7 @@ export const isBrowser = false; Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/home/src/workspaces/project/tsconfig.json" @@ -61,6 +80,9 @@ Info seq [hh:mm:ss:mss] Config: /home/src/workspaces/project/tsconfig.json : { ], "options": { "module": 199, + "lib": [ + "lib.es5.d.ts" + ], "rootDir": "/home/src/workspaces/project/src", "outDir": "/home/src/workspaces/project/dist", "configFilePath": "/home/src/workspaces/project/tsconfig.json" @@ -82,22 +104,36 @@ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/p Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/src/env/browser.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/src/env/node.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/src/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/src/env/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.esnext.full.d.ts 500 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Missing file Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) -Info seq [hh:mm:ss:mss] Files (3) +Info seq [hh:mm:ss:mss] Files (6) + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text + /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/src/a.ts Text-1 "isBrowser" /home/src/workspaces/project/src/env/browser.ts Text-1 "export const isBrowser = true;" /home/src/workspaces/project/src/env/node.ts Text-1 "export const isBrowser = false;" + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions + ../../tslibs/TS/Lib/lib.decorators.d.ts + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' + ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' src/a.ts Matched by default include pattern '**/*' File is ECMAScript module because 'package.json' has field "type" with value "module" @@ -126,62 +162,16 @@ Info seq [hh:mm:ss:mss] event: "body": { "triggerFile": "/home/src/workspaces/project/tsconfig.json", "configFile": "/home/src/workspaces/project/tsconfig.json", - "diagnostics": [ - { - "text": "File '/home/src/tslibs/TS/Lib/lib.esnext.full.d.ts' not found.\n The file is in the program because:\n Default library for target 'esnext'", - "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" - } - ] + "diagnostics": [] } } Info seq [hh:mm:ss:mss] getConfigFileNameForFile:: File: /home/src/workspaces/project/tsconfig.json ProjectRootPath: undefined:: Result: undefined Info seq [hh:mm:ss:mss] Creating InferredProject: /dev/null/inferredProject1*, currentDirectory: /home/src/workspaces/project Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots @@ -189,25 +179,25 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text - /home/src/workspaces/project/tsconfig.json SVC-1-0 "{\n \"compilerOptions\": {\n \"module\": \"nodenext\",\n \"rootDir\": \"src\",\n \"outDir\": \"dist\"\n }\n}" + /home/src/workspaces/project/tsconfig.json SVC-1-0 "{\n \"compilerOptions\": {\n \"module\": \"nodenext\",\n \"lib\": [\"es5\"],\n \"rootDir\": \"src\",\n \"outDir\": \"dist\"\n }\n}" - ../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' tsconfig.json Root file specified for compilation Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/package.json 250 undefined WatchType: package.json file Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) -Info seq [hh:mm:ss:mss] Files (3) +Info seq [hh:mm:ss:mss] Files (6) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) @@ -222,7 +212,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -230,14 +220,21 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} -/home/src/tslibs/TS/Lib/lib.esnext.full.d.ts: *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/package.json: *new* + {"pollingInterval":2000} + {"pollingInterval":2000} +/home/src/tslibs/TS/package.json: *new* + {"pollingInterval":2000} + {"pollingInterval":2000} +/home/src/tslibs/package.json: *new* + {"pollingInterval":2000} + {"pollingInterval":2000} /home/src/workspaces/project/jsconfig.json: *new* {"pollingInterval":2000} /home/src/workspaces/project/package.json: *new* @@ -277,17 +274,20 @@ Projects:: noOpenRef: true ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* - version: Text-1 - containingProjects: 1 - /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/workspaces/project/src/a.ts *new* version: Text-1 @@ -308,7 +308,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "preferences": { @@ -323,7 +323,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 1, + "request_seq": 2, "success": true } After Request @@ -339,7 +339,7 @@ Projects:: Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/a.ts", @@ -352,13 +352,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "syntacticDiagnosticsSync", - "request_seq": 2, + "request_seq": 3, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 3, + "seq": 4, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/a.ts", @@ -371,7 +371,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "semanticDiagnosticsSync", - "request_seq": 3, + "request_seq": 4, "success": true, "body": [ { @@ -393,7 +393,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 4, + "seq": 5, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/a.ts", @@ -406,13 +406,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "suggestionDiagnosticsSync", - "request_seq": 4, + "request_seq": 5, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 5, + "seq": 6, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/a.ts", @@ -431,7 +431,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "getCodeFixes", - "request_seq": 5, + "request_seq": 6, "success": true, "body": [ { diff --git a/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider_importsMap2.js b/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider_importsMap2.js index 128c4bb8fd06d..7ad6e0d6deeac 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider_importsMap2.js +++ b/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider_importsMap2.js @@ -1,16 +1,34 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "module": "nodenext", + "lib": [ + "es5" + ], + "rootDir": "/home/src/workspaces/project/src", + "outDir": "/home/src/workspaces/project/dist", + "target": "es5", + "newLine": "crlf", + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/home/src/workspaces/project/package.json] { "type": "module", @@ -29,6 +47,7 @@ export function something(name: string) {} { "compilerOptions": { "module": "nodenext", + "lib": ["es5"], "rootDir": "src", "outDir": "dist" } @@ -37,7 +56,7 @@ export function something(name: string) {} Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/home/src/workspaces/project/tsconfig.json" @@ -54,6 +73,9 @@ Info seq [hh:mm:ss:mss] Config: /home/src/workspaces/project/tsconfig.json : { ], "options": { "module": 199, + "lib": [ + "lib.es5.d.ts" + ], "rootDir": "/home/src/workspaces/project/src", "outDir": "/home/src/workspaces/project/dist", "configFilePath": "/home/src/workspaces/project/tsconfig.json" @@ -74,21 +96,35 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/src/a.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/src/internal/foo.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/src/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/src/internal/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.esnext.full.d.ts 500 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Missing file Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) -Info seq [hh:mm:ss:mss] Files (2) +Info seq [hh:mm:ss:mss] Files (5) + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text + /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/src/a.ts Text-1 "something" /home/src/workspaces/project/src/internal/foo.ts Text-1 "export function something(name: string) {}" + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions + ../../tslibs/TS/Lib/lib.decorators.d.ts + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' + ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' src/a.ts Matched by default include pattern '**/*' File is ECMAScript module because 'package.json' has field "type" with value "module" @@ -114,62 +150,16 @@ Info seq [hh:mm:ss:mss] event: "body": { "triggerFile": "/home/src/workspaces/project/tsconfig.json", "configFile": "/home/src/workspaces/project/tsconfig.json", - "diagnostics": [ - { - "text": "File '/home/src/tslibs/TS/Lib/lib.esnext.full.d.ts' not found.\n The file is in the program because:\n Default library for target 'esnext'", - "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" - } - ] + "diagnostics": [] } } Info seq [hh:mm:ss:mss] getConfigFileNameForFile:: File: /home/src/workspaces/project/tsconfig.json ProjectRootPath: undefined:: Result: undefined Info seq [hh:mm:ss:mss] Creating InferredProject: /dev/null/inferredProject1*, currentDirectory: /home/src/workspaces/project Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots @@ -177,25 +167,25 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text - /home/src/workspaces/project/tsconfig.json SVC-1-0 "{\n \"compilerOptions\": {\n \"module\": \"nodenext\",\n \"rootDir\": \"src\",\n \"outDir\": \"dist\"\n }\n}" + /home/src/workspaces/project/tsconfig.json SVC-1-0 "{\n \"compilerOptions\": {\n \"module\": \"nodenext\",\n \"lib\": [\"es5\"],\n \"rootDir\": \"src\",\n \"outDir\": \"dist\"\n }\n}" - ../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' tsconfig.json Root file specified for compilation Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/package.json 250 undefined WatchType: package.json file Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) -Info seq [hh:mm:ss:mss] Files (2) +Info seq [hh:mm:ss:mss] Files (5) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) @@ -210,7 +200,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -218,14 +208,21 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} -/home/src/tslibs/TS/Lib/lib.esnext.full.d.ts: *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/package.json: *new* + {"pollingInterval":2000} + {"pollingInterval":2000} +/home/src/tslibs/TS/package.json: *new* + {"pollingInterval":2000} + {"pollingInterval":2000} +/home/src/tslibs/package.json: *new* + {"pollingInterval":2000} + {"pollingInterval":2000} /home/src/workspaces/project/jsconfig.json: *new* {"pollingInterval":2000} /home/src/workspaces/project/package.json: *new* @@ -263,17 +260,20 @@ Projects:: noOpenRef: true ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* - version: Text-1 - containingProjects: 1 - /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/workspaces/project/src/a.ts *new* version: Text-1 @@ -290,7 +290,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "preferences": { @@ -305,7 +305,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 1, + "request_seq": 2, "success": true } After Request @@ -321,7 +321,7 @@ Projects:: Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/a.ts", @@ -334,13 +334,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "syntacticDiagnosticsSync", - "request_seq": 2, + "request_seq": 3, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 3, + "seq": 4, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/a.ts", @@ -353,7 +353,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "semanticDiagnosticsSync", - "request_seq": 3, + "request_seq": 4, "success": true, "body": [ { @@ -375,7 +375,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 4, + "seq": 5, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/a.ts", @@ -388,13 +388,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "suggestionDiagnosticsSync", - "request_seq": 4, + "request_seq": 5, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 5, + "seq": 6, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/a.ts", @@ -413,7 +413,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "getCodeFixes", - "request_seq": 5, + "request_seq": 6, "success": true, "body": [ { diff --git a/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider_importsMap3.js b/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider_importsMap3.js index a00c375a4b2b5..aa1b6be70d05f 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider_importsMap3.js +++ b/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider_importsMap3.js @@ -1,16 +1,34 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "module": "nodenext", + "lib": [ + "es5" + ], + "rootDir": "/home/src/workspaces/project/src", + "outDir": "/home/src/workspaces/project/dist", + "target": "es5", + "newLine": "crlf", + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/home/src/workspaces/project/package.json] { "type": "module", @@ -29,6 +47,7 @@ export function something(name: string) {} { "compilerOptions": { "module": "nodenext", + "lib": ["es5"], "rootDir": "src", "outDir": "dist" } @@ -37,7 +56,7 @@ export function something(name: string) {} Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/home/src/workspaces/project/tsconfig.json" @@ -54,6 +73,9 @@ Info seq [hh:mm:ss:mss] Config: /home/src/workspaces/project/tsconfig.json : { ], "options": { "module": 199, + "lib": [ + "lib.es5.d.ts" + ], "rootDir": "/home/src/workspaces/project/src", "outDir": "/home/src/workspaces/project/dist", "configFilePath": "/home/src/workspaces/project/tsconfig.json" @@ -74,21 +96,35 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/src/a.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/src/internal/foo.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/src/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/src/internal/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.esnext.full.d.ts 500 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Missing file Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) -Info seq [hh:mm:ss:mss] Files (2) +Info seq [hh:mm:ss:mss] Files (5) + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text + /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/src/a.ts Text-1 "something" /home/src/workspaces/project/src/internal/foo.ts Text-1 "export function something(name: string) {}" + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions + ../../tslibs/TS/Lib/lib.decorators.d.ts + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' + ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' src/a.ts Matched by default include pattern '**/*' File is ECMAScript module because 'package.json' has field "type" with value "module" @@ -114,62 +150,16 @@ Info seq [hh:mm:ss:mss] event: "body": { "triggerFile": "/home/src/workspaces/project/tsconfig.json", "configFile": "/home/src/workspaces/project/tsconfig.json", - "diagnostics": [ - { - "text": "File '/home/src/tslibs/TS/Lib/lib.esnext.full.d.ts' not found.\n The file is in the program because:\n Default library for target 'esnext'", - "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" - } - ] + "diagnostics": [] } } Info seq [hh:mm:ss:mss] getConfigFileNameForFile:: File: /home/src/workspaces/project/tsconfig.json ProjectRootPath: undefined:: Result: undefined Info seq [hh:mm:ss:mss] Creating InferredProject: /dev/null/inferredProject1*, currentDirectory: /home/src/workspaces/project Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots @@ -177,25 +167,25 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text - /home/src/workspaces/project/tsconfig.json SVC-1-0 "{\n \"compilerOptions\": {\n \"module\": \"nodenext\",\n \"rootDir\": \"src\",\n \"outDir\": \"dist\"\n }\n}" + /home/src/workspaces/project/tsconfig.json SVC-1-0 "{\n \"compilerOptions\": {\n \"module\": \"nodenext\",\n \"lib\": [\"es5\"],\n \"rootDir\": \"src\",\n \"outDir\": \"dist\"\n }\n}" - ../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' tsconfig.json Root file specified for compilation Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/package.json 250 undefined WatchType: package.json file Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) -Info seq [hh:mm:ss:mss] Files (2) +Info seq [hh:mm:ss:mss] Files (5) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) @@ -210,7 +200,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -218,14 +208,21 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} -/home/src/tslibs/TS/Lib/lib.esnext.full.d.ts: *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/package.json: *new* + {"pollingInterval":2000} + {"pollingInterval":2000} +/home/src/tslibs/TS/package.json: *new* + {"pollingInterval":2000} + {"pollingInterval":2000} +/home/src/tslibs/package.json: *new* + {"pollingInterval":2000} + {"pollingInterval":2000} /home/src/workspaces/project/jsconfig.json: *new* {"pollingInterval":2000} /home/src/workspaces/project/package.json: *new* @@ -263,17 +260,20 @@ Projects:: noOpenRef: true ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* - version: Text-1 - containingProjects: 1 - /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/workspaces/project/src/a.ts *new* version: Text-1 @@ -290,7 +290,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "preferences": { @@ -305,7 +305,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 1, + "request_seq": 2, "success": true } After Request @@ -321,7 +321,7 @@ Projects:: Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/a.ts", @@ -334,13 +334,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "syntacticDiagnosticsSync", - "request_seq": 2, + "request_seq": 3, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 3, + "seq": 4, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/a.ts", @@ -353,7 +353,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "semanticDiagnosticsSync", - "request_seq": 3, + "request_seq": 4, "success": true, "body": [ { @@ -375,7 +375,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 4, + "seq": 5, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/a.ts", @@ -388,13 +388,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "suggestionDiagnosticsSync", - "request_seq": 4, + "request_seq": 5, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 5, + "seq": 6, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/a.ts", @@ -413,7 +413,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "getCodeFixes", - "request_seq": 5, + "request_seq": 6, "success": true, "body": [ { diff --git a/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider_importsMap4.js b/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider_importsMap4.js index f792e3a8d8792..394edb564c5bf 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider_importsMap4.js +++ b/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider_importsMap4.js @@ -1,16 +1,34 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "module": "nodenext", + "lib": [ + "es5" + ], + "rootDir": "/home/src/workspaces/project/src", + "outDir": "/home/src/workspaces/project/dist", + "target": "es5", + "newLine": "crlf", + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/home/src/workspaces/project/package.json] { "type": "module", @@ -32,6 +50,7 @@ export const isBrowser = true; { "compilerOptions": { "module": "nodenext", + "lib": ["es5"], "rootDir": "src", "outDir": "dist" } @@ -40,7 +59,7 @@ export const isBrowser = true; Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/home/src/workspaces/project/tsconfig.json" @@ -57,6 +76,9 @@ Info seq [hh:mm:ss:mss] Config: /home/src/workspaces/project/tsconfig.json : { ], "options": { "module": 199, + "lib": [ + "lib.es5.d.ts" + ], "rootDir": "/home/src/workspaces/project/src", "outDir": "/home/src/workspaces/project/dist", "configFilePath": "/home/src/workspaces/project/tsconfig.json" @@ -77,21 +99,35 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/src/a.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/src/env/browser.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/src/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/src/env/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.esnext.full.d.ts 500 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Missing file Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) -Info seq [hh:mm:ss:mss] Files (2) +Info seq [hh:mm:ss:mss] Files (5) + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text + /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/src/a.ts Text-1 "isBrowser" /home/src/workspaces/project/src/env/browser.ts Text-1 "export const isBrowser = true;" + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions + ../../tslibs/TS/Lib/lib.decorators.d.ts + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' + ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' src/a.ts Matched by default include pattern '**/*' File is ECMAScript module because 'package.json' has field "type" with value "module" @@ -117,62 +153,16 @@ Info seq [hh:mm:ss:mss] event: "body": { "triggerFile": "/home/src/workspaces/project/tsconfig.json", "configFile": "/home/src/workspaces/project/tsconfig.json", - "diagnostics": [ - { - "text": "File '/home/src/tslibs/TS/Lib/lib.esnext.full.d.ts' not found.\n The file is in the program because:\n Default library for target 'esnext'", - "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" - } - ] + "diagnostics": [] } } Info seq [hh:mm:ss:mss] getConfigFileNameForFile:: File: /home/src/workspaces/project/tsconfig.json ProjectRootPath: undefined:: Result: undefined Info seq [hh:mm:ss:mss] Creating InferredProject: /dev/null/inferredProject1*, currentDirectory: /home/src/workspaces/project Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots @@ -180,25 +170,25 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text - /home/src/workspaces/project/tsconfig.json SVC-1-0 "{\n \"compilerOptions\": {\n \"module\": \"nodenext\",\n \"rootDir\": \"src\",\n \"outDir\": \"dist\"\n }\n}" + /home/src/workspaces/project/tsconfig.json SVC-1-0 "{\n \"compilerOptions\": {\n \"module\": \"nodenext\",\n \"lib\": [\"es5\"],\n \"rootDir\": \"src\",\n \"outDir\": \"dist\"\n }\n}" - ../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' tsconfig.json Root file specified for compilation Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/package.json 250 undefined WatchType: package.json file Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) -Info seq [hh:mm:ss:mss] Files (2) +Info seq [hh:mm:ss:mss] Files (5) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) @@ -213,7 +203,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -221,14 +211,21 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} -/home/src/tslibs/TS/Lib/lib.esnext.full.d.ts: *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/package.json: *new* + {"pollingInterval":2000} + {"pollingInterval":2000} +/home/src/tslibs/TS/package.json: *new* + {"pollingInterval":2000} + {"pollingInterval":2000} +/home/src/tslibs/package.json: *new* + {"pollingInterval":2000} + {"pollingInterval":2000} /home/src/workspaces/project/jsconfig.json: *new* {"pollingInterval":2000} /home/src/workspaces/project/package.json: *new* @@ -266,17 +263,20 @@ Projects:: noOpenRef: true ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* - version: Text-1 - containingProjects: 1 - /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/workspaces/project/src/a.ts *new* version: Text-1 @@ -293,7 +293,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "preferences": { @@ -308,7 +308,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 1, + "request_seq": 2, "success": true } After Request @@ -324,7 +324,7 @@ Projects:: Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/a.ts", @@ -337,13 +337,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "syntacticDiagnosticsSync", - "request_seq": 2, + "request_seq": 3, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 3, + "seq": 4, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/a.ts", @@ -356,7 +356,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "semanticDiagnosticsSync", - "request_seq": 3, + "request_seq": 4, "success": true, "body": [ { @@ -378,7 +378,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 4, + "seq": 5, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/a.ts", @@ -391,13 +391,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "suggestionDiagnosticsSync", - "request_seq": 4, + "request_seq": 5, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 5, + "seq": 6, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/a.ts", @@ -416,7 +416,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "getCodeFixes", - "request_seq": 5, + "request_seq": 6, "success": true, "body": [ { diff --git a/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider_importsMap5.js b/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider_importsMap5.js index ac5f80ab9cf14..7b5ef1252c8e4 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider_importsMap5.js +++ b/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider_importsMap5.js @@ -1,16 +1,35 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "module": "nodenext", + "lib": [ + "es5" + ], + "rootDir": "/home/src/workspaces/project/src", + "outDir": "/home/src/workspaces/project/dist", + "declarationDir": "/home/src/workspaces/project/types", + "target": "es5", + "newLine": "crlf", + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/home/src/workspaces/project/package.json] { "type": "module", @@ -32,6 +51,7 @@ export const isBrowser = true; { "compilerOptions": { "module": "nodenext", + "lib": ["es5"], "rootDir": "src", "outDir": "dist", "declarationDir": "types", @@ -41,7 +61,7 @@ export const isBrowser = true; Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/home/src/workspaces/project/tsconfig.json" @@ -58,6 +78,9 @@ Info seq [hh:mm:ss:mss] Config: /home/src/workspaces/project/tsconfig.json : { ], "options": { "module": 199, + "lib": [ + "lib.es5.d.ts" + ], "rootDir": "/home/src/workspaces/project/src", "outDir": "/home/src/workspaces/project/dist", "declarationDir": "/home/src/workspaces/project/types", @@ -79,21 +102,35 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/src/a.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/src/env/browser.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/src/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/src/env/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.esnext.full.d.ts 500 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Missing file Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) -Info seq [hh:mm:ss:mss] Files (2) +Info seq [hh:mm:ss:mss] Files (5) + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text + /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/src/a.ts Text-1 "isBrowser" /home/src/workspaces/project/src/env/browser.ts Text-1 "export const isBrowser = true;" + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions + ../../tslibs/TS/Lib/lib.decorators.d.ts + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' + ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' src/a.ts Matched by default include pattern '**/*' File is ECMAScript module because 'package.json' has field "type" with value "module" @@ -120,64 +157,19 @@ Info seq [hh:mm:ss:mss] event: "triggerFile": "/home/src/workspaces/project/tsconfig.json", "configFile": "/home/src/workspaces/project/tsconfig.json", "diagnostics": [ - { - "text": "File '/home/src/tslibs/TS/Lib/lib.esnext.full.d.ts' not found.\n The file is in the program because:\n Default library for target 'esnext'", - "code": 6053, - "category": "error" - }, { "start": { - "line": 6, + "line": 7, "offset": 5 }, "end": { - "line": 6, + "line": 7, "offset": 21 }, "text": "Option 'declarationDir' cannot be specified without specifying option 'declaration' or option 'composite'.", "code": 5069, "category": "error", "fileName": "/home/src/workspaces/project/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" } ] } @@ -186,9 +178,9 @@ Info seq [hh:mm:ss:mss] getConfigFileNameForFile:: File: /home/src/workspaces/p Info seq [hh:mm:ss:mss] Creating InferredProject: /dev/null/inferredProject1*, currentDirectory: /home/src/workspaces/project Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots @@ -196,25 +188,25 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text - /home/src/workspaces/project/tsconfig.json SVC-1-0 "{\n \"compilerOptions\": {\n \"module\": \"nodenext\",\n \"rootDir\": \"src\",\n \"outDir\": \"dist\",\n \"declarationDir\": \"types\",\n }\n}" + /home/src/workspaces/project/tsconfig.json SVC-1-0 "{\n \"compilerOptions\": {\n \"module\": \"nodenext\",\n \"lib\": [\"es5\"],\n \"rootDir\": \"src\",\n \"outDir\": \"dist\",\n \"declarationDir\": \"types\",\n }\n}" - ../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' tsconfig.json Root file specified for compilation Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/package.json 250 undefined WatchType: package.json file Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) -Info seq [hh:mm:ss:mss] Files (2) +Info seq [hh:mm:ss:mss] Files (5) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) @@ -229,7 +221,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -237,14 +229,21 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} -/home/src/tslibs/TS/Lib/lib.esnext.full.d.ts: *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/package.json: *new* + {"pollingInterval":2000} + {"pollingInterval":2000} +/home/src/tslibs/TS/package.json: *new* + {"pollingInterval":2000} + {"pollingInterval":2000} +/home/src/tslibs/package.json: *new* + {"pollingInterval":2000} + {"pollingInterval":2000} /home/src/workspaces/project/jsconfig.json: *new* {"pollingInterval":2000} /home/src/workspaces/project/package.json: *new* @@ -282,17 +281,20 @@ Projects:: noOpenRef: true ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* - version: Text-1 - containingProjects: 1 - /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/workspaces/project/src/a.ts *new* version: Text-1 @@ -309,7 +311,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "preferences": { @@ -324,7 +326,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 1, + "request_seq": 2, "success": true } After Request @@ -340,7 +342,7 @@ Projects:: Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/a.ts", @@ -353,13 +355,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "syntacticDiagnosticsSync", - "request_seq": 2, + "request_seq": 3, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 3, + "seq": 4, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/a.ts", @@ -372,7 +374,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "semanticDiagnosticsSync", - "request_seq": 3, + "request_seq": 4, "success": true, "body": [ { @@ -394,7 +396,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 4, + "seq": 5, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/a.ts", @@ -407,13 +409,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "suggestionDiagnosticsSync", - "request_seq": 4, + "request_seq": 5, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 5, + "seq": 6, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/a.ts", @@ -432,7 +434,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "getCodeFixes", - "request_seq": 5, + "request_seq": 6, "success": true, "body": [ { diff --git a/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider_namespaceSameNameAsIntrinsic.js b/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider_namespaceSameNameAsIntrinsic.js index 494bff29d8f01..5cdbae30bd005 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider_namespaceSameNameAsIntrinsic.js +++ b/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider_namespaceSameNameAsIntrinsic.js @@ -1,16 +1,32 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "module": "commonjs", + "lib": [ + "es5" + ], + "target": "es5", + "newLine": "crlf", + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/home/src/workspaces/project/index.ts] type A = { name: string } @@ -28,12 +44,12 @@ export type SafeString = string; { "dependencies": { "fp-ts": "^0.10.4" } } //// [/home/src/workspaces/project/tsconfig.json] -{ "compilerOptions": { "module": "commonjs" } } +{ "compilerOptions": { "module": "commonjs", "lib": ["es5"] } } Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/home/src/workspaces/project/node_modules/fp-ts/package.json" @@ -47,7 +63,7 @@ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/p Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/fp-ts/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots @@ -61,18 +77,18 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/node_modules/fp-ts/package.json SVC-1-0 "{ \"name\": \"fp-ts\", \"version\": \"0.10.4\" }" - ../../../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../../../tslibs/TS/Lib/lib.es5.d.ts' ../../../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../../../tslibs/TS/Lib/lib.es5.d.ts' package.json Root file specified for compilation @@ -89,7 +105,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -97,12 +113,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* + {"pollingInterval":500} /home/src/workspaces/project/node_modules/fp-ts/jsconfig.json: *new* {"pollingInterval":2000} /home/src/workspaces/project/node_modules/fp-ts/tsconfig.json: *new* @@ -128,15 +144,15 @@ Projects:: projectProgramVersion: 1 ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* @@ -147,7 +163,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts" @@ -163,6 +179,9 @@ Info seq [hh:mm:ss:mss] Config: /home/src/workspaces/project/tsconfig.json : { ], "options": { "module": 1, + "lib": [ + "lib.es5.d.ts" + ], "configFilePath": "/home/src/workspaces/project/tsconfig.json" } } @@ -186,18 +205,18 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/index.ts SVC-1-0 "type A = { name: string }" - ../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' index.ts Matched by default include pattern '**/*' @@ -267,7 +286,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 1, + "request_seq": 2, "success": true, "performanceData": { "updateGraphDurationMs": *, @@ -276,12 +295,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: + {"pollingInterval":500} /home/src/workspaces/project/node_modules/fp-ts/index.d.ts: *new* {"pollingInterval":500} /home/src/workspaces/project/node_modules/fp-ts/jsconfig.json: @@ -332,17 +351,17 @@ Projects:: autoImportProviderHost: /dev/null/autoImportProviderProject1* ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *changed* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *changed* version: Text-1 containingProjects: 2 *changed* /dev/null/inferredProject1* /home/src/workspaces/project/tsconfig.json *new* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *changed* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *changed* version: Text-1 containingProjects: 2 *changed* /dev/null/inferredProject1* /home/src/workspaces/project/tsconfig.json *new* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *changed* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *changed* version: Text-1 containingProjects: 2 *changed* /dev/null/inferredProject1* @@ -366,7 +385,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "preferences": { @@ -381,7 +400,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 2, + "request_seq": 3, "success": true } After Request @@ -400,7 +419,7 @@ Projects:: Info seq [hh:mm:ss:mss] request: { - "seq": 3, + "seq": 4, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -432,7 +451,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "completionInfo", - "request_seq": 3, + "request_seq": 4, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -1343,12 +1362,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: + {"pollingInterval":500} /home/src/workspaces/project/node_modules/fp-ts/index.d.ts: {"pollingInterval":500} /home/src/workspaces/project/node_modules/fp-ts/jsconfig.json: diff --git a/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider_pnpm.js b/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider_pnpm.js index 4e2f75866d226..5855fc63777ac 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider_pnpm.js +++ b/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider_pnpm.js @@ -1,16 +1,32 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "module": "commonjs", + "lib": [ + "es5" + ], + "target": "es5", + "newLine": "crlf", + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/home/src/workspaces/project/index.ts] autorun @@ -25,12 +41,12 @@ export declare function autorun(): void; { "dependencies": { "mobx": "*" } } //// [/home/src/workspaces/project/tsconfig.json] -{ "compilerOptions": { "module": "commonjs" } } +{ "compilerOptions": { "module": "commonjs", "lib": ["es5"] } } Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/home/src/workspaces/project/tsconfig.json" @@ -46,6 +62,9 @@ Info seq [hh:mm:ss:mss] Config: /home/src/workspaces/project/tsconfig.json : { ], "options": { "module": 1, + "lib": [ + "lib.es5.d.ts" + ], "configFilePath": "/home/src/workspaces/project/tsconfig.json" } } @@ -63,7 +82,7 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspa Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project 1 undefined Config: /home/src/workspaces/project/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/index.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots @@ -73,18 +92,18 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/index.ts Text-1 "autorun" - ../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' index.ts Matched by default include pattern '**/*' @@ -120,18 +139,18 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text - /home/src/workspaces/project/tsconfig.json SVC-1-0 "{ \"compilerOptions\": { \"module\": \"commonjs\" } }" + /home/src/workspaces/project/tsconfig.json SVC-1-0 "{ \"compilerOptions\": { \"module\": \"commonjs\", \"lib\": [\"es5\"] } }" - ../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' tsconfig.json Root file specified for compilation @@ -173,7 +192,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": *, @@ -182,12 +201,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* + {"pollingInterval":500} /home/src/workspaces/project/index.ts: *new* {"pollingInterval":500} /home/src/workspaces/project/jsconfig.json: *new* @@ -227,17 +246,17 @@ Projects:: noOpenRef: true ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -257,7 +276,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts" @@ -288,17 +307,17 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 1, + "request_seq": 2, "success": true } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: + {"pollingInterval":500} /home/src/workspaces/project/jsconfig.json: {"pollingInterval":2000} /home/src/workspaces/project/node_modules/.pnpm/mobx@6.0.4/node_modules/mobx/dist/mobx.d.ts: @@ -340,17 +359,17 @@ Projects:: noOpenRef: false *changed* ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -371,7 +390,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "preferences": {} @@ -383,12 +402,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 2, + "request_seq": 3, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 3, + "seq": 4, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -401,13 +420,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "syntacticDiagnosticsSync", - "request_seq": 3, + "request_seq": 4, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 4, + "seq": 5, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -420,7 +439,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "semanticDiagnosticsSync", - "request_seq": 4, + "request_seq": 5, "success": true, "body": [ { @@ -442,7 +461,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 5, + "seq": 6, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -455,13 +474,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "suggestionDiagnosticsSync", - "request_seq": 5, + "request_seq": 6, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 6, + "seq": 7, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -498,7 +517,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "getCodeFixes", - "request_seq": 6, + "request_seq": 7, "success": true, "performanceData": { "updateGraphDurationMs": *, @@ -531,12 +550,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: + {"pollingInterval":500} /home/src/workspaces/project/jsconfig.json: {"pollingInterval":2000} /home/src/workspaces/project/node_modules/.pnpm/mobx@6.0.4/node_modules/mobx/dist/mobx.d.ts: @@ -581,17 +600,17 @@ Projects:: autoImportProviderHost: /dev/null/autoImportProviderProject2* *changed* ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -612,7 +631,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 7, + "seq": 8, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -629,7 +648,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 7, + "request_seq": 8, "success": true } After Request @@ -651,17 +670,17 @@ Projects:: autoImportProviderHost: /dev/null/autoImportProviderProject2* ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -682,7 +701,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 8, + "seq": 9, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -699,22 +718,22 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 8, + "request_seq": 9, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json diff --git a/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider_referencesCrash.js b/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider_referencesCrash.js index 15537121285e3..e6bcc8f9af6ad 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider_referencesCrash.js +++ b/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider_referencesCrash.js @@ -1,16 +1,32 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "lib": [ + "es5" + ], + "target": "es5", + "newLine": "crlf", + "skipDefaultLibCheck": true, + "disableSourceOfProjectReferenceRedirect": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/home/src/workspaces/project/a/index.d.ts] declare class A { } @@ -26,7 +42,7 @@ class A {} {} //// [/home/src/workspaces/project/a/tsconfig.json] -{} +{ "compilerOptions": { "lib": ["es5"] } } //// [/home/src/workspaces/project/b/b.ts] /// @@ -34,7 +50,7 @@ new A(); //// [/home/src/workspaces/project/b/tsconfig.json] { - "compilerOptions": { "disableSourceOfProjectReferenceRedirect": true }, + "compilerOptions": { "disableSourceOfProjectReferenceRedirect": true, "lib": ["es5"] }, "references": [{ "path": "../a" }] } @@ -46,12 +62,12 @@ export {}; { "dependencies": { "a": "*" } } //// [/home/src/workspaces/project/c/tsconfig.json] -{ "references" [{ "path": "../a" }] } +{ "compilerOptions": { "lib": ["es5"] }, "references" [{ "path": "../a" }] } Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/home/src/workspaces/project/a/package.json" @@ -66,6 +82,9 @@ Info seq [hh:mm:ss:mss] Config: /home/src/workspaces/project/a/tsconfig.json : "/home/src/workspaces/project/a/index.ts" ], "options": { + "lib": [ + "lib.es5.d.ts" + ], "configFilePath": "/home/src/workspaces/project/a/tsconfig.json" } } @@ -83,7 +102,7 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspa Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/a 1 undefined Config: /home/src/workspaces/project/a/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/a/index.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/workspaces/project/a/tsconfig.json -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/a/node_modules/@types 1 undefined Project: /home/src/workspaces/project/a/tsconfig.json WatchType: Type roots @@ -95,18 +114,18 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/a/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/a/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/a/index.ts Text-1 "class A {}" - ../../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../../tslibs/TS/Lib/lib.es5.d.ts' ../../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../../tslibs/TS/Lib/lib.es5.d.ts' index.ts Matched by default include pattern '**/*' @@ -146,18 +165,18 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/a/package.json SVC-1-0 "{}" - ../../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../../tslibs/TS/Lib/lib.es5.d.ts' ../../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../../tslibs/TS/Lib/lib.es5.d.ts' package.json Root file specified for compilation @@ -179,7 +198,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -187,12 +206,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* + {"pollingInterval":500} /home/src/workspaces/project/a/index.ts: *new* {"pollingInterval":500} /home/src/workspaces/project/a/jsconfig.json: *new* @@ -230,17 +249,17 @@ Projects:: noOpenRef: true ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 containingProjects: 2 /home/src/workspaces/project/a/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 containingProjects: 2 /home/src/workspaces/project/a/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* version: Text-1 containingProjects: 2 /home/src/workspaces/project/a/tsconfig.json @@ -256,7 +275,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "file": "/home/src/workspaces/project/c/index.ts" @@ -271,6 +290,9 @@ Info seq [hh:mm:ss:mss] Config: /home/src/workspaces/project/c/tsconfig.json : "/home/src/workspaces/project/c/index.ts" ], "options": { + "lib": [ + "lib.es5.d.ts" + ], "configFilePath": "/home/src/workspaces/project/c/tsconfig.json" }, "projectReferences": [ @@ -302,18 +324,18 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/c/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/c/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/c/index.ts SVC-1-0 "export {};" - ../../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../../tslibs/TS/Lib/lib.es5.d.ts' ../../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../../tslibs/TS/Lib/lib.es5.d.ts' index.ts Matched by default include pattern '**/*' @@ -353,11 +375,11 @@ Info seq [hh:mm:ss:mss] event: { "start": { "line": 1, - "offset": 17 + "offset": 56 }, "end": { "line": 1, - "offset": 35 + "offset": 74 }, "text": "Referenced project '/home/src/workspaces/project/a' must have setting \"composite\": true.", "code": 6306, @@ -367,11 +389,11 @@ Info seq [hh:mm:ss:mss] event: { "start": { "line": 1, - "offset": 16 + "offset": 55 }, "end": { "line": 1, - "offset": 17 + "offset": 56 }, "text": "':' expected.", "code": 1005, @@ -407,7 +429,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 1, + "request_seq": 2, "success": true, "performanceData": { "updateGraphDurationMs": *, @@ -416,12 +438,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: + {"pollingInterval":500} /home/src/workspaces/project/a/index.ts: {"pollingInterval":500} /home/src/workspaces/project/a/jsconfig.json: @@ -476,19 +498,19 @@ Projects:: autoImportProviderHost: /dev/null/autoImportProviderProject1* ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *changed* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *changed* version: Text-1 containingProjects: 3 *changed* /home/src/workspaces/project/a/tsconfig.json /dev/null/inferredProject1* /home/src/workspaces/project/c/tsconfig.json *new* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *changed* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *changed* version: Text-1 containingProjects: 3 *changed* /home/src/workspaces/project/a/tsconfig.json /dev/null/inferredProject1* /home/src/workspaces/project/c/tsconfig.json *new* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *changed* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *changed* version: Text-1 containingProjects: 3 *changed* /home/src/workspaces/project/a/tsconfig.json @@ -510,7 +532,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "file": "/home/src/workspaces/project/b/b.ts" @@ -526,6 +548,9 @@ Info seq [hh:mm:ss:mss] Config: /home/src/workspaces/project/b/tsconfig.json : ], "options": { "disableSourceOfProjectReferenceRedirect": true, + "lib": [ + "lib.es5.d.ts" + ], "configFilePath": "/home/src/workspaces/project/b/tsconfig.json" }, "projectReferences": [ @@ -558,19 +583,19 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/b/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/b/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (5) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/a/index.d.ts Text-1 "declare class A {\n}\n//# sourceMappingURL=index.d.ts.map" /home/src/workspaces/project/b/b.ts SVC-1-0 "/// \nnew A();" - ../../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../../tslibs/TS/Lib/lib.es5.d.ts' ../../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../../tslibs/TS/Lib/lib.es5.d.ts' ../a/index.d.ts Referenced via '../a/index.d.ts' from file 'b.ts' b.ts @@ -644,7 +669,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 2, + "request_seq": 3, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -652,12 +677,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: + {"pollingInterval":500} /home/src/workspaces/project/a/index.d.ts: *new* {"pollingInterval":500} /home/src/workspaces/project/a/index.ts: @@ -725,21 +750,21 @@ Projects:: autoImportProviderHost: /dev/null/autoImportProviderProject1* ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *changed* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *changed* version: Text-1 containingProjects: 4 *changed* /home/src/workspaces/project/a/tsconfig.json /dev/null/inferredProject1* /home/src/workspaces/project/c/tsconfig.json /home/src/workspaces/project/b/tsconfig.json *new* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *changed* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *changed* version: Text-1 containingProjects: 4 *changed* /home/src/workspaces/project/a/tsconfig.json /dev/null/inferredProject1* /home/src/workspaces/project/c/tsconfig.json /home/src/workspaces/project/b/tsconfig.json *new* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *changed* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *changed* version: Text-1 containingProjects: 4 *changed* /home/src/workspaces/project/a/tsconfig.json @@ -770,7 +795,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 3, + "seq": 4, "type": "request", "arguments": { "file": "/home/src/workspaces/project/b/b.ts", @@ -789,7 +814,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "references-full", - "request_seq": 3, + "request_seq": 4, "success": true, "body": [ { @@ -837,12 +862,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: + {"pollingInterval":500} /home/src/workspaces/project/a/index.d.ts: {"pollingInterval":500} /home/src/workspaces/project/a/index.d.ts.map: *new* @@ -916,21 +941,21 @@ Projects:: autoImportProviderHost: /dev/null/autoImportProviderProject1* ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 4 /home/src/workspaces/project/a/tsconfig.json /dev/null/inferredProject1* /home/src/workspaces/project/c/tsconfig.json /home/src/workspaces/project/b/tsconfig.json -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 4 /home/src/workspaces/project/a/tsconfig.json /dev/null/inferredProject1* /home/src/workspaces/project/c/tsconfig.json /home/src/workspaces/project/b/tsconfig.json -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 4 /home/src/workspaces/project/a/tsconfig.json diff --git a/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider_wildcardExports1.js b/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider_wildcardExports1.js index 0c7d26f2f47e7..dd2d0a1f22567 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider_wildcardExports1.js +++ b/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider_wildcardExports1.js @@ -1,16 +1,32 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "module": "nodenext", + "lib": [ + "es5" + ], + "target": "es5", + "newLine": "crlf", + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/home/src/workspaces/project/main.ts] @@ -57,14 +73,15 @@ export const d1: number; //// [/home/src/workspaces/project/tsconfig.json] { "compilerOptions": { - "module": "nodenext" + "module": "nodenext", + "lib": ["es5"] } } Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/home/src/workspaces/project/node_modules/pkg/package.json" @@ -78,9 +95,12 @@ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/p Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/pkg/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/pkg/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots @@ -92,18 +112,18 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/node_modules/pkg/package.json SVC-1-0 "{\n \"name\": \"pkg\",\n \"version\": \"1.0.0\",\n \"exports\": {\n \"./*\": \"./a/*.js\",\n \"./b/*.js\": \"./b/*.js\",\n \"./c/*\": \"./c/*\",\n \"./d/*\": {\n \"import\": \"./d/*.mjs\"\n }\n }\n}" - ../../../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../../../tslibs/TS/Lib/lib.es5.d.ts' ../../../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../../../tslibs/TS/Lib/lib.es5.d.ts' package.json Root file specified for compilation @@ -120,7 +140,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -128,12 +148,18 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* + {"pollingInterval":500} +/home/src/tslibs/TS/Lib/package.json: *new* + {"pollingInterval":2000} +/home/src/tslibs/TS/package.json: *new* + {"pollingInterval":2000} +/home/src/tslibs/package.json: *new* + {"pollingInterval":2000} /home/src/workspaces/project/node_modules/jsconfig.json: *new* {"pollingInterval":2000} /home/src/workspaces/project/node_modules/pkg/jsconfig.json: *new* @@ -159,15 +185,15 @@ Projects:: projectProgramVersion: 1 ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* @@ -178,7 +204,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "file": "/home/src/workspaces/project/main.ts" @@ -194,6 +220,9 @@ Info seq [hh:mm:ss:mss] Config: /home/src/workspaces/project/tsconfig.json : { ], "options": { "module": 199, + "lib": [ + "lib.es5.d.ts" + ], "configFilePath": "/home/src/workspaces/project/tsconfig.json" } } @@ -210,18 +239,29 @@ Info seq [hh:mm:ss:mss] event: Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project 1 undefined Config: /home/src/workspaces/project/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project 1 undefined Config: /home/src/workspaces/project/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.esnext.full.d.ts 500 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Missing file Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) -Info seq [hh:mm:ss:mss] Files (1) +Info seq [hh:mm:ss:mss] Files (4) + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text + /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/main.ts SVC-1-0 "" + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions + ../../tslibs/TS/Lib/lib.decorators.d.ts + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' + ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' main.ts Matched by default include pattern '**/*' File is ECMAScript module because 'package.json' has field "type" with value "module" @@ -286,57 +326,11 @@ Info seq [hh:mm:ss:mss] event: "body": { "triggerFile": "/home/src/workspaces/project/main.ts", "configFile": "/home/src/workspaces/project/tsconfig.json", - "diagnostics": [ - { - "text": "File '/home/src/tslibs/TS/Lib/lib.esnext.full.d.ts' not found.\n The file is in the program because:\n Default library for target 'esnext'", - "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" - } - ] + "diagnostics": [] } } Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) -Info seq [hh:mm:ss:mss] Files (1) +Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Project '/dev/null/autoImportProviderProject1*' (AutoImportProvider) @@ -357,7 +351,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 1, + "request_seq": 2, "success": true, "performanceData": { "updateGraphDurationMs": *, @@ -366,14 +360,21 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} -/home/src/tslibs/TS/Lib/lib.esnext.full.d.ts: *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} *new* +/home/src/tslibs/TS/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} *new* +/home/src/tslibs/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} *new* /home/src/workspaces/project/node_modules/jsconfig.json: {"pollingInterval":2000} /home/src/workspaces/project/node_modules/pkg/a/a1.d.ts: *new* @@ -435,18 +436,21 @@ Projects:: autoImportProviderHost: /dev/null/autoImportProviderProject1* ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *changed* version: Text-1 - containingProjects: 1 + containingProjects: 2 *changed* /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts + /home/src/workspaces/project/tsconfig.json *new* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *changed* version: Text-1 - containingProjects: 1 + containingProjects: 2 *changed* /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts + /home/src/workspaces/project/tsconfig.json *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *changed* version: Text-1 - containingProjects: 1 + containingProjects: 2 *changed* /dev/null/inferredProject1* + /home/src/workspaces/project/tsconfig.json *new* /home/src/workspaces/project/main.ts (Open) *new* version: SVC-1-0 containingProjects: 1 @@ -482,7 +486,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "preferences": { @@ -497,7 +501,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 2, + "request_seq": 3, "success": true } After Request @@ -516,7 +520,7 @@ Projects:: Info seq [hh:mm:ss:mss] request: { - "seq": 3, + "seq": 4, "type": "request", "arguments": { "file": "/home/src/workspaces/project/main.ts", @@ -547,7 +551,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "completionInfo", - "request_seq": 3, + "request_seq": 4, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -570,6 +574,18 @@ Info seq [hh:mm:ss:mss] response: "kindModifiers": "", "sortText": "15" }, + { + "name": "Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "ArrayBuffer", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "as", "kind": "keyword", @@ -606,6 +622,12 @@ Info seq [hh:mm:ss:mss] response: "kindModifiers": "", "sortText": "15" }, + { + "name": "Boolean", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "break", "kind": "keyword", @@ -642,6 +664,18 @@ Info seq [hh:mm:ss:mss] response: "kindModifiers": "", "sortText": "15" }, + { + "name": "DataView", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Date", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "debugger", "kind": "keyword", @@ -654,6 +688,18 @@ Info seq [hh:mm:ss:mss] response: "kindModifiers": "", "sortText": "15" }, + { + "name": "decodeURI", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "decodeURIComponent", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "default", "kind": "keyword", @@ -678,12 +724,42 @@ Info seq [hh:mm:ss:mss] response: "kindModifiers": "", "sortText": "15" }, + { + "name": "encodeURI", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "encodeURIComponent", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "enum", "kind": "keyword", "kindModifiers": "", "sortText": "15" }, + { + "name": "Error", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "eval", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "EvalError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "export", "kind": "keyword", @@ -708,6 +784,18 @@ Info seq [hh:mm:ss:mss] response: "kindModifiers": "", "sortText": "15" }, + { + "name": "Float32Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Float64Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "for", "kind": "keyword", @@ -720,6 +808,12 @@ Info seq [hh:mm:ss:mss] response: "kindModifiers": "", "sortText": "15" }, + { + "name": "Function", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "globalThis", "kind": "module", @@ -756,18 +850,66 @@ Info seq [hh:mm:ss:mss] response: "kindModifiers": "", "sortText": "15" }, + { + "name": "Infinity", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "instanceof", "kind": "keyword", "kindModifiers": "", "sortText": "15" }, + { + "name": "Int8Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Int16Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Int32Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "interface", "kind": "keyword", "kindModifiers": "", "sortText": "15" }, + { + "name": "Intl", + "kind": "module", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "isFinite", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "isNaN", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "JSON", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "keyof", "kind": "keyword", @@ -780,6 +922,12 @@ Info seq [hh:mm:ss:mss] response: "kindModifiers": "", "sortText": "15" }, + { + "name": "Math", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "module", "kind": "keyword", @@ -792,6 +940,12 @@ Info seq [hh:mm:ss:mss] response: "kindModifiers": "", "sortText": "15" }, + { + "name": "NaN", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "never", "kind": "keyword", @@ -816,24 +970,66 @@ Info seq [hh:mm:ss:mss] response: "kindModifiers": "", "sortText": "15" }, + { + "name": "Number", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "object", "kind": "keyword", "kindModifiers": "", "sortText": "15" }, + { + "name": "Object", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "package", "kind": "keyword", "kindModifiers": "", "sortText": "15" }, + { + "name": "parseFloat", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "parseInt", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "RangeError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "readonly", "kind": "keyword", "kindModifiers": "", "sortText": "15" }, + { + "name": "ReferenceError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "RegExp", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "return", "kind": "keyword", @@ -852,6 +1048,12 @@ Info seq [hh:mm:ss:mss] response: "kindModifiers": "", "sortText": "15" }, + { + "name": "String", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "super", "kind": "keyword", @@ -870,6 +1072,12 @@ Info seq [hh:mm:ss:mss] response: "kindModifiers": "", "sortText": "15" }, + { + "name": "SyntaxError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "this", "kind": "keyword", @@ -900,12 +1108,42 @@ Info seq [hh:mm:ss:mss] response: "kindModifiers": "", "sortText": "15" }, + { + "name": "TypeError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "typeof", "kind": "keyword", "kindModifiers": "", "sortText": "15" }, + { + "name": "Uint8Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Uint8ClampedArray", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Uint16Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Uint32Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "undefined", "kind": "var", @@ -924,6 +1162,12 @@ Info seq [hh:mm:ss:mss] response: "kindModifiers": "", "sortText": "15" }, + { + "name": "URIError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "using", "kind": "keyword", @@ -1069,6 +1313,18 @@ Info seq [hh:mm:ss:mss] response: "fileName": "/home/src/workspaces/project/node_modules/pkg/d/d1.d.mts", "isPackageJsonImport": true } + }, + { + "name": "escape", + "kind": "function", + "kindModifiers": "deprecated,declare", + "sortText": "z15" + }, + { + "name": "unescape", + "kind": "function", + "kindModifiers": "deprecated,declare", + "sortText": "z15" } ], "defaultCommitCharacters": [ @@ -1080,14 +1336,21 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} -/home/src/tslibs/TS/Lib/lib.esnext.full.d.ts: +/home/src/tslibs/TS/Lib/lib.es5.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} +/home/src/tslibs/TS/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} +/home/src/tslibs/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} /home/src/workspaces/project/node_modules/jsconfig.json: {"pollingInterval":2000} /home/src/workspaces/project/node_modules/pkg/a/a1.d.ts: diff --git a/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider_wildcardExports2.js b/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider_wildcardExports2.js index 4e3313f2ffd06..4ab18d7585a47 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider_wildcardExports2.js +++ b/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider_wildcardExports2.js @@ -1,16 +1,32 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "module": "nodenext", + "lib": [ + "es5" + ], + "target": "es5", + "newLine": "crlf", + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/home/src/workspaces/project/main.ts] @@ -40,14 +56,15 @@ export function test(): void; //// [/home/src/workspaces/project/tsconfig.json] { "compilerOptions": { - "module": "nodenext" + "module": "nodenext", + "lib": ["es5"] } } Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/home/src/workspaces/project/node_modules/pkg/package.json" @@ -61,9 +78,12 @@ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/p Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/pkg/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/pkg/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots @@ -75,18 +95,18 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/node_modules/pkg/package.json SVC-1-0 "{\n \"name\": \"pkg\",\n \"version\": \"1.0.0\",\n \"exports\": {\n \"./core/*\": {\n \"types\": \"./lib/core/*.d.ts\",\n \"default\": \"./lib/core/*.js\"\n }\n }\n}" - ../../../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../../../tslibs/TS/Lib/lib.es5.d.ts' ../../../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../../../tslibs/TS/Lib/lib.es5.d.ts' package.json Root file specified for compilation @@ -103,7 +123,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -111,12 +131,18 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* + {"pollingInterval":500} +/home/src/tslibs/TS/Lib/package.json: *new* + {"pollingInterval":2000} +/home/src/tslibs/TS/package.json: *new* + {"pollingInterval":2000} +/home/src/tslibs/package.json: *new* + {"pollingInterval":2000} /home/src/workspaces/project/node_modules/jsconfig.json: *new* {"pollingInterval":2000} /home/src/workspaces/project/node_modules/pkg/jsconfig.json: *new* @@ -142,15 +168,15 @@ Projects:: projectProgramVersion: 1 ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* @@ -161,7 +187,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "file": "/home/src/workspaces/project/main.ts" @@ -177,6 +203,9 @@ Info seq [hh:mm:ss:mss] Config: /home/src/workspaces/project/tsconfig.json : { ], "options": { "module": 199, + "lib": [ + "lib.es5.d.ts" + ], "configFilePath": "/home/src/workspaces/project/tsconfig.json" } } @@ -193,18 +222,29 @@ Info seq [hh:mm:ss:mss] event: Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project 1 undefined Config: /home/src/workspaces/project/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project 1 undefined Config: /home/src/workspaces/project/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.esnext.full.d.ts 500 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Missing file Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) -Info seq [hh:mm:ss:mss] Files (1) +Info seq [hh:mm:ss:mss] Files (4) + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text + /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/main.ts SVC-1-0 "" + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions + ../../tslibs/TS/Lib/lib.decorators.d.ts + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' + ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' main.ts Matched by default include pattern '**/*' File is ECMAScript module because 'package.json' has field "type" with value "module" @@ -246,57 +286,11 @@ Info seq [hh:mm:ss:mss] event: "body": { "triggerFile": "/home/src/workspaces/project/main.ts", "configFile": "/home/src/workspaces/project/tsconfig.json", - "diagnostics": [ - { - "text": "File '/home/src/tslibs/TS/Lib/lib.esnext.full.d.ts' not found.\n The file is in the program because:\n Default library for target 'esnext'", - "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" - } - ] + "diagnostics": [] } } Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) -Info seq [hh:mm:ss:mss] Files (1) +Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Project '/dev/null/autoImportProviderProject1*' (AutoImportProvider) @@ -317,7 +311,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 1, + "request_seq": 2, "success": true, "performanceData": { "updateGraphDurationMs": *, @@ -326,14 +320,21 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} -/home/src/tslibs/TS/Lib/lib.esnext.full.d.ts: *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} *new* +/home/src/tslibs/TS/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} *new* +/home/src/tslibs/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} *new* /home/src/workspaces/project/node_modules/jsconfig.json: {"pollingInterval":2000} /home/src/workspaces/project/node_modules/pkg/jsconfig.json: @@ -383,18 +384,21 @@ Projects:: autoImportProviderHost: /dev/null/autoImportProviderProject1* ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *changed* version: Text-1 - containingProjects: 1 + containingProjects: 2 *changed* /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts + /home/src/workspaces/project/tsconfig.json *new* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *changed* version: Text-1 - containingProjects: 1 + containingProjects: 2 *changed* /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts + /home/src/workspaces/project/tsconfig.json *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *changed* version: Text-1 - containingProjects: 1 + containingProjects: 2 *changed* /dev/null/inferredProject1* + /home/src/workspaces/project/tsconfig.json *new* /home/src/workspaces/project/main.ts (Open) *new* version: SVC-1-0 containingProjects: 1 @@ -410,7 +414,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "preferences": { @@ -425,7 +429,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 2, + "request_seq": 3, "success": true } After Request @@ -444,7 +448,7 @@ Projects:: Info seq [hh:mm:ss:mss] request: { - "seq": 3, + "seq": 4, "type": "request", "arguments": { "file": "/home/src/workspaces/project/main.ts", @@ -475,7 +479,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "completionInfo", - "request_seq": 3, + "request_seq": 4, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -498,6 +502,18 @@ Info seq [hh:mm:ss:mss] response: "kindModifiers": "", "sortText": "15" }, + { + "name": "Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "ArrayBuffer", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "as", "kind": "keyword", @@ -534,6 +550,12 @@ Info seq [hh:mm:ss:mss] response: "kindModifiers": "", "sortText": "15" }, + { + "name": "Boolean", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "break", "kind": "keyword", @@ -570,6 +592,18 @@ Info seq [hh:mm:ss:mss] response: "kindModifiers": "", "sortText": "15" }, + { + "name": "DataView", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Date", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "debugger", "kind": "keyword", @@ -582,6 +616,18 @@ Info seq [hh:mm:ss:mss] response: "kindModifiers": "", "sortText": "15" }, + { + "name": "decodeURI", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "decodeURIComponent", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "default", "kind": "keyword", @@ -606,12 +652,42 @@ Info seq [hh:mm:ss:mss] response: "kindModifiers": "", "sortText": "15" }, + { + "name": "encodeURI", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "encodeURIComponent", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "enum", "kind": "keyword", "kindModifiers": "", "sortText": "15" }, + { + "name": "Error", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "eval", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "EvalError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "export", "kind": "keyword", @@ -636,6 +712,18 @@ Info seq [hh:mm:ss:mss] response: "kindModifiers": "", "sortText": "15" }, + { + "name": "Float32Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Float64Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "for", "kind": "keyword", @@ -648,6 +736,12 @@ Info seq [hh:mm:ss:mss] response: "kindModifiers": "", "sortText": "15" }, + { + "name": "Function", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "globalThis", "kind": "module", @@ -684,18 +778,66 @@ Info seq [hh:mm:ss:mss] response: "kindModifiers": "", "sortText": "15" }, + { + "name": "Infinity", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "instanceof", "kind": "keyword", "kindModifiers": "", "sortText": "15" }, + { + "name": "Int8Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Int16Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Int32Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "interface", "kind": "keyword", "kindModifiers": "", "sortText": "15" }, + { + "name": "Intl", + "kind": "module", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "isFinite", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "isNaN", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "JSON", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "keyof", "kind": "keyword", @@ -708,6 +850,12 @@ Info seq [hh:mm:ss:mss] response: "kindModifiers": "", "sortText": "15" }, + { + "name": "Math", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "module", "kind": "keyword", @@ -720,6 +868,12 @@ Info seq [hh:mm:ss:mss] response: "kindModifiers": "", "sortText": "15" }, + { + "name": "NaN", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "never", "kind": "keyword", @@ -744,24 +898,66 @@ Info seq [hh:mm:ss:mss] response: "kindModifiers": "", "sortText": "15" }, + { + "name": "Number", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "object", "kind": "keyword", "kindModifiers": "", "sortText": "15" }, + { + "name": "Object", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "package", "kind": "keyword", "kindModifiers": "", "sortText": "15" }, + { + "name": "parseFloat", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "parseInt", + "kind": "function", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "RangeError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "readonly", "kind": "keyword", "kindModifiers": "", "sortText": "15" }, + { + "name": "ReferenceError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "RegExp", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "return", "kind": "keyword", @@ -780,6 +976,12 @@ Info seq [hh:mm:ss:mss] response: "kindModifiers": "", "sortText": "15" }, + { + "name": "String", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "super", "kind": "keyword", @@ -798,6 +1000,12 @@ Info seq [hh:mm:ss:mss] response: "kindModifiers": "", "sortText": "15" }, + { + "name": "SyntaxError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "this", "kind": "keyword", @@ -828,12 +1036,42 @@ Info seq [hh:mm:ss:mss] response: "kindModifiers": "", "sortText": "15" }, + { + "name": "TypeError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "typeof", "kind": "keyword", "kindModifiers": "", "sortText": "15" }, + { + "name": "Uint8Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Uint8ClampedArray", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Uint16Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, + { + "name": "Uint32Array", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "undefined", "kind": "var", @@ -852,6 +1090,12 @@ Info seq [hh:mm:ss:mss] response: "kindModifiers": "", "sortText": "15" }, + { + "name": "URIError", + "kind": "var", + "kindModifiers": "declare", + "sortText": "15" + }, { "name": "using", "kind": "keyword", @@ -909,6 +1153,18 @@ Info seq [hh:mm:ss:mss] response: "fileName": "/home/src/workspaces/project/node_modules/pkg/lib/core/test.d.ts", "isPackageJsonImport": true } + }, + { + "name": "escape", + "kind": "function", + "kindModifiers": "deprecated,declare", + "sortText": "z15" + }, + { + "name": "unescape", + "kind": "function", + "kindModifiers": "deprecated,declare", + "sortText": "z15" } ], "defaultCommitCharacters": [ @@ -920,14 +1176,21 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} -/home/src/tslibs/TS/Lib/lib.esnext.full.d.ts: +/home/src/tslibs/TS/Lib/lib.es5.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} +/home/src/tslibs/TS/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} +/home/src/tslibs/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} /home/src/workspaces/project/node_modules/jsconfig.json: {"pollingInterval":2000} /home/src/workspaces/project/node_modules/pkg/jsconfig.json: diff --git a/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider_wildcardExports3.js b/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider_wildcardExports3.js index 7a40c8f301940..8af7a28c59ee6 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider_wildcardExports3.js +++ b/tests/baselines/reference/tsserver/fourslashServer/autoImportProvider_wildcardExports3.js @@ -1,16 +1,35 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "module": "esnext", + "moduleResolution": "bundler", + "noEmit": true, + "jsx": "preserve", + "lib": [ + "es5" + ], + "target": "es5", + "newLine": "crlf", + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/home/src/workspaces/project/apps/web/app/index.tsx] (); @@ -30,7 +49,8 @@ lib.decorators.legacy.d.ts-Text "module": "esnext", "moduleResolution": "bundler", "noEmit": true, - "jsx": "preserve" + "jsx": "preserve", + "lib": ["es5"] }, "include": ["app"] } @@ -50,7 +70,7 @@ export const Card = () => null; Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/home/src/workspaces/project/packages/ui/package.json" @@ -66,7 +86,7 @@ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/p Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/packages/ui/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots @@ -80,18 +100,18 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/packages/ui/package.json SVC-1-0 "{\n \"name\": \"@repo/ui\",\n \"version\": \"1.0.0\",\n \"exports\": {\n \"./*\": \"./src/*.tsx\"\n }\n}" - ../../../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../../../tslibs/TS/Lib/lib.es5.d.ts' ../../../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../../../tslibs/TS/Lib/lib.es5.d.ts' package.json Root file specified for compilation @@ -109,7 +129,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -117,12 +137,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* + {"pollingInterval":500} /home/src/workspaces/project/jsconfig.json: *new* {"pollingInterval":2000} /home/src/workspaces/project/packages/jsconfig.json: *new* @@ -155,15 +175,15 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* @@ -174,7 +194,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "file": "/home/src/workspaces/project/apps/web/app/index.tsx" @@ -193,6 +213,9 @@ Info seq [hh:mm:ss:mss] Config: /home/src/workspaces/project/apps/web/tsconfig. "moduleResolution": 100, "noEmit": true, "jsx": 1, + "lib": [ + "lib.es5.d.ts" + ], "configFilePath": "/home/src/workspaces/project/apps/web/tsconfig.json" } } @@ -220,18 +243,18 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/apps/web/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/apps/web/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/apps/web/app/index.tsx SVC-1-0 "();" - ../../../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../../../tslibs/TS/Lib/lib.es5.d.ts' ../../../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../../../tslibs/TS/Lib/lib.es5.d.ts' app/index.tsx Matched by include pattern 'app' in 'tsconfig.json' @@ -293,7 +316,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 1, + "request_seq": 2, "success": true, "performanceData": { "updateGraphDurationMs": *, @@ -302,12 +325,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: + {"pollingInterval":500} /home/src/workspaces/project/apps/web/package.json: *new* {"pollingInterval":250} /home/src/workspaces/project/apps/web/tsconfig.json: *new* @@ -361,17 +384,17 @@ Projects:: autoImportProviderHost: /dev/null/autoImportProviderProject1* ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *changed* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *changed* version: Text-1 containingProjects: 2 *changed* /dev/null/inferredProject1* /home/src/workspaces/project/apps/web/tsconfig.json *new* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *changed* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *changed* version: Text-1 containingProjects: 2 *changed* /dev/null/inferredProject1* /home/src/workspaces/project/apps/web/tsconfig.json *new* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *changed* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *changed* version: Text-1 containingProjects: 2 *changed* /dev/null/inferredProject1* @@ -391,7 +414,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "preferences": { @@ -406,7 +429,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 2, + "request_seq": 3, "success": true } After Request @@ -426,7 +449,7 @@ Projects:: Info seq [hh:mm:ss:mss] request: { - "seq": 3, + "seq": 4, "type": "request", "arguments": { "file": "/home/src/workspaces/project/apps/web/app/index.tsx", @@ -458,7 +481,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "completionInfo", - "request_seq": 3, + "request_seq": 4, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -765,12 +788,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: + {"pollingInterval":500} /home/src/workspaces/project/apps/web/package.json: {"pollingInterval":250} /home/src/workspaces/project/apps/web/tsconfig.json: diff --git a/tests/baselines/reference/tsserver/fourslashServer/autoImportReExportFromAmbientModule.js b/tests/baselines/reference/tsserver/fourslashServer/autoImportReExportFromAmbientModule.js index 3132a95dd584a..37fc767326061 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/autoImportReExportFromAmbientModule.js +++ b/tests/baselines/reference/tsserver/fourslashServer/autoImportReExportFromAmbientModule.js @@ -1,16 +1,32 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "module": "commonjs", + "lib": [ + "es5" + ], + "target": "es5", + "newLine": "crlf", + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/home/src/workspaces/project/index.ts] access @@ -25,14 +41,15 @@ declare module "fs" { //// [/home/src/workspaces/project/tsconfig.json] { "compilerOptions": { - "module": "commonjs" + "module": "commonjs", + "lib": ["es5"] } } Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/home/src/workspaces/project/tsconfig.json" @@ -48,6 +65,9 @@ Info seq [hh:mm:ss:mss] Config: /home/src/workspaces/project/tsconfig.json : { ], "options": { "module": 1, + "lib": [ + "lib.es5.d.ts" + ], "configFilePath": "/home/src/workspaces/project/tsconfig.json" } } @@ -69,7 +89,7 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspa Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types/fs-extra/index.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types/node/index.d.ts 500 undefined WatchType: Closed Script info -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces 0 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Failed Lookup Locations @@ -91,7 +111,7 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (6) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/index.ts Text-1 "access" @@ -99,12 +119,12 @@ Info seq [hh:mm:ss:mss] Files (6) /home/src/workspaces/project/node_modules/@types/node/index.d.ts Text-1 "declare module \"fs\" {\n export function accessSync(path: string): void;\n}" - ../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' index.ts Matched by default include pattern '**/*' node_modules/@types/fs-extra/index.d.ts @@ -158,20 +178,20 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (6) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text - /home/src/workspaces/project/tsconfig.json SVC-1-0 "{\n \"compilerOptions\": {\n \"module\": \"commonjs\"\n }\n}" + /home/src/workspaces/project/tsconfig.json SVC-1-0 "{\n \"compilerOptions\": {\n \"module\": \"commonjs\",\n \"lib\": [\"es5\"]\n }\n}" /home/src/workspaces/project/node_modules/@types/fs-extra/index.d.ts Text-1 "export * from \"fs\";" /home/src/workspaces/project/node_modules/@types/node/index.d.ts Text-1 "declare module \"fs\" {\n export function accessSync(path: string): void;\n}" - ../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' tsconfig.json Root file specified for compilation node_modules/@types/fs-extra/index.d.ts @@ -196,7 +216,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -204,12 +224,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* + {"pollingInterval":500} /home/src/workspaces/package.json: *new* {"pollingInterval":2000} {"pollingInterval":2000} @@ -274,17 +294,17 @@ Projects:: noOpenRef: true ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -310,7 +330,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts" @@ -337,17 +357,17 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 1, + "request_seq": 2, "success": true } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: + {"pollingInterval":500} /home/src/workspaces/package.json: {"pollingInterval":2000} {"pollingInterval":2000} @@ -414,17 +434,17 @@ Projects:: noOpenRef: false *changed* ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -451,7 +471,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "preferences": { @@ -466,7 +486,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 2, + "request_seq": 3, "success": true } After Request @@ -481,7 +501,7 @@ Projects:: Info seq [hh:mm:ss:mss] request: { - "seq": 3, + "seq": 4, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -507,7 +527,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "completionInfo", - "request_seq": 3, + "request_seq": 4, "success": true, "body": { "flags": 9, @@ -1229,12 +1249,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: + {"pollingInterval":500} /home/src/workspaces/package.json: {"pollingInterval":2000} {"pollingInterval":2000} @@ -1298,7 +1318,7 @@ Projects:: Info seq [hh:mm:ss:mss] request: { - "seq": 4, + "seq": 5, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -1324,7 +1344,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "completionEntryDetails-full", - "request_seq": 4, + "request_seq": 5, "success": true, "body": [ { @@ -1419,7 +1439,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 5, + "seq": 6, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -1436,7 +1456,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 5, + "request_seq": 6, "success": true } After Request @@ -1451,17 +1471,17 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json diff --git a/tests/baselines/reference/tsserver/fourslashServer/autoImportRelativePathToMonorepoPackage.js b/tests/baselines/reference/tsserver/fourslashServer/autoImportRelativePathToMonorepoPackage.js index e0f4017166aca..b6f456bbe64cb 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/autoImportRelativePathToMonorepoPackage.js +++ b/tests/baselines/reference/tsserver/fourslashServer/autoImportRelativePathToMonorepoPackage.js @@ -1,16 +1,32 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "module": "nodenext", + "lib": [ + "es5" + ], + "target": "es5", + "newLine": "crlf", + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/home/src/workspaces/project/packages/app/dist/index.d.ts] import {} from "utils"; export const app: number; @@ -29,14 +45,15 @@ x //// [/home/src/workspaces/project/tsconfig.json] { "compilerOptions": { - "module": "nodenext" + "module": "nodenext", + "lib": ["es5"] } } Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/home/src/workspaces/project/tsconfig.json" @@ -54,6 +71,9 @@ Info seq [hh:mm:ss:mss] Config: /home/src/workspaces/project/tsconfig.json : { ], "options": { "module": 199, + "lib": [ + "lib.es5.d.ts" + ], "configFilePath": "/home/src/workspaces/project/tsconfig.json" } } @@ -75,6 +95,9 @@ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/p Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/packages 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/packages 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Failed Lookup Locations +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces 0 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces 0 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/packages/app/node_modules/utils 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Failed Lookup Locations @@ -82,25 +105,36 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project 0 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project 0 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/packages/utils/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/packages/utils/dist/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/packages/app/dist/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/packages/app/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/packages/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.esnext.full.d.ts 500 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Missing file Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) -Info seq [hh:mm:ss:mss] Files (3) +Info seq [hh:mm:ss:mss] Files (6) + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text + /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/packages/utils/dist/index.d.ts Text-1 "export const x: number;" /home/src/workspaces/project/packages/app/dist/index.d.ts Text-1 "import {} from \"utils\";\nexport const app: number;" /home/src/workspaces/project/script.ts Text-1 "import {} from \"./packages/app/dist/index.js\";\nx" + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions + ../../tslibs/TS/Lib/lib.decorators.d.ts + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' + ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' packages/utils/dist/index.d.ts Imported via "utils" from file 'packages/app/dist/index.d.ts' with packageId 'utils/dist/index.d.ts@1.0.0' Matched by default include pattern '**/*' @@ -131,62 +165,16 @@ Info seq [hh:mm:ss:mss] event: "body": { "triggerFile": "/home/src/workspaces/project/tsconfig.json", "configFile": "/home/src/workspaces/project/tsconfig.json", - "diagnostics": [ - { - "text": "File '/home/src/tslibs/TS/Lib/lib.esnext.full.d.ts' not found.\n The file is in the program because:\n Default library for target 'esnext'", - "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" - } - ] + "diagnostics": [] } } Info seq [hh:mm:ss:mss] getConfigFileNameForFile:: File: /home/src/workspaces/project/tsconfig.json ProjectRootPath: undefined:: Result: undefined Info seq [hh:mm:ss:mss] Creating InferredProject: /dev/null/inferredProject1*, currentDirectory: /home/src/workspaces/project Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots @@ -194,24 +182,24 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text - /home/src/workspaces/project/tsconfig.json SVC-1-0 "{\n \"compilerOptions\": {\n \"module\": \"nodenext\"\n }\n}" + /home/src/workspaces/project/tsconfig.json SVC-1-0 "{\n \"compilerOptions\": {\n \"module\": \"nodenext\",\n \"lib\": [\"es5\"]\n }\n}" - ../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' tsconfig.json Root file specified for compilation Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) -Info seq [hh:mm:ss:mss] Files (3) +Info seq [hh:mm:ss:mss] Files (6) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) @@ -226,7 +214,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -234,14 +222,21 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} -/home/src/tslibs/TS/Lib/lib.esnext.full.d.ts: *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/package.json: *new* + {"pollingInterval":2000} + {"pollingInterval":2000} +/home/src/tslibs/TS/package.json: *new* + {"pollingInterval":2000} + {"pollingInterval":2000} +/home/src/tslibs/package.json: *new* + {"pollingInterval":2000} + {"pollingInterval":2000} /home/src/workspaces/package.json: *new* {"pollingInterval":2000} /home/src/workspaces/project/jsconfig.json: *new* @@ -298,17 +293,20 @@ Projects:: noOpenRef: true ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* - version: Text-1 - containingProjects: 1 - /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/workspaces/project/packages/app/dist/index.d.ts *new* version: Text-1 @@ -329,7 +327,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "file": "/home/src/workspaces/project/script.ts" @@ -339,7 +337,7 @@ Info seq [hh:mm:ss:mss] request: Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /home/src/workspaces/project/script.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] getConfigFileNameForFile:: File: /home/src/workspaces/project/script.ts ProjectRootPath: undefined:: Result: /home/src/workspaces/project/tsconfig.json Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) -Info seq [hh:mm:ss:mss] Files (3) +Info seq [hh:mm:ss:mss] Files (6) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) @@ -356,19 +354,26 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 1, + "request_seq": 2, "success": true } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} -/home/src/tslibs/TS/Lib/lib.esnext.full.d.ts: +/home/src/tslibs/TS/Lib/lib.es5.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} +/home/src/tslibs/TS/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} +/home/src/tslibs/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} /home/src/workspaces/package.json: {"pollingInterval":2000} /home/src/workspaces/project/jsconfig.json: @@ -427,17 +432,20 @@ Projects:: noOpenRef: false *changed* ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts - version: Text-1 - containingProjects: 1 - /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.es5.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/workspaces/project/packages/app/dist/index.d.ts version: Text-1 @@ -459,7 +467,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "preferences": { @@ -474,7 +482,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 2, + "request_seq": 3, "success": true } After Request @@ -489,7 +497,7 @@ Projects:: Info seq [hh:mm:ss:mss] request: { - "seq": 3, + "seq": 4, "type": "request", "arguments": { "file": "/home/src/workspaces/project/script.ts", @@ -502,13 +510,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "syntacticDiagnosticsSync", - "request_seq": 3, + "request_seq": 4, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 4, + "seq": 5, "type": "request", "arguments": { "file": "/home/src/workspaces/project/script.ts", @@ -521,7 +529,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "semanticDiagnosticsSync", - "request_seq": 4, + "request_seq": 5, "success": true, "body": [ { @@ -543,7 +551,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 5, + "seq": 6, "type": "request", "arguments": { "file": "/home/src/workspaces/project/script.ts", @@ -556,13 +564,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "suggestionDiagnosticsSync", - "request_seq": 5, + "request_seq": 6, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 6, + "seq": 7, "type": "request", "arguments": { "file": "/home/src/workspaces/project/script.ts", @@ -583,7 +591,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "getCodeFixes", - "request_seq": 6, + "request_seq": 7, "success": true, "body": [ { @@ -612,14 +620,21 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} -/home/src/tslibs/TS/Lib/lib.esnext.full.d.ts: +/home/src/tslibs/TS/Lib/lib.es5.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} +/home/src/tslibs/TS/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} +/home/src/tslibs/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} /home/src/workspaces/package.json: {"pollingInterval":2000} /home/src/workspaces/project/jsconfig.json: diff --git a/tests/baselines/reference/tsserver/fourslashServer/autoImportSymlinkedJsPackages.js b/tests/baselines/reference/tsserver/fourslashServer/autoImportSymlinkedJsPackages.js index 0d7c2751f6347..9fc1e3ce90836 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/autoImportSymlinkedJsPackages.js +++ b/tests/baselines/reference/tsserver/fourslashServer/autoImportSymlinkedJsPackages.js @@ -1,16 +1,31 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "target": "es5", + "newLine": "crlf", + "lib": [ + "es5" + ], + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/home/src/workspaces/project/packages/a/index.js] packageB @@ -32,7 +47,7 @@ export const packageB = "package-b"; Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/home/src/workspaces/project/packages/a/package.json" @@ -48,7 +63,7 @@ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/p Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/packages/a/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots @@ -62,18 +77,18 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/packages/a/package.json SVC-1-0 "{\n \"name\": \"package-a\",\n \"dependencies\": {\n \"package-b\": \"*\"\n }\n}" - ../../../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../../../tslibs/TS/Lib/lib.es5.d.ts' ../../../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../../../tslibs/TS/Lib/lib.es5.d.ts' package.json Root file specified for compilation @@ -91,7 +106,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -99,12 +114,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* + {"pollingInterval":500} /home/src/workspaces/project/jsconfig.json: *new* {"pollingInterval":2000} /home/src/workspaces/project/packages/a/jsconfig.json: *new* @@ -137,15 +152,15 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* @@ -156,11 +171,14 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "options": { "module": "commonjs", + "lib": [ + "es5" + ], "allowJs": true, "maxNodeModulesJsDepth": 2 } @@ -174,7 +192,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "compilerOptionsForInferredProjects", - "request_seq": 1, + "request_seq": 2, "success": true, "body": true } @@ -188,7 +206,7 @@ Projects:: Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "file": "/home/src/workspaces/project/packages/a/index.js" @@ -209,18 +227,18 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject2* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject2*' (Inferred) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/packages/a/index.js SVC-1-0 "packageB" - ../../../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../../../tslibs/TS/Lib/lib.es5.d.ts' ../../../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../../../tslibs/TS/Lib/lib.es5.d.ts' index.js Root file specified for compilation @@ -261,7 +279,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 2, + "request_seq": 3, "success": true, "performanceData": { "updateGraphDurationMs": *, @@ -270,12 +288,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: + {"pollingInterval":500} /home/src/workspaces/project/jsconfig.json: {"pollingInterval":2000} /home/src/workspaces/project/packages/a/jsconfig.json: @@ -322,17 +340,17 @@ Projects:: autoImportProviderHost: /dev/null/autoImportProviderProject1* ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *changed* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *changed* version: Text-1 containingProjects: 2 *changed* /dev/null/inferredProject1* /dev/null/inferredProject2* *new* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *changed* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *changed* version: Text-1 containingProjects: 2 *changed* /dev/null/inferredProject1* /dev/null/inferredProject2* *new* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *changed* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *changed* version: Text-1 containingProjects: 2 *changed* /dev/null/inferredProject1* @@ -352,7 +370,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 3, + "seq": 4, "type": "request", "arguments": { "preferences": { @@ -367,7 +385,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 3, + "request_seq": 4, "success": true } After Request @@ -388,7 +406,7 @@ Projects:: Info seq [hh:mm:ss:mss] request: { - "seq": 4, + "seq": 5, "type": "request", "arguments": { "file": "/home/src/workspaces/project/packages/a/index.js", @@ -419,7 +437,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "completionInfo", - "request_seq": 4, + "request_seq": 5, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -1000,12 +1018,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: + {"pollingInterval":500} /home/src/workspaces/project/jsconfig.json: {"pollingInterval":2000} /home/src/workspaces/project/packages/a/jsconfig.json: diff --git a/tests/baselines/reference/tsserver/fourslashServer/brace01.js b/tests/baselines/reference/tsserver/fourslashServer/brace01.js index d67ea1912b97b..2bfc45f07518a 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/brace01.js +++ b/tests/baselines/reference/tsserver/fourslashServer/brace01.js @@ -1,16 +1,31 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "target": "es5", + "newLine": "crlf", + "lib": [ + "es5" + ], + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/tests/cases/fourslash/server/brace01.ts] //curly braces module Foo { @@ -52,7 +67,7 @@ class TemplateTest { Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/brace01.ts" @@ -64,7 +79,7 @@ Info seq [hh:mm:ss:mss] Creating InferredProject: /dev/null/inferredProject1*, Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots @@ -74,18 +89,18 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /te Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /tests/cases/fourslash/server/brace01.ts SVC-1-0 "//curly braces\nmodule Foo {\n class Bar {\n private f() {\n }\n\n private f2() {\n if (true) { } { };\n }\n }\n}\n\n//parenthesis\nclass FooBar {\n private f() {\n return ((1 + 1));\n }\n\n private f2() {\n if (true) { }\n }\n}\n\n//square brackets\nclass Baz {\n private f() {\n var a: any[] = [[1, 2], [3, 4], 5];\n }\n}\n\n// angular brackets\nclass TemplateTest {\n public foo(a, b) {\n return a;\n }\n}" - ../../../../home/src/tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../../../home/src/tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../../../home/src/tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' ../../../../home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../../../home/src/tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' brace01.ts Root file specified for compilation @@ -102,7 +117,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -110,12 +125,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* + {"pollingInterval":500} /tests/cases/fourslash/server/jsconfig.json: *new* {"pollingInterval":2000} /tests/cases/fourslash/server/tsconfig.json: *new* @@ -134,15 +149,15 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* @@ -153,7 +168,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/brace01.ts", @@ -167,7 +182,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "brace", - "request_seq": 1, + "request_seq": 2, "success": true, "body": [ { @@ -194,7 +209,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/brace01.ts", @@ -208,7 +223,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "brace", - "request_seq": 2, + "request_seq": 3, "success": true, "body": [ { @@ -235,7 +250,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 3, + "seq": 4, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/brace01.ts", @@ -249,7 +264,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "brace", - "request_seq": 3, + "request_seq": 4, "success": true, "body": [ { @@ -276,7 +291,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 4, + "seq": 5, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/brace01.ts", @@ -290,7 +305,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "brace", - "request_seq": 4, + "request_seq": 5, "success": true, "body": [ { @@ -317,7 +332,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 5, + "seq": 6, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/brace01.ts", @@ -331,7 +346,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "brace", - "request_seq": 5, + "request_seq": 6, "success": true, "body": [ { @@ -358,7 +373,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 6, + "seq": 7, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/brace01.ts", @@ -372,7 +387,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "brace", - "request_seq": 6, + "request_seq": 7, "success": true, "body": [ { @@ -399,7 +414,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 7, + "seq": 8, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/brace01.ts", @@ -413,7 +428,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "brace", - "request_seq": 7, + "request_seq": 8, "success": true, "body": [ { @@ -440,7 +455,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 8, + "seq": 9, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/brace01.ts", @@ -454,7 +469,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "brace", - "request_seq": 8, + "request_seq": 9, "success": true, "body": [ { @@ -481,7 +496,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 9, + "seq": 10, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/brace01.ts", @@ -495,7 +510,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "brace", - "request_seq": 9, + "request_seq": 10, "success": true, "body": [ { @@ -522,7 +537,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 10, + "seq": 11, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/brace01.ts", @@ -536,7 +551,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "brace", - "request_seq": 10, + "request_seq": 11, "success": true, "body": [ { @@ -563,7 +578,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 11, + "seq": 12, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/brace01.ts", @@ -577,7 +592,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "brace", - "request_seq": 11, + "request_seq": 12, "success": true, "body": [ { @@ -604,7 +619,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 12, + "seq": 13, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/brace01.ts", @@ -618,7 +633,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "brace", - "request_seq": 12, + "request_seq": 13, "success": true, "body": [ { @@ -645,7 +660,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 13, + "seq": 14, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/brace01.ts", @@ -659,7 +674,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "brace", - "request_seq": 13, + "request_seq": 14, "success": true, "body": [ { @@ -686,7 +701,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 14, + "seq": 15, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/brace01.ts", @@ -700,7 +715,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "brace", - "request_seq": 14, + "request_seq": 15, "success": true, "body": [ { @@ -727,7 +742,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 15, + "seq": 16, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/brace01.ts", @@ -741,7 +756,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "brace", - "request_seq": 15, + "request_seq": 16, "success": true, "body": [ { @@ -768,7 +783,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 16, + "seq": 17, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/brace01.ts", @@ -782,7 +797,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "brace", - "request_seq": 16, + "request_seq": 17, "success": true, "body": [ { @@ -809,7 +824,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 17, + "seq": 18, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/brace01.ts", @@ -823,7 +838,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "brace", - "request_seq": 17, + "request_seq": 18, "success": true, "body": [ { @@ -850,7 +865,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 18, + "seq": 19, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/brace01.ts", @@ -864,7 +879,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "brace", - "request_seq": 18, + "request_seq": 19, "success": true, "body": [ { @@ -891,7 +906,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 19, + "seq": 20, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/brace01.ts", @@ -905,7 +920,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "brace", - "request_seq": 19, + "request_seq": 20, "success": true, "body": [ { @@ -932,7 +947,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 20, + "seq": 21, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/brace01.ts", @@ -946,7 +961,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "brace", - "request_seq": 20, + "request_seq": 21, "success": true, "body": [ { @@ -973,7 +988,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 21, + "seq": 22, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/brace01.ts", @@ -987,7 +1002,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "brace", - "request_seq": 21, + "request_seq": 22, "success": true, "body": [ { @@ -1014,7 +1029,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 22, + "seq": 23, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/brace01.ts", @@ -1028,7 +1043,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "brace", - "request_seq": 22, + "request_seq": 23, "success": true, "body": [ { @@ -1055,7 +1070,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 23, + "seq": 24, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/brace01.ts", @@ -1069,7 +1084,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "brace", - "request_seq": 23, + "request_seq": 24, "success": true, "body": [ { @@ -1096,7 +1111,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 24, + "seq": 25, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/brace01.ts", @@ -1110,7 +1125,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "brace", - "request_seq": 24, + "request_seq": 25, "success": true, "body": [ { @@ -1137,7 +1152,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 25, + "seq": 26, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/brace01.ts", @@ -1151,7 +1166,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "brace", - "request_seq": 25, + "request_seq": 26, "success": true, "body": [ { @@ -1178,7 +1193,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 26, + "seq": 27, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/brace01.ts", @@ -1192,7 +1207,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "brace", - "request_seq": 26, + "request_seq": 27, "success": true, "body": [ { @@ -1219,7 +1234,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 27, + "seq": 28, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/brace01.ts", @@ -1233,7 +1248,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "brace", - "request_seq": 27, + "request_seq": 28, "success": true, "body": [ { @@ -1260,7 +1275,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 28, + "seq": 29, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/brace01.ts", @@ -1274,7 +1289,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "brace", - "request_seq": 28, + "request_seq": 29, "success": true, "body": [ { @@ -1301,7 +1316,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 29, + "seq": 30, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/brace01.ts", @@ -1315,7 +1330,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "brace", - "request_seq": 29, + "request_seq": 30, "success": true, "body": [ { @@ -1342,7 +1357,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 30, + "seq": 31, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/brace01.ts", @@ -1356,7 +1371,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "brace", - "request_seq": 30, + "request_seq": 31, "success": true, "body": [ { @@ -1383,7 +1398,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 31, + "seq": 32, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/brace01.ts", @@ -1397,7 +1412,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "brace", - "request_seq": 31, + "request_seq": 32, "success": true, "body": [ { @@ -1424,7 +1439,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 32, + "seq": 33, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/brace01.ts", @@ -1438,7 +1453,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "brace", - "request_seq": 32, + "request_seq": 33, "success": true, "body": [ { @@ -1465,7 +1480,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 33, + "seq": 34, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/brace01.ts", @@ -1479,7 +1494,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "brace", - "request_seq": 33, + "request_seq": 34, "success": true, "body": [ { @@ -1506,7 +1521,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 34, + "seq": 35, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/brace01.ts", @@ -1520,7 +1535,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "brace", - "request_seq": 34, + "request_seq": 35, "success": true, "body": [ { diff --git a/tests/baselines/reference/tsserver/fourslashServer/callHierarchyContainerNameServer.js b/tests/baselines/reference/tsserver/fourslashServer/callHierarchyContainerNameServer.js index 878a209219723..86d4f8aed3be1 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/callHierarchyContainerNameServer.js +++ b/tests/baselines/reference/tsserver/fourslashServer/callHierarchyContainerNameServer.js @@ -1,16 +1,31 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "target": "es5", + "newLine": "crlf", + "lib": [ + "es5" + ], + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/tests/cases/fourslash/server/callHierarchyContainerNameServer.ts] function f() {} @@ -51,7 +66,7 @@ namespace Foo.Bar { Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/callHierarchyContainerNameServer.ts" @@ -63,7 +78,7 @@ Info seq [hh:mm:ss:mss] Creating InferredProject: /dev/null/inferredProject1*, Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots @@ -73,18 +88,18 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /te Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /tests/cases/fourslash/server/callHierarchyContainerNameServer.ts SVC-1-0 "function f() {}\n\nclass A {\n static sameName() {\n f();\n }\n}\n\nclass B {\n sameName() {\n A.sameName();\n }\n}\n\nconst Obj = {\n get sameName() {\n return new B().sameName;\n }\n};\n\nnamespace Foo {\n function sameName() {\n return Obj.sameName;\n }\n\n export class C {\n constructor() {\n sameName();\n }\n }\n}\n\nnamespace Foo.Bar {\n const sameName = () => new Foo.C();\n}" - ../../../../home/src/tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../../../home/src/tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../../../home/src/tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' ../../../../home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../../../home/src/tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' callHierarchyContainerNameServer.ts Root file specified for compilation @@ -101,7 +116,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -109,12 +124,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* + {"pollingInterval":500} /tests/cases/fourslash/server/jsconfig.json: *new* {"pollingInterval":2000} /tests/cases/fourslash/server/tsconfig.json: *new* @@ -133,15 +148,15 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* @@ -152,7 +167,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/callHierarchyContainerNameServer.ts", @@ -166,7 +181,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "prepareCallHierarchy", - "request_seq": 1, + "request_seq": 2, "success": true, "body": { "name": "f", @@ -197,7 +212,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/callHierarchyContainerNameServer.ts", @@ -211,7 +226,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "provideCallHierarchyIncomingCalls", - "request_seq": 2, + "request_seq": 3, "success": true, "body": [ { @@ -259,7 +274,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 3, + "seq": 4, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/callHierarchyContainerNameServer.ts", @@ -273,13 +288,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "provideCallHierarchyOutgoingCalls", - "request_seq": 3, + "request_seq": 4, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 4, + "seq": 5, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/callHierarchyContainerNameServer.ts", @@ -293,7 +308,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "provideCallHierarchyIncomingCalls", - "request_seq": 4, + "request_seq": 5, "success": true, "body": [ { @@ -341,7 +356,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 5, + "seq": 6, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/callHierarchyContainerNameServer.ts", @@ -355,7 +370,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "provideCallHierarchyIncomingCalls", - "request_seq": 5, + "request_seq": 6, "success": true, "body": [ { @@ -403,7 +418,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 6, + "seq": 7, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/callHierarchyContainerNameServer.ts", @@ -417,7 +432,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "provideCallHierarchyIncomingCalls", - "request_seq": 6, + "request_seq": 7, "success": true, "body": [ { @@ -465,7 +480,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 7, + "seq": 8, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/callHierarchyContainerNameServer.ts", @@ -479,7 +494,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "provideCallHierarchyIncomingCalls", - "request_seq": 7, + "request_seq": 8, "success": true, "body": [ { @@ -527,7 +542,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 8, + "seq": 9, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/callHierarchyContainerNameServer.ts", @@ -541,7 +556,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "provideCallHierarchyIncomingCalls", - "request_seq": 8, + "request_seq": 9, "success": true, "body": [ { @@ -589,7 +604,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 9, + "seq": 10, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/callHierarchyContainerNameServer.ts", @@ -603,7 +618,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "provideCallHierarchyIncomingCalls", - "request_seq": 9, + "request_seq": 10, "success": true, "body": [] } \ No newline at end of file diff --git a/tests/baselines/reference/tsserver/fourslashServer/completionEntryDetailAcrossFiles01.js b/tests/baselines/reference/tsserver/fourslashServer/completionEntryDetailAcrossFiles01.js index 16e2c28187ece..6debeccda1a05 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/completionEntryDetailAcrossFiles01.js +++ b/tests/baselines/reference/tsserver/fourslashServer/completionEntryDetailAcrossFiles01.js @@ -1,16 +1,32 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "target": "es5", + "newLine": "crlf", + "lib": [ + "es5" + ], + "allowJs": true, + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/tests/cases/fourslash/server/a.js] /** * Modify the parameter @@ -27,7 +43,7 @@ a.fo Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/a.js" @@ -39,7 +55,7 @@ Info seq [hh:mm:ss:mss] Creating InferredProject: /dev/null/inferredProject1*, Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots @@ -49,18 +65,18 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /te Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /tests/cases/fourslash/server/a.js SVC-1-0 "/**\n * Modify the parameter\n * @param {string} p1\n */\nvar foo = function (p1) { }\nexports.foo = foo;\nfo" - ../../../../home/src/tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../../../home/src/tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../../../home/src/tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' ../../../../home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../../../home/src/tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' a.js Root file specified for compilation @@ -77,7 +93,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -85,12 +101,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* + {"pollingInterval":500} /tests/cases/fourslash/server/jsconfig.json: *new* {"pollingInterval":2000} /tests/cases/fourslash/server/tsconfig.json: *new* @@ -109,15 +125,15 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* @@ -128,7 +144,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "preferences": {} @@ -140,12 +156,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 1, + "request_seq": 2, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/a.js", @@ -165,7 +181,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "completionInfo", - "request_seq": 2, + "request_seq": 3, "success": true, "body": { "flags": 0, @@ -743,7 +759,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 3, + "seq": 4, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/a.js", @@ -767,7 +783,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "completionEntryDetails-full", - "request_seq": 3, + "request_seq": 4, "success": true, "body": [ { @@ -853,7 +869,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 4, + "seq": 5, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/b.ts" @@ -872,19 +888,19 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /te Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject2* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject2*' (Inferred) Info seq [hh:mm:ss:mss] Files (5) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /tests/cases/fourslash/server/a.js SVC-1-0 "/**\n * Modify the parameter\n * @param {string} p1\n */\nvar foo = function (p1) { }\nexports.foo = foo;\nfo" /tests/cases/fourslash/server/b.ts SVC-1-0 "import a = require(\"./a\");\na.fo" - ../../../../home/src/tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../../../home/src/tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../../../home/src/tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' ../../../../home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../../../home/src/tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' a.js Imported via "./a" from file 'b.ts' b.ts @@ -894,18 +910,18 @@ Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] `remove Project:: Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts + /home/src/tslibs/TS/Lib/lib.es5.d.ts /home/src/tslibs/TS/Lib/lib.decorators.d.ts /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts /tests/cases/fourslash/server/a.js - ../../../../home/src/tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../../../home/src/tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../../../home/src/tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' ../../../../home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../../../home/src/tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' a.js Root file specified for compilation @@ -928,7 +944,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 4, + "request_seq": 5, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -936,12 +952,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: + {"pollingInterval":500} /tests/cases/fourslash/server/jsconfig.json: {"pollingInterval":2000} /tests/cases/fourslash/server/tsconfig.json: @@ -977,17 +993,17 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *changed* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *changed* version: Text-1 containingProjects: 1 *changed* /dev/null/inferredProject2* *new* /dev/null/inferredProject1* *deleted* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *changed* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *changed* version: Text-1 containingProjects: 1 *changed* /dev/null/inferredProject2* *new* /dev/null/inferredProject1* *deleted* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *changed* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *changed* version: Text-1 containingProjects: 1 *changed* /dev/null/inferredProject2* *new* @@ -1004,7 +1020,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 5, + "seq": 6, "type": "request", "arguments": { "preferences": {} @@ -1016,12 +1032,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 5, + "request_seq": 6, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 6, + "seq": 7, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/b.ts", @@ -1041,7 +1057,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "completionInfo", - "request_seq": 6, + "request_seq": 7, "success": true, "body": { "flags": 0, @@ -1075,7 +1091,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 7, + "seq": 8, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/b.ts", @@ -1099,7 +1115,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "completionEntryDetails-full", - "request_seq": 7, + "request_seq": 8, "success": true, "body": [ { diff --git a/tests/baselines/reference/tsserver/fourslashServer/completionEntryDetailAcrossFiles02.js b/tests/baselines/reference/tsserver/fourslashServer/completionEntryDetailAcrossFiles02.js index 46bf26de4097e..e7355b5548ec9 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/completionEntryDetailAcrossFiles02.js +++ b/tests/baselines/reference/tsserver/fourslashServer/completionEntryDetailAcrossFiles02.js @@ -1,16 +1,32 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "target": "es5", + "newLine": "crlf", + "lib": [ + "es5" + ], + "allowJs": true, + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/tests/cases/fourslash/server/a.js] /** * Modify the parameter @@ -27,7 +43,7 @@ a.fo Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/a.js" @@ -39,7 +55,7 @@ Info seq [hh:mm:ss:mss] Creating InferredProject: /dev/null/inferredProject1*, Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots @@ -49,18 +65,18 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /te Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /tests/cases/fourslash/server/a.js SVC-1-0 "/**\n * Modify the parameter\n * @param {string} p1\n */\nvar foo = function (p1) { }\nmodule.exports.foo = foo;\nfo" - ../../../../home/src/tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../../../home/src/tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../../../home/src/tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' ../../../../home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../../../home/src/tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' a.js Root file specified for compilation @@ -77,7 +93,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -85,12 +101,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* + {"pollingInterval":500} /tests/cases/fourslash/server/jsconfig.json: *new* {"pollingInterval":2000} /tests/cases/fourslash/server/tsconfig.json: *new* @@ -109,15 +125,15 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* @@ -128,7 +144,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "preferences": {} @@ -140,12 +156,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 1, + "request_seq": 2, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/a.js", @@ -165,7 +181,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "completionInfo", - "request_seq": 2, + "request_seq": 3, "success": true, "body": { "flags": 0, @@ -749,7 +765,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 3, + "seq": 4, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/a.js", @@ -773,7 +789,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "completionEntryDetails-full", - "request_seq": 3, + "request_seq": 4, "success": true, "body": [ { @@ -859,7 +875,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 4, + "seq": 5, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/b.ts" @@ -878,19 +894,19 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /te Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject2* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject2*' (Inferred) Info seq [hh:mm:ss:mss] Files (5) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /tests/cases/fourslash/server/a.js SVC-1-0 "/**\n * Modify the parameter\n * @param {string} p1\n */\nvar foo = function (p1) { }\nmodule.exports.foo = foo;\nfo" /tests/cases/fourslash/server/b.ts SVC-1-0 "import a = require(\"./a\");\na.fo" - ../../../../home/src/tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../../../home/src/tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../../../home/src/tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' ../../../../home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../../../home/src/tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' a.js Imported via "./a" from file 'b.ts' b.ts @@ -900,18 +916,18 @@ Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] `remove Project:: Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts + /home/src/tslibs/TS/Lib/lib.es5.d.ts /home/src/tslibs/TS/Lib/lib.decorators.d.ts /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts /tests/cases/fourslash/server/a.js - ../../../../home/src/tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../../../home/src/tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../../../home/src/tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' ../../../../home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../../../home/src/tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' a.js Root file specified for compilation @@ -934,7 +950,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 4, + "request_seq": 5, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -942,12 +958,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: + {"pollingInterval":500} /tests/cases/fourslash/server/jsconfig.json: {"pollingInterval":2000} /tests/cases/fourslash/server/tsconfig.json: @@ -983,17 +999,17 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *changed* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *changed* version: Text-1 containingProjects: 1 *changed* /dev/null/inferredProject2* *new* /dev/null/inferredProject1* *deleted* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *changed* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *changed* version: Text-1 containingProjects: 1 *changed* /dev/null/inferredProject2* *new* /dev/null/inferredProject1* *deleted* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *changed* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *changed* version: Text-1 containingProjects: 1 *changed* /dev/null/inferredProject2* *new* @@ -1010,7 +1026,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 5, + "seq": 6, "type": "request", "arguments": { "preferences": {} @@ -1022,12 +1038,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 5, + "request_seq": 6, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 6, + "seq": 7, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/b.ts", @@ -1047,7 +1063,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "completionInfo", - "request_seq": 6, + "request_seq": 7, "success": true, "body": { "flags": 0, @@ -1081,7 +1097,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 7, + "seq": 8, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/b.ts", @@ -1105,7 +1121,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "completionEntryDetails-full", - "request_seq": 7, + "request_seq": 8, "success": true, "body": [ { diff --git a/tests/baselines/reference/tsserver/fourslashServer/completions01.js b/tests/baselines/reference/tsserver/fourslashServer/completions01.js index 75fce95d5e3a3..ce384ccc99a29 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/completions01.js +++ b/tests/baselines/reference/tsserver/fourslashServer/completions01.js @@ -1,16 +1,31 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "target": "es5", + "newLine": "crlf", + "lib": [ + "es5" + ], + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/tests/cases/fourslash/server/completions01.ts] var x: string[] = []; x.forEach(function (y) { y @@ -19,7 +34,7 @@ x.forEach(y => y Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/completions01.ts" @@ -31,7 +46,7 @@ Info seq [hh:mm:ss:mss] Creating InferredProject: /dev/null/inferredProject1*, Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots @@ -41,18 +56,18 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /te Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /tests/cases/fourslash/server/completions01.ts SVC-1-0 "var x: string[] = [];\nx.forEach(function (y) { y\nx.forEach(y => y" - ../../../../home/src/tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../../../home/src/tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../../../home/src/tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' ../../../../home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../../../home/src/tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' completions01.ts Root file specified for compilation @@ -69,7 +84,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -77,12 +92,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* + {"pollingInterval":500} /tests/cases/fourslash/server/jsconfig.json: *new* {"pollingInterval":2000} /tests/cases/fourslash/server/tsconfig.json: *new* @@ -101,15 +116,15 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* @@ -120,7 +135,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/completions01.ts", @@ -137,7 +152,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 1, + "request_seq": 2, "success": true } After Request @@ -149,15 +164,15 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* @@ -168,7 +183,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/completions01.ts", @@ -185,20 +200,20 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 2, + "request_seq": 3, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* @@ -209,7 +224,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 3, + "seq": 4, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/completions01.ts", @@ -224,13 +239,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 3, + "request_seq": 4, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 4, + "seq": 5, "type": "request", "arguments": { "preferences": {} @@ -242,12 +257,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 4, + "request_seq": 5, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 5, + "seq": 6, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/completions01.ts", @@ -260,7 +275,7 @@ Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferred Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 2 projectProgramVersion: 1 structureChanged: false structureIsReused:: Completely Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /tests/cases/fourslash/server/completions01.ts SVC-1-2 "var x: string[] = [];\nx.forEach(function (y) { y.\nx.forEach(y => y" @@ -277,7 +292,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "completionInfo", - "request_seq": 5, + "request_seq": 6, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -432,7 +447,7 @@ Projects:: Info seq [hh:mm:ss:mss] request: { - "seq": 6, + "seq": 7, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/completions01.ts", @@ -449,7 +464,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 6, + "request_seq": 7, "success": true } After Request @@ -461,15 +476,15 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* @@ -480,7 +495,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 7, + "seq": 8, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/completions01.ts", @@ -497,20 +512,20 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 7, + "request_seq": 8, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* @@ -521,7 +536,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 8, + "seq": 9, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/completions01.ts", @@ -536,7 +551,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 8, + "request_seq": 9, "success": true, "body": [ { @@ -554,7 +569,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 9, + "seq": 10, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/completions01.ts", @@ -571,20 +586,20 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 9, + "request_seq": 10, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* @@ -595,7 +610,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 10, + "seq": 11, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/completions01.ts", @@ -612,20 +627,20 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 10, + "request_seq": 11, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* @@ -636,7 +651,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 11, + "seq": 12, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/completions01.ts", @@ -651,13 +666,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 11, + "request_seq": 12, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 12, + "seq": 13, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/completions01.ts", @@ -674,20 +689,20 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 12, + "request_seq": 13, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* @@ -698,7 +713,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 13, + "seq": 14, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/completions01.ts", @@ -713,13 +728,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 13, + "request_seq": 14, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 14, + "seq": 15, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/completions01.ts", @@ -736,20 +751,20 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 14, + "request_seq": 15, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* @@ -760,7 +775,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 15, + "seq": 16, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/completions01.ts", @@ -777,20 +792,20 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 15, + "request_seq": 16, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* @@ -801,7 +816,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 16, + "seq": 17, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/completions01.ts", @@ -816,13 +831,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 16, + "request_seq": 17, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 17, + "seq": 18, "type": "request", "arguments": { "preferences": {} @@ -834,12 +849,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 17, + "request_seq": 18, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 18, + "seq": 19, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/completions01.ts", @@ -852,7 +867,7 @@ Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferred Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 3 projectProgramVersion: 1 structureChanged: false structureIsReused:: Completely Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /tests/cases/fourslash/server/completions01.ts SVC-1-9 "var x: string[] = [];\nx.forEach(function(y) { y.});\nx.forEach(y => y." @@ -869,7 +884,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "completionInfo", - "request_seq": 18, + "request_seq": 19, "success": true, "performanceData": { "updateGraphDurationMs": * diff --git a/tests/baselines/reference/tsserver/fourslashServer/completions02.js b/tests/baselines/reference/tsserver/fourslashServer/completions02.js index e07f734c91104..03c1a938758d9 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/completions02.js +++ b/tests/baselines/reference/tsserver/fourslashServer/completions02.js @@ -1,16 +1,31 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "target": "es5", + "newLine": "crlf", + "lib": [ + "es5" + ], + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/tests/cases/fourslash/server/completions02.ts] class Foo { } @@ -22,7 +37,7 @@ Foo. Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/completions02.ts" @@ -34,7 +49,7 @@ Info seq [hh:mm:ss:mss] Creating InferredProject: /dev/null/inferredProject1*, Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots @@ -44,18 +59,18 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /te Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /tests/cases/fourslash/server/completions02.ts SVC-1-0 "class Foo {\n}\nnamespace Foo {\n export var x: number;\n}\nFoo." - ../../../../home/src/tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../../../home/src/tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../../../home/src/tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' ../../../../home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../../../home/src/tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' completions02.ts Root file specified for compilation @@ -72,7 +87,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -80,12 +95,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* + {"pollingInterval":500} /tests/cases/fourslash/server/jsconfig.json: *new* {"pollingInterval":2000} /tests/cases/fourslash/server/tsconfig.json: *new* @@ -104,15 +119,15 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* @@ -123,7 +138,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "preferences": {} @@ -135,12 +150,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 1, + "request_seq": 2, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/completions02.ts", @@ -160,7 +175,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "completionInfo", - "request_seq": 2, + "request_seq": 3, "success": true, "body": { "flags": 0, @@ -232,7 +247,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 3, + "seq": 4, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/completions02.ts", @@ -256,7 +271,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "completionEntryDetails-full", - "request_seq": 3, + "request_seq": 4, "success": true, "body": [ { @@ -312,7 +327,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 4, + "seq": 5, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/completions02.ts", @@ -336,7 +351,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "completionEntryDetails-full", - "request_seq": 4, + "request_seq": 5, "success": true, "body": [ { @@ -384,7 +399,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 5, + "seq": 6, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/completions02.ts", @@ -401,7 +416,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 5, + "request_seq": 6, "success": true } After Request @@ -413,15 +428,15 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* @@ -432,7 +447,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 6, + "seq": 7, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/completions02.ts", @@ -449,20 +464,20 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 6, + "request_seq": 7, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* @@ -473,7 +488,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 7, + "seq": 8, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/completions02.ts", @@ -488,13 +503,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 7, + "request_seq": 8, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 8, + "seq": 9, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/completions02.ts", @@ -511,20 +526,20 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 8, + "request_seq": 9, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* @@ -535,7 +550,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 9, + "seq": 10, "type": "request", "arguments": { "preferences": {} @@ -547,12 +562,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 9, + "request_seq": 10, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 10, + "seq": 11, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/completions02.ts", @@ -565,7 +580,7 @@ Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferred Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 2 projectProgramVersion: 1 structureChanged: false structureIsReused:: Completely Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /tests/cases/fourslash/server/completions02.ts SVC-1-3 "class Foo {\n}\nnamespace Foo {\n export var x: number;\n}\nFoo." @@ -582,7 +597,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "completionInfo", - "request_seq": 10, + "request_seq": 11, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -665,7 +680,7 @@ Projects:: Info seq [hh:mm:ss:mss] request: { - "seq": 11, + "seq": 12, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/completions02.ts", @@ -689,7 +704,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "completionEntryDetails-full", - "request_seq": 11, + "request_seq": 12, "success": true, "body": [ { @@ -745,7 +760,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 12, + "seq": 13, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/completions02.ts", @@ -769,7 +784,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "completionEntryDetails-full", - "request_seq": 12, + "request_seq": 13, "success": true, "body": [ { diff --git a/tests/baselines/reference/tsserver/fourslashServer/completions03.js b/tests/baselines/reference/tsserver/fourslashServer/completions03.js index 7fd7b64c6c24c..0991ea367f398 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/completions03.js +++ b/tests/baselines/reference/tsserver/fourslashServer/completions03.js @@ -1,16 +1,31 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "target": "es5", + "newLine": "crlf", + "lib": [ + "es5" + ], + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/tests/cases/fourslash/server/completions03.ts] interface Foo { one: any; @@ -27,7 +42,7 @@ let x: Foo = { Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/completions03.ts" @@ -39,7 +54,7 @@ Info seq [hh:mm:ss:mss] Creating InferredProject: /dev/null/inferredProject1*, Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots @@ -49,18 +64,18 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /te Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /tests/cases/fourslash/server/completions03.ts SVC-1-0 "interface Foo {\n one: any;\n two: any;\n three: any;\n}\n\nlet x: Foo = {\n get one() { return \"\" },\n set two(t) {},\n \n}" - ../../../../home/src/tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../../../home/src/tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../../../home/src/tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' ../../../../home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../../../home/src/tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' completions03.ts Root file specified for compilation @@ -77,7 +92,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -85,12 +100,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* + {"pollingInterval":500} /tests/cases/fourslash/server/jsconfig.json: *new* {"pollingInterval":2000} /tests/cases/fourslash/server/tsconfig.json: *new* @@ -109,15 +124,15 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* @@ -128,7 +143,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "preferences": {} @@ -140,12 +155,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 1, + "request_seq": 2, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/completions03.ts", @@ -165,7 +180,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "completionInfo", - "request_seq": 2, + "request_seq": 3, "success": true, "body": { "flags": 0, diff --git a/tests/baselines/reference/tsserver/fourslashServer/completionsImport_addToNamedWithDifferentCacheValue.js b/tests/baselines/reference/tsserver/fourslashServer/completionsImport_addToNamedWithDifferentCacheValue.js index b5987f4c99680..e311dcc59a96a 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/completionsImport_addToNamedWithDifferentCacheValue.js +++ b/tests/baselines/reference/tsserver/fourslashServer/completionsImport_addToNamedWithDifferentCacheValue.js @@ -1,16 +1,32 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "module": "commonjs", + "lib": [ + "es5" + ], + "target": "es5", + "newLine": "crlf", + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/home/src/workspaces/project/node_modules/mylib] symlink(/home/src/workspaces/project/packages/mylib) //// [/home/src/workspaces/project/packages/mylib/index.ts] export * from "./mySubDir"; @@ -34,12 +50,12 @@ const a = new MyClass(); const b = new MyClass2(); //// [/home/src/workspaces/project/tsconfig.json] -{ "compilerOptions": { "module": "commonjs" } } +{ "compilerOptions": { "module": "commonjs", "lib": ["es5"] } } Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/home/src/workspaces/project/tsconfig.json" @@ -59,6 +75,9 @@ Info seq [hh:mm:ss:mss] Config: /home/src/workspaces/project/tsconfig.json : { ], "options": { "module": 1, + "lib": [ + "lib.es5.d.ts" + ], "configFilePath": "/home/src/workspaces/project/tsconfig.json" } } @@ -82,7 +101,7 @@ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/p Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/packages 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/packages 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots @@ -92,7 +111,7 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (8) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/packages/mylib/mySubDir/myClass.ts Text-1 "export class MyClass {}" @@ -102,12 +121,12 @@ Info seq [hh:mm:ss:mss] Files (8) /home/src/workspaces/project/src/index.ts Text-1 "\nconst a = new MyClass();\nconst b = new MyClass2();" - ../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' packages/mylib/mySubDir/myClass.ts Imported via "./myClass" from file 'packages/mylib/mySubDir/index.ts' Matched by default include pattern '**/*' @@ -154,18 +173,18 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text - /home/src/workspaces/project/tsconfig.json SVC-1-0 "{ \"compilerOptions\": { \"module\": \"commonjs\" } }" + /home/src/workspaces/project/tsconfig.json SVC-1-0 "{ \"compilerOptions\": { \"module\": \"commonjs\", \"lib\": [\"es5\"] } }" - ../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' tsconfig.json Root file specified for compilation @@ -186,7 +205,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -194,12 +213,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* + {"pollingInterval":500} /home/src/workspaces/project/jsconfig.json: *new* {"pollingInterval":2000} /home/src/workspaces/project/packages/mylib/index.ts: *new* @@ -238,17 +257,17 @@ Projects:: noOpenRef: true ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -280,7 +299,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/index.ts" @@ -307,17 +326,17 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 1, + "request_seq": 2, "success": true } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: + {"pollingInterval":500} /home/src/workspaces/project/jsconfig.json: {"pollingInterval":2000} /home/src/workspaces/project/packages/mylib/index.ts: @@ -358,17 +377,17 @@ Projects:: noOpenRef: false *changed* ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -401,7 +420,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "formatOptions": { @@ -437,12 +456,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 2, + "request_seq": 3, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 3, + "seq": 4, "type": "request", "arguments": { "preferences": { @@ -458,7 +477,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 3, + "request_seq": 4, "success": true } After Request @@ -473,7 +492,7 @@ Projects:: Info seq [hh:mm:ss:mss] request: { - "seq": 4, + "seq": 5, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/index.ts", @@ -498,7 +517,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "completionInfo", - "request_seq": 4, + "request_seq": 5, "success": true, "body": { "flags": 9, @@ -1236,7 +1255,7 @@ Projects:: Info seq [hh:mm:ss:mss] request: { - "seq": 5, + "seq": 6, "type": "request", "arguments": { "preferences": { @@ -1252,12 +1271,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 5, + "request_seq": 6, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 6, + "seq": 7, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/index.ts", @@ -1282,7 +1301,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "completionEntryDetails-full", - "request_seq": 6, + "request_seq": 7, "success": true, "body": [ { @@ -1361,7 +1380,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 7, + "seq": 8, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/index.ts", @@ -1378,7 +1397,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 7, + "request_seq": 8, "success": true } After Request @@ -1393,17 +1412,17 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -1435,7 +1454,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 8, + "seq": 9, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/index.ts" @@ -1447,7 +1466,7 @@ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/p Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json projectStateVersion: 2 projectProgramVersion: 1 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (8) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/packages/mylib/mySubDir/myClass.ts Text-1 "export class MyClass {}" @@ -1475,7 +1494,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 8, + "request_seq": 9, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -1483,12 +1502,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: + {"pollingInterval":500} /home/src/workspaces/project/jsconfig.json: {"pollingInterval":2000} /home/src/workspaces/project/packages/mylib/index.ts: @@ -1528,7 +1547,7 @@ Projects:: Info seq [hh:mm:ss:mss] request: { - "seq": 9, + "seq": 10, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/index.ts", @@ -1545,7 +1564,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 9, + "request_seq": 10, "success": true } After Request @@ -1560,17 +1579,17 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -1602,7 +1621,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 10, + "seq": 11, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/index.ts", @@ -1619,22 +1638,22 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 10, + "request_seq": 11, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -1666,7 +1685,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 11, + "seq": 12, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/index.ts", @@ -1681,13 +1700,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 11, + "request_seq": 12, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 12, + "seq": 13, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/index.ts", @@ -1704,22 +1723,22 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 12, + "request_seq": 13, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -1751,7 +1770,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 13, + "seq": 14, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/index.ts", @@ -1766,13 +1785,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 13, + "request_seq": 14, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 14, + "seq": 15, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/index.ts", @@ -1789,22 +1808,22 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 14, + "request_seq": 15, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -1836,7 +1855,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 15, + "seq": 16, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/index.ts", @@ -1851,13 +1870,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 15, + "request_seq": 16, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 16, + "seq": 17, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/index.ts", @@ -1874,22 +1893,22 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 16, + "request_seq": 17, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -1921,7 +1940,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 17, + "seq": 18, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/index.ts", @@ -1936,13 +1955,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 17, + "request_seq": 18, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 18, + "seq": 19, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/index.ts", @@ -1959,22 +1978,22 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 18, + "request_seq": 19, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -2006,7 +2025,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 19, + "seq": 20, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/index.ts", @@ -2021,13 +2040,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 19, + "request_seq": 20, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 20, + "seq": 21, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/index.ts", @@ -2044,22 +2063,22 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 20, + "request_seq": 21, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -2091,7 +2110,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 21, + "seq": 22, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/index.ts", @@ -2106,13 +2125,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 21, + "request_seq": 22, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 22, + "seq": 23, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/index.ts", @@ -2129,22 +2148,22 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 22, + "request_seq": 23, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -2176,7 +2195,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 23, + "seq": 24, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/index.ts", @@ -2191,13 +2210,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 23, + "request_seq": 24, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 24, + "seq": 25, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/index.ts", @@ -2214,22 +2233,22 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 24, + "request_seq": 25, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -2261,7 +2280,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 25, + "seq": 26, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/index.ts", @@ -2276,13 +2295,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 25, + "request_seq": 26, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 26, + "seq": 27, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/index.ts", @@ -2299,22 +2318,22 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 26, + "request_seq": 27, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -2346,7 +2365,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 27, + "seq": 28, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/index.ts", @@ -2361,13 +2380,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 27, + "request_seq": 28, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 28, + "seq": 29, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/index.ts", @@ -2384,22 +2403,22 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 28, + "request_seq": 29, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -2431,7 +2450,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 29, + "seq": 30, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/index.ts", @@ -2446,13 +2465,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 29, + "request_seq": 30, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 30, + "seq": 31, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/index.ts", @@ -2469,22 +2488,22 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 30, + "request_seq": 31, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -2516,7 +2535,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 31, + "seq": 32, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/index.ts", @@ -2531,13 +2550,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 31, + "request_seq": 32, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 32, + "seq": 33, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/index.ts", @@ -2554,22 +2573,22 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 32, + "request_seq": 33, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -2601,7 +2620,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 33, + "seq": 34, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/index.ts", @@ -2616,13 +2635,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 33, + "request_seq": 34, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 34, + "seq": 35, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/index.ts", @@ -2639,22 +2658,22 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 34, + "request_seq": 35, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -2686,7 +2705,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 35, + "seq": 36, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/index.ts", @@ -2701,13 +2720,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 35, + "request_seq": 36, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 36, + "seq": 37, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/index.ts", @@ -2724,22 +2743,22 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 36, + "request_seq": 37, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -2771,7 +2790,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 37, + "seq": 38, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/index.ts", @@ -2786,13 +2805,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 37, + "request_seq": 38, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 38, + "seq": 39, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/index.ts", @@ -2809,22 +2828,22 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 38, + "request_seq": 39, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -2856,7 +2875,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 39, + "seq": 40, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/index.ts", @@ -2871,13 +2890,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 39, + "request_seq": 40, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 40, + "seq": 41, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/index.ts", @@ -2894,22 +2913,22 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 40, + "request_seq": 41, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -2941,7 +2960,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 41, + "seq": 42, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/index.ts", @@ -2956,13 +2975,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 41, + "request_seq": 42, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 42, + "seq": 43, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/index.ts", @@ -2979,22 +2998,22 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 42, + "request_seq": 43, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -3026,7 +3045,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 43, + "seq": 44, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/index.ts", @@ -3041,13 +3060,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 43, + "request_seq": 44, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 44, + "seq": 45, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/index.ts", @@ -3064,22 +3083,22 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 44, + "request_seq": 45, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -3111,7 +3130,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 45, + "seq": 46, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/index.ts", @@ -3126,13 +3145,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 45, + "request_seq": 46, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 46, + "seq": 47, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/index.ts", @@ -3149,22 +3168,22 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 46, + "request_seq": 47, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -3196,7 +3215,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 47, + "seq": 48, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/index.ts", @@ -3211,13 +3230,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 47, + "request_seq": 48, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 48, + "seq": 49, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/index.ts", @@ -3234,22 +3253,22 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 48, + "request_seq": 49, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -3281,7 +3300,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 49, + "seq": 50, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/index.ts", @@ -3296,13 +3315,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 49, + "request_seq": 50, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 50, + "seq": 51, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/index.ts", @@ -3319,22 +3338,22 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 50, + "request_seq": 51, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -3366,7 +3385,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 51, + "seq": 52, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/index.ts", @@ -3381,13 +3400,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 51, + "request_seq": 52, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 52, + "seq": 53, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/index.ts", @@ -3404,22 +3423,22 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 52, + "request_seq": 53, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -3451,7 +3470,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 53, + "seq": 54, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/index.ts", @@ -3466,13 +3485,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 53, + "request_seq": 54, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 54, + "seq": 55, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/index.ts", @@ -3489,22 +3508,22 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 54, + "request_seq": 55, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -3536,7 +3555,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 55, + "seq": 56, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/index.ts", @@ -3551,13 +3570,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 55, + "request_seq": 56, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 56, + "seq": 57, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/index.ts", @@ -3574,22 +3593,22 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 56, + "request_seq": 57, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -3621,7 +3640,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 57, + "seq": 58, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/index.ts", @@ -3636,13 +3655,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 57, + "request_seq": 58, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 58, + "seq": 59, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/index.ts", @@ -3659,22 +3678,22 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 58, + "request_seq": 59, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -3706,7 +3725,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 59, + "seq": 60, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/index.ts", @@ -3721,13 +3740,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 59, + "request_seq": 60, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 60, + "seq": 61, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/index.ts", @@ -3744,22 +3763,22 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 60, + "request_seq": 61, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -3791,7 +3810,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 61, + "seq": 62, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/index.ts", @@ -3806,13 +3825,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 61, + "request_seq": 62, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 62, + "seq": 63, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/index.ts", @@ -3829,22 +3848,22 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 62, + "request_seq": 63, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -3876,7 +3895,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 63, + "seq": 64, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/index.ts", @@ -3891,13 +3910,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 63, + "request_seq": 64, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 64, + "seq": 65, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/index.ts", @@ -3914,22 +3933,22 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 64, + "request_seq": 65, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -3961,7 +3980,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 65, + "seq": 66, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/index.ts", @@ -3976,13 +3995,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 65, + "request_seq": 66, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 66, + "seq": 67, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/index.ts", @@ -3999,22 +4018,22 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 66, + "request_seq": 67, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -4046,7 +4065,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 67, + "seq": 68, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/index.ts", @@ -4061,13 +4080,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 67, + "request_seq": 68, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 68, + "seq": 69, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/index.ts", @@ -4084,22 +4103,22 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 68, + "request_seq": 69, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -4131,7 +4150,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 69, + "seq": 70, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/index.ts", @@ -4146,13 +4165,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 69, + "request_seq": 70, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 70, + "seq": 71, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/index.ts", @@ -4169,22 +4188,22 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 70, + "request_seq": 71, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -4216,7 +4235,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 71, + "seq": 72, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/index.ts", @@ -4231,13 +4250,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 71, + "request_seq": 72, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 72, + "seq": 73, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/index.ts", @@ -4254,22 +4273,22 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 72, + "request_seq": 73, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -4301,7 +4320,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 73, + "seq": 74, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/index.ts", @@ -4316,13 +4335,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 73, + "request_seq": 74, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 74, + "seq": 75, "type": "request", "arguments": { "preferences": { @@ -4338,12 +4357,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 74, + "request_seq": 75, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 75, + "seq": 76, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/index.ts", @@ -4364,7 +4383,7 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json projectStateVersion: 3 projectProgramVersion: 2 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (8) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/packages/mylib/mySubDir/myClass.ts Text-1 "export class MyClass {}" @@ -4389,7 +4408,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "completionInfo", - "request_seq": 75, + "request_seq": 76, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -5106,12 +5125,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: + {"pollingInterval":500} /home/src/workspaces/project/jsconfig.json: {"pollingInterval":2000} /home/src/workspaces/project/packages/mylib/index.ts: diff --git a/tests/baselines/reference/tsserver/fourslashServer/completionsImport_computedSymbolName.js b/tests/baselines/reference/tsserver/fourslashServer/completionsImport_computedSymbolName.js index d39e38c7b40c9..594553cbfc619 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/completionsImport_computedSymbolName.js +++ b/tests/baselines/reference/tsserver/fourslashServer/completionsImport_computedSymbolName.js @@ -1,16 +1,32 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "module": "commonjs", + "lib": [ + "es5" + ], + "target": "es5", + "newLine": "crlf", + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/home/src/workspaces/project/index.ts] I @@ -39,12 +55,12 @@ declare global { } //// [/home/src/workspaces/project/tsconfig.json] -{ "compilerOptions": { "module": "commonjs" } } +{ "compilerOptions": { "module": "commonjs", "lib": ["es5"] } } Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/home/src/workspaces/project/tsconfig.json" @@ -60,6 +76,9 @@ Info seq [hh:mm:ss:mss] Config: /home/src/workspaces/project/tsconfig.json : { ], "options": { "module": 1, + "lib": [ + "lib.es5.d.ts" + ], "configFilePath": "/home/src/workspaces/project/tsconfig.json" } } @@ -81,7 +100,7 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspa Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types/node/index.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types/ts-node/index.d.ts 500 undefined WatchType: Closed Script info -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types/node/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution @@ -97,7 +116,7 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (6) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/index.ts Text-1 "I" @@ -105,12 +124,12 @@ Info seq [hh:mm:ss:mss] Files (6) /home/src/workspaces/project/node_modules/@types/ts-node/index.d.ts Text-1 "export {};\ndeclare const REGISTER_INSTANCE: unique symbol;\ndeclare global {\n namespace NodeJS {\n interface Process {\n [REGISTER_INSTANCE]?: Service;\n }\n }\n}" - ../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' index.ts Matched by default include pattern '**/*' node_modules/@types/node/index.d.ts @@ -158,20 +177,20 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (6) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text - /home/src/workspaces/project/tsconfig.json SVC-1-0 "{ \"compilerOptions\": { \"module\": \"commonjs\" } }" + /home/src/workspaces/project/tsconfig.json SVC-1-0 "{ \"compilerOptions\": { \"module\": \"commonjs\", \"lib\": [\"es5\"] } }" /home/src/workspaces/project/node_modules/@types/node/index.d.ts Text-1 "declare module \"process\" {\n global {\n var process: NodeJS.Process;\n namespace NodeJS {\n interface Process {\n argv: string[];\n }\n }\n }\n export = process;\n}" /home/src/workspaces/project/node_modules/@types/ts-node/index.d.ts Text-1 "export {};\ndeclare const REGISTER_INSTANCE: unique symbol;\ndeclare global {\n namespace NodeJS {\n interface Process {\n [REGISTER_INSTANCE]?: Service;\n }\n }\n}" - ../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' tsconfig.json Root file specified for compilation node_modules/@types/node/index.d.ts @@ -196,7 +215,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -204,12 +223,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* + {"pollingInterval":500} /home/src/workspaces/package.json: *new* {"pollingInterval":2000} {"pollingInterval":2000} @@ -263,17 +282,17 @@ Projects:: noOpenRef: true ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -299,7 +318,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts" @@ -326,17 +345,17 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 1, + "request_seq": 2, "success": true } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: + {"pollingInterval":500} /home/src/workspaces/package.json: {"pollingInterval":2000} {"pollingInterval":2000} @@ -392,17 +411,17 @@ Projects:: noOpenRef: false *changed* ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -429,7 +448,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "preferences": { @@ -443,7 +462,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 2, + "request_seq": 3, "success": true } After Request @@ -458,7 +477,7 @@ Projects:: Info seq [hh:mm:ss:mss] request: { - "seq": 3, + "seq": 4, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -482,7 +501,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "completionInfo", - "request_seq": 3, + "request_seq": 4, "success": true, "body": { "flags": 1, @@ -1180,7 +1199,7 @@ Projects:: Info seq [hh:mm:ss:mss] request: { - "seq": 4, + "seq": 5, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -1197,7 +1216,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 4, + "request_seq": 5, "success": true } After Request @@ -1212,17 +1231,17 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -1248,7 +1267,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 5, + "seq": 6, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -1265,22 +1284,22 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 5, + "request_seq": 6, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -1306,7 +1325,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 6, + "seq": 7, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -1321,13 +1340,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 6, + "request_seq": 7, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 7, + "seq": 8, "type": "request", "arguments": { "preferences": { @@ -1341,12 +1360,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 7, + "request_seq": 8, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 8, + "seq": 9, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -1359,7 +1378,7 @@ Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/workspac Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json projectStateVersion: 2 projectProgramVersion: 1 structureChanged: false structureIsReused:: Completely Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (6) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/index.ts SVC-2-2 "IN" @@ -1381,7 +1400,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "completionInfo", - "request_seq": 8, + "request_seq": 9, "success": true, "performanceData": { "updateGraphDurationMs": * diff --git a/tests/baselines/reference/tsserver/fourslashServer/completionsImport_defaultAndNamedConflict_server.js b/tests/baselines/reference/tsserver/fourslashServer/completionsImport_defaultAndNamedConflict_server.js index 80623b14792d7..706be5fdb702e 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/completionsImport_defaultAndNamedConflict_server.js +++ b/tests/baselines/reference/tsserver/fourslashServer/completionsImport_defaultAndNamedConflict_server.js @@ -1,7 +1,32 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "noLib": true, + "lib": [ + "es5" + ], + "target": "es5", + "newLine": "crlf", + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/home/src/workspaces/project/index.ts] someMo @@ -10,12 +35,12 @@ export const someModule = 0; export default 1; //// [/home/src/workspaces/project/tsconfig.json] -{ "compilerOptions": { "noLib": true } } +{ "compilerOptions": { "noLib": true, "lib": ["es5"] } } Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/home/src/workspaces/project/tsconfig.json" @@ -32,6 +57,9 @@ Info seq [hh:mm:ss:mss] Config: /home/src/workspaces/project/tsconfig.json : { ], "options": { "noLib": true, + "lib": [ + "lib.es5.d.ts" + ], "configFilePath": "/home/src/workspaces/project/tsconfig.json" } } @@ -85,6 +113,34 @@ Info seq [hh:mm:ss:mss] event: "triggerFile": "/home/src/workspaces/project/tsconfig.json", "configFile": "/home/src/workspaces/project/tsconfig.json", "diagnostics": [ + { + "start": { + "line": 1, + "offset": 24 + }, + "end": { + "line": 1, + "offset": 31 + }, + "text": "Option 'lib' cannot be specified with option 'noLib'.", + "code": 5053, + "category": "error", + "fileName": "/home/src/workspaces/project/tsconfig.json" + }, + { + "start": { + "line": 1, + "offset": 39 + }, + "end": { + "line": 1, + "offset": 44 + }, + "text": "Option 'lib' cannot be specified with option 'noLib'.", + "code": 5053, + "category": "error", + "fileName": "/home/src/workspaces/project/tsconfig.json" + }, { "text": "Cannot find global type 'Array'.", "code": 2318, @@ -132,7 +188,6 @@ Info seq [hh:mm:ss:mss] getConfigFileNameForFile:: File: /home/src/workspaces/p Info seq [hh:mm:ss:mss] Creating InferredProject: /dev/null/inferredProject1*, currentDirectory: /home/src/workspaces/project Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined Project: /dev/null/inferredProject1* WatchType: Missing file Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots @@ -140,7 +195,7 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (1) - /home/src/workspaces/project/tsconfig.json SVC-1-0 "{ \"compilerOptions\": { \"noLib\": true } }" + /home/src/workspaces/project/tsconfig.json SVC-1-0 "{ \"compilerOptions\": { \"noLib\": true, \"lib\": [\"es5\"] } }" tsconfig.json @@ -163,7 +218,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -171,8 +226,6 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/workspaces/project/index.ts: *new* {"pollingInterval":500} /home/src/workspaces/project/jsconfig.json: *new* @@ -218,7 +271,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts" @@ -245,13 +298,11 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 1, + "request_seq": 2, "success": true } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/workspaces/project/jsconfig.json: {"pollingInterval":2000} /home/src/workspaces/project/someModule.ts: @@ -300,7 +351,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "preferences": { @@ -314,7 +365,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 2, + "request_seq": 3, "success": true } After Request @@ -329,7 +380,7 @@ Projects:: Info seq [hh:mm:ss:mss] request: { - "seq": 3, + "seq": 4, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -353,7 +404,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "completionInfo", - "request_seq": 3, + "request_seq": 4, "success": true, "body": { "flags": 9, @@ -833,7 +884,7 @@ Projects:: Info seq [hh:mm:ss:mss] request: { - "seq": 4, + "seq": 5, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -860,7 +911,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "completionEntryDetails-full", - "request_seq": 4, + "request_seq": 5, "success": true, "body": [ { @@ -939,7 +990,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 5, + "seq": 6, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -966,7 +1017,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "completionEntryDetails-full", - "request_seq": 5, + "request_seq": 6, "success": true, "body": [ { @@ -1037,7 +1088,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 6, + "seq": 7, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -1063,7 +1114,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "completionEntryDetails-full", - "request_seq": 6, + "request_seq": 7, "success": true, "body": [ { @@ -1142,7 +1193,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 7, + "seq": 8, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -1159,7 +1210,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 7, + "request_seq": 8, "success": true } After Request diff --git a/tests/baselines/reference/tsserver/fourslashServer/completionsImport_jsModuleExportsAssignment.js b/tests/baselines/reference/tsserver/fourslashServer/completionsImport_jsModuleExportsAssignment.js index 6290a00befbb1..8148bb2c2d2cb 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/completionsImport_jsModuleExportsAssignment.js +++ b/tests/baselines/reference/tsserver/fourslashServer/completionsImport_jsModuleExportsAssignment.js @@ -1,16 +1,33 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "module": "commonjs", + "allowJs": true, + "lib": [ + "es5" + ], + "target": "es5", + "newLine": "crlf", + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/home/src/workspaces/project/index.ts] @@ -32,12 +49,12 @@ module.exports = { }; //// [/home/src/workspaces/project/tsconfig.json] -{ "compilerOptions": { "module": "commonjs", "allowJs": true } } +{ "compilerOptions": { "module": "commonjs", "allowJs": true, "lib": ["es5"] } } Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/home/src/workspaces/project/tsconfig.json" @@ -55,6 +72,9 @@ Info seq [hh:mm:ss:mss] Config: /home/src/workspaces/project/tsconfig.json : { "options": { "module": 1, "allowJs": true, + "lib": [ + "lib.es5.d.ts" + ], "configFilePath": "/home/src/workspaces/project/tsconfig.json" } } @@ -73,7 +93,7 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/index.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/third_party/marked/src/defaults.js 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots @@ -83,19 +103,19 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (5) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/index.ts Text-1 "" /home/src/workspaces/project/third_party/marked/src/defaults.js Text-1 "function getDefaults() {\n return {\n baseUrl: null,\n };\n}\n\nfunction changeDefaults(newDefaults) {\n module.exports.defaults = newDefaults;\n}\n\nmodule.exports = {\n defaults: getDefaults(),\n getDefaults,\n changeDefaults\n};" - ../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' index.ts Matched by default include pattern '**/*' third_party/marked/src/defaults.js @@ -139,18 +159,18 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text - /home/src/workspaces/project/tsconfig.json SVC-1-0 "{ \"compilerOptions\": { \"module\": \"commonjs\", \"allowJs\": true } }" + /home/src/workspaces/project/tsconfig.json SVC-1-0 "{ \"compilerOptions\": { \"module\": \"commonjs\", \"allowJs\": true, \"lib\": [\"es5\"] } }" - ../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' tsconfig.json Root file specified for compilation @@ -171,7 +191,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -179,12 +199,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* + {"pollingInterval":500} /home/src/workspaces/project/index.ts: *new* {"pollingInterval":500} /home/src/workspaces/project/jsconfig.json: *new* @@ -215,17 +235,17 @@ Projects:: noOpenRef: true ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -245,7 +265,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "formatOptions": { @@ -281,12 +301,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 1, + "request_seq": 2, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts" @@ -313,17 +333,17 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 2, + "request_seq": 3, "success": true } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: + {"pollingInterval":500} /home/src/workspaces/project/jsconfig.json: {"pollingInterval":2000} /home/src/workspaces/project/third_party/marked/src/defaults.js: @@ -356,17 +376,17 @@ Projects:: noOpenRef: false *changed* ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -387,7 +407,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 3, + "seq": 4, "type": "request", "arguments": { "preferences": { @@ -401,7 +421,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 3, + "request_seq": 4, "success": true } After Request @@ -416,7 +436,7 @@ Projects:: Info seq [hh:mm:ss:mss] request: { - "seq": 4, + "seq": 5, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -440,7 +460,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "completionInfo", - "request_seq": 4, + "request_seq": 5, "success": true, "body": { "flags": 9, @@ -1202,7 +1222,7 @@ Projects:: Info seq [hh:mm:ss:mss] request: { - "seq": 5, + "seq": 6, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -1219,7 +1239,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 5, + "request_seq": 6, "success": true } After Request @@ -1234,17 +1254,17 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -1264,7 +1284,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 6, + "seq": 7, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -1281,22 +1301,22 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 6, + "request_seq": 7, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -1316,7 +1336,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 7, + "seq": 8, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -1331,13 +1351,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 7, + "request_seq": 8, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 8, + "seq": 9, "type": "request", "arguments": { "preferences": { @@ -1351,12 +1371,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 8, + "request_seq": 9, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 9, + "seq": 10, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -1369,7 +1389,7 @@ Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/workspac Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json projectStateVersion: 2 projectProgramVersion: 1 structureChanged: false structureIsReused:: Completely Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (5) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/index.ts SVC-2-2 "d" @@ -1390,7 +1410,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "completionInfo", - "request_seq": 9, + "request_seq": 10, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -2166,7 +2186,7 @@ Projects:: Info seq [hh:mm:ss:mss] request: { - "seq": 10, + "seq": 11, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -2192,7 +2212,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "completionEntryDetails-full", - "request_seq": 10, + "request_seq": 11, "success": true, "body": [ { @@ -2303,7 +2323,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 11, + "seq": 12, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -2320,7 +2340,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 11, + "request_seq": 12, "success": true } After Request @@ -2335,17 +2355,17 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json diff --git a/tests/baselines/reference/tsserver/fourslashServer/completionsImport_mergedReExport.js b/tests/baselines/reference/tsserver/fourslashServer/completionsImport_mergedReExport.js index d7061a333aedb..e1635f7ab1d67 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/completionsImport_mergedReExport.js +++ b/tests/baselines/reference/tsserver/fourslashServer/completionsImport_mergedReExport.js @@ -1,16 +1,32 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "module": "commonjs", + "lib": [ + "es5" + ], + "target": "es5", + "newLine": "crlf", + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/home/src/workspaces/project/index.ts] C @@ -40,12 +56,12 @@ declare module "@jest/types" { { "dependencies": { "@jest/types": "*", "ts-jest": "*" } } //// [/home/src/workspaces/project/tsconfig.json] -{ "compilerOptions": { "module": "commonjs" } } +{ "compilerOptions": { "module": "commonjs", "lib": ["es5"] } } Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/home/src/workspaces/project/tsconfig.json" @@ -61,6 +77,9 @@ Info seq [hh:mm:ss:mss] Config: /home/src/workspaces/project/tsconfig.json : { ], "options": { "module": 1, + "lib": [ + "lib.es5.d.ts" + ], "configFilePath": "/home/src/workspaces/project/tsconfig.json" } } @@ -78,7 +97,7 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspa Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project 1 undefined Config: /home/src/workspaces/project/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/index.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots @@ -88,18 +107,18 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/index.ts Text-1 "C" - ../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' index.ts Matched by default include pattern '**/*' @@ -135,18 +154,18 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text - /home/src/workspaces/project/tsconfig.json SVC-1-0 "{ \"compilerOptions\": { \"module\": \"commonjs\" } }" + /home/src/workspaces/project/tsconfig.json SVC-1-0 "{ \"compilerOptions\": { \"module\": \"commonjs\", \"lib\": [\"es5\"] } }" - ../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' tsconfig.json Root file specified for compilation @@ -193,7 +212,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": *, @@ -202,12 +221,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* + {"pollingInterval":500} /home/src/workspaces/project/index.ts: *new* {"pollingInterval":500} /home/src/workspaces/project/jsconfig.json: *new* @@ -249,17 +268,17 @@ Projects:: noOpenRef: true ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -283,7 +302,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts" @@ -314,17 +333,17 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 1, + "request_seq": 2, "success": true } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: + {"pollingInterval":500} /home/src/workspaces/project/jsconfig.json: {"pollingInterval":2000} /home/src/workspaces/project/node_modules/@jest/types/Config.d.ts: @@ -368,17 +387,17 @@ Projects:: noOpenRef: false *changed* ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -403,7 +422,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "preferences": { @@ -417,7 +436,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 2, + "request_seq": 3, "success": true } After Request @@ -436,7 +455,7 @@ Projects:: Info seq [hh:mm:ss:mss] request: { - "seq": 3, + "seq": 4, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -482,7 +501,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "completionInfo", - "request_seq": 3, + "request_seq": 4, "success": true, "performanceData": { "updateGraphDurationMs": *, @@ -1190,12 +1209,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: + {"pollingInterval":500} /home/src/workspaces/project/jsconfig.json: {"pollingInterval":2000} /home/src/workspaces/project/node_modules/@jest/types/Config.d.ts: @@ -1242,17 +1261,17 @@ Projects:: autoImportProviderHost: /dev/null/autoImportProviderProject2* *changed* ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -1278,7 +1297,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 4, + "seq": 5, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -1295,7 +1314,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 4, + "request_seq": 5, "success": true } After Request @@ -1318,17 +1337,17 @@ Projects:: autoImportProviderHost: /dev/null/autoImportProviderProject2* ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -1354,7 +1373,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 5, + "seq": 6, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -1371,22 +1390,22 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 5, + "request_seq": 6, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -1412,7 +1431,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 6, + "seq": 7, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -1427,13 +1446,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 6, + "request_seq": 7, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 7, + "seq": 8, "type": "request", "arguments": { "preferences": { @@ -1448,12 +1467,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 7, + "request_seq": 8, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 8, + "seq": 9, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -1466,7 +1485,7 @@ Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/workspac Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json projectStateVersion: 2 projectProgramVersion: 1 structureChanged: false structureIsReused:: Completely Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/index.ts SVC-2-2 "Co" @@ -1490,7 +1509,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "completionInfo", - "request_seq": 8, + "request_seq": 9, "success": true, "performanceData": { "updateGraphDurationMs": * diff --git a/tests/baselines/reference/tsserver/fourslashServer/completionsImport_sortingModuleSpecifiers.js b/tests/baselines/reference/tsserver/fourslashServer/completionsImport_sortingModuleSpecifiers.js index 0105579bfd066..ffc3ab849fe80 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/completionsImport_sortingModuleSpecifiers.js +++ b/tests/baselines/reference/tsserver/fourslashServer/completionsImport_sortingModuleSpecifiers.js @@ -1,16 +1,32 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "module": "commonjs", + "lib": [ + "es5" + ], + "target": "es5", + "newLine": "crlf", + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/tests/cases/fourslash/server/main.ts] normalize @@ -26,12 +42,12 @@ declare module "path" { } //// [/tests/cases/fourslash/server/tsconfig.json] -{ "compilerOptions": { "module": "commonjs" } } +{ "compilerOptions": { "module": "commonjs", "lib": ["es5"] } } Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/tsconfig.json" @@ -48,6 +64,9 @@ Info seq [hh:mm:ss:mss] Config: /tests/cases/fourslash/server/tsconfig.json : { ], "options": { "module": 1, + "lib": [ + "lib.es5.d.ts" + ], "configFilePath": "/tests/cases/fourslash/server/tsconfig.json" } } @@ -66,7 +85,7 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /te Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/main.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/path.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /tests/cases/fourslash/server/tsconfig.json -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /tests/cases/fourslash/server/tsconfig.json WatchType: Type roots @@ -76,19 +95,19 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /te Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /tests/cases/fourslash/server/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/tests/cases/fourslash/server/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (5) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /tests/cases/fourslash/server/main.ts Text-1 "normalize" /tests/cases/fourslash/server/path.d.ts Text-1 "declare module \"path/posix\" {\n export function normalize(p: string): string;\n}\ndeclare module \"path/win32\" {\n export function normalize(p: string): string;\n}\ndeclare module \"path\" {\n export function normalize(p: string): string;\n}" - ../../../../home/src/tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../../../home/src/tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../../../home/src/tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' ../../../../home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../../../home/src/tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' main.ts Matched by default include pattern '**/*' path.d.ts @@ -126,18 +145,18 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /te Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text - /tests/cases/fourslash/server/tsconfig.json SVC-1-0 "{ \"compilerOptions\": { \"module\": \"commonjs\" } }" + /tests/cases/fourslash/server/tsconfig.json SVC-1-0 "{ \"compilerOptions\": { \"module\": \"commonjs\", \"lib\": [\"es5\"] } }" - ../../../../home/src/tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../../../home/src/tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../../../home/src/tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' ../../../../home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../../../home/src/tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' tsconfig.json Root file specified for compilation @@ -158,7 +177,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -166,12 +185,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* + {"pollingInterval":500} /tests/cases/fourslash/server/jsconfig.json: *new* {"pollingInterval":2000} /tests/cases/fourslash/server/main.ts: *new* @@ -202,17 +221,17 @@ Projects:: noOpenRef: true ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 containingProjects: 2 /tests/cases/fourslash/server/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 containingProjects: 2 /tests/cases/fourslash/server/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* version: Text-1 containingProjects: 2 /tests/cases/fourslash/server/tsconfig.json @@ -232,7 +251,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/main.ts" @@ -259,17 +278,17 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 1, + "request_seq": 2, "success": true } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: + {"pollingInterval":500} /tests/cases/fourslash/server/jsconfig.json: {"pollingInterval":2000} /tests/cases/fourslash/server/path.d.ts: @@ -302,17 +321,17 @@ Projects:: noOpenRef: false *changed* ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /tests/cases/fourslash/server/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /tests/cases/fourslash/server/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /tests/cases/fourslash/server/tsconfig.json @@ -333,7 +352,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "preferences": { @@ -349,7 +368,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 2, + "request_seq": 3, "success": true } After Request @@ -364,7 +383,7 @@ Projects:: Info seq [hh:mm:ss:mss] request: { - "seq": 3, + "seq": 4, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/main.ts", @@ -388,7 +407,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "completionInfo", - "request_seq": 3, + "request_seq": 4, "success": true, "body": { "flags": 1, diff --git a/tests/baselines/reference/tsserver/fourslashServer/completionsOverridingMethodCrash2.js b/tests/baselines/reference/tsserver/fourslashServer/completionsOverridingMethodCrash2.js index e59ccb75def06..32ee12f0ff712 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/completionsOverridingMethodCrash2.js +++ b/tests/baselines/reference/tsserver/fourslashServer/completionsOverridingMethodCrash2.js @@ -1,16 +1,32 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "module": "nodenext", + "lib": [ + "es5" + ], + "target": "es5", + "newLine": "crlf", + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/home/src/workspaces/project/classes.ts] import { Component } from "./utils.js"; @@ -21,7 +37,8 @@ export class MyComponent extends Component { //// [/home/src/workspaces/project/tsconfig.json] { "compilerOptions": { - "module": "nodenext" + "module": "nodenext", + "lib": ["es5"] } } @@ -37,7 +54,7 @@ export abstract class Component { Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/home/src/workspaces/project/tsconfig.json" @@ -54,6 +71,9 @@ Info seq [hh:mm:ss:mss] Config: /home/src/workspaces/project/tsconfig.json : { ], "options": { "module": 199, + "lib": [ + "lib.es5.d.ts" + ], "configFilePath": "/home/src/workspaces/project/tsconfig.json" } } @@ -72,20 +92,34 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/classes.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/utils.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.esnext.full.d.ts 500 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Missing file Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) -Info seq [hh:mm:ss:mss] Files (2) +Info seq [hh:mm:ss:mss] Files (5) + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text + /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/utils.ts Text-1 "export class Element {\n // ...\n}\n\nexport abstract class Component {\n abstract render(): Element;\n}" /home/src/workspaces/project/classes.ts Text-1 "import { Component } from \"./utils.js\";\n\nexport class MyComponent extends Component {\n render\n}" + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions + ../../tslibs/TS/Lib/lib.decorators.d.ts + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' + ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' utils.ts Imported via "./utils.js" from file 'classes.ts' Matched by default include pattern '**/*' @@ -112,62 +146,16 @@ Info seq [hh:mm:ss:mss] event: "body": { "triggerFile": "/home/src/workspaces/project/tsconfig.json", "configFile": "/home/src/workspaces/project/tsconfig.json", - "diagnostics": [ - { - "text": "File '/home/src/tslibs/TS/Lib/lib.esnext.full.d.ts' not found.\n The file is in the program because:\n Default library for target 'esnext'", - "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" - } - ] + "diagnostics": [] } } Info seq [hh:mm:ss:mss] getConfigFileNameForFile:: File: /home/src/workspaces/project/tsconfig.json ProjectRootPath: undefined:: Result: undefined Info seq [hh:mm:ss:mss] Creating InferredProject: /dev/null/inferredProject1*, currentDirectory: /home/src/workspaces/project Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots @@ -175,24 +163,24 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text - /home/src/workspaces/project/tsconfig.json SVC-1-0 "{\n \"compilerOptions\": {\n \"module\": \"nodenext\"\n }\n}" + /home/src/workspaces/project/tsconfig.json SVC-1-0 "{\n \"compilerOptions\": {\n \"module\": \"nodenext\",\n \"lib\": [\"es5\"]\n }\n}" - ../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' tsconfig.json Root file specified for compilation Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) -Info seq [hh:mm:ss:mss] Files (2) +Info seq [hh:mm:ss:mss] Files (5) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) @@ -207,7 +195,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -215,14 +203,21 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} -/home/src/tslibs/TS/Lib/lib.esnext.full.d.ts: *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/package.json: *new* + {"pollingInterval":2000} + {"pollingInterval":2000} +/home/src/tslibs/TS/package.json: *new* + {"pollingInterval":2000} + {"pollingInterval":2000} +/home/src/tslibs/package.json: *new* + {"pollingInterval":2000} + {"pollingInterval":2000} /home/src/workspaces/package.json: *new* {"pollingInterval":2000} /home/src/workspaces/project/classes.ts: *new* @@ -257,17 +252,20 @@ Projects:: noOpenRef: true ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* - version: Text-1 - containingProjects: 1 - /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/workspaces/project/classes.ts *new* version: Text-1 @@ -284,7 +282,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "file": "/home/src/workspaces/project/classes.ts" @@ -294,7 +292,7 @@ Info seq [hh:mm:ss:mss] request: Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /home/src/workspaces/project/classes.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] getConfigFileNameForFile:: File: /home/src/workspaces/project/classes.ts ProjectRootPath: undefined:: Result: /home/src/workspaces/project/tsconfig.json Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) -Info seq [hh:mm:ss:mss] Files (2) +Info seq [hh:mm:ss:mss] Files (5) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) @@ -311,19 +309,26 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 1, + "request_seq": 2, "success": true } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} -/home/src/tslibs/TS/Lib/lib.esnext.full.d.ts: +/home/src/tslibs/TS/Lib/lib.es5.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} +/home/src/tslibs/TS/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} +/home/src/tslibs/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} /home/src/workspaces/package.json: {"pollingInterval":2000} /home/src/workspaces/project/jsconfig.json: @@ -360,17 +365,20 @@ Projects:: noOpenRef: false *changed* ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts - version: Text-1 - containingProjects: 1 - /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.es5.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/workspaces/project/classes.ts (Open) *changed* open: true *changed* @@ -388,7 +396,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "preferences": { @@ -404,12 +412,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 2, + "request_seq": 3, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 3, + "seq": 4, "type": "request", "arguments": { "file": "/home/src/workspaces/project/classes.ts", @@ -431,7 +439,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "completionInfo", - "request_seq": 3, + "request_seq": 4, "success": true, "body": { "flags": 0, @@ -555,7 +563,7 @@ Projects:: Info seq [hh:mm:ss:mss] request: { - "seq": 4, + "seq": 5, "type": "request", "arguments": { "file": "/home/src/workspaces/project/utils.ts" @@ -565,7 +573,7 @@ Info seq [hh:mm:ss:mss] request: Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /home/src/workspaces/project/utils.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] getConfigFileNameForFile:: File: /home/src/workspaces/project/utils.ts ProjectRootPath: undefined:: Result: /home/src/workspaces/project/tsconfig.json Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) -Info seq [hh:mm:ss:mss] Files (2) +Info seq [hh:mm:ss:mss] Files (5) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) @@ -584,19 +592,26 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 4, + "request_seq": 5, "success": true } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} -/home/src/tslibs/TS/Lib/lib.esnext.full.d.ts: +/home/src/tslibs/TS/Lib/lib.es5.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} +/home/src/tslibs/TS/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} +/home/src/tslibs/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} /home/src/workspaces/package.json: {"pollingInterval":2000} /home/src/workspaces/project/jsconfig.json: @@ -621,17 +636,20 @@ watchedDirectoriesRecursive:: {} ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts - version: Text-1 - containingProjects: 1 - /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.es5.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/workspaces/project/classes.ts (Open) version: Text-1 @@ -649,7 +667,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 5, + "seq": 6, "type": "request", "arguments": { "file": "/home/src/workspaces/project/classes.ts" @@ -657,7 +675,7 @@ Info seq [hh:mm:ss:mss] request: "command": "open" } Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) -Info seq [hh:mm:ss:mss] Files (2) +Info seq [hh:mm:ss:mss] Files (5) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) @@ -676,12 +694,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 5, + "request_seq": 6, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 6, + "seq": 7, "type": "request", "arguments": { "file": "/home/src/workspaces/project/classes.ts", @@ -698,7 +716,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 6, + "request_seq": 7, "success": true } After Request @@ -714,17 +732,20 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts - version: Text-1 - containingProjects: 1 - /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.es5.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/workspaces/project/classes.ts (Open) *changed* version: SVC-2-1 *changed* @@ -741,7 +762,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 7, + "seq": 8, "type": "request", "arguments": { "preferences": { @@ -757,12 +778,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 7, + "request_seq": 8, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 8, + "seq": 9, "type": "request", "arguments": { "file": "/home/src/workspaces/project/classes.ts", @@ -774,7 +795,10 @@ Info seq [hh:mm:ss:mss] request: Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json projectStateVersion: 2 projectProgramVersion: 1 structureChanged: false structureIsReused:: Completely Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) -Info seq [hh:mm:ss:mss] Files (2) +Info seq [hh:mm:ss:mss] Files (5) + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text + /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/utils.ts Text-1 "export class Element {\n // ...\n}\n\nexport abstract class Component {\n abstract render(): Element;\n}" /home/src/workspaces/project/classes.ts SVC-2-1 "import { Component } from \"./utils.js\";\n\nexport class MyComponent extends Component {\n rende\n}" @@ -791,7 +815,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "completionInfo", - "request_seq": 8, + "request_seq": 9, "success": true, "performanceData": { "updateGraphDurationMs": * diff --git a/tests/baselines/reference/tsserver/fourslashServer/completionsServerCommitCharacters.js b/tests/baselines/reference/tsserver/fourslashServer/completionsServerCommitCharacters.js index 1e726828f1a4b..556e1165ce834 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/completionsServerCommitCharacters.js +++ b/tests/baselines/reference/tsserver/fourslashServer/completionsServerCommitCharacters.js @@ -1,23 +1,38 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "target": "es5", + "newLine": "crlf", + "lib": [ + "es5" + ], + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/home/src/workspaces/project/src/index.ts] const a: "aa" | "bb" = ""; Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/index.ts" @@ -31,7 +46,7 @@ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/p Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/src/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots @@ -43,18 +58,18 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/src/index.ts SVC-1-0 "const a: \"aa\" | \"bb\" = \"\";" - ../../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../../tslibs/TS/Lib/lib.es5.d.ts' ../../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../../tslibs/TS/Lib/lib.es5.d.ts' index.ts Root file specified for compilation @@ -71,7 +86,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -79,12 +94,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* + {"pollingInterval":500} /home/src/workspaces/project/jsconfig.json: *new* {"pollingInterval":2000} /home/src/workspaces/project/src/jsconfig.json: *new* @@ -109,15 +124,15 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* @@ -128,7 +143,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/index.ts", @@ -142,7 +157,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "completionInfo", - "request_seq": 1, + "request_seq": 2, "success": true, "body": { "isGlobalCompletion": false, @@ -203,7 +218,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/index.ts", @@ -222,7 +237,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "completionEntryDetails-full", - "request_seq": 2, + "request_seq": 3, "success": true, "body": [ { @@ -241,7 +256,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 3, + "seq": 4, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/index.ts", @@ -260,7 +275,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "completionEntryDetails-full", - "request_seq": 3, + "request_seq": 4, "success": true, "body": [ { diff --git a/tests/baselines/reference/tsserver/fourslashServer/configurePlugin.js b/tests/baselines/reference/tsserver/fourslashServer/configurePlugin.js index 8f307815b46c3..607d6086718a1 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/configurePlugin.js +++ b/tests/baselines/reference/tsserver/fourslashServer/configurePlugin.js @@ -1,16 +1,37 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "lib": [ + "es5" + ], + "plugins": [ + { + "name": "configurable-diagnostic-adder", + "message": "configured error" + } + ], + "target": "es5", + "newLine": "crlf", + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/tests/cases/fourslash/server/a.ts] let x = [1, 2]; @@ -19,6 +40,7 @@ let x = [1, 2]; //// [/tests/cases/fourslash/server/tsconfig.json] { "compilerOptions": { + "lib": ["es5"], "plugins": [ { "name": "configurable-diagnostic-adder" , "message": "configured error" } ] @@ -29,7 +51,7 @@ let x = [1, 2]; Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/tsconfig.json" @@ -44,6 +66,9 @@ Info seq [hh:mm:ss:mss] Config: /tests/cases/fourslash/server/tsconfig.json : { "/tests/cases/fourslash/server/a.ts" ], "options": { + "lib": [ + "lib.es5.d.ts" + ], "plugins": [ { "name": "configurable-diagnostic-adder", @@ -68,7 +93,7 @@ Info seq [hh:mm:ss:mss] Loading configurable-diagnostic-adder from /home/src/ts Info seq [hh:mm:ss:mss] Plugin validation succeeded Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/a.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /tests/cases/fourslash/server/tsconfig.json -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /tests/cases/fourslash/server/tsconfig.json WatchType: Type roots @@ -78,18 +103,18 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /te Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /tests/cases/fourslash/server/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/tests/cases/fourslash/server/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /tests/cases/fourslash/server/a.ts Text-1 "let x = [1, 2];\n\n" - ../../../../home/src/tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../../../home/src/tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../../../home/src/tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' ../../../../home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../../../home/src/tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' a.ts Part of 'files' list in tsconfig.json @@ -125,18 +150,18 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /te Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text - /tests/cases/fourslash/server/tsconfig.json SVC-1-0 "{\n \"compilerOptions\": {\n \"plugins\": [\n { \"name\": \"configurable-diagnostic-adder\" , \"message\": \"configured error\" }\n ]\n },\n \"files\": [\"a.ts\"]\n}" + /tests/cases/fourslash/server/tsconfig.json SVC-1-0 "{\n \"compilerOptions\": {\n \"lib\": [\"es5\"],\n \"plugins\": [\n { \"name\": \"configurable-diagnostic-adder\" , \"message\": \"configured error\" }\n ]\n },\n \"files\": [\"a.ts\"]\n}" - ../../../../home/src/tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../../../home/src/tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../../../home/src/tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' ../../../../home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../../../home/src/tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' tsconfig.json Root file specified for compilation @@ -157,7 +182,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -165,12 +190,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* + {"pollingInterval":500} /tests/cases/fourslash/server/a.ts: *new* {"pollingInterval":500} /tests/cases/fourslash/server/jsconfig.json: *new* @@ -197,17 +222,17 @@ Projects:: noOpenRef: true ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 containingProjects: 2 /tests/cases/fourslash/server/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 containingProjects: 2 /tests/cases/fourslash/server/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* version: Text-1 containingProjects: 2 /tests/cases/fourslash/server/tsconfig.json @@ -223,7 +248,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/a.ts" @@ -250,17 +275,17 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 1, + "request_seq": 2, "success": true } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: + {"pollingInterval":500} /tests/cases/fourslash/server/jsconfig.json: {"pollingInterval":2000} /tests/cases/fourslash/server/tsconfig.json: @@ -289,17 +314,17 @@ Projects:: noOpenRef: false *changed* ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /tests/cases/fourslash/server/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /tests/cases/fourslash/server/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /tests/cases/fourslash/server/tsconfig.json @@ -316,7 +341,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/a.ts", @@ -329,7 +354,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "semanticDiagnosticsSync", - "request_seq": 2, + "request_seq": 3, "success": true, "body": [ { @@ -351,7 +376,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 3, + "seq": 4, "type": "request", "arguments": { "pluginName": "configurable-diagnostic-adder", @@ -366,12 +391,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configurePlugin", - "request_seq": 3, + "request_seq": 4, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 4, + "seq": 5, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/a.ts", @@ -384,7 +409,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "semanticDiagnosticsSync", - "request_seq": 4, + "request_seq": 5, "success": true, "body": [ { diff --git a/tests/baselines/reference/tsserver/fourslashServer/convertFunctionToEs6Class-server1.js b/tests/baselines/reference/tsserver/fourslashServer/convertFunctionToEs6Class-server1.js index 418fdeeeb4d8f..c4dee583299e1 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/convertFunctionToEs6Class-server1.js +++ b/tests/baselines/reference/tsserver/fourslashServer/convertFunctionToEs6Class-server1.js @@ -1,16 +1,31 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "target": "es5", + "newLine": "crlf", + "lib": [ + "es5" + ], + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/tests/cases/fourslash/server/test123.js] // Comment function fn() { @@ -23,7 +38,7 @@ fn.prototype.bar = function () { Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/test123.js" @@ -35,7 +50,7 @@ Info seq [hh:mm:ss:mss] Creating InferredProject: /dev/null/inferredProject1*, Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots @@ -45,18 +60,18 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /te Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /tests/cases/fourslash/server/test123.js SVC-1-0 "// Comment\nfunction fn() {\n this.baz = 10;\n}\nfn.prototype.bar = function () {\n console.log('hello world');\n}" - ../../../../home/src/tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../../../home/src/tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../../../home/src/tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' ../../../../home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../../../home/src/tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' test123.js Root file specified for compilation @@ -73,7 +88,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -81,12 +96,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* + {"pollingInterval":500} /tests/cases/fourslash/server/jsconfig.json: *new* {"pollingInterval":2000} /tests/cases/fourslash/server/tsconfig.json: *new* @@ -105,15 +120,15 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* @@ -124,7 +139,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "preferences": {} @@ -136,12 +151,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 1, + "request_seq": 2, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/test123.js", @@ -154,13 +169,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "syntacticDiagnosticsSync", - "request_seq": 2, + "request_seq": 3, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 3, + "seq": 4, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/test123.js", @@ -173,13 +188,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "semanticDiagnosticsSync", - "request_seq": 3, + "request_seq": 4, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 4, + "seq": 5, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/test123.js", @@ -192,7 +207,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "suggestionDiagnosticsSync", - "request_seq": 4, + "request_seq": 5, "success": true, "body": [ { @@ -214,7 +229,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 5, + "seq": 6, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/test123.js", @@ -233,7 +248,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "getCodeFixes", - "request_seq": 5, + "request_seq": 6, "success": true, "body": [ { diff --git a/tests/baselines/reference/tsserver/fourslashServer/convertFunctionToEs6Class-server2.js b/tests/baselines/reference/tsserver/fourslashServer/convertFunctionToEs6Class-server2.js index 67ab7511affce..bc86fd7da4e74 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/convertFunctionToEs6Class-server2.js +++ b/tests/baselines/reference/tsserver/fourslashServer/convertFunctionToEs6Class-server2.js @@ -1,16 +1,31 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "target": "es5", + "newLine": "crlf", + "lib": [ + "es5" + ], + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/tests/cases/fourslash/server/test123.js] /** * JSDoc Comment @@ -25,7 +40,7 @@ fn.prototype.bar = function () { Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/test123.js" @@ -37,7 +52,7 @@ Info seq [hh:mm:ss:mss] Creating InferredProject: /dev/null/inferredProject1*, Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots @@ -47,18 +62,18 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /te Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /tests/cases/fourslash/server/test123.js SVC-1-0 "/**\n * JSDoc Comment\n */\nfunction fn() {\n this.baz = 10;\n}\nfn.prototype.bar = function () {\n console.log('hello world');\n}" - ../../../../home/src/tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../../../home/src/tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../../../home/src/tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' ../../../../home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../../../home/src/tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' test123.js Root file specified for compilation @@ -75,7 +90,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -83,12 +98,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* + {"pollingInterval":500} /tests/cases/fourslash/server/jsconfig.json: *new* {"pollingInterval":2000} /tests/cases/fourslash/server/tsconfig.json: *new* @@ -107,15 +122,15 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* @@ -126,7 +141,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "preferences": {} @@ -138,12 +153,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 1, + "request_seq": 2, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/test123.js", @@ -156,13 +171,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "syntacticDiagnosticsSync", - "request_seq": 2, + "request_seq": 3, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 3, + "seq": 4, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/test123.js", @@ -175,13 +190,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "semanticDiagnosticsSync", - "request_seq": 3, + "request_seq": 4, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 4, + "seq": 5, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/test123.js", @@ -194,7 +209,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "suggestionDiagnosticsSync", - "request_seq": 4, + "request_seq": 5, "success": true, "body": [ { @@ -216,7 +231,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 5, + "seq": 6, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/test123.js", @@ -235,7 +250,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "getCodeFixes", - "request_seq": 5, + "request_seq": 6, "success": true, "body": [ { diff --git a/tests/baselines/reference/tsserver/fourslashServer/declarationMapGoToDefinition.js b/tests/baselines/reference/tsserver/fourslashServer/declarationMapGoToDefinition.js index 2492cc267ee51..88ee8ee972a3f 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/declarationMapGoToDefinition.js +++ b/tests/baselines/reference/tsserver/fourslashServer/declarationMapGoToDefinition.js @@ -1,16 +1,31 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "target": "es5", + "newLine": "crlf", + "lib": [ + "es5" + ], + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/tests/cases/fourslash/server/index.ts] export class Foo { member: string; @@ -55,7 +70,7 @@ instance.methodName({member: 12}); Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/index.ts" @@ -67,7 +82,7 @@ Info seq [hh:mm:ss:mss] Creating InferredProject: /dev/null/inferredProject1*, Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots @@ -77,18 +92,18 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /te Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /tests/cases/fourslash/server/index.ts SVC-1-0 "export class Foo {\n member: string;\n methodName(propName: SomeType): void {}\n otherMethod() {\n if (Math.random() > 0.5) {\n return {x: 42};\n }\n return {y: \"yes\"};\n }\n}\n\nexport interface SomeType {\n member: number;\n}" - ../../../../home/src/tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../../../home/src/tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../../../home/src/tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' ../../../../home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../../../home/src/tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' index.ts Root file specified for compilation @@ -105,7 +120,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -113,12 +128,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* + {"pollingInterval":500} /tests/cases/fourslash/server/jsconfig.json: *new* {"pollingInterval":2000} /tests/cases/fourslash/server/tsconfig.json: *new* @@ -137,15 +152,15 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* @@ -156,7 +171,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/mymodule.ts" @@ -176,19 +191,19 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /te Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject2* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject2*' (Inferred) Info seq [hh:mm:ss:mss] Files (5) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /tests/cases/fourslash/server/indexdef.d.ts Text-1 "export declare class Foo {\n member: string;\n methodName(propName: SomeType): void;\n otherMethod(): {\n x: number;\n y?: undefined;\n } | {\n y: string;\n x?: undefined;\n };\n}\nexport interface SomeType {\n member: number;\n}\n//# sourceMappingURL=indexdef.d.ts.map" /tests/cases/fourslash/server/mymodule.ts SVC-1-0 "import * as mod from \"./indexdef\";\nconst instance = new mod.Foo();\ninstance.methodName({member: 12});" - ../../../../home/src/tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../../../home/src/tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../../../home/src/tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' ../../../../home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../../../home/src/tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' indexdef.d.ts Imported via "./indexdef" from file 'mymodule.ts' mymodule.ts @@ -213,7 +228,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 1, + "request_seq": 2, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -221,12 +236,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: + {"pollingInterval":500} /tests/cases/fourslash/server/indexdef.d.ts: *new* {"pollingInterval":500} /tests/cases/fourslash/server/jsconfig.json: @@ -257,17 +272,17 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *changed* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *changed* version: Text-1 containingProjects: 2 *changed* /dev/null/inferredProject1* /dev/null/inferredProject2* *new* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *changed* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *changed* version: Text-1 containingProjects: 2 *changed* /dev/null/inferredProject1* /dev/null/inferredProject2* *new* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *changed* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *changed* version: Text-1 containingProjects: 2 *changed* /dev/null/inferredProject1* @@ -287,7 +302,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/mymodule.ts", @@ -302,7 +317,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "definitionAndBoundSpan", - "request_seq": 2, + "request_seq": 3, "success": true, "body": { "definitions": [ @@ -340,12 +355,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: + {"pollingInterval":500} /tests/cases/fourslash/server/indexdef.d.ts: {"pollingInterval":500} /tests/cases/fourslash/server/indexdef.d.ts.map: *new* @@ -380,17 +395,17 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /dev/null/inferredProject1* /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /dev/null/inferredProject1* /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /dev/null/inferredProject1* diff --git a/tests/baselines/reference/tsserver/fourslashServer/declarationMapsEnableMapping_NoInline.js b/tests/baselines/reference/tsserver/fourslashServer/declarationMapsEnableMapping_NoInline.js index dcd46543b9e77..288cf415f5053 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/declarationMapsEnableMapping_NoInline.js +++ b/tests/baselines/reference/tsserver/fourslashServer/declarationMapsEnableMapping_NoInline.js @@ -1,16 +1,36 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "lib": [ + "es5" + ], + "strict": false, + "outDir": "/home/src/workspaces/project/dist", + "inlineSourceMap": true, + "declaration": true, + "declarationMap": true, + "newLine": "lf", + "target": "es5", + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/home/src/workspaces/project/dist/index.d.ts] export declare class Foo { member: string; @@ -74,6 +94,7 @@ instance.methodName({member: 12}); //// [/home/src/workspaces/project/tsconfig.json] { "compilerOptions": { + "lib": ["es5"], "strict": false, "outDir": "./dist", "inlineSourceMap": true, @@ -87,7 +108,7 @@ instance.methodName({member: 12}); Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/home/src/workspaces/project/tsconfig.json" @@ -102,6 +123,9 @@ Info seq [hh:mm:ss:mss] Config: /home/src/workspaces/project/tsconfig.json : { "/home/src/workspaces/project/index.ts" ], "options": { + "lib": [ + "lib.es5.d.ts" + ], "strict": false, "outDir": "/home/src/workspaces/project/dist", "inlineSourceMap": true, @@ -123,7 +147,7 @@ Info seq [hh:mm:ss:mss] event: } Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/index.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots @@ -133,18 +157,18 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/index.ts Text-1 "export class Foo {\n member: string;\n methodName(propName: SomeType): SomeType { return propName; }\n otherMethod() {\n if (Math.random() > 0.5) {\n return {x: 42};\n }\n return {y: \"yes\"};\n }\n}\n\nexport interface SomeType {\n member: number;\n}" - ../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' index.ts Part of 'files' list in tsconfig.json @@ -180,18 +204,18 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text - /home/src/workspaces/project/tsconfig.json SVC-1-0 "{\n \"compilerOptions\": {\n \"strict\": false,\n \"outDir\": \"./dist\",\n \"inlineSourceMap\": true,\n \"declaration\": true,\n \"declarationMap\": true,\n \"newLine\": \"lf\",\n },\n \"files\": [\"/home/src/workspaces/project/index.ts\"],\n}" + /home/src/workspaces/project/tsconfig.json SVC-1-0 "{\n \"compilerOptions\": {\n \"lib\": [\"es5\"],\n \"strict\": false,\n \"outDir\": \"./dist\",\n \"inlineSourceMap\": true,\n \"declaration\": true,\n \"declarationMap\": true,\n \"newLine\": \"lf\",\n },\n \"files\": [\"/home/src/workspaces/project/index.ts\"],\n}" - ../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' tsconfig.json Root file specified for compilation @@ -212,7 +236,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -220,12 +244,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* + {"pollingInterval":500} /home/src/workspaces/project/index.ts: *new* {"pollingInterval":500} /home/src/workspaces/project/jsconfig.json: *new* @@ -252,17 +276,17 @@ Projects:: noOpenRef: true ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -278,7 +302,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts" @@ -305,17 +329,17 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 1, + "request_seq": 2, "success": true } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: + {"pollingInterval":500} /home/src/workspaces/project/jsconfig.json: {"pollingInterval":2000} /home/src/workspaces/project/tsconfig.json: @@ -344,17 +368,17 @@ Projects:: noOpenRef: false *changed* ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -371,7 +395,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts" @@ -383,7 +407,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "emit-output", - "request_seq": 2, + "request_seq": 3, "success": true, "body": { "outputFiles": [ @@ -409,7 +433,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 3, + "seq": 4, "type": "request", "arguments": { "file": "/home/src/workspaces/project/mymodule.ts" @@ -441,19 +465,19 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject2* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject2*' (Inferred) Info seq [hh:mm:ss:mss] Files (5) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/dist/index.d.ts Text-1 "export declare class Foo {\n member: string;\n methodName(propName: SomeType): SomeType;\n otherMethod(): {\n x: number;\n y?: undefined;\n } | {\n y: string;\n x?: undefined;\n };\n}\nexport interface SomeType {\n member: number;\n}\n//# sourceMappingURL=index.d.ts.map" /home/src/workspaces/project/mymodule.ts SVC-1-0 "import * as mod from \"/home/src/workspaces/project/dist/index\";\nconst instance = new mod.Foo();\ninstance.methodName({member: 12});" - ../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' dist/index.d.ts Imported via "/home/src/workspaces/project/dist/index" from file 'mymodule.ts' mymodule.ts @@ -484,7 +508,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 3, + "request_seq": 4, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -492,12 +516,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: + {"pollingInterval":500} /home/src/workspaces/project/dist/index.d.ts: *new* {"pollingInterval":500} /home/src/workspaces/project/jsconfig.json: @@ -531,19 +555,19 @@ Projects:: projectProgramVersion: 1 ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *changed* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *changed* version: Text-1 containingProjects: 3 *changed* /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /dev/null/inferredProject2* *new* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *changed* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *changed* version: Text-1 containingProjects: 3 *changed* /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /dev/null/inferredProject2* *new* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *changed* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *changed* version: Text-1 containingProjects: 3 *changed* /home/src/workspaces/project/tsconfig.json @@ -568,7 +592,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 4, + "seq": 5, "type": "request", "arguments": { "file": "/home/src/workspaces/project/mymodule.ts", @@ -583,7 +607,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "implementation", - "request_seq": 4, + "request_seq": 5, "success": true, "body": [ { @@ -609,12 +633,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: + {"pollingInterval":500} /home/src/workspaces/project/dist/index.d.ts: {"pollingInterval":500} /home/src/workspaces/project/dist/index.d.ts.map: *new* @@ -652,19 +676,19 @@ Projects:: projectProgramVersion: 1 ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 3 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 3 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 3 /home/src/workspaces/project/tsconfig.json @@ -700,7 +724,7 @@ DocumentPositionMapper1 *new* Info seq [hh:mm:ss:mss] request: { - "seq": 5, + "seq": 6, "type": "request", "arguments": { "file": "/home/src/workspaces/project/mymodule.ts", @@ -714,7 +738,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "typeDefinition", - "request_seq": 5, + "request_seq": 6, "success": true, "body": [ { @@ -740,7 +764,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 6, + "seq": 7, "type": "request", "arguments": { "file": "/home/src/workspaces/project/mymodule.ts", @@ -754,7 +778,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "definitionAndBoundSpan", - "request_seq": 6, + "request_seq": 7, "success": true, "body": { "definitions": [ @@ -792,7 +816,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 7, + "seq": 8, "type": "request", "arguments": { "file": "/home/src/workspaces/project/mymodule.ts", @@ -806,7 +830,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "definition", - "request_seq": 7, + "request_seq": 8, "success": true, "body": [ { diff --git a/tests/baselines/reference/tsserver/fourslashServer/declarationMapsEnableMapping_NoInlineSources.js b/tests/baselines/reference/tsserver/fourslashServer/declarationMapsEnableMapping_NoInlineSources.js index 71bbf699cbc86..504e4b2a287d6 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/declarationMapsEnableMapping_NoInlineSources.js +++ b/tests/baselines/reference/tsserver/fourslashServer/declarationMapsEnableMapping_NoInlineSources.js @@ -1,16 +1,37 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "lib": [ + "es5" + ], + "strict": false, + "outDir": "/home/src/workspaces/project/dist", + "inlineSourceMap": true, + "inlineSources": true, + "declaration": true, + "declarationMap": true, + "newLine": "lf", + "target": "es5", + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/home/src/workspaces/project/dist/index.d.ts] export declare class Foo { member: string; @@ -74,6 +95,7 @@ instance.methodName({member: 12}); //// [/home/src/workspaces/project/tsconfig.json] { "compilerOptions": { + "lib": ["es5"], "strict": false, "outDir": "./dist", "inlineSourceMap": true, @@ -88,7 +110,7 @@ instance.methodName({member: 12}); Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/home/src/workspaces/project/tsconfig.json" @@ -103,6 +125,9 @@ Info seq [hh:mm:ss:mss] Config: /home/src/workspaces/project/tsconfig.json : { "/home/src/workspaces/project/index.ts" ], "options": { + "lib": [ + "lib.es5.d.ts" + ], "strict": false, "outDir": "/home/src/workspaces/project/dist", "inlineSourceMap": true, @@ -125,7 +150,7 @@ Info seq [hh:mm:ss:mss] event: } Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/index.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots @@ -135,18 +160,18 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/index.ts Text-1 "export class Foo {\n member: string;\n methodName(propName: SomeType): SomeType { return propName; }\n otherMethod() {\n if (Math.random() > 0.5) {\n return {x: 42};\n }\n return {y: \"yes\"};\n }\n}\n\nexport interface SomeType {\n member: number;\n}" - ../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' index.ts Part of 'files' list in tsconfig.json @@ -182,18 +207,18 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text - /home/src/workspaces/project/tsconfig.json SVC-1-0 "{\n \"compilerOptions\": {\n \"strict\": false,\n \"outDir\": \"./dist\",\n \"inlineSourceMap\": true,\n \"inlineSources\": true,\n \"declaration\": true,\n \"declarationMap\": true,\n \"newLine\": \"lf\",\n },\n \"files\": [\"/home/src/workspaces/project/index.ts\"],\n}" + /home/src/workspaces/project/tsconfig.json SVC-1-0 "{\n \"compilerOptions\": {\n \"lib\": [\"es5\"],\n \"strict\": false,\n \"outDir\": \"./dist\",\n \"inlineSourceMap\": true,\n \"inlineSources\": true,\n \"declaration\": true,\n \"declarationMap\": true,\n \"newLine\": \"lf\",\n },\n \"files\": [\"/home/src/workspaces/project/index.ts\"],\n}" - ../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' tsconfig.json Root file specified for compilation @@ -214,7 +239,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -222,12 +247,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* + {"pollingInterval":500} /home/src/workspaces/project/index.ts: *new* {"pollingInterval":500} /home/src/workspaces/project/jsconfig.json: *new* @@ -254,17 +279,17 @@ Projects:: noOpenRef: true ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -280,7 +305,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts" @@ -307,17 +332,17 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 1, + "request_seq": 2, "success": true } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: + {"pollingInterval":500} /home/src/workspaces/project/jsconfig.json: {"pollingInterval":2000} /home/src/workspaces/project/tsconfig.json: @@ -346,17 +371,17 @@ Projects:: noOpenRef: false *changed* ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -373,7 +398,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts" @@ -385,7 +410,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "emit-output", - "request_seq": 2, + "request_seq": 3, "success": true, "body": { "outputFiles": [ @@ -411,7 +436,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 3, + "seq": 4, "type": "request", "arguments": { "file": "/home/src/workspaces/project/mymodule.ts" @@ -443,19 +468,19 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject2* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject2*' (Inferred) Info seq [hh:mm:ss:mss] Files (5) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/dist/index.d.ts Text-1 "export declare class Foo {\n member: string;\n methodName(propName: SomeType): SomeType;\n otherMethod(): {\n x: number;\n y?: undefined;\n } | {\n y: string;\n x?: undefined;\n };\n}\nexport interface SomeType {\n member: number;\n}\n//# sourceMappingURL=index.d.ts.map" /home/src/workspaces/project/mymodule.ts SVC-1-0 "import * as mod from \"/home/src/workspaces/project/dist/index\";\nconst instance = new mod.Foo();\ninstance.methodName({member: 12});" - ../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' dist/index.d.ts Imported via "/home/src/workspaces/project/dist/index" from file 'mymodule.ts' mymodule.ts @@ -486,7 +511,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 3, + "request_seq": 4, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -494,12 +519,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: + {"pollingInterval":500} /home/src/workspaces/project/dist/index.d.ts: *new* {"pollingInterval":500} /home/src/workspaces/project/jsconfig.json: @@ -533,19 +558,19 @@ Projects:: projectProgramVersion: 1 ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *changed* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *changed* version: Text-1 containingProjects: 3 *changed* /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /dev/null/inferredProject2* *new* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *changed* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *changed* version: Text-1 containingProjects: 3 *changed* /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /dev/null/inferredProject2* *new* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *changed* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *changed* version: Text-1 containingProjects: 3 *changed* /home/src/workspaces/project/tsconfig.json @@ -570,7 +595,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 4, + "seq": 5, "type": "request", "arguments": { "file": "/home/src/workspaces/project/mymodule.ts", @@ -585,7 +610,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "implementation", - "request_seq": 4, + "request_seq": 5, "success": true, "body": [ { @@ -611,12 +636,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: + {"pollingInterval":500} /home/src/workspaces/project/dist/index.d.ts: {"pollingInterval":500} /home/src/workspaces/project/dist/index.d.ts.map: *new* @@ -654,19 +679,19 @@ Projects:: projectProgramVersion: 1 ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 3 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 3 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 3 /home/src/workspaces/project/tsconfig.json @@ -702,7 +727,7 @@ DocumentPositionMapper1 *new* Info seq [hh:mm:ss:mss] request: { - "seq": 5, + "seq": 6, "type": "request", "arguments": { "file": "/home/src/workspaces/project/mymodule.ts", @@ -716,7 +741,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "typeDefinition", - "request_seq": 5, + "request_seq": 6, "success": true, "body": [ { @@ -742,7 +767,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 6, + "seq": 7, "type": "request", "arguments": { "file": "/home/src/workspaces/project/mymodule.ts", @@ -756,7 +781,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "definitionAndBoundSpan", - "request_seq": 6, + "request_seq": 7, "success": true, "body": { "definitions": [ @@ -794,7 +819,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 7, + "seq": 8, "type": "request", "arguments": { "file": "/home/src/workspaces/project/mymodule.ts", @@ -808,7 +833,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "definition", - "request_seq": 7, + "request_seq": 8, "success": true, "body": [ { diff --git a/tests/baselines/reference/tsserver/fourslashServer/declarationMapsGeneratedMapsEnableMapping.js b/tests/baselines/reference/tsserver/fourslashServer/declarationMapsGeneratedMapsEnableMapping.js index 4907cd179b0ef..7ef3f61c69cfe 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/declarationMapsGeneratedMapsEnableMapping.js +++ b/tests/baselines/reference/tsserver/fourslashServer/declarationMapsGeneratedMapsEnableMapping.js @@ -1,16 +1,35 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "lib": [ + "es5" + ], + "strict": false, + "outDir": "/home/src/workspaces/project/dist", + "declaration": true, + "declarationMap": true, + "newLine": "lf", + "target": "es5", + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/home/src/workspaces/project/dist/index.d.ts] export declare class Foo { member: string; @@ -74,6 +93,7 @@ instance.methodName({member: 12}); //// [/home/src/workspaces/project/tsconfig.json] { "compilerOptions": { + "lib": ["es5"], "strict": false, "outDir": "./dist", "declaration": true, @@ -86,7 +106,7 @@ instance.methodName({member: 12}); Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/home/src/workspaces/project/tsconfig.json" @@ -101,6 +121,9 @@ Info seq [hh:mm:ss:mss] Config: /home/src/workspaces/project/tsconfig.json : { "/home/src/workspaces/project/index.ts" ], "options": { + "lib": [ + "lib.es5.d.ts" + ], "strict": false, "outDir": "/home/src/workspaces/project/dist", "declaration": true, @@ -121,7 +144,7 @@ Info seq [hh:mm:ss:mss] event: } Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/index.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots @@ -131,18 +154,18 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/index.ts Text-1 "export class Foo {\n member: string;\n methodName(propName: SomeType): SomeType { return propName; }\n otherMethod() {\n if (Math.random() > 0.5) {\n return {x: 42};\n }\n return {y: \"yes\"};\n }\n}\n\nexport interface SomeType {\n member: number;\n}" - ../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' index.ts Part of 'files' list in tsconfig.json @@ -178,18 +201,18 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text - /home/src/workspaces/project/tsconfig.json SVC-1-0 "{\n \"compilerOptions\": {\n \"strict\": false,\n \"outDir\": \"./dist\",\n \"declaration\": true,\n \"declarationMap\": true,\n \"newLine\": \"lf\",\n },\n \"files\": [\"/home/src/workspaces/project/index.ts\"],\n}" + /home/src/workspaces/project/tsconfig.json SVC-1-0 "{\n \"compilerOptions\": {\n \"lib\": [\"es5\"],\n \"strict\": false,\n \"outDir\": \"./dist\",\n \"declaration\": true,\n \"declarationMap\": true,\n \"newLine\": \"lf\",\n },\n \"files\": [\"/home/src/workspaces/project/index.ts\"],\n}" - ../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' tsconfig.json Root file specified for compilation @@ -210,7 +233,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -218,12 +241,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* + {"pollingInterval":500} /home/src/workspaces/project/index.ts: *new* {"pollingInterval":500} /home/src/workspaces/project/jsconfig.json: *new* @@ -250,17 +273,17 @@ Projects:: noOpenRef: true ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -276,7 +299,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts" @@ -303,17 +326,17 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 1, + "request_seq": 2, "success": true } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: + {"pollingInterval":500} /home/src/workspaces/project/jsconfig.json: {"pollingInterval":2000} /home/src/workspaces/project/tsconfig.json: @@ -342,17 +365,17 @@ Projects:: noOpenRef: false *changed* ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -369,7 +392,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts" @@ -381,7 +404,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "emit-output", - "request_seq": 2, + "request_seq": 3, "success": true, "body": { "outputFiles": [ @@ -407,7 +430,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 3, + "seq": 4, "type": "request", "arguments": { "file": "/home/src/workspaces/project/mymodule.ts" @@ -439,19 +462,19 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject2* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject2*' (Inferred) Info seq [hh:mm:ss:mss] Files (5) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/dist/index.d.ts Text-1 "export declare class Foo {\n member: string;\n methodName(propName: SomeType): SomeType;\n otherMethod(): {\n x: number;\n y?: undefined;\n } | {\n y: string;\n x?: undefined;\n };\n}\nexport interface SomeType {\n member: number;\n}\n//# sourceMappingURL=index.d.ts.map" /home/src/workspaces/project/mymodule.ts SVC-1-0 "import * as mod from \"/home/src/workspaces/project/dist/index\";\nconst instance = new mod.Foo();\ninstance.methodName({member: 12});" - ../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' dist/index.d.ts Imported via "/home/src/workspaces/project/dist/index" from file 'mymodule.ts' mymodule.ts @@ -482,7 +505,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 3, + "request_seq": 4, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -490,12 +513,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: + {"pollingInterval":500} /home/src/workspaces/project/dist/index.d.ts: *new* {"pollingInterval":500} /home/src/workspaces/project/jsconfig.json: @@ -529,19 +552,19 @@ Projects:: projectProgramVersion: 1 ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *changed* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *changed* version: Text-1 containingProjects: 3 *changed* /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /dev/null/inferredProject2* *new* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *changed* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *changed* version: Text-1 containingProjects: 3 *changed* /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /dev/null/inferredProject2* *new* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *changed* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *changed* version: Text-1 containingProjects: 3 *changed* /home/src/workspaces/project/tsconfig.json @@ -566,7 +589,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 4, + "seq": 5, "type": "request", "arguments": { "file": "/home/src/workspaces/project/mymodule.ts", @@ -581,7 +604,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "implementation", - "request_seq": 4, + "request_seq": 5, "success": true, "body": [ { @@ -607,12 +630,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: + {"pollingInterval":500} /home/src/workspaces/project/dist/index.d.ts: {"pollingInterval":500} /home/src/workspaces/project/dist/index.d.ts.map: *new* @@ -650,19 +673,19 @@ Projects:: projectProgramVersion: 1 ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 3 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 3 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 3 /home/src/workspaces/project/tsconfig.json @@ -698,7 +721,7 @@ DocumentPositionMapper1 *new* Info seq [hh:mm:ss:mss] request: { - "seq": 5, + "seq": 6, "type": "request", "arguments": { "file": "/home/src/workspaces/project/mymodule.ts", @@ -712,7 +735,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "typeDefinition", - "request_seq": 5, + "request_seq": 6, "success": true, "body": [ { @@ -738,7 +761,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 6, + "seq": 7, "type": "request", "arguments": { "file": "/home/src/workspaces/project/mymodule.ts", @@ -752,7 +775,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "definitionAndBoundSpan", - "request_seq": 6, + "request_seq": 7, "success": true, "body": { "definitions": [ @@ -790,7 +813,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 7, + "seq": 8, "type": "request", "arguments": { "file": "/home/src/workspaces/project/mymodule.ts", @@ -804,7 +827,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "definition", - "request_seq": 7, + "request_seq": 8, "success": true, "body": [ { diff --git a/tests/baselines/reference/tsserver/fourslashServer/declarationMapsGeneratedMapsEnableMapping2.js b/tests/baselines/reference/tsserver/fourslashServer/declarationMapsGeneratedMapsEnableMapping2.js index 6c21a0f30ecfc..c0ecbb94cf157 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/declarationMapsGeneratedMapsEnableMapping2.js +++ b/tests/baselines/reference/tsserver/fourslashServer/declarationMapsGeneratedMapsEnableMapping2.js @@ -1,16 +1,37 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "lib": [ + "es5" + ], + "strict": false, + "outDir": "/home/src/workspaces/project/dist", + "sourceMap": true, + "sourceRoot": "/home/src/workspaces/project/", + "declaration": true, + "declarationMap": true, + "newLine": "lf", + "target": "es5", + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/home/src/workspaces/project/dist/index.d.ts] export declare class Foo { member: string; @@ -77,6 +98,7 @@ instance.methodName({member: 12}); //// [/home/src/workspaces/project/tsconfig.json] { "compilerOptions": { + "lib": ["es5"], "strict": false, "outDir": "./dist", "sourceMap": true, @@ -91,7 +113,7 @@ instance.methodName({member: 12}); Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/home/src/workspaces/project/tsconfig.json" @@ -106,6 +128,9 @@ Info seq [hh:mm:ss:mss] Config: /home/src/workspaces/project/tsconfig.json : { "/home/src/workspaces/project/index.ts" ], "options": { + "lib": [ + "lib.es5.d.ts" + ], "strict": false, "outDir": "/home/src/workspaces/project/dist", "sourceMap": true, @@ -128,7 +153,7 @@ Info seq [hh:mm:ss:mss] event: } Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/index.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots @@ -138,18 +163,18 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/index.ts Text-1 "export class Foo {\n member: string;\n methodName(propName: SomeType): SomeType { return propName; }\n otherMethod() {\n if (Math.random() > 0.5) {\n return {x: 42};\n }\n return {y: \"yes\"};\n }\n}\n\nexport interface SomeType {\n member: number;\n}" - ../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' index.ts Part of 'files' list in tsconfig.json @@ -185,18 +210,18 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text - /home/src/workspaces/project/tsconfig.json SVC-1-0 "{\n \"compilerOptions\": {\n \"strict\": false,\n \"outDir\": \"./dist\",\n \"sourceMap\": true,\n \"sourceRoot\": \"/home/src/workspaces/project/\",\n \"declaration\": true,\n \"declarationMap\": true,\n \"newLine\": \"lf\",\n },\n \"files\": [\"/home/src/workspaces/project/index.ts\"],\n}" + /home/src/workspaces/project/tsconfig.json SVC-1-0 "{\n \"compilerOptions\": {\n \"lib\": [\"es5\"],\n \"strict\": false,\n \"outDir\": \"./dist\",\n \"sourceMap\": true,\n \"sourceRoot\": \"/home/src/workspaces/project/\",\n \"declaration\": true,\n \"declarationMap\": true,\n \"newLine\": \"lf\",\n },\n \"files\": [\"/home/src/workspaces/project/index.ts\"],\n}" - ../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' tsconfig.json Root file specified for compilation @@ -217,7 +242,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -225,12 +250,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* + {"pollingInterval":500} /home/src/workspaces/project/index.ts: *new* {"pollingInterval":500} /home/src/workspaces/project/jsconfig.json: *new* @@ -257,17 +282,17 @@ Projects:: noOpenRef: true ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -283,7 +308,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts" @@ -310,17 +335,17 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 1, + "request_seq": 2, "success": true } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: + {"pollingInterval":500} /home/src/workspaces/project/jsconfig.json: {"pollingInterval":2000} /home/src/workspaces/project/tsconfig.json: @@ -349,17 +374,17 @@ Projects:: noOpenRef: false *changed* ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -376,7 +401,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts" @@ -388,7 +413,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "emit-output", - "request_seq": 2, + "request_seq": 3, "success": true, "body": { "outputFiles": [ @@ -419,7 +444,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 3, + "seq": 4, "type": "request", "arguments": { "file": "/home/src/workspaces/project/mymodule.ts" @@ -451,19 +476,19 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject2* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject2*' (Inferred) Info seq [hh:mm:ss:mss] Files (5) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/dist/index.d.ts Text-1 "export declare class Foo {\n member: string;\n methodName(propName: SomeType): SomeType;\n otherMethod(): {\n x: number;\n y?: undefined;\n } | {\n y: string;\n x?: undefined;\n };\n}\nexport interface SomeType {\n member: number;\n}\n//# sourceMappingURL=index.d.ts.map" /home/src/workspaces/project/mymodule.ts SVC-1-0 "import * as mod from \"/home/src/workspaces/project/dist/index\";\nconst instance = new mod.Foo();\ninstance.methodName({member: 12});" - ../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' dist/index.d.ts Imported via "/home/src/workspaces/project/dist/index" from file 'mymodule.ts' mymodule.ts @@ -494,7 +519,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 3, + "request_seq": 4, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -502,12 +527,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: + {"pollingInterval":500} /home/src/workspaces/project/dist/index.d.ts: *new* {"pollingInterval":500} /home/src/workspaces/project/jsconfig.json: @@ -541,19 +566,19 @@ Projects:: projectProgramVersion: 1 ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *changed* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *changed* version: Text-1 containingProjects: 3 *changed* /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /dev/null/inferredProject2* *new* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *changed* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *changed* version: Text-1 containingProjects: 3 *changed* /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /dev/null/inferredProject2* *new* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *changed* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *changed* version: Text-1 containingProjects: 3 *changed* /home/src/workspaces/project/tsconfig.json @@ -578,7 +603,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 4, + "seq": 5, "type": "request", "arguments": { "file": "/home/src/workspaces/project/mymodule.ts", @@ -593,7 +618,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "implementation", - "request_seq": 4, + "request_seq": 5, "success": true, "body": [ { @@ -619,12 +644,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: + {"pollingInterval":500} /home/src/workspaces/project/dist/index.d.ts: {"pollingInterval":500} /home/src/workspaces/project/dist/index.d.ts.map: *new* @@ -662,19 +687,19 @@ Projects:: projectProgramVersion: 1 ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 3 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 3 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 3 /home/src/workspaces/project/tsconfig.json @@ -710,7 +735,7 @@ DocumentPositionMapper1 *new* Info seq [hh:mm:ss:mss] request: { - "seq": 5, + "seq": 6, "type": "request", "arguments": { "file": "/home/src/workspaces/project/mymodule.ts", @@ -724,7 +749,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "typeDefinition", - "request_seq": 5, + "request_seq": 6, "success": true, "body": [ { @@ -750,7 +775,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 6, + "seq": 7, "type": "request", "arguments": { "file": "/home/src/workspaces/project/mymodule.ts", @@ -764,7 +789,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "definitionAndBoundSpan", - "request_seq": 6, + "request_seq": 7, "success": true, "body": { "definitions": [ @@ -802,7 +827,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 7, + "seq": 8, "type": "request", "arguments": { "file": "/home/src/workspaces/project/mymodule.ts", @@ -816,7 +841,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "definition", - "request_seq": 7, + "request_seq": 8, "success": true, "body": [ { diff --git a/tests/baselines/reference/tsserver/fourslashServer/declarationMapsGeneratedMapsEnableMapping3.js b/tests/baselines/reference/tsserver/fourslashServer/declarationMapsGeneratedMapsEnableMapping3.js index f9eb0e669e997..21f28e94ecfd3 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/declarationMapsGeneratedMapsEnableMapping3.js +++ b/tests/baselines/reference/tsserver/fourslashServer/declarationMapsGeneratedMapsEnableMapping3.js @@ -1,16 +1,36 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "lib": [ + "es5" + ], + "strict": false, + "outDir": "/home/src/workspaces/project/dist", + "sourceRoot": "/home/src/workspaces/project/", + "declaration": true, + "declarationMap": true, + "newLine": "lf", + "target": "es5", + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/home/src/workspaces/project/dist/index.d.ts] export declare class Foo { member: string; @@ -74,6 +94,7 @@ instance.methodName({member: 12}); //// [/home/src/workspaces/project/tsconfig.json] { "compilerOptions": { + "lib": ["es5"], "strict": false, "outDir": "./dist", "sourceRoot": "/home/src/workspaces/project/", @@ -87,7 +108,7 @@ instance.methodName({member: 12}); Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/home/src/workspaces/project/tsconfig.json" @@ -102,6 +123,9 @@ Info seq [hh:mm:ss:mss] Config: /home/src/workspaces/project/tsconfig.json : { "/home/src/workspaces/project/index.ts" ], "options": { + "lib": [ + "lib.es5.d.ts" + ], "strict": false, "outDir": "/home/src/workspaces/project/dist", "sourceRoot": "/home/src/workspaces/project/", @@ -123,7 +147,7 @@ Info seq [hh:mm:ss:mss] event: } Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/index.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots @@ -133,18 +157,18 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/index.ts Text-1 "export class Foo {\n member: string;\n methodName(propName: SomeType): SomeType { return propName; }\n otherMethod() {\n if (Math.random() > 0.5) {\n return {x: 42};\n }\n return {y: \"yes\"};\n }\n}\n\nexport interface SomeType {\n member: number;\n}" - ../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' index.ts Part of 'files' list in tsconfig.json @@ -169,11 +193,11 @@ Info seq [hh:mm:ss:mss] event: "diagnostics": [ { "start": { - "line": 5, + "line": 6, "offset": 9 }, "end": { - "line": 5, + "line": 6, "offset": 21 }, "text": "Option 'sourceRoot can only be used when either option '--inlineSourceMap' or option '--sourceMap' is provided.", @@ -195,18 +219,18 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text - /home/src/workspaces/project/tsconfig.json SVC-1-0 "{\n \"compilerOptions\": {\n \"strict\": false,\n \"outDir\": \"./dist\",\n \"sourceRoot\": \"/home/src/workspaces/project/\",\n \"declaration\": true,\n \"declarationMap\": true,\n \"newLine\": \"lf\",\n },\n \"files\": [\"/home/src/workspaces/project/index.ts\"],\n}" + /home/src/workspaces/project/tsconfig.json SVC-1-0 "{\n \"compilerOptions\": {\n \"lib\": [\"es5\"],\n \"strict\": false,\n \"outDir\": \"./dist\",\n \"sourceRoot\": \"/home/src/workspaces/project/\",\n \"declaration\": true,\n \"declarationMap\": true,\n \"newLine\": \"lf\",\n },\n \"files\": [\"/home/src/workspaces/project/index.ts\"],\n}" - ../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' tsconfig.json Root file specified for compilation @@ -227,7 +251,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -235,12 +259,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* + {"pollingInterval":500} /home/src/workspaces/project/index.ts: *new* {"pollingInterval":500} /home/src/workspaces/project/jsconfig.json: *new* @@ -267,17 +291,17 @@ Projects:: noOpenRef: true ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -293,7 +317,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts" @@ -320,17 +344,17 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 1, + "request_seq": 2, "success": true } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: + {"pollingInterval":500} /home/src/workspaces/project/jsconfig.json: {"pollingInterval":2000} /home/src/workspaces/project/tsconfig.json: @@ -359,17 +383,17 @@ Projects:: noOpenRef: false *changed* ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -386,7 +410,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts" @@ -398,7 +422,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "emit-output", - "request_seq": 2, + "request_seq": 3, "success": true, "body": { "outputFiles": [ @@ -424,7 +448,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 3, + "seq": 4, "type": "request", "arguments": { "file": "/home/src/workspaces/project/mymodule.ts" @@ -444,11 +468,11 @@ Info seq [hh:mm:ss:mss] event: "diagnostics": [ { "start": { - "line": 5, + "line": 6, "offset": 9 }, "end": { - "line": 5, + "line": 6, "offset": 21 }, "text": "Option 'sourceRoot can only be used when either option '--inlineSourceMap' or option '--sourceMap' is provided.", @@ -471,19 +495,19 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject2* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject2*' (Inferred) Info seq [hh:mm:ss:mss] Files (5) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/dist/index.d.ts Text-1 "export declare class Foo {\n member: string;\n methodName(propName: SomeType): SomeType;\n otherMethod(): {\n x: number;\n y?: undefined;\n } | {\n y: string;\n x?: undefined;\n };\n}\nexport interface SomeType {\n member: number;\n}\n//# sourceMappingURL=index.d.ts.map" /home/src/workspaces/project/mymodule.ts SVC-1-0 "import * as mod from \"/home/src/workspaces/project/dist/index\";\nconst instance = new mod.Foo();\ninstance.methodName({member: 12});" - ../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' dist/index.d.ts Imported via "/home/src/workspaces/project/dist/index" from file 'mymodule.ts' mymodule.ts @@ -514,7 +538,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 3, + "request_seq": 4, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -522,12 +546,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: + {"pollingInterval":500} /home/src/workspaces/project/dist/index.d.ts: *new* {"pollingInterval":500} /home/src/workspaces/project/jsconfig.json: @@ -561,19 +585,19 @@ Projects:: projectProgramVersion: 1 ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *changed* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *changed* version: Text-1 containingProjects: 3 *changed* /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /dev/null/inferredProject2* *new* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *changed* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *changed* version: Text-1 containingProjects: 3 *changed* /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /dev/null/inferredProject2* *new* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *changed* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *changed* version: Text-1 containingProjects: 3 *changed* /home/src/workspaces/project/tsconfig.json @@ -598,7 +622,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 4, + "seq": 5, "type": "request", "arguments": { "file": "/home/src/workspaces/project/mymodule.ts", @@ -613,7 +637,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "implementation", - "request_seq": 4, + "request_seq": 5, "success": true, "body": [ { @@ -639,12 +663,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: + {"pollingInterval":500} /home/src/workspaces/project/dist/index.d.ts: {"pollingInterval":500} /home/src/workspaces/project/dist/index.d.ts.map: *new* @@ -682,19 +706,19 @@ Projects:: projectProgramVersion: 1 ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 3 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 3 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 3 /home/src/workspaces/project/tsconfig.json @@ -730,7 +754,7 @@ DocumentPositionMapper1 *new* Info seq [hh:mm:ss:mss] request: { - "seq": 5, + "seq": 6, "type": "request", "arguments": { "file": "/home/src/workspaces/project/mymodule.ts", @@ -744,7 +768,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "typeDefinition", - "request_seq": 5, + "request_seq": 6, "success": true, "body": [ { @@ -770,7 +794,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 6, + "seq": 7, "type": "request", "arguments": { "file": "/home/src/workspaces/project/mymodule.ts", @@ -784,7 +808,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "definitionAndBoundSpan", - "request_seq": 6, + "request_seq": 7, "success": true, "body": { "definitions": [ @@ -822,7 +846,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 7, + "seq": 8, "type": "request", "arguments": { "file": "/home/src/workspaces/project/mymodule.ts", @@ -836,7 +860,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "definition", - "request_seq": 7, + "request_seq": 8, "success": true, "body": [ { diff --git a/tests/baselines/reference/tsserver/fourslashServer/declarationMapsGoToDefinitionRelativeSourceRoot.js b/tests/baselines/reference/tsserver/fourslashServer/declarationMapsGoToDefinitionRelativeSourceRoot.js index 9e71b7497f3cf..88e9b05ab1586 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/declarationMapsGoToDefinitionRelativeSourceRoot.js +++ b/tests/baselines/reference/tsserver/fourslashServer/declarationMapsGoToDefinitionRelativeSourceRoot.js @@ -1,16 +1,31 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "target": "es5", + "newLine": "crlf", + "lib": [ + "es5" + ], + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/tests/cases/fourslash/server/index.ts] export class Foo { member: string; @@ -55,7 +70,7 @@ export interface SomeType { Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/index.ts" @@ -67,7 +82,7 @@ Info seq [hh:mm:ss:mss] Creating InferredProject: /dev/null/inferredProject1*, Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots @@ -77,18 +92,18 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /te Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /tests/cases/fourslash/server/index.ts SVC-1-0 "export class Foo {\n member: string;\n methodName(propName: SomeType): void {}\n otherMethod() {\n if (Math.random() > 0.5) {\n return {x: 42};\n }\n return {y: \"yes\"};\n }\n}\n\nexport interface SomeType {\n member: number;\n}" - ../../../../home/src/tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../../../home/src/tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../../../home/src/tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' ../../../../home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../../../home/src/tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' index.ts Root file specified for compilation @@ -105,7 +120,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -113,12 +128,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* + {"pollingInterval":500} /tests/cases/fourslash/server/jsconfig.json: *new* {"pollingInterval":2000} /tests/cases/fourslash/server/tsconfig.json: *new* @@ -137,15 +152,15 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* @@ -156,7 +171,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/mymodule.ts" @@ -176,19 +191,19 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /te Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject2* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject2*' (Inferred) Info seq [hh:mm:ss:mss] Files (5) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /tests/cases/fourslash/server/out/indexdef.d.ts Text-1 "export declare class Foo {\n member: string;\n methodName(propName: SomeType): void;\n otherMethod(): {\n x: number;\n y?: undefined;\n } | {\n y: string;\n x?: undefined;\n };\n}\nexport interface SomeType {\n member: number;\n}\n//# sourceMappingURL=out/indexdef.d.ts.map" /tests/cases/fourslash/server/mymodule.ts SVC-1-0 "import * as mod from \"./out/indexdef\";\nconst instance = new mod.Foo();\ninstance.methodName({member: 12});" - ../../../../home/src/tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../../../home/src/tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../../../home/src/tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' ../../../../home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../../../home/src/tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' out/indexdef.d.ts Imported via "./out/indexdef" from file 'mymodule.ts' mymodule.ts @@ -213,7 +228,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 1, + "request_seq": 2, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -221,12 +236,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: + {"pollingInterval":500} /tests/cases/fourslash/server/jsconfig.json: {"pollingInterval":2000} /tests/cases/fourslash/server/out/indexdef.d.ts: *new* @@ -255,17 +270,17 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *changed* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *changed* version: Text-1 containingProjects: 2 *changed* /dev/null/inferredProject1* /dev/null/inferredProject2* *new* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *changed* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *changed* version: Text-1 containingProjects: 2 *changed* /dev/null/inferredProject1* /dev/null/inferredProject2* *new* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *changed* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *changed* version: Text-1 containingProjects: 2 *changed* /dev/null/inferredProject1* @@ -285,7 +300,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/mymodule.ts", @@ -300,7 +315,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "definitionAndBoundSpan", - "request_seq": 2, + "request_seq": 3, "success": true, "body": { "definitions": [ @@ -338,12 +353,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: + {"pollingInterval":500} /tests/cases/fourslash/server/jsconfig.json: {"pollingInterval":2000} /tests/cases/fourslash/server/out/indexdef.d.ts: @@ -376,17 +391,17 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /dev/null/inferredProject1* /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /dev/null/inferredProject1* /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /dev/null/inferredProject1* diff --git a/tests/baselines/reference/tsserver/fourslashServer/declarationMapsGoToDefinitionSameNameDifferentDirectory.js b/tests/baselines/reference/tsserver/fourslashServer/declarationMapsGoToDefinitionSameNameDifferentDirectory.js index 2a550391e6684..9100e759cd784 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/declarationMapsGoToDefinitionSameNameDifferentDirectory.js +++ b/tests/baselines/reference/tsserver/fourslashServer/declarationMapsGoToDefinitionSameNameDifferentDirectory.js @@ -1,16 +1,36 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "lib": [ + "es5" + ], + "strict": false, + "sourceMap": true, + "declaration": true, + "declarationMap": true, + "outFile": "/tests/cases/fourslash/server/buttonClass/Source.js", + "target": "es5", + "newLine": "crlf", + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/tests/cases/fourslash/server/BaseClass/Source.d.ts] declare class Control { constructor(); @@ -65,6 +85,7 @@ class Button extends Control { "$schema": "http://json.schemastore.org/tsconfig", "compileOnSave": true, "compilerOptions": { + "lib": ["es5"], "strict": false, "sourceMap": true, "declaration": true, @@ -75,7 +96,7 @@ class Button extends Control { Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/BaseClass/Source.d.ts" @@ -89,7 +110,7 @@ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/BaseClass/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots @@ -101,18 +122,18 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /te Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /tests/cases/fourslash/server/BaseClass/Source.d.ts SVC-1-0 "declare class Control {\n constructor();\n /** this is a super var */\n myVar: boolean | 'yeah';\n}\n//# sourceMappingURL=Source.d.ts.map" - ../../../../../home/src/tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../../../../home/src/tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../../../../home/src/tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' ../../../../../home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../../../../home/src/tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' Source.d.ts Root file specified for compilation @@ -129,7 +150,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -137,12 +158,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* + {"pollingInterval":500} /tests/cases/fourslash/server/BaseClass/jsconfig.json: *new* {"pollingInterval":2000} /tests/cases/fourslash/server/BaseClass/tsconfig.json: *new* @@ -167,15 +188,15 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* @@ -186,7 +207,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/buttonClass/Source.ts" @@ -202,6 +223,9 @@ Info seq [hh:mm:ss:mss] Config: /tests/cases/fourslash/server/buttonClass/tscon "/tests/cases/fourslash/server/BaseClass/Source.d.ts" ], "options": { + "lib": [ + "lib.es5.d.ts" + ], "strict": false, "sourceMap": true, "declaration": true, @@ -235,19 +259,19 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /te Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /tests/cases/fourslash/server/buttonClass/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/tests/cases/fourslash/server/buttonClass/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (5) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /tests/cases/fourslash/server/buttonClass/Source.ts SVC-1-0 "// I cannot F12 navigate to Control\n// vvvvvvv\nclass Button extends Control {\n public myFunction() {\n // I cannot F12 navigate to myVar\n // vvvvv\n if (typeof this.myVar === 'boolean') {\n this.myVar;\n } else {\n this.myVar.toLocaleUpperCase();\n }\n }\n}" /tests/cases/fourslash/server/BaseClass/Source.d.ts SVC-1-0 "declare class Control {\n constructor();\n /** this is a super var */\n myVar: boolean | 'yeah';\n}\n//# sourceMappingURL=Source.d.ts.map" - ../../../../../home/src/tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../../../../home/src/tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../../../../home/src/tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' ../../../../../home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../../../../home/src/tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' Source.ts Part of 'files' list in tsconfig.json ../BaseClass/Source.d.ts @@ -292,18 +316,18 @@ Info seq [hh:mm:ss:mss] event: Info seq [hh:mm:ss:mss] `remove Project:: Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts + /home/src/tslibs/TS/Lib/lib.es5.d.ts /home/src/tslibs/TS/Lib/lib.decorators.d.ts /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts /tests/cases/fourslash/server/BaseClass/Source.d.ts - ../../../../../home/src/tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../../../../home/src/tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../../../../home/src/tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' ../../../../../home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../../../../home/src/tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' Source.d.ts Root file specified for compilation @@ -328,7 +352,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 1, + "request_seq": 2, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -336,12 +360,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: + {"pollingInterval":500} /tests/cases/fourslash/server/buttonClass/tsconfig.json: *new* {"pollingInterval":2000} /tests/cases/fourslash/server/tsbase.json: *new* @@ -387,17 +411,17 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *changed* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *changed* version: Text-1 containingProjects: 1 *changed* /tests/cases/fourslash/server/buttonClass/tsconfig.json *new* /dev/null/inferredProject1* *deleted* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *changed* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *changed* version: Text-1 containingProjects: 1 *changed* /tests/cases/fourslash/server/buttonClass/tsconfig.json *new* /dev/null/inferredProject1* *deleted* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *changed* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *changed* version: Text-1 containingProjects: 1 *changed* /tests/cases/fourslash/server/buttonClass/tsconfig.json *new* @@ -414,7 +438,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/buttonClass/Source.ts", @@ -430,7 +454,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "definitionAndBoundSpan", - "request_seq": 2, + "request_seq": 3, "success": true, "body": { "definitions": [ @@ -468,12 +492,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: + {"pollingInterval":500} /tests/cases/fourslash/server/BaseClass/Source.d.ts.map: *new* {"pollingInterval":500} /tests/cases/fourslash/server/BaseClass/Source.ts: *new* @@ -500,15 +524,15 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 1 /tests/cases/fourslash/server/buttonClass/tsconfig.json -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 1 /tests/cases/fourslash/server/buttonClass/tsconfig.json -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 1 /tests/cases/fourslash/server/buttonClass/tsconfig.json @@ -537,7 +561,7 @@ DocumentPositionMapper1 *new* Info seq [hh:mm:ss:mss] request: { - "seq": 3, + "seq": 4, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/buttonClass/Source.ts", @@ -551,7 +575,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "definitionAndBoundSpan", - "request_seq": 3, + "request_seq": 4, "success": true, "body": { "definitions": [ diff --git a/tests/baselines/reference/tsserver/fourslashServer/declarationMapsOutOfDateMapping.js b/tests/baselines/reference/tsserver/fourslashServer/declarationMapsOutOfDateMapping.js index 66d1410f3f0b0..2b8b444c8e9cd 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/declarationMapsOutOfDateMapping.js +++ b/tests/baselines/reference/tsserver/fourslashServer/declarationMapsOutOfDateMapping.js @@ -1,16 +1,31 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "target": "es5", + "newLine": "crlf", + "lib": [ + "es5" + ], + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/home/src/workspaces/project/index.ts] import { Foo } from "a"; @@ -40,7 +55,7 @@ export class Foo { Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/home/src/workspaces/project/node_modules/a/dist/index.d.ts" @@ -56,7 +71,7 @@ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/p Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/a/dist/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution @@ -74,18 +89,18 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/node_modules/a/dist/index.d.ts SVC-1-0 "export declare class Foo {\n bar: any;\n}\n//# sourceMappingURL=index.d.ts.map" - ../../../../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../../../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../../../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../../../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../../../../tslibs/TS/Lib/lib.es5.d.ts' ../../../../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../../../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../../../../tslibs/TS/Lib/lib.es5.d.ts' index.d.ts Root file specified for compilation @@ -102,7 +117,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -110,12 +125,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* + {"pollingInterval":500} /home/src/workspaces/project/node_modules/a/dist/jsconfig.json: *new* {"pollingInterval":2000} /home/src/workspaces/project/node_modules/a/dist/package.json: *new* @@ -151,15 +166,15 @@ Projects:: projectProgramVersion: 1 ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* @@ -170,7 +185,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts" @@ -197,19 +212,19 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject2* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject2*' (Inferred) Info seq [hh:mm:ss:mss] Files (5) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/node_modules/a/dist/index.d.ts SVC-1-0 "export declare class Foo {\n bar: any;\n}\n//# sourceMappingURL=index.d.ts.map" /home/src/workspaces/project/index.ts SVC-1-0 "import { Foo } from \"a\";" - ../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' node_modules/a/dist/index.d.ts Imported via "a" from file 'index.ts' with packageId 'a/dist/index.d.ts@0.0.0' index.ts @@ -225,18 +240,18 @@ Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /home/src/workspaces/p Info seq [hh:mm:ss:mss] `remove Project:: Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts + /home/src/tslibs/TS/Lib/lib.es5.d.ts /home/src/tslibs/TS/Lib/lib.decorators.d.ts /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts /home/src/workspaces/project/node_modules/a/dist/index.d.ts - ../../../../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../../../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../../../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../../../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../../../../tslibs/TS/Lib/lib.es5.d.ts' ../../../../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../../../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../../../../tslibs/TS/Lib/lib.es5.d.ts' index.d.ts Root file specified for compilation @@ -267,7 +282,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 1, + "request_seq": 2, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -275,12 +290,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: + {"pollingInterval":500} /home/src/workspaces/project/jsconfig.json: *new* {"pollingInterval":2000} /home/src/workspaces/project/node_modules/a/dist/package.json: @@ -347,17 +362,17 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *changed* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *changed* version: Text-1 containingProjects: 1 *changed* /dev/null/inferredProject2* *new* /dev/null/inferredProject1* *deleted* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *changed* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *changed* version: Text-1 containingProjects: 1 *changed* /dev/null/inferredProject2* *new* /dev/null/inferredProject1* *deleted* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *changed* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *changed* version: Text-1 containingProjects: 1 *changed* /dev/null/inferredProject2* *new* @@ -374,7 +389,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -390,7 +405,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "definition", - "request_seq": 2, + "request_seq": 3, "success": true, "body": [ { @@ -416,12 +431,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: + {"pollingInterval":500} /home/src/workspaces/project/jsconfig.json: {"pollingInterval":2000} /home/src/workspaces/project/node_modules/a/dist/index.d.ts.map: *new* @@ -458,15 +473,15 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject2* diff --git a/tests/baselines/reference/tsserver/fourslashServer/definition01.js b/tests/baselines/reference/tsserver/fourslashServer/definition01.js index 6551f49fc06b4..232ec989d8a1c 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/definition01.js +++ b/tests/baselines/reference/tsserver/fourslashServer/definition01.js @@ -1,16 +1,31 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "target": "es5", + "newLine": "crlf", + "lib": [ + "es5" + ], + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/tests/cases/fourslash/server/a.ts] export class Foo {} @@ -21,7 +36,7 @@ var x = new n.Foo(); Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/b.ts" @@ -34,7 +49,7 @@ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/a.ts 500 undefined WatchType: Closed Script info -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots @@ -44,19 +59,19 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /te Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (5) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /tests/cases/fourslash/server/a.ts Text-1 "export class Foo {}" /tests/cases/fourslash/server/b.ts SVC-1-0 "import n = require('./a');\nvar x = new n.Foo();" - ../../../../home/src/tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../../../home/src/tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../../../home/src/tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' ../../../../home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../../../home/src/tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' a.ts Imported via './a' from file 'b.ts' b.ts @@ -75,7 +90,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -83,12 +98,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* + {"pollingInterval":500} /tests/cases/fourslash/server/a.ts: *new* {"pollingInterval":500} /tests/cases/fourslash/server/jsconfig.json: *new* @@ -109,15 +124,15 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* @@ -132,7 +147,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/b.ts", @@ -146,7 +161,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "definitionAndBoundSpan", - "request_seq": 1, + "request_seq": 2, "success": true, "body": { "definitions": [ diff --git a/tests/baselines/reference/tsserver/fourslashServer/documentHighlights01.js b/tests/baselines/reference/tsserver/fourslashServer/documentHighlights01.js index 0a78ad9b63f95..c91be08d66045 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/documentHighlights01.js +++ b/tests/baselines/reference/tsserver/fourslashServer/documentHighlights01.js @@ -1,16 +1,31 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "target": "es5", + "newLine": "crlf", + "lib": [ + "es5" + ], + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/tests/cases/fourslash/server/a.ts] function f(x: typeof f) { f(f); @@ -19,7 +34,7 @@ function f(x: typeof f) { Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/a.ts" @@ -31,7 +46,7 @@ Info seq [hh:mm:ss:mss] Creating InferredProject: /dev/null/inferredProject1*, Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots @@ -41,18 +56,18 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /te Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /tests/cases/fourslash/server/a.ts SVC-1-0 "function f(x: typeof f) {\n f(f);\n}" - ../../../../home/src/tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../../../home/src/tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../../../home/src/tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' ../../../../home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../../../home/src/tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' a.ts Root file specified for compilation @@ -69,7 +84,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -77,12 +92,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* + {"pollingInterval":500} /tests/cases/fourslash/server/jsconfig.json: *new* {"pollingInterval":2000} /tests/cases/fourslash/server/tsconfig.json: *new* @@ -101,15 +116,15 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* @@ -120,7 +135,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/a.ts" @@ -139,12 +154,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 1, + "request_seq": 2, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/a.ts", @@ -161,7 +176,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "documentHighlights", - "request_seq": 2, + "request_seq": 3, "success": true, "body": [ { @@ -225,7 +240,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 3, + "seq": 4, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/a.ts" @@ -244,12 +259,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 3, + "request_seq": 4, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 4, + "seq": 5, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/a.ts", @@ -266,7 +281,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "documentHighlights", - "request_seq": 4, + "request_seq": 5, "success": true, "body": [ { @@ -330,7 +345,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 5, + "seq": 6, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/a.ts" @@ -349,12 +364,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 5, + "request_seq": 6, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 6, + "seq": 7, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/a.ts", @@ -371,7 +386,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "documentHighlights", - "request_seq": 6, + "request_seq": 7, "success": true, "body": [ { @@ -435,7 +450,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 7, + "seq": 8, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/a.ts" @@ -454,12 +469,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 7, + "request_seq": 8, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 8, + "seq": 9, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/a.ts", @@ -476,7 +491,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "documentHighlights", - "request_seq": 8, + "request_seq": 9, "success": true, "body": [ { diff --git a/tests/baselines/reference/tsserver/fourslashServer/documentHighlights02.js b/tests/baselines/reference/tsserver/fourslashServer/documentHighlights02.js index 1053e8f4d897e..c84ba9595bd3d 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/documentHighlights02.js +++ b/tests/baselines/reference/tsserver/fourslashServer/documentHighlights02.js @@ -1,16 +1,31 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "target": "es5", + "newLine": "crlf", + "lib": [ + "es5" + ], + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/tests/cases/fourslash/server/a.ts] function foo () { return 1; @@ -24,7 +39,7 @@ foo(); Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/a.ts" @@ -36,7 +51,7 @@ Info seq [hh:mm:ss:mss] Creating InferredProject: /dev/null/inferredProject1*, Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots @@ -46,18 +61,18 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /te Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /tests/cases/fourslash/server/a.ts SVC-1-0 "function foo () {\n\treturn 1;\n}\nfoo();" - ../../../../home/src/tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../../../home/src/tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../../../home/src/tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' ../../../../home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../../../home/src/tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' a.ts Root file specified for compilation @@ -74,7 +89,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -82,12 +97,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* + {"pollingInterval":500} /tests/cases/fourslash/server/jsconfig.json: *new* {"pollingInterval":2000} /tests/cases/fourslash/server/tsconfig.json: *new* @@ -106,15 +121,15 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* @@ -125,7 +140,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/a.ts" @@ -144,12 +159,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 1, + "request_seq": 2, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/b.ts" @@ -166,19 +181,19 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /te Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject2* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject2*' (Inferred) Info seq [hh:mm:ss:mss] Files (5) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /tests/cases/fourslash/server/a.ts SVC-1-0 "function foo () {\n\treturn 1;\n}\nfoo();" /tests/cases/fourslash/server/b.ts SVC-1-0 "/// \nfoo();" - ../../../../home/src/tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../../../home/src/tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../../../home/src/tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' ../../../../home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../../../home/src/tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' a.ts Referenced via 'a.ts' from file 'b.ts' b.ts @@ -188,18 +203,18 @@ Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] `remove Project:: Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts + /home/src/tslibs/TS/Lib/lib.es5.d.ts /home/src/tslibs/TS/Lib/lib.decorators.d.ts /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts /tests/cases/fourslash/server/a.ts - ../../../../home/src/tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../../../home/src/tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../../../home/src/tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' ../../../../home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../../../home/src/tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' a.ts Root file specified for compilation @@ -222,7 +237,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 2, + "request_seq": 3, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -230,12 +245,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: + {"pollingInterval":500} /tests/cases/fourslash/server/jsconfig.json: {"pollingInterval":2000} /tests/cases/fourslash/server/tsconfig.json: @@ -267,17 +282,17 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *changed* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *changed* version: Text-1 containingProjects: 1 *changed* /dev/null/inferredProject2* *new* /dev/null/inferredProject1* *deleted* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *changed* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *changed* version: Text-1 containingProjects: 1 *changed* /dev/null/inferredProject2* *new* /dev/null/inferredProject1* *deleted* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *changed* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *changed* version: Text-1 containingProjects: 1 *changed* /dev/null/inferredProject2* *new* @@ -294,7 +309,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 3, + "seq": 4, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/a.ts" @@ -315,12 +330,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 3, + "request_seq": 4, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 4, + "seq": 5, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/a.ts", @@ -338,7 +353,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "documentHighlights", - "request_seq": 4, + "request_seq": 5, "success": true, "body": [ { @@ -396,7 +411,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 5, + "seq": 6, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/a.ts" @@ -417,12 +432,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 5, + "request_seq": 6, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 6, + "seq": 7, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/a.ts", @@ -440,7 +455,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "documentHighlights", - "request_seq": 6, + "request_seq": 7, "success": true, "body": [ { @@ -498,7 +513,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 7, + "seq": 8, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/b.ts" @@ -519,12 +534,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 7, + "request_seq": 8, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 8, + "seq": 9, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/b.ts", @@ -542,7 +557,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "documentHighlights", - "request_seq": 8, + "request_seq": 9, "success": true, "body": [ { diff --git a/tests/baselines/reference/tsserver/fourslashServer/documentHighlightsTypeParameterInHeritageClause01.js b/tests/baselines/reference/tsserver/fourslashServer/documentHighlightsTypeParameterInHeritageClause01.js index d06d6d05411d8..f75295244d1e4 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/documentHighlightsTypeParameterInHeritageClause01.js +++ b/tests/baselines/reference/tsserver/fourslashServer/documentHighlightsTypeParameterInHeritageClause01.js @@ -1,16 +1,31 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "target": "es5", + "newLine": "crlf", + "lib": [ + "es5" + ], + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/tests/cases/fourslash/server/documentHighlightsTypeParameterInHeritageClause01.ts] interface I extends I, T { } @@ -18,7 +33,7 @@ interface I extends I, T { Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/documentHighlightsTypeParameterInHeritageClause01.ts" @@ -30,7 +45,7 @@ Info seq [hh:mm:ss:mss] Creating InferredProject: /dev/null/inferredProject1*, Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots @@ -40,18 +55,18 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /te Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /tests/cases/fourslash/server/documentHighlightsTypeParameterInHeritageClause01.ts SVC-1-0 "interface I extends I, T {\n}" - ../../../../home/src/tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../../../home/src/tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../../../home/src/tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' ../../../../home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../../../home/src/tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' documentHighlightsTypeParameterInHeritageClause01.ts Root file specified for compilation @@ -68,7 +83,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -76,12 +91,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* + {"pollingInterval":500} /tests/cases/fourslash/server/jsconfig.json: *new* {"pollingInterval":2000} /tests/cases/fourslash/server/tsconfig.json: *new* @@ -100,15 +115,15 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* @@ -119,7 +134,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/documentHighlightsTypeParameterInHeritageClause01.ts" @@ -138,12 +153,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 1, + "request_seq": 2, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/documentHighlightsTypeParameterInHeritageClause01.ts", @@ -160,7 +175,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "documentHighlights", - "request_seq": 2, + "request_seq": 3, "success": true, "body": [ { @@ -205,7 +220,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 3, + "seq": 4, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/documentHighlightsTypeParameterInHeritageClause01.ts" @@ -224,12 +239,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 3, + "request_seq": 4, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 4, + "seq": 5, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/documentHighlightsTypeParameterInHeritageClause01.ts", @@ -246,7 +261,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "documentHighlights", - "request_seq": 4, + "request_seq": 5, "success": true, "body": [ { @@ -291,7 +306,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 5, + "seq": 6, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/documentHighlightsTypeParameterInHeritageClause01.ts" @@ -310,12 +325,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 5, + "request_seq": 6, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 6, + "seq": 7, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/documentHighlightsTypeParameterInHeritageClause01.ts", @@ -332,7 +347,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "documentHighlights", - "request_seq": 6, + "request_seq": 7, "success": true, "body": [ { diff --git a/tests/baselines/reference/tsserver/fourslashServer/fixExtractToInnerFunctionDuplicaton.js b/tests/baselines/reference/tsserver/fourslashServer/fixExtractToInnerFunctionDuplicaton.js index bb3b935ab969a..745b9a866ef30 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/fixExtractToInnerFunctionDuplicaton.js +++ b/tests/baselines/reference/tsserver/fourslashServer/fixExtractToInnerFunctionDuplicaton.js @@ -1,23 +1,38 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "target": "es5", + "newLine": "crlf", + "lib": [ + "es5" + ], + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/tests/cases/fourslash/server/fixExtractToInnerFunctionDuplicaton.ts] function foo(): void { console.log('a'); } Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/fixExtractToInnerFunctionDuplicaton.ts" @@ -29,7 +44,7 @@ Info seq [hh:mm:ss:mss] Creating InferredProject: /dev/null/inferredProject1*, Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots @@ -39,18 +54,18 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /te Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /tests/cases/fourslash/server/fixExtractToInnerFunctionDuplicaton.ts SVC-1-0 "function foo(): void { console.log('a'); }" - ../../../../home/src/tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../../../home/src/tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../../../home/src/tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' ../../../../home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../../../home/src/tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' fixExtractToInnerFunctionDuplicaton.ts Root file specified for compilation @@ -67,7 +82,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -75,12 +90,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* + {"pollingInterval":500} /tests/cases/fourslash/server/jsconfig.json: *new* {"pollingInterval":2000} /tests/cases/fourslash/server/tsconfig.json: *new* @@ -99,15 +114,15 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* @@ -118,7 +133,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "preferences": {} @@ -130,12 +145,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 1, + "request_seq": 2, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/fixExtractToInnerFunctionDuplicaton.ts", @@ -152,7 +167,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "getApplicableRefactors", - "request_seq": 2, + "request_seq": 3, "success": true, "body": [ { @@ -231,7 +246,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 3, + "seq": 4, "type": "request", "arguments": { "preferences": {} @@ -243,12 +258,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 3, + "request_seq": 4, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 4, + "seq": 5, "type": "request", "arguments": { "preferences": {} @@ -260,12 +275,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 4, + "request_seq": 5, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 5, + "seq": 6, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/fixExtractToInnerFunctionDuplicaton.ts", @@ -282,7 +297,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "getApplicableRefactors", - "request_seq": 5, + "request_seq": 6, "success": true, "body": [ { @@ -361,7 +376,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 6, + "seq": 7, "type": "request", "arguments": { "preferences": {} @@ -373,12 +388,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 6, + "request_seq": 7, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 7, + "seq": 8, "type": "request", "arguments": { "preferences": {} @@ -390,12 +405,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 7, + "request_seq": 8, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 8, + "seq": 9, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/fixExtractToInnerFunctionDuplicaton.ts", @@ -412,7 +427,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "getApplicableRefactors", - "request_seq": 8, + "request_seq": 9, "success": true, "body": [ { @@ -491,7 +506,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 9, + "seq": 10, "type": "request", "arguments": { "preferences": {} @@ -503,12 +518,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 9, + "request_seq": 10, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 10, + "seq": 11, "type": "request", "arguments": { "preferences": {} @@ -520,12 +535,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 10, + "request_seq": 11, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 11, + "seq": 12, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/fixExtractToInnerFunctionDuplicaton.ts", @@ -542,7 +557,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "getApplicableRefactors", - "request_seq": 11, + "request_seq": 12, "success": true, "body": [ { @@ -621,7 +636,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 12, + "seq": 13, "type": "request", "arguments": { "preferences": {} @@ -633,12 +648,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 12, + "request_seq": 13, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 13, + "seq": 14, "type": "request", "arguments": { "preferences": {} @@ -650,12 +665,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 13, + "request_seq": 14, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 14, + "seq": 15, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/fixExtractToInnerFunctionDuplicaton.ts", @@ -672,7 +687,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "getApplicableRefactors", - "request_seq": 14, + "request_seq": 15, "success": true, "body": [ { @@ -751,7 +766,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 15, + "seq": 16, "type": "request", "arguments": { "preferences": {} @@ -763,12 +778,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 15, + "request_seq": 16, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 16, + "seq": 17, "type": "request", "arguments": { "preferences": {} @@ -780,12 +795,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 16, + "request_seq": 17, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 17, + "seq": 18, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/fixExtractToInnerFunctionDuplicaton.ts", @@ -802,7 +817,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "getApplicableRefactors", - "request_seq": 17, + "request_seq": 18, "success": true, "body": [ { @@ -881,7 +896,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 18, + "seq": 19, "type": "request", "arguments": { "preferences": {} @@ -893,6 +908,6 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 18, + "request_seq": 19, "success": true } \ No newline at end of file diff --git a/tests/baselines/reference/tsserver/fourslashServer/format01.js b/tests/baselines/reference/tsserver/fourslashServer/format01.js index 6c44491954197..3da73cb579492 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/format01.js +++ b/tests/baselines/reference/tsserver/fourslashServer/format01.js @@ -1,23 +1,38 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "target": "es5", + "newLine": "crlf", + "lib": [ + "es5" + ], + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/tests/cases/fourslash/server/format01.ts] namespace Default{var x= ( { } ) ;} Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/format01.ts" @@ -29,7 +44,7 @@ Info seq [hh:mm:ss:mss] Creating InferredProject: /dev/null/inferredProject1*, Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots @@ -39,18 +54,18 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /te Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /tests/cases/fourslash/server/format01.ts SVC-1-0 "namespace Default{var x= ( { } ) ;}" - ../../../../home/src/tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../../../home/src/tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../../../home/src/tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' ../../../../home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../../../home/src/tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' format01.ts Root file specified for compilation @@ -67,7 +82,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -75,12 +90,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* + {"pollingInterval":500} /tests/cases/fourslash/server/jsconfig.json: *new* {"pollingInterval":2000} /tests/cases/fourslash/server/tsconfig.json: *new* @@ -99,15 +114,15 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* @@ -118,7 +133,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/format01.ts", @@ -134,7 +149,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "format", - "request_seq": 1, + "request_seq": 2, "success": true, "body": [ { @@ -229,7 +244,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/format01.ts", @@ -246,7 +261,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 2, + "request_seq": 3, "success": true } After Request @@ -258,15 +273,15 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* @@ -277,7 +292,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 3, + "seq": 4, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/format01.ts", @@ -294,20 +309,20 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 3, + "request_seq": 4, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* @@ -318,7 +333,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 4, + "seq": 5, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/format01.ts", @@ -335,20 +350,20 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 4, + "request_seq": 5, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* @@ -359,7 +374,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 5, + "seq": 6, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/format01.ts", @@ -376,20 +391,20 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 5, + "request_seq": 6, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* @@ -400,7 +415,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 6, + "seq": 7, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/format01.ts", @@ -417,20 +432,20 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 6, + "request_seq": 7, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* @@ -441,7 +456,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 7, + "seq": 8, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/format01.ts", @@ -458,20 +473,20 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 7, + "request_seq": 8, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* @@ -482,7 +497,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 8, + "seq": 9, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/format01.ts", @@ -499,20 +514,20 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 8, + "request_seq": 9, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* @@ -523,7 +538,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 9, + "seq": 10, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/format01.ts", @@ -540,20 +555,20 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 9, + "request_seq": 10, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* diff --git a/tests/baselines/reference/tsserver/fourslashServer/formatBracketInSwitchCase.js b/tests/baselines/reference/tsserver/fourslashServer/formatBracketInSwitchCase.js index 3645d44459732..8ca19f8b1f564 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/formatBracketInSwitchCase.js +++ b/tests/baselines/reference/tsserver/fourslashServer/formatBracketInSwitchCase.js @@ -1,16 +1,31 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "target": "es5", + "newLine": "crlf", + "lib": [ + "es5" + ], + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/tests/cases/fourslash/server/formatBracketInSwitchCase.ts] switch (x) { case[]: @@ -19,7 +34,7 @@ switch (x) { Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/formatBracketInSwitchCase.ts" @@ -31,7 +46,7 @@ Info seq [hh:mm:ss:mss] Creating InferredProject: /dev/null/inferredProject1*, Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots @@ -41,18 +56,18 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /te Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /tests/cases/fourslash/server/formatBracketInSwitchCase.ts SVC-1-0 "switch (x) {\n case[]:\n}" - ../../../../home/src/tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../../../home/src/tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../../../home/src/tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' ../../../../home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../../../home/src/tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' formatBracketInSwitchCase.ts Root file specified for compilation @@ -69,7 +84,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -77,12 +92,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* + {"pollingInterval":500} /tests/cases/fourslash/server/jsconfig.json: *new* {"pollingInterval":2000} /tests/cases/fourslash/server/tsconfig.json: *new* @@ -101,15 +116,15 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* @@ -120,7 +135,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/formatBracketInSwitchCase.ts", @@ -136,7 +151,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "format", - "request_seq": 1, + "request_seq": 2, "success": true, "body": [ { @@ -154,7 +169,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/formatBracketInSwitchCase.ts", @@ -171,7 +186,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 2, + "request_seq": 3, "success": true } After Request @@ -183,15 +198,15 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* diff --git a/tests/baselines/reference/tsserver/fourslashServer/formatOnEnter.js b/tests/baselines/reference/tsserver/fourslashServer/formatOnEnter.js index 44efb0d2f1c18..41f52077b19bf 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/formatOnEnter.js +++ b/tests/baselines/reference/tsserver/fourslashServer/formatOnEnter.js @@ -1,16 +1,31 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "target": "es5", + "newLine": "crlf", + "lib": [ + "es5" + ], + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/tests/cases/fourslash/server/formatOnEnter.ts] function listAPIFiles (path : string): string[] { @@ -20,7 +35,7 @@ function listAPIFiles (path : string): string[] { Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/formatOnEnter.ts" @@ -32,7 +47,7 @@ Info seq [hh:mm:ss:mss] Creating InferredProject: /dev/null/inferredProject1*, Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots @@ -42,18 +57,18 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /te Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /tests/cases/fourslash/server/formatOnEnter.ts SVC-1-0 "function listAPIFiles (path : string): string[] {\n \n \n}" - ../../../../home/src/tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../../../home/src/tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../../../home/src/tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' ../../../../home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../../../home/src/tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' formatOnEnter.ts Root file specified for compilation @@ -70,7 +85,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -78,12 +93,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* + {"pollingInterval":500} /tests/cases/fourslash/server/jsconfig.json: *new* {"pollingInterval":2000} /tests/cases/fourslash/server/tsconfig.json: *new* @@ -102,15 +117,15 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* @@ -121,7 +136,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/formatOnEnter.ts", @@ -138,7 +153,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 1, + "request_seq": 2, "success": true, "body": [ { @@ -167,7 +182,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/formatOnEnter.ts", @@ -184,7 +199,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 2, + "request_seq": 3, "success": true } After Request @@ -196,15 +211,15 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* @@ -215,7 +230,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 3, + "seq": 4, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/formatOnEnter.ts", @@ -232,20 +247,20 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 3, + "request_seq": 4, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* @@ -256,7 +271,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 4, + "seq": 5, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/formatOnEnter.ts", @@ -273,7 +288,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 4, + "request_seq": 5, "success": true, "body": [ { @@ -291,7 +306,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 5, + "seq": 6, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/formatOnEnter.ts", @@ -308,20 +323,20 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 5, + "request_seq": 6, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* diff --git a/tests/baselines/reference/tsserver/fourslashServer/formatSpaceBetweenFunctionAndArrayIndex.js b/tests/baselines/reference/tsserver/fourslashServer/formatSpaceBetweenFunctionAndArrayIndex.js index d38f445f5b57d..b20ea826b140e 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/formatSpaceBetweenFunctionAndArrayIndex.js +++ b/tests/baselines/reference/tsserver/fourslashServer/formatSpaceBetweenFunctionAndArrayIndex.js @@ -1,16 +1,31 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "target": "es5", + "newLine": "crlf", + "lib": [ + "es5" + ], + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/tests/cases/fourslash/server/formatSpaceBetweenFunctionAndArrayIndex.ts] function test() { @@ -23,7 +38,7 @@ test() [0] Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/formatSpaceBetweenFunctionAndArrayIndex.ts" @@ -35,7 +50,7 @@ Info seq [hh:mm:ss:mss] Creating InferredProject: /dev/null/inferredProject1*, Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots @@ -45,18 +60,18 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /te Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /tests/cases/fourslash/server/formatSpaceBetweenFunctionAndArrayIndex.ts SVC-1-0 "\nfunction test() {\n return [];\n}\n\ntest() [0]\n" - ../../../../home/src/tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../../../home/src/tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../../../home/src/tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' ../../../../home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../../../home/src/tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' formatSpaceBetweenFunctionAndArrayIndex.ts Root file specified for compilation @@ -73,7 +88,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -81,12 +96,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* + {"pollingInterval":500} /tests/cases/fourslash/server/jsconfig.json: *new* {"pollingInterval":2000} /tests/cases/fourslash/server/tsconfig.json: *new* @@ -105,15 +120,15 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* @@ -124,7 +139,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/formatSpaceBetweenFunctionAndArrayIndex.ts", @@ -140,7 +155,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "format", - "request_seq": 1, + "request_seq": 2, "success": true, "body": [ { @@ -158,7 +173,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/formatSpaceBetweenFunctionAndArrayIndex.ts", @@ -175,7 +190,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 2, + "request_seq": 3, "success": true } After Request @@ -187,15 +202,15 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* diff --git a/tests/baselines/reference/tsserver/fourslashServer/formatonkey01.js b/tests/baselines/reference/tsserver/fourslashServer/formatonkey01.js index b50641b64bf76..5473677c80833 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/formatonkey01.js +++ b/tests/baselines/reference/tsserver/fourslashServer/formatonkey01.js @@ -1,16 +1,31 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "target": "es5", + "newLine": "crlf", + "lib": [ + "es5" + ], + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/tests/cases/fourslash/server/formatonkey01.ts] switch (1) { case 1: @@ -22,7 +37,7 @@ switch (1) { Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/formatonkey01.ts" @@ -34,7 +49,7 @@ Info seq [hh:mm:ss:mss] Creating InferredProject: /dev/null/inferredProject1*, Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots @@ -44,18 +59,18 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /te Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /tests/cases/fourslash/server/formatonkey01.ts SVC-1-0 "switch (1) {\n case 1:\n {\n \n break;\n}" - ../../../../home/src/tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../../../home/src/tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../../../home/src/tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' ../../../../home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../../../home/src/tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' formatonkey01.ts Root file specified for compilation @@ -72,7 +87,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -80,12 +95,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* + {"pollingInterval":500} /tests/cases/fourslash/server/jsconfig.json: *new* {"pollingInterval":2000} /tests/cases/fourslash/server/tsconfig.json: *new* @@ -104,15 +119,15 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* @@ -123,7 +138,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/formatonkey01.ts", @@ -140,7 +155,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 1, + "request_seq": 2, "success": true } After Request @@ -152,15 +167,15 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* @@ -171,7 +186,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/formatonkey01.ts", @@ -188,20 +203,20 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 2, + "request_seq": 3, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* @@ -212,7 +227,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 3, + "seq": 4, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/formatonkey01.ts", @@ -227,7 +242,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 3, + "request_seq": 4, "success": true, "body": [ { @@ -245,7 +260,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 4, + "seq": 5, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/formatonkey01.ts", @@ -262,20 +277,20 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 4, + "request_seq": 5, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* diff --git a/tests/baselines/reference/tsserver/fourslashServer/getFileReferences_deduplicate.js b/tests/baselines/reference/tsserver/fourslashServer/getFileReferences_deduplicate.js index fb6984d8a960b..13e8011ff6614 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/getFileReferences_deduplicate.js +++ b/tests/baselines/reference/tsserver/fourslashServer/getFileReferences_deduplicate.js @@ -1,16 +1,31 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "target": "es5", + "newLine": "crlf", + "lib": [ + "es5" + ], + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/home/src/workspaces/project/index.ts] export * from "./util"; @@ -18,16 +33,16 @@ export * from "./util"; import "./util"; //// [/home/src/workspaces/project/tsconfig.build.json] -{ "compilerOptions": { "rootDir": "src", "outDir": "dist/build", "composite": true }, "files": ["index.ts"], "references": [{ "path": "tsconfig.utils.json" }] } +{ "compilerOptions": { "lib": ["es5"], "rootDir": "src", "outDir": "dist/build", "composite": true }, "files": ["index.ts"], "references": [{ "path": "tsconfig.utils.json" }] } //// [/home/src/workspaces/project/tsconfig.json] { "files": [], "references": [{ "path": "tsconfig.build.json" }, { "path": "tsconfig.test.json" }] } //// [/home/src/workspaces/project/tsconfig.test.json] -{ "compilerOptions": { "rootDir": "src", "outDir": "dist/test", "composite": true }, "files": ["test.ts", "index.ts"], "references": [{ "path": "tsconfig.utils.json" }] } +{ "compilerOptions": { "lib": ["es5"], "rootDir": "src", "outDir": "dist/test", "composite": true }, "files": ["test.ts", "index.ts"], "references": [{ "path": "tsconfig.utils.json" }] } //// [/home/src/workspaces/project/tsconfig.utils.json] -{ "compilerOptions": { "rootDir": "src", "outDir": "dist/utils", "composite": true }, "files": ["util.ts"] } +{ "compilerOptions": { "lib": ["es5"], "rootDir": "src", "outDir": "dist/utils", "composite": true }, "files": ["util.ts"] } //// [/home/src/workspaces/project/util.ts] export {} @@ -35,7 +50,7 @@ export {} Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/home/src/workspaces/project/tsconfig.json" @@ -66,6 +81,9 @@ Info seq [hh:mm:ss:mss] Config: /home/src/workspaces/project/tsconfig.build.jso "/home/src/workspaces/project/index.ts" ], "options": { + "lib": [ + "lib.es5.d.ts" + ], "rootDir": "/home/src/workspaces/project/src", "outDir": "/home/src/workspaces/project/dist/build", "composite": true, @@ -85,6 +103,9 @@ Info seq [hh:mm:ss:mss] Config: /home/src/workspaces/project/tsconfig.test.json "/home/src/workspaces/project/index.ts" ], "options": { + "lib": [ + "lib.es5.d.ts" + ], "rootDir": "/home/src/workspaces/project/src", "outDir": "/home/src/workspaces/project/dist/test", "composite": true, @@ -103,6 +124,9 @@ Info seq [hh:mm:ss:mss] Config: /home/src/workspaces/project/tsconfig.utils.jso "/home/src/workspaces/project/util.ts" ], "options": { + "lib": [ + "lib.es5.d.ts" + ], "rootDir": "/home/src/workspaces/project/src", "outDir": "/home/src/workspaces/project/dist/utils", "composite": true, @@ -114,7 +138,7 @@ Info seq [hh:mm:ss:mss] getConfigFileNameForFile:: File: /home/src/workspaces/p Info seq [hh:mm:ss:mss] Creating InferredProject: /dev/null/inferredProject1*, currentDirectory: /home/src/workspaces/project Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots @@ -124,18 +148,18 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/tsconfig.json SVC-1-0 "{ \"files\": [], \"references\": [{ \"path\": \"tsconfig.build.json\" }, { \"path\": \"tsconfig.test.json\" }] }" - ../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' tsconfig.json Root file specified for compilation @@ -156,7 +180,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -164,12 +188,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* + {"pollingInterval":500} /home/src/workspaces/project/jsconfig.json: *new* {"pollingInterval":2000} /home/src/workspaces/project/tsconfig.build.json: *new* @@ -200,15 +224,15 @@ Projects:: noOpenRef: true ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* @@ -219,7 +243,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "file": "/home/src/workspaces/project/util.ts" @@ -246,18 +270,18 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.utils.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.utils.json' (Configured) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/util.ts SVC-1-0 "export {}" - ../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' util.ts Part of 'files' list in tsconfig.json @@ -289,11 +313,11 @@ Info seq [hh:mm:ss:mss] event: "span": { "start": { "line": 1, - "offset": 97 + "offset": 113 }, "end": { "line": 1, - "offset": 106 + "offset": 122 }, "file": "/home/src/workspaces/project/tsconfig.utils.json" }, @@ -328,7 +352,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 1, + "request_seq": 2, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -336,12 +360,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: + {"pollingInterval":500} /home/src/workspaces/project/jsconfig.json: {"pollingInterval":2000} /home/src/workspaces/project/tsconfig.build.json: @@ -378,17 +402,17 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *changed* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *changed* version: Text-1 containingProjects: 2 *changed* /dev/null/inferredProject1* /home/src/workspaces/project/tsconfig.utils.json *new* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *changed* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *changed* version: Text-1 containingProjects: 2 *changed* /dev/null/inferredProject1* /home/src/workspaces/project/tsconfig.utils.json *new* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *changed* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *changed* version: Text-1 containingProjects: 2 *changed* /dev/null/inferredProject1* @@ -404,7 +428,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "file": "/home/src/workspaces/project/util.ts" @@ -472,19 +496,19 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.build.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.build.json' (Configured) Info seq [hh:mm:ss:mss] Files (5) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/util.ts SVC-1-0 "export {}" /home/src/workspaces/project/index.ts Text-1 "export * from \"./util\";" - ../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' util.ts Imported via "./util" from file 'index.ts' index.ts @@ -518,11 +542,11 @@ Info seq [hh:mm:ss:mss] event: "span": { "start": { "line": 1, - "offset": 97 + "offset": 113 }, "end": { "line": 1, - "offset": 107 + "offset": 123 }, "file": "/home/src/workspaces/project/tsconfig.build.json" }, @@ -555,7 +579,7 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.test.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.test.json' (Configured) Info seq [hh:mm:ss:mss] Files (6) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/util.ts SVC-1-0 "export {}" @@ -563,12 +587,12 @@ Info seq [hh:mm:ss:mss] Files (6) /home/src/workspaces/project/index.ts Text-1 "export * from \"./util\";" - ../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' util.ts Imported via "./util" from file 'test.ts' Imported via "./util" from file 'index.ts' @@ -605,11 +629,11 @@ Info seq [hh:mm:ss:mss] event: "span": { "start": { "line": 1, - "offset": 107 + "offset": 123 }, "end": { "line": 1, - "offset": 117 + "offset": 133 }, "file": "/home/src/workspaces/project/tsconfig.test.json" }, @@ -628,11 +652,11 @@ Info seq [hh:mm:ss:mss] event: "span": { "start": { "line": 1, - "offset": 96 + "offset": 112 }, "end": { "line": 1, - "offset": 105 + "offset": 121 }, "file": "/home/src/workspaces/project/tsconfig.test.json" }, @@ -652,7 +676,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "fileReferences", - "request_seq": 2, + "request_seq": 3, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -707,12 +731,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: + {"pollingInterval":500} /home/src/workspaces/project/index.ts: *new* {"pollingInterval":500} /home/src/workspaces/project/jsconfig.json: @@ -764,21 +788,21 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *changed* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *changed* version: Text-1 containingProjects: 4 *changed* /dev/null/inferredProject1* /home/src/workspaces/project/tsconfig.utils.json /home/src/workspaces/project/tsconfig.build.json *new* /home/src/workspaces/project/tsconfig.test.json *new* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *changed* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *changed* version: Text-1 containingProjects: 4 *changed* /dev/null/inferredProject1* /home/src/workspaces/project/tsconfig.utils.json /home/src/workspaces/project/tsconfig.build.json *new* /home/src/workspaces/project/tsconfig.test.json *new* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *changed* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *changed* version: Text-1 containingProjects: 4 *changed* /dev/null/inferredProject1* diff --git a/tests/baselines/reference/tsserver/fourslashServer/getFileReferences_server1.js b/tests/baselines/reference/tsserver/fourslashServer/getFileReferences_server1.js index 4b91bd79ad2e8..82a8f0fb04a85 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/getFileReferences_server1.js +++ b/tests/baselines/reference/tsserver/fourslashServer/getFileReferences_server1.js @@ -1,16 +1,31 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "lib": [ + "es5" + ], + "target": "es5", + "newLine": "crlf", + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/home/src/workspaces/project/a.ts] export const a = 0; @@ -25,12 +40,12 @@ import { a } from "/project/a"; type T = typeof import("./a").a; //// [/home/src/workspaces/project/tsconfig.json] -{} +{ "compilerOptions": { "lib": ["es5"] } } Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/home/src/workspaces/project/tsconfig.json" @@ -48,6 +63,9 @@ Info seq [hh:mm:ss:mss] Config: /home/src/workspaces/project/tsconfig.json : { "/home/src/workspaces/project/d.ts" ], "options": { + "lib": [ + "lib.es5.d.ts" + ], "configFilePath": "/home/src/workspaces/project/tsconfig.json" } } @@ -68,7 +86,7 @@ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/p Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/c.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots @@ -78,7 +96,7 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (7) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/a.ts Text-1 "export const a = 0;" @@ -87,12 +105,12 @@ Info seq [hh:mm:ss:mss] Files (7) /home/src/workspaces/project/d.ts Text-1 "import { a } from \"/project/a\";\ntype T = typeof import(\"./a\").a;" - ../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' a.ts Matched by default include pattern '**/*' Imported via "./a" from file 'b.ts' @@ -137,18 +155,18 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text - /home/src/workspaces/project/tsconfig.json SVC-1-0 "{}" + /home/src/workspaces/project/tsconfig.json SVC-1-0 "{ \"compilerOptions\": { \"lib\": [\"es5\"] } }" - ../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' tsconfig.json Root file specified for compilation @@ -169,7 +187,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -177,12 +195,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* + {"pollingInterval":500} /home/src/workspaces/project/a.ts: *new* {"pollingInterval":500} /home/src/workspaces/project/b.ts: *new* @@ -217,17 +235,17 @@ Projects:: noOpenRef: true ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -255,7 +273,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "file": "/home/src/workspaces/project/a.ts" @@ -282,17 +300,17 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 1, + "request_seq": 2, "success": true } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: + {"pollingInterval":500} /home/src/workspaces/project/b.ts: {"pollingInterval":500} /home/src/workspaces/project/c.ts: @@ -329,17 +347,17 @@ Projects:: noOpenRef: false *changed* ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -368,7 +386,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "file": "/home/src/workspaces/project/a.ts" @@ -381,7 +399,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "fileReferences", - "request_seq": 2, + "request_seq": 3, "success": true, "body": { "refs": [ diff --git a/tests/baselines/reference/tsserver/fourslashServer/getFileReferences_server2.js b/tests/baselines/reference/tsserver/fourslashServer/getFileReferences_server2.js index 2ea99609b227f..6670cefe3d901 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/getFileReferences_server2.js +++ b/tests/baselines/reference/tsserver/fourslashServer/getFileReferences_server2.js @@ -1,21 +1,45 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "lib": [ + "es5" + ], + "paths": { + "@shared/*": [ + "../shared/src/*" + ] + }, + "target": "es5", + "newLine": "crlf", + "skipDefaultLibCheck": true, + "rootDir": "/home/src/workspaces/project/packages/shared/src", + "outDir": "/home/src/workspaces/project/packages/shared/dist", + "composite": true, + "checkJs": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/home/src/workspaces/project/packages/client/index.ts] import "@shared/referenced"; //// [/home/src/workspaces/project/packages/client/tsconfig.json] -{ "compilerOptions": { "paths": { "@shared/*": ["../shared/src/*"] } }, "references": [{ "path": "../shared" }] } +{ "compilerOptions": { "lib": ["es5"], "paths": { "@shared/*": ["../shared/src/*"] } }, "references": [{ "path": "../shared" }] } //// [/home/src/workspaces/project/packages/server/index.js] const mod = require("../shared/src/referenced"); @@ -24,13 +48,13 @@ const mod = require("../shared/src/referenced"); const blah = require("../shared/dist/referenced"); //// [/home/src/workspaces/project/packages/server/tsconfig.json] -{ "compilerOptions": { "checkJs": true }, "references": [{ "path": "../shared" }] } +{ "compilerOptions": { "lib": ["es5"], "checkJs": true }, "references": [{ "path": "../shared" }] } //// [/home/src/workspaces/project/packages/shared/src/referenced.ts] export {}; //// [/home/src/workspaces/project/packages/shared/tsconfig.json] -{ "compilerOptions": { "rootDir": "src", "outDir": "dist", "composite": true } } +{ "compilerOptions": { "lib": ["es5"], "rootDir": "src", "outDir": "dist", "composite": true } } //// [/home/src/workspaces/project/tsconfig.json] { "files": [], "references": [{ "path": "packages/server" }, { "path": "packages/client" }] } @@ -38,7 +62,7 @@ export {}; Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/home/src/workspaces/project/tsconfig.json" @@ -70,6 +94,9 @@ Info seq [hh:mm:ss:mss] Config: /home/src/workspaces/project/packages/server/ts "/home/src/workspaces/project/packages/server/router.js" ], "options": { + "lib": [ + "lib.es5.d.ts" + ], "checkJs": true, "configFilePath": "/home/src/workspaces/project/packages/server/tsconfig.json" }, @@ -88,6 +115,9 @@ Info seq [hh:mm:ss:mss] Config: /home/src/workspaces/project/packages/client/ts "/home/src/workspaces/project/packages/client/index.ts" ], "options": { + "lib": [ + "lib.es5.d.ts" + ], "paths": { "@shared/*": [ "../shared/src/*" @@ -111,6 +141,9 @@ Info seq [hh:mm:ss:mss] Config: /home/src/workspaces/project/packages/shared/ts "/home/src/workspaces/project/packages/shared/src/referenced.ts" ], "options": { + "lib": [ + "lib.es5.d.ts" + ], "rootDir": "/home/src/workspaces/project/packages/shared/src", "outDir": "/home/src/workspaces/project/packages/shared/dist", "composite": true, @@ -124,7 +157,7 @@ Info seq [hh:mm:ss:mss] getConfigFileNameForFile:: File: /home/src/workspaces/p Info seq [hh:mm:ss:mss] Creating InferredProject: /dev/null/inferredProject1*, currentDirectory: /home/src/workspaces/project Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots @@ -134,18 +167,18 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/tsconfig.json SVC-1-0 "{ \"files\": [], \"references\": [{ \"path\": \"packages/server\" }, { \"path\": \"packages/client\" }] }" - ../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' tsconfig.json Root file specified for compilation @@ -166,7 +199,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -174,12 +207,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* + {"pollingInterval":500} /home/src/workspaces/project/jsconfig.json: *new* {"pollingInterval":2000} /home/src/workspaces/project/packages/client/tsconfig.json: *new* @@ -216,15 +249,15 @@ Projects:: noOpenRef: true ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* @@ -235,7 +268,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "file": "/home/src/workspaces/project/packages/shared/src/referenced.ts" @@ -266,18 +299,18 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/packages/shared/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/packages/shared/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/packages/shared/src/referenced.ts SVC-1-0 "export {};" - ../../../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../../../tslibs/TS/Lib/lib.es5.d.ts' ../../../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../../../tslibs/TS/Lib/lib.es5.d.ts' src/referenced.ts Matched by default include pattern '**/*' @@ -325,7 +358,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 1, + "request_seq": 2, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -333,12 +366,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: + {"pollingInterval":500} /home/src/workspaces/project/jsconfig.json: {"pollingInterval":2000} /home/src/workspaces/project/packages/client/tsconfig.json: @@ -385,17 +418,17 @@ Projects:: noOpenRef: false *changed* ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *changed* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *changed* version: Text-1 containingProjects: 2 *changed* /dev/null/inferredProject1* /home/src/workspaces/project/packages/shared/tsconfig.json *new* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *changed* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *changed* version: Text-1 containingProjects: 2 *changed* /dev/null/inferredProject1* /home/src/workspaces/project/packages/shared/tsconfig.json *new* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *changed* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *changed* version: Text-1 containingProjects: 2 *changed* /dev/null/inferredProject1* @@ -411,7 +444,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "file": "/home/src/workspaces/project/packages/shared/src/referenced.ts" @@ -486,7 +519,7 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/packages/server/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/packages/server/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (6) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/packages/shared/src/referenced.ts SVC-1-0 "export {};" @@ -494,12 +527,12 @@ Info seq [hh:mm:ss:mss] Files (6) /home/src/workspaces/project/packages/server/router.js Text-1 "const blah = require(\"../shared/dist/referenced\");" - ../../../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../../../tslibs/TS/Lib/lib.es5.d.ts' ../../../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../../../tslibs/TS/Lib/lib.es5.d.ts' ../shared/src/referenced.ts Imported via "../shared/src/referenced" from file 'index.js' Imported via "../shared/dist/referenced" from file 'router.js' @@ -564,19 +597,19 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/packages/client/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/packages/client/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (5) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/packages/shared/src/referenced.ts SVC-1-0 "export {};" /home/src/workspaces/project/packages/client/index.ts Text-1 "import \"@shared/referenced\";" - ../../../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../../../tslibs/TS/Lib/lib.es5.d.ts' ../../../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../../../tslibs/TS/Lib/lib.es5.d.ts' ../shared/src/referenced.ts Imported via "@shared/referenced" from file 'index.ts' index.ts @@ -610,7 +643,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "fileReferences", - "request_seq": 2, + "request_seq": 3, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -686,12 +719,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: + {"pollingInterval":500} /home/src/workspaces/project/jsconfig.json: {"pollingInterval":2000} /home/src/workspaces/project/packages/client/index.ts: *new* @@ -762,21 +795,21 @@ Projects:: initialLoadPending: false *changed* ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *changed* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *changed* version: Text-1 containingProjects: 4 *changed* /dev/null/inferredProject1* /home/src/workspaces/project/packages/shared/tsconfig.json /home/src/workspaces/project/packages/server/tsconfig.json *new* /home/src/workspaces/project/packages/client/tsconfig.json *new* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *changed* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *changed* version: Text-1 containingProjects: 4 *changed* /dev/null/inferredProject1* /home/src/workspaces/project/packages/shared/tsconfig.json /home/src/workspaces/project/packages/server/tsconfig.json *new* /home/src/workspaces/project/packages/client/tsconfig.json *new* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *changed* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *changed* version: Text-1 containingProjects: 4 *changed* /dev/null/inferredProject1* diff --git a/tests/baselines/reference/tsserver/fourslashServer/getJavaScriptSyntacticDiagnostics01.js b/tests/baselines/reference/tsserver/fourslashServer/getJavaScriptSyntacticDiagnostics01.js index 1b083ea4a6a17..daf070b961d55 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/getJavaScriptSyntacticDiagnostics01.js +++ b/tests/baselines/reference/tsserver/fourslashServer/getJavaScriptSyntacticDiagnostics01.js @@ -1,23 +1,39 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "target": "es5", + "newLine": "crlf", + "lib": [ + "es5" + ], + "allowJs": true, + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/tests/cases/fourslash/server/a.js] var ===; Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/a.js" @@ -29,7 +45,7 @@ Info seq [hh:mm:ss:mss] Creating InferredProject: /dev/null/inferredProject1*, Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots @@ -39,18 +55,18 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /te Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /tests/cases/fourslash/server/a.js SVC-1-0 "var ===;" - ../../../../home/src/tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../../../home/src/tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../../../home/src/tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' ../../../../home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../../../home/src/tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' a.js Root file specified for compilation @@ -67,7 +83,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -75,12 +91,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* + {"pollingInterval":500} /tests/cases/fourslash/server/jsconfig.json: *new* {"pollingInterval":2000} /tests/cases/fourslash/server/tsconfig.json: *new* @@ -99,15 +115,15 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* @@ -118,7 +134,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/a.js", @@ -131,7 +147,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "syntacticDiagnosticsSync", - "request_seq": 1, + "request_seq": 2, "success": true, "body": [ { @@ -168,7 +184,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/a.js", @@ -181,7 +197,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "semanticDiagnosticsSync", - "request_seq": 2, + "request_seq": 3, "success": true, "body": [] } \ No newline at end of file diff --git a/tests/baselines/reference/tsserver/fourslashServer/getJavaScriptSyntacticDiagnostics02.js b/tests/baselines/reference/tsserver/fourslashServer/getJavaScriptSyntacticDiagnostics02.js index 2b358eb972466..05f51b3796587 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/getJavaScriptSyntacticDiagnostics02.js +++ b/tests/baselines/reference/tsserver/fourslashServer/getJavaScriptSyntacticDiagnostics02.js @@ -1,16 +1,32 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "target": "es5", + "newLine": "crlf", + "lib": [ + "es5" + ], + "allowJs": true, + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/tests/cases/fourslash/server/b.js] var a = "a"; var b: boolean = true; @@ -20,7 +36,7 @@ var var = "c"; Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/b.js" @@ -32,7 +48,7 @@ Info seq [hh:mm:ss:mss] Creating InferredProject: /dev/null/inferredProject1*, Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots @@ -42,18 +58,18 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /te Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /tests/cases/fourslash/server/b.js SVC-1-0 "var a = \"a\";\nvar b: boolean = true;\nfunction foo(): string { }\nvar var = \"c\";" - ../../../../home/src/tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../../../home/src/tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../../../home/src/tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' ../../../../home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../../../home/src/tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' b.js Root file specified for compilation @@ -70,7 +86,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -78,12 +94,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* + {"pollingInterval":500} /tests/cases/fourslash/server/jsconfig.json: *new* {"pollingInterval":2000} /tests/cases/fourslash/server/tsconfig.json: *new* @@ -102,15 +118,15 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* @@ -121,7 +137,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/b.js", @@ -134,7 +150,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "syntacticDiagnosticsSync", - "request_seq": 1, + "request_seq": 2, "success": true, "body": [ { @@ -216,7 +232,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/b.js", @@ -229,7 +245,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "semanticDiagnosticsSync", - "request_seq": 2, + "request_seq": 3, "success": true, "body": [] } \ No newline at end of file diff --git a/tests/baselines/reference/tsserver/fourslashServer/getOutliningSpansForComments.js b/tests/baselines/reference/tsserver/fourslashServer/getOutliningSpansForComments.js index f7d69bc93932e..753a8ca6a1ceb 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/getOutliningSpansForComments.js +++ b/tests/baselines/reference/tsserver/fourslashServer/getOutliningSpansForComments.js @@ -1,16 +1,31 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "target": "es5", + "newLine": "crlf", + "lib": [ + "es5" + ], + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/tests/cases/fourslash/server/getOutliningSpansForComments.ts] /* Block comment at the beginning of the file before module: @@ -30,7 +45,7 @@ declare module "n"; Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/getOutliningSpansForComments.ts" @@ -42,7 +57,7 @@ Info seq [hh:mm:ss:mss] Creating InferredProject: /dev/null/inferredProject1*, Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots @@ -52,18 +67,18 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /te Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /tests/cases/fourslash/server/getOutliningSpansForComments.ts SVC-1-0 "/*\n Block comment at the beginning of the file before module:\n line one of the comment\n line two of the comment\n line three\n line four\n line five\n*/\ndeclare module \"m\";\n// Single line comments at the start of the file\n// line 2\n// line 3\n// line 4\ndeclare module \"n\";" - ../../../../home/src/tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../../../home/src/tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../../../home/src/tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' ../../../../home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../../../home/src/tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' getOutliningSpansForComments.ts Root file specified for compilation @@ -80,7 +95,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -88,12 +103,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* + {"pollingInterval":500} /tests/cases/fourslash/server/jsconfig.json: *new* {"pollingInterval":2000} /tests/cases/fourslash/server/tsconfig.json: *new* @@ -112,15 +127,15 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* @@ -131,7 +146,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/getOutliningSpansForComments.ts" @@ -143,7 +158,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "getOutliningSpans", - "request_seq": 1, + "request_seq": 2, "success": true, "body": [ { diff --git a/tests/baselines/reference/tsserver/fourslashServer/getOutliningSpansForRegions.js b/tests/baselines/reference/tsserver/fourslashServer/getOutliningSpansForRegions.js index 8d62fc1f3b67d..615fab3b571a6 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/getOutliningSpansForRegions.js +++ b/tests/baselines/reference/tsserver/fourslashServer/getOutliningSpansForRegions.js @@ -1,16 +1,31 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "target": "es5", + "newLine": "crlf", + "lib": [ + "es5" + ], + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/tests/cases/fourslash/server/getOutliningSpansForRegions.ts] // region without label // #region @@ -63,7 +78,7 @@ test // #endregion Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/getOutliningSpansForRegions.ts" @@ -75,7 +90,7 @@ Info seq [hh:mm:ss:mss] Creating InferredProject: /dev/null/inferredProject1*, Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots @@ -85,18 +100,18 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /te Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /tests/cases/fourslash/server/getOutliningSpansForRegions.ts SVC-1-0 "// region without label\n// #region\n\n// #endregion\n\n// region without label with trailing spaces\n// #region\n\n// #endregion\n\n// region with label\n// #region label1\n\n// #endregion\n\n// region with extra whitespace in all valid locations\n // #region label2 label3\n\n // #endregion\n\n// No space before directive\n//#region label4\n\n//#endregion\n\n// Nested regions\n// #region outer\n\n// #region inner\n\n// #endregion inner\n\n// #endregion outer\n\n// region delimiters not valid when there is preceding text on line\n test // #region invalid1\n\ntest // #endregion\n\n// region delimiters not valid when in multiline comment\n/*\n// #region invalid2\n*/\n\n/*\n// #endregion\n*/" - ../../../../home/src/tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../../../home/src/tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../../../home/src/tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' ../../../../home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../../../home/src/tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' getOutliningSpansForRegions.ts Root file specified for compilation @@ -113,7 +128,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -121,12 +136,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* + {"pollingInterval":500} /tests/cases/fourslash/server/jsconfig.json: *new* {"pollingInterval":2000} /tests/cases/fourslash/server/tsconfig.json: *new* @@ -145,15 +160,15 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* @@ -164,7 +179,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/getOutliningSpansForRegions.ts" @@ -176,7 +191,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "getOutliningSpans", - "request_seq": 1, + "request_seq": 2, "success": true, "body": [ { diff --git a/tests/baselines/reference/tsserver/fourslashServer/getOutliningSpansForRegionsNoSingleLineFolds.js b/tests/baselines/reference/tsserver/fourslashServer/getOutliningSpansForRegionsNoSingleLineFolds.js index 7716aed6c7cbf..9f364893440be 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/getOutliningSpansForRegionsNoSingleLineFolds.js +++ b/tests/baselines/reference/tsserver/fourslashServer/getOutliningSpansForRegionsNoSingleLineFolds.js @@ -1,16 +1,31 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "target": "es5", + "newLine": "crlf", + "lib": [ + "es5" + ], + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/tests/cases/fourslash/server/getOutliningSpansForRegionsNoSingleLineFolds.ts] //#region function foo() { @@ -31,7 +46,7 @@ function bar() { } Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/getOutliningSpansForRegionsNoSingleLineFolds.ts" @@ -43,7 +58,7 @@ Info seq [hh:mm:ss:mss] Creating InferredProject: /dev/null/inferredProject1*, Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots @@ -53,18 +68,18 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /te Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /tests/cases/fourslash/server/getOutliningSpansForRegionsNoSingleLineFolds.ts SVC-1-0 "//#region\nfunction foo() {\n\n}\n//these\n//should\n//#endregion not you\n// be\n// together\n\n//#region bla bla bla\n\nfunction bar() { }\n\n//#endregion" - ../../../../home/src/tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../../../home/src/tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../../../home/src/tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' ../../../../home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../../../home/src/tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' getOutliningSpansForRegionsNoSingleLineFolds.ts Root file specified for compilation @@ -81,7 +96,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -89,12 +104,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* + {"pollingInterval":500} /tests/cases/fourslash/server/jsconfig.json: *new* {"pollingInterval":2000} /tests/cases/fourslash/server/tsconfig.json: *new* @@ -113,15 +128,15 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* @@ -132,7 +147,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/getOutliningSpansForRegionsNoSingleLineFolds.ts" @@ -144,7 +159,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "getOutliningSpans", - "request_seq": 1, + "request_seq": 2, "success": true, "body": [ { diff --git a/tests/baselines/reference/tsserver/fourslashServer/goToDefinitionScriptImportServer.js b/tests/baselines/reference/tsserver/fourslashServer/goToDefinitionScriptImportServer.js index 74d9ef1921891..8eaea46756c72 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/goToDefinitionScriptImportServer.js +++ b/tests/baselines/reference/tsserver/fourslashServer/goToDefinitionScriptImportServer.js @@ -1,16 +1,31 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "target": "es5", + "newLine": "crlf", + "lib": [ + "es5" + ], + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/home/src/workspaces/project/moduleThing.ts] import "./scriptThing"; import "./stylez.css"; @@ -27,7 +42,7 @@ div { Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/home/src/workspaces/project/scriptThing.ts" @@ -39,7 +54,7 @@ Info seq [hh:mm:ss:mss] Creating InferredProject: /dev/null/inferredProject1*, Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots @@ -49,18 +64,18 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/scriptThing.ts SVC-1-0 "console.log(\"woooo side effects\")" - ../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' scriptThing.ts Root file specified for compilation @@ -77,7 +92,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -85,12 +100,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* + {"pollingInterval":500} /home/src/workspaces/project/jsconfig.json: *new* {"pollingInterval":2000} /home/src/workspaces/project/tsconfig.json: *new* @@ -109,15 +124,15 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* @@ -128,7 +143,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "file": "/home/src/workspaces/project/moduleThing.ts" @@ -151,19 +166,19 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject2* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject2*' (Inferred) Info seq [hh:mm:ss:mss] Files (5) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/scriptThing.ts SVC-1-0 "console.log(\"woooo side effects\")" /home/src/workspaces/project/moduleThing.ts SVC-1-0 "import \"./scriptThing\";\nimport \"./stylez.css\";\nimport \"./foo.txt\";" - ../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' scriptThing.ts Imported via "./scriptThing" from file 'moduleThing.ts' moduleThing.ts @@ -173,18 +188,18 @@ Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] `remove Project:: Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts + /home/src/tslibs/TS/Lib/lib.es5.d.ts /home/src/tslibs/TS/Lib/lib.decorators.d.ts /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts /home/src/workspaces/project/scriptThing.ts - ../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' scriptThing.ts Root file specified for compilation @@ -207,7 +222,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 1, + "request_seq": 2, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -215,12 +230,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: + {"pollingInterval":500} /home/src/workspaces/project/jsconfig.json: {"pollingInterval":2000} /home/src/workspaces/project/tsconfig.json: @@ -260,17 +275,17 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *changed* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *changed* version: Text-1 containingProjects: 1 *changed* /dev/null/inferredProject2* *new* /dev/null/inferredProject1* *deleted* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *changed* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *changed* version: Text-1 containingProjects: 1 *changed* /dev/null/inferredProject2* *new* /dev/null/inferredProject1* *deleted* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *changed* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *changed* version: Text-1 containingProjects: 1 *changed* /dev/null/inferredProject2* *new* @@ -287,7 +302,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "file": "/home/src/workspaces/project/moduleThing.ts", @@ -301,7 +316,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "definitionAndBoundSpan", - "request_seq": 2, + "request_seq": 3, "success": true, "body": { "definitions": [ @@ -331,7 +346,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 3, + "seq": 4, "type": "request", "arguments": { "file": "/home/src/workspaces/project/moduleThing.ts", @@ -345,7 +360,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "definitionAndBoundSpan", - "request_seq": 3, + "request_seq": 4, "success": true, "body": { "definitions": [ @@ -376,7 +391,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 4, + "seq": 5, "type": "request", "arguments": { "file": "/home/src/workspaces/project/moduleThing.ts", @@ -390,7 +405,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "definitionAndBoundSpan", - "request_seq": 4, + "request_seq": 5, "success": true, "body": { "definitions": [ diff --git a/tests/baselines/reference/tsserver/fourslashServer/goToImplementation_inDifferentFiles.js b/tests/baselines/reference/tsserver/fourslashServer/goToImplementation_inDifferentFiles.js index 39e9bd280b2ba..4f9cbce4bdc57 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/goToImplementation_inDifferentFiles.js +++ b/tests/baselines/reference/tsserver/fourslashServer/goToImplementation_inDifferentFiles.js @@ -1,16 +1,31 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "target": "es5", + "newLine": "crlf", + "lib": [ + "es5" + ], + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/home/src/workspaces/project/bar.ts] import {Foo} from './foo' @@ -30,7 +45,7 @@ export interface Foo { Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/home/src/workspaces/project/bar.ts" @@ -43,7 +58,7 @@ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/p Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/foo.ts 500 undefined WatchType: Closed Script info -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots @@ -53,19 +68,19 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (5) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/foo.ts Text-1 "export interface Foo {\n func();\n}" /home/src/workspaces/project/bar.ts SVC-1-0 "import {Foo} from './foo'\n\nclass A implements Foo {\n func() {}\n}\n\nclass B implements Foo {\n func() {}\n}" - ../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' foo.ts Imported via './foo' from file 'bar.ts' bar.ts @@ -84,7 +99,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -92,12 +107,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* + {"pollingInterval":500} /home/src/workspaces/project/foo.ts: *new* {"pollingInterval":500} /home/src/workspaces/project/jsconfig.json: *new* @@ -118,15 +133,15 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* @@ -141,7 +156,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "file": "/home/src/workspaces/project/foo.ts" @@ -164,17 +179,17 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 1, + "request_seq": 2, "success": true } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: + {"pollingInterval":500} /home/src/workspaces/project/jsconfig.json: {"pollingInterval":2000} /home/src/workspaces/project/tsconfig.json: @@ -191,15 +206,15 @@ watchedDirectoriesRecursive:: {} ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* @@ -215,7 +230,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "file": "/home/src/workspaces/project/foo.ts", @@ -229,7 +244,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "implementation", - "request_seq": 2, + "request_seq": 3, "success": true, "body": [ { diff --git a/tests/baselines/reference/tsserver/fourslashServer/goToSource10_mapFromAtTypes3.js b/tests/baselines/reference/tsserver/fourslashServer/goToSource10_mapFromAtTypes3.js index fe827a9aab329..ba68abb160633 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/goToSource10_mapFromAtTypes3.js +++ b/tests/baselines/reference/tsserver/fourslashServer/goToSource10_mapFromAtTypes3.js @@ -1,16 +1,32 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "target": "es5", + "newLine": "crlf", + "lib": [ + "es5" + ], + "moduleResolution": "bundler", + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/home/src/workspaces/project/index.ts] import { add } from 'lodash'; @@ -77,7 +93,7 @@ declare namespace _ { Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/home/src/workspaces/project/node_modules/lodash/package.json" @@ -97,7 +113,7 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspa Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types/lodash/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types/lodash/index.d.ts 500 undefined WatchType: Closed Script info -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/lodash/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots @@ -111,19 +127,19 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (5) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/node_modules/lodash/package.json SVC-1-0 "{ \"name\": \"lodash\", \"version\": \"4.17.15\", \"main\": \"./lodash.js\" }" /home/src/workspaces/project/node_modules/@types/lodash/index.d.ts Text-1 "export = _;\nexport as namespace _;\ndeclare const _: _.LoDashStatic;\ndeclare namespace _ {\n interface LoDashStatic {}\n}" - ../../../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../../../tslibs/TS/Lib/lib.es5.d.ts' ../../../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../../../tslibs/TS/Lib/lib.es5.d.ts' package.json Root file specified for compilation ../@types/lodash/index.d.ts @@ -142,7 +158,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -150,12 +166,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* + {"pollingInterval":500} /home/src/workspaces/project/node_modules/@types/lodash/index.d.ts: *new* {"pollingInterval":500} /home/src/workspaces/project/node_modules/@types/lodash/package.json: *new* @@ -189,15 +205,15 @@ Projects:: projectProgramVersion: 1 ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* @@ -212,7 +228,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts" @@ -239,19 +255,19 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject2* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject2*' (Inferred) Info seq [hh:mm:ss:mss] Files (5) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/node_modules/@types/lodash/index.d.ts Text-1 "export = _;\nexport as namespace _;\ndeclare const _: _.LoDashStatic;\ndeclare namespace _ {\n interface LoDashStatic {}\n}" /home/src/workspaces/project/index.ts SVC-1-0 "import { add } from 'lodash';" - ../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' node_modules/@types/lodash/index.d.ts Imported via 'lodash' from file 'index.ts' with packageId '@types/lodash/index.d.ts@4.14.97' Entry point for implicit type library 'lodash' with packageId '@types/lodash/index.d.ts@4.14.97' @@ -277,7 +293,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 1, + "request_seq": 2, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -285,12 +301,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: + {"pollingInterval":500} /home/src/workspaces/project/jsconfig.json: *new* {"pollingInterval":2000} /home/src/workspaces/project/node_modules/@types/lodash/index.d.ts: @@ -344,17 +360,17 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *changed* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *changed* version: Text-1 containingProjects: 2 *changed* /dev/null/inferredProject1* /dev/null/inferredProject2* *new* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *changed* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *changed* version: Text-1 containingProjects: 2 *changed* /dev/null/inferredProject1* /dev/null/inferredProject2* *new* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *changed* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *changed* version: Text-1 containingProjects: 2 *changed* /dev/null/inferredProject1* @@ -375,7 +391,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -414,7 +430,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "findSourceDefinition", - "request_seq": 2, + "request_seq": 3, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -464,12 +480,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: + {"pollingInterval":500} /home/src/workspaces/project/jsconfig.json: {"pollingInterval":2000} /home/src/workspaces/project/node_modules/@types/lodash/index.d.ts: @@ -535,17 +551,17 @@ Projects:: noDtsResolutionProject: /dev/null/auxiliaryProject1* *changed* ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /dev/null/inferredProject1* /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /dev/null/inferredProject1* /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /dev/null/inferredProject1* diff --git a/tests/baselines/reference/tsserver/fourslashServer/goToSource11_propertyOfAlias.js b/tests/baselines/reference/tsserver/fourslashServer/goToSource11_propertyOfAlias.js index a91b67f47253d..0dfef2dd07190 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/goToSource11_propertyOfAlias.js +++ b/tests/baselines/reference/tsserver/fourslashServer/goToSource11_propertyOfAlias.js @@ -1,16 +1,32 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "target": "es5", + "newLine": "crlf", + "lib": [ + "es5" + ], + "moduleResolution": "bundler", + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/home/src/workspaces/project/a.d.ts] export declare const a: { a: string }; @@ -24,7 +40,7 @@ a.a Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/home/src/workspaces/project/a.js" @@ -36,7 +52,7 @@ Info seq [hh:mm:ss:mss] Creating InferredProject: /dev/null/inferredProject1*, Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots @@ -46,18 +62,18 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/a.js SVC-1-0 "export const a = { a: 'a' };" - ../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' a.js Root file specified for compilation @@ -74,7 +90,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -82,12 +98,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* + {"pollingInterval":500} /home/src/workspaces/project/jsconfig.json: *new* {"pollingInterval":2000} /home/src/workspaces/project/tsconfig.json: *new* @@ -106,15 +122,15 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* @@ -125,7 +141,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "file": "/home/src/workspaces/project/b.ts" @@ -145,19 +161,19 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject2* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject2*' (Inferred) Info seq [hh:mm:ss:mss] Files (5) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/a.d.ts Text-1 "export declare const a: { a: string };" /home/src/workspaces/project/b.ts SVC-1-0 "import { a } from './a';\na.a" - ../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' a.d.ts Imported via './a' from file 'b.ts' b.ts @@ -182,7 +198,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 1, + "request_seq": 2, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -190,12 +206,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: + {"pollingInterval":500} /home/src/workspaces/project/a.d.ts: *new* {"pollingInterval":500} /home/src/workspaces/project/jsconfig.json: @@ -226,17 +242,17 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *changed* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *changed* version: Text-1 containingProjects: 2 *changed* /dev/null/inferredProject1* /dev/null/inferredProject2* *new* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *changed* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *changed* version: Text-1 containingProjects: 2 *changed* /dev/null/inferredProject1* /dev/null/inferredProject2* *new* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *changed* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *changed* version: Text-1 containingProjects: 2 *changed* /dev/null/inferredProject1* @@ -256,7 +272,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "file": "/home/src/workspaces/project/b.ts", @@ -287,7 +303,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "findSourceDefinition", - "request_seq": 2, + "request_seq": 3, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -316,12 +332,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: + {"pollingInterval":500} /home/src/workspaces/project/a.d.ts: {"pollingInterval":500} /home/src/workspaces/project/jsconfig.json: @@ -359,17 +375,17 @@ Projects:: noDtsResolutionProject: /dev/null/auxiliaryProject1* *changed* ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /dev/null/inferredProject1* /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /dev/null/inferredProject1* /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /dev/null/inferredProject1* diff --git a/tests/baselines/reference/tsserver/fourslashServer/goToSource12_callbackParam.js b/tests/baselines/reference/tsserver/fourslashServer/goToSource12_callbackParam.js index 6e811309a4a17..54e8916a05dbb 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/goToSource12_callbackParam.js +++ b/tests/baselines/reference/tsserver/fourslashServer/goToSource12_callbackParam.js @@ -1,16 +1,32 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "target": "es5", + "newLine": "crlf", + "lib": [ + "es5" + ], + "moduleResolution": "bundler", + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/home/src/workspaces/project/index.ts] import { command } from "yargs"; command("foo", yargs => { @@ -41,7 +57,7 @@ export function command(cmd, cb) { cb({ positional: "This is obviously not even Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/home/src/workspaces/project/node_modules/@types/yargs/package.json" @@ -63,7 +79,7 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspa Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types/yargs/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types/yargs/index.d.ts 500 undefined WatchType: Closed Script info -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types/yargs/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots @@ -79,19 +95,19 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (5) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/node_modules/@types/yargs/package.json SVC-1-0 "{\n \"name\": \"@types/yargs\",\n \"version\": \"1.0.0\",\n \"types\": \"./index.d.ts\"\n}" /home/src/workspaces/project/node_modules/@types/yargs/index.d.ts Text-1 "export interface Yargs { positional(): Yargs; }\nexport declare function command(command: string, cb: (yargs: Yargs) => void): void;" - ../../../../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../../../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../../../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../../../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../../../../tslibs/TS/Lib/lib.es5.d.ts' ../../../../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../../../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../../../../tslibs/TS/Lib/lib.es5.d.ts' package.json Root file specified for compilation index.d.ts @@ -110,7 +126,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -118,12 +134,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* + {"pollingInterval":500} /home/src/workspaces/project/node_modules/@types/jsconfig.json: *new* {"pollingInterval":2000} /home/src/workspaces/project/node_modules/@types/tsconfig.json: *new* @@ -163,15 +179,15 @@ Projects:: projectProgramVersion: 1 ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* @@ -186,7 +202,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts" @@ -213,19 +229,19 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject2* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject2*' (Inferred) Info seq [hh:mm:ss:mss] Files (5) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/node_modules/@types/yargs/index.d.ts Text-1 "export interface Yargs { positional(): Yargs; }\nexport declare function command(command: string, cb: (yargs: Yargs) => void): void;" /home/src/workspaces/project/index.ts SVC-1-0 "import { command } from \"yargs\";\ncommand(\"foo\", yargs => {\n yargs.positional();\n});" - ../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' node_modules/@types/yargs/index.d.ts Imported via "yargs" from file 'index.ts' with packageId '@types/yargs/index.d.ts@1.0.0' Entry point for implicit type library 'yargs' with packageId '@types/yargs/index.d.ts@1.0.0' @@ -251,7 +267,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 1, + "request_seq": 2, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -259,12 +275,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: + {"pollingInterval":500} /home/src/workspaces/project/jsconfig.json: *new* {"pollingInterval":2000} /home/src/workspaces/project/node_modules/@types/jsconfig.json: @@ -324,17 +340,17 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *changed* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *changed* version: Text-1 containingProjects: 2 *changed* /dev/null/inferredProject1* /dev/null/inferredProject2* *new* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *changed* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *changed* version: Text-1 containingProjects: 2 *changed* /dev/null/inferredProject1* /dev/null/inferredProject2* *new* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *changed* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *changed* version: Text-1 containingProjects: 2 *changed* /dev/null/inferredProject1* @@ -355,7 +371,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -394,7 +410,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "findSourceDefinition", - "request_seq": 2, + "request_seq": 3, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -424,12 +440,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: + {"pollingInterval":500} /home/src/workspaces/project/jsconfig.json: {"pollingInterval":2000} /home/src/workspaces/project/node_modules/@types/jsconfig.json: @@ -503,17 +519,17 @@ Projects:: noDtsResolutionProject: /dev/null/auxiliaryProject1* *changed* ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /dev/null/inferredProject1* /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /dev/null/inferredProject1* /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /dev/null/inferredProject1* diff --git a/tests/baselines/reference/tsserver/fourslashServer/goToSource13_nodenext.js b/tests/baselines/reference/tsserver/fourslashServer/goToSource13_nodenext.js index 037d5a050944e..213768f8a777b 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/goToSource13_nodenext.js +++ b/tests/baselines/reference/tsserver/fourslashServer/goToSource13_nodenext.js @@ -1,16 +1,34 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "module": "node16", + "lib": [ + "es5" + ], + "strict": true, + "outDir": "/home/src/workspaces/project/out", + "target": "es5", + "newLine": "crlf", + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/home/src/workspaces/project/index.mts] import leftPad = require("left-pad"); leftPad("", 4); @@ -37,6 +55,7 @@ function leftPad(str, len, ch) {} { "compilerOptions": { "module": "node16", + "lib": ["es5"], "strict": true, "outDir": "./out", @@ -46,7 +65,7 @@ function leftPad(str, len, ch) {} Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/home/src/workspaces/project/node_modules/left-pad/package.json" @@ -60,9 +79,12 @@ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/p Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/left-pad/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/left-pad/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots @@ -74,18 +96,18 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/node_modules/left-pad/package.json SVC-1-0 "{\n \"name\": \"left-pad\",\n \"version\": \"1.3.0\",\n \"description\": \"String left pad\",\n \"main\": \"index.js\",\n \"types\": \"index.d.ts\"\n}" - ../../../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../../../tslibs/TS/Lib/lib.es5.d.ts' ../../../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../../../tslibs/TS/Lib/lib.es5.d.ts' package.json Root file specified for compilation @@ -102,7 +124,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -110,12 +132,18 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* + {"pollingInterval":500} +/home/src/tslibs/TS/Lib/package.json: *new* + {"pollingInterval":2000} +/home/src/tslibs/TS/package.json: *new* + {"pollingInterval":2000} +/home/src/tslibs/package.json: *new* + {"pollingInterval":2000} /home/src/workspaces/project/node_modules/jsconfig.json: *new* {"pollingInterval":2000} /home/src/workspaces/project/node_modules/left-pad/jsconfig.json: *new* @@ -141,15 +169,15 @@ Projects:: projectProgramVersion: 1 ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* @@ -160,7 +188,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.mts" @@ -176,6 +204,9 @@ Info seq [hh:mm:ss:mss] Config: /home/src/workspaces/project/tsconfig.json : { ], "options": { "module": 100, + "lib": [ + "lib.es5.d.ts" + ], "strict": true, "outDir": "/home/src/workspaces/project/out", "configFilePath": "/home/src/workspaces/project/tsconfig.json" @@ -202,18 +233,29 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project 0 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project 0 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/left-pad/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es2022.full.d.ts 500 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Missing file +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) -Info seq [hh:mm:ss:mss] Files (2) +Info seq [hh:mm:ss:mss] Files (5) + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text + /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/node_modules/left-pad/index.d.ts Text-1 "declare function leftPad(str: string|number, len: number, ch?: string|number): string;\ndeclare namespace leftPad { }\nexport = leftPad;" /home/src/workspaces/project/index.mts SVC-1-0 "import leftPad = require(\"left-pad\");\nleftPad(\"\", 4);" + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions + ../../tslibs/TS/Lib/lib.decorators.d.ts + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' + ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' node_modules/left-pad/index.d.ts Imported via "left-pad" from file 'index.mts' with packageId 'left-pad/index.d.ts@1.3.0' File is CommonJS module because 'node_modules/left-pad/package.json' does not have field "type" @@ -238,67 +280,11 @@ Info seq [hh:mm:ss:mss] event: "body": { "triggerFile": "/home/src/workspaces/project/index.mts", "configFile": "/home/src/workspaces/project/tsconfig.json", - "diagnostics": [ - { - "text": "File '/home/src/tslibs/TS/Lib/lib.es2022.full.d.ts' not found.\n The file is in the program because:\n Default library for target 'es2022'", - "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 'CallableFunction'.", - "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 'NewableFunction'.", - "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" - } - ] + "diagnostics": [] } } Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) -Info seq [hh:mm:ss:mss] Files (2) +Info seq [hh:mm:ss:mss] Files (5) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) @@ -315,7 +301,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 1, + "request_seq": 2, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -323,14 +309,21 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} -/home/src/tslibs/TS/Lib/lib.es2022.full.d.ts: *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} *new* +/home/src/tslibs/TS/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} *new* +/home/src/tslibs/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} *new* /home/src/workspaces/project/node_modules/jsconfig.json: {"pollingInterval":2000} /home/src/workspaces/project/node_modules/left-pad/index.d.ts: *new* @@ -378,18 +371,21 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *changed* version: Text-1 - containingProjects: 1 + containingProjects: 2 *changed* /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts + /home/src/workspaces/project/tsconfig.json *new* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *changed* version: Text-1 - containingProjects: 1 + containingProjects: 2 *changed* /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts + /home/src/workspaces/project/tsconfig.json *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *changed* version: Text-1 - containingProjects: 1 + containingProjects: 2 *changed* /dev/null/inferredProject1* + /home/src/workspaces/project/tsconfig.json *new* /home/src/workspaces/project/index.mts (Open) *new* version: SVC-1-0 containingProjects: 1 @@ -405,7 +401,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.mts", @@ -445,7 +441,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "findSourceDefinition", - "request_seq": 2, + "request_seq": 3, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -474,14 +470,21 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} -/home/src/tslibs/TS/Lib/lib.es2022.full.d.ts: +/home/src/tslibs/TS/Lib/lib.es5.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} +/home/src/tslibs/TS/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} +/home/src/tslibs/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} /home/src/workspaces/project/node_modules/jsconfig.json: {"pollingInterval":2000} /home/src/workspaces/project/node_modules/left-pad/index.d.ts: @@ -543,18 +546,21 @@ Projects:: noDtsResolutionProject: /dev/null/auxiliaryProject1* *changed* ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts - version: Text-1 - containingProjects: 1 - /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 /dev/null/inferredProject1* + /home/src/workspaces/project/tsconfig.json /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 /dev/null/inferredProject1* + /home/src/workspaces/project/tsconfig.json +/home/src/tslibs/TS/Lib/lib.es5.d.ts + version: Text-1 + containingProjects: 2 + /dev/null/inferredProject1* + /home/src/workspaces/project/tsconfig.json /home/src/workspaces/project/index.mts (Open) *changed* version: SVC-1-0 containingProjects: 2 *changed* diff --git a/tests/baselines/reference/tsserver/fourslashServer/goToSource14_unresolvedRequireDestructuring.js b/tests/baselines/reference/tsserver/fourslashServer/goToSource14_unresolvedRequireDestructuring.js index 31239bef4df9e..c842b54faf9ed 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/goToSource14_unresolvedRequireDestructuring.js +++ b/tests/baselines/reference/tsserver/fourslashServer/goToSource14_unresolvedRequireDestructuring.js @@ -1,23 +1,39 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "target": "es5", + "newLine": "crlf", + "lib": [ + "es5" + ], + "allowJs": true, + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/home/src/workspaces/project/index.js] const { blah } = require("unresolved"); Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.js" @@ -29,7 +45,7 @@ Info seq [hh:mm:ss:mss] Creating InferredProject: /dev/null/inferredProject1*, Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces 0 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations @@ -47,18 +63,18 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/index.js SVC-1-0 "const { blah } = require(\"unresolved\");" - ../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' index.js Root file specified for compilation @@ -75,7 +91,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -83,12 +99,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* + {"pollingInterval":500} /home/src/workspaces/project/jsconfig.json: *new* {"pollingInterval":2000} /home/src/workspaces/project/tsconfig.json: *new* @@ -117,15 +133,15 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* @@ -136,7 +152,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.js", @@ -170,7 +186,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "findSourceDefinition", - "request_seq": 1, + "request_seq": 2, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -179,12 +195,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: + {"pollingInterval":500} /home/src/workspaces/project/jsconfig.json: {"pollingInterval":2000} /home/src/workspaces/project/tsconfig.json: @@ -221,15 +237,15 @@ Projects:: noDtsResolutionProject: /dev/null/auxiliaryProject1* *changed* ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* diff --git a/tests/baselines/reference/tsserver/fourslashServer/goToSource15_bundler.js b/tests/baselines/reference/tsserver/fourslashServer/goToSource15_bundler.js index e961d89e64e3b..9b638c2d661e7 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/goToSource15_bundler.js +++ b/tests/baselines/reference/tsserver/fourslashServer/goToSource15_bundler.js @@ -1,16 +1,33 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "module": "esnext", + "moduleResolution": "bundler", + "lib": [ + "es5" + ], + "target": "es5", + "newLine": "crlf", + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/home/src/workspaces/project/index.ts] import { useState } from 'react'; @@ -40,12 +57,12 @@ if (process.env.NODE_ENV === 'production') { { "name": "react", "version": "16.8.6", "main": "index.js" } //// [/home/src/workspaces/project/tsconfig.json] -{ "compilerOptions": { "module": "esnext", "moduleResolution": "bundler" } } +{ "compilerOptions": { "module": "esnext", "moduleResolution": "bundler", "lib": ["es5"] } } Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/home/src/workspaces/project/tsconfig.json" @@ -62,6 +79,9 @@ Info seq [hh:mm:ss:mss] Config: /home/src/workspaces/project/tsconfig.json : { "options": { "module": 99, "moduleResolution": 100, + "lib": [ + "lib.es5.d.ts" + ], "configFilePath": "/home/src/workspaces/project/tsconfig.json" } } @@ -79,7 +99,7 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspa Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project 1 undefined Config: /home/src/workspaces/project/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/index.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces 0 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Failed Lookup Locations @@ -98,18 +118,18 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/index.ts Text-1 "import { useState } from 'react';" - ../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' index.ts Matched by default include pattern '**/*' @@ -145,18 +165,18 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text - /home/src/workspaces/project/tsconfig.json SVC-1-0 "{ \"compilerOptions\": { \"module\": \"esnext\", \"moduleResolution\": \"bundler\" } }" + /home/src/workspaces/project/tsconfig.json SVC-1-0 "{ \"compilerOptions\": { \"module\": \"esnext\", \"moduleResolution\": \"bundler\", \"lib\": [\"es5\"] } }" - ../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' tsconfig.json Root file specified for compilation @@ -177,7 +197,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -185,12 +205,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* + {"pollingInterval":500} /home/src/workspaces/project/index.ts: *new* {"pollingInterval":500} /home/src/workspaces/project/jsconfig.json: *new* @@ -231,17 +251,17 @@ Projects:: noOpenRef: true ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -257,7 +277,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts" @@ -284,17 +304,17 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 1, + "request_seq": 2, "success": true } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: + {"pollingInterval":500} /home/src/workspaces/project/jsconfig.json: {"pollingInterval":2000} /home/src/workspaces/project/node_modules/react/package.json: @@ -337,17 +357,17 @@ Projects:: noOpenRef: false *changed* ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -364,7 +384,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -412,7 +432,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "findSourceDefinition", - "request_seq": 2, + "request_seq": 3, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -460,12 +480,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: + {"pollingInterval":500} /home/src/workspaces/project/jsconfig.json: {"pollingInterval":2000} /home/src/workspaces/project/node_modules/react/cjs/package.json: *new* @@ -520,17 +540,17 @@ Projects:: noDtsResolutionProject: /dev/null/auxiliaryProject1* *changed* ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json diff --git a/tests/baselines/reference/tsserver/fourslashServer/goToSource16_callbackParamDifferentFile.js b/tests/baselines/reference/tsserver/fourslashServer/goToSource16_callbackParamDifferentFile.js index 77e8741440fe8..2b9fc46469345 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/goToSource16_callbackParamDifferentFile.js +++ b/tests/baselines/reference/tsserver/fourslashServer/goToSource16_callbackParamDifferentFile.js @@ -1,16 +1,32 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "target": "es5", + "newLine": "crlf", + "lib": [ + "es5" + ], + "moduleResolution": "bundler", + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/home/src/workspaces/project/index.ts] import { command } from "yargs"; command("foo", yargs => { @@ -48,7 +64,7 @@ export function command(cmd, cb) { cb(Yargs) } Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/home/src/workspaces/project/node_modules/@types/yargs/package.json" @@ -73,7 +89,7 @@ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/p Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types/yargs 0 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types/yargs 0 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types/yargs/callback.d.ts 500 undefined WatchType: Closed Script info -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types/yargs/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots @@ -89,7 +105,7 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (6) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/node_modules/@types/yargs/package.json SVC-1-0 "{\n \"name\": \"@types/yargs\",\n \"version\": \"1.0.0\",\n \"types\": \"./index.d.ts\"\n}" @@ -97,12 +113,12 @@ Info seq [hh:mm:ss:mss] Files (6) /home/src/workspaces/project/node_modules/@types/yargs/index.d.ts Text-1 "import { Yargs } from \"./callback\";\nexport declare function command(command: string, cb: (yargs: Yargs) => void): void;" - ../../../../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../../../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../../../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../../../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../../../../tslibs/TS/Lib/lib.es5.d.ts' ../../../../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../../../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../../../../tslibs/TS/Lib/lib.es5.d.ts' package.json Root file specified for compilation callback.d.ts @@ -123,7 +139,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -131,12 +147,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* + {"pollingInterval":500} /home/src/workspaces/project/node_modules/@types/jsconfig.json: *new* {"pollingInterval":2000} /home/src/workspaces/project/node_modules/@types/tsconfig.json: *new* @@ -182,15 +198,15 @@ Projects:: projectProgramVersion: 1 ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* @@ -209,7 +225,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts" @@ -236,7 +252,7 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject2* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject2*' (Inferred) Info seq [hh:mm:ss:mss] Files (6) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/node_modules/@types/yargs/callback.d.ts Text-1 "export declare class Yargs { positional(): Yargs; }" @@ -244,12 +260,12 @@ Info seq [hh:mm:ss:mss] Files (6) /home/src/workspaces/project/index.ts SVC-1-0 "import { command } from \"yargs\";\ncommand(\"foo\", yargs => {\n yargs.positional();\n});" - ../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' node_modules/@types/yargs/callback.d.ts Imported via "./callback" from file 'node_modules/@types/yargs/index.d.ts' with packageId '@types/yargs/callback.d.ts@1.0.0' node_modules/@types/yargs/index.d.ts @@ -277,7 +293,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 1, + "request_seq": 2, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -285,12 +301,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: + {"pollingInterval":500} /home/src/workspaces/project/jsconfig.json: *new* {"pollingInterval":2000} /home/src/workspaces/project/node_modules/@types/jsconfig.json: @@ -354,17 +370,17 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *changed* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *changed* version: Text-1 containingProjects: 2 *changed* /dev/null/inferredProject1* /dev/null/inferredProject2* *new* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *changed* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *changed* version: Text-1 containingProjects: 2 *changed* /dev/null/inferredProject1* /dev/null/inferredProject2* *new* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *changed* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *changed* version: Text-1 containingProjects: 2 *changed* /dev/null/inferredProject1* @@ -390,7 +406,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -433,7 +449,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "findSourceDefinition", - "request_seq": 2, + "request_seq": 3, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -463,12 +479,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: + {"pollingInterval":500} /home/src/workspaces/project/jsconfig.json: {"pollingInterval":2000} /home/src/workspaces/project/node_modules/@types/jsconfig.json: @@ -548,17 +564,17 @@ Projects:: noDtsResolutionProject: /dev/null/auxiliaryProject1* *changed* ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /dev/null/inferredProject1* /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /dev/null/inferredProject1* /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /dev/null/inferredProject1* diff --git a/tests/baselines/reference/tsserver/fourslashServer/goToSource17_AddsFileToProject.js b/tests/baselines/reference/tsserver/fourslashServer/goToSource17_AddsFileToProject.js index 772ff2232cee2..bd94cf1d6afcc 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/goToSource17_AddsFileToProject.js +++ b/tests/baselines/reference/tsserver/fourslashServer/goToSource17_AddsFileToProject.js @@ -1,16 +1,32 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "target": "es5", + "newLine": "crlf", + "lib": [ + "es5" + ], + "moduleResolution": "bundler", + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/home/src/workspaces/project/index.ts] import { command } from "yargs"; command("foo", yargs => { @@ -48,7 +64,7 @@ export function command(cmd, cb) { cb(Yargs) } Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/home/src/workspaces/project/node_modules/@types/yargs/package.json" @@ -73,7 +89,7 @@ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/p Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types/yargs 0 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types/yargs 0 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types/yargs/callback.d.ts 500 undefined WatchType: Closed Script info -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types/yargs/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots @@ -89,7 +105,7 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (6) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/node_modules/@types/yargs/package.json SVC-1-0 "{\n \"name\": \"@types/yargs\",\n \"version\": \"1.0.0\",\n \"types\": \"./index.d.ts\"\n}" @@ -97,12 +113,12 @@ Info seq [hh:mm:ss:mss] Files (6) /home/src/workspaces/project/node_modules/@types/yargs/index.d.ts Text-1 "import { Yargs } from \"./callback\";\nexport declare function command(command: string, cb: (yargs: Yargs) => void): void;" - ../../../../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../../../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../../../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../../../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../../../../tslibs/TS/Lib/lib.es5.d.ts' ../../../../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../../../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../../../../tslibs/TS/Lib/lib.es5.d.ts' package.json Root file specified for compilation callback.d.ts @@ -123,7 +139,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -131,12 +147,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* + {"pollingInterval":500} /home/src/workspaces/project/node_modules/@types/jsconfig.json: *new* {"pollingInterval":2000} /home/src/workspaces/project/node_modules/@types/tsconfig.json: *new* @@ -182,15 +198,15 @@ Projects:: projectProgramVersion: 1 ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* @@ -209,7 +225,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts" @@ -236,7 +252,7 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject2* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject2*' (Inferred) Info seq [hh:mm:ss:mss] Files (6) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/node_modules/@types/yargs/callback.d.ts Text-1 "export declare class Yargs { positional(): Yargs; }" @@ -244,12 +260,12 @@ Info seq [hh:mm:ss:mss] Files (6) /home/src/workspaces/project/index.ts SVC-1-0 "import { command } from \"yargs\";\ncommand(\"foo\", yargs => {\n yargs.positional();\n});" - ../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' node_modules/@types/yargs/callback.d.ts Imported via "./callback" from file 'node_modules/@types/yargs/index.d.ts' with packageId '@types/yargs/callback.d.ts@1.0.0' node_modules/@types/yargs/index.d.ts @@ -277,7 +293,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 1, + "request_seq": 2, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -285,12 +301,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: + {"pollingInterval":500} /home/src/workspaces/project/jsconfig.json: *new* {"pollingInterval":2000} /home/src/workspaces/project/node_modules/@types/jsconfig.json: @@ -354,17 +370,17 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *changed* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *changed* version: Text-1 containingProjects: 2 *changed* /dev/null/inferredProject1* /dev/null/inferredProject2* *new* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *changed* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *changed* version: Text-1 containingProjects: 2 *changed* /dev/null/inferredProject1* /dev/null/inferredProject2* *new* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *changed* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *changed* version: Text-1 containingProjects: 2 *changed* /dev/null/inferredProject1* @@ -390,7 +406,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -447,7 +463,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "findSourceDefinition", - "request_seq": 2, + "request_seq": 3, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -477,12 +493,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: + {"pollingInterval":500} /home/src/workspaces/project/jsconfig.json: {"pollingInterval":2000} /home/src/workspaces/project/node_modules/@types/jsconfig.json: @@ -562,17 +578,17 @@ Projects:: noDtsResolutionProject: /dev/null/auxiliaryProject1* *changed* ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /dev/null/inferredProject1* /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /dev/null/inferredProject1* /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /dev/null/inferredProject1* diff --git a/tests/baselines/reference/tsserver/fourslashServer/goToSource18_reusedFromDifferentFolder.js b/tests/baselines/reference/tsserver/fourslashServer/goToSource18_reusedFromDifferentFolder.js index c3a618a230cbe..2795969c5065c 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/goToSource18_reusedFromDifferentFolder.js +++ b/tests/baselines/reference/tsserver/fourslashServer/goToSource18_reusedFromDifferentFolder.js @@ -1,16 +1,32 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "target": "es5", + "newLine": "crlf", + "lib": [ + "es5" + ], + "moduleResolution": "bundler", + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/home/src/workspaces/project/folder/random.ts] import { Yargs } from "yargs/callback"; @@ -52,7 +68,7 @@ command("foo", yargs => { Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/home/src/workspaces/project/node_modules/@types/yargs/package.json" @@ -77,7 +93,7 @@ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/p Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types/yargs 0 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types/yargs 0 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types/yargs/callback.d.ts 500 undefined WatchType: Closed Script info -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types/yargs/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots @@ -93,7 +109,7 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (6) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/node_modules/@types/yargs/package.json SVC-1-0 "{\n \"name\": \"@types/yargs\",\n \"version\": \"1.0.0\",\n \"types\": \"./index.d.ts\"\n}" @@ -101,12 +117,12 @@ Info seq [hh:mm:ss:mss] Files (6) /home/src/workspaces/project/node_modules/@types/yargs/index.d.ts Text-1 "import { Yargs } from \"./callback\";\nexport declare function command(command: string, cb: (yargs: Yargs) => void): void;" - ../../../../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../../../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../../../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../../../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../../../../tslibs/TS/Lib/lib.es5.d.ts' ../../../../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../../../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../../../../tslibs/TS/Lib/lib.es5.d.ts' package.json Root file specified for compilation callback.d.ts @@ -127,7 +143,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -135,12 +151,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* + {"pollingInterval":500} /home/src/workspaces/project/node_modules/@types/jsconfig.json: *new* {"pollingInterval":2000} /home/src/workspaces/project/node_modules/@types/tsconfig.json: *new* @@ -186,15 +202,15 @@ Projects:: projectProgramVersion: 1 ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* @@ -213,7 +229,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "file": "/home/src/workspaces/project/some/index.ts" @@ -253,7 +269,7 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject2* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject2*' (Inferred) Info seq [hh:mm:ss:mss] Files (7) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/node_modules/@types/yargs/callback.d.ts Text-1 "export declare class Yargs { positional(): Yargs; }" @@ -262,12 +278,12 @@ Info seq [hh:mm:ss:mss] Files (7) /home/src/workspaces/project/some/index.ts SVC-1-0 "import { random } from \"../folder/random\";\nimport { command } from \"yargs\";\ncommand(\"foo\", yargs => {\n yargs.positional();\n});" - ../../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../../tslibs/TS/Lib/lib.es5.d.ts' ../../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../../tslibs/TS/Lib/lib.es5.d.ts' ../node_modules/@types/yargs/callback.d.ts Imported via "yargs/callback" from file '../folder/random.ts' with packageId '@types/yargs/callback.d.ts@1.0.0' Imported via "./callback" from file '../node_modules/@types/yargs/index.d.ts' with packageId '@types/yargs/callback.d.ts@1.0.0' @@ -298,7 +314,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 1, + "request_seq": 2, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -306,12 +322,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: + {"pollingInterval":500} /home/src/workspaces/project/folder/random.ts: *new* {"pollingInterval":500} /home/src/workspaces/project/jsconfig.json: *new* @@ -391,17 +407,17 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *changed* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *changed* version: Text-1 containingProjects: 2 *changed* /dev/null/inferredProject1* /dev/null/inferredProject2* *new* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *changed* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *changed* version: Text-1 containingProjects: 2 *changed* /dev/null/inferredProject1* /dev/null/inferredProject2* *new* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *changed* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *changed* version: Text-1 containingProjects: 2 *changed* /dev/null/inferredProject1* @@ -431,7 +447,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "file": "/home/src/workspaces/project/some/index.ts", @@ -485,7 +501,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "findSourceDefinition", - "request_seq": 2, + "request_seq": 3, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -515,12 +531,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: + {"pollingInterval":500} /home/src/workspaces/project/folder/random.ts: {"pollingInterval":500} /home/src/workspaces/project/jsconfig.json: @@ -620,17 +636,17 @@ Projects:: noDtsResolutionProject: /dev/null/auxiliaryProject1* *changed* ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /dev/null/inferredProject1* /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /dev/null/inferredProject1* /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /dev/null/inferredProject1* diff --git a/tests/baselines/reference/tsserver/fourslashServer/goToSource1_localJsBesideDts.js b/tests/baselines/reference/tsserver/fourslashServer/goToSource1_localJsBesideDts.js index 94566e9457b07..2f68642628685 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/goToSource1_localJsBesideDts.js +++ b/tests/baselines/reference/tsserver/fourslashServer/goToSource1_localJsBesideDts.js @@ -1,16 +1,31 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "target": "es5", + "newLine": "crlf", + "lib": [ + "es5" + ], + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/home/src/workspaces/project/a.d.ts] export declare const a: string; @@ -24,7 +39,7 @@ a Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/home/src/workspaces/project/a.js" @@ -36,7 +51,7 @@ Info seq [hh:mm:ss:mss] Creating InferredProject: /dev/null/inferredProject1*, Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots @@ -46,18 +61,18 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/a.js SVC-1-0 "export const a = \"a\";" - ../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' a.js Root file specified for compilation @@ -74,7 +89,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -82,12 +97,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* + {"pollingInterval":500} /home/src/workspaces/project/jsconfig.json: *new* {"pollingInterval":2000} /home/src/workspaces/project/tsconfig.json: *new* @@ -106,15 +121,15 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* @@ -125,7 +140,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts" @@ -145,19 +160,19 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject2* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject2*' (Inferred) Info seq [hh:mm:ss:mss] Files (5) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/a.d.ts Text-1 "export declare const a: string;" /home/src/workspaces/project/index.ts SVC-1-0 "import { a } from \"./a\";\na" - ../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' a.d.ts Imported via "./a" from file 'index.ts' index.ts @@ -182,7 +197,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 1, + "request_seq": 2, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -190,12 +205,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: + {"pollingInterval":500} /home/src/workspaces/project/a.d.ts: *new* {"pollingInterval":500} /home/src/workspaces/project/jsconfig.json: @@ -226,17 +241,17 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *changed* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *changed* version: Text-1 containingProjects: 2 *changed* /dev/null/inferredProject1* /dev/null/inferredProject2* *new* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *changed* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *changed* version: Text-1 containingProjects: 2 *changed* /dev/null/inferredProject1* /dev/null/inferredProject2* *new* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *changed* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *changed* version: Text-1 containingProjects: 2 *changed* /dev/null/inferredProject1* @@ -256,7 +271,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -287,7 +302,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "findSourceDefinition", - "request_seq": 2, + "request_seq": 3, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -316,12 +331,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: + {"pollingInterval":500} /home/src/workspaces/project/a.d.ts: {"pollingInterval":500} /home/src/workspaces/project/jsconfig.json: @@ -359,17 +374,17 @@ Projects:: noDtsResolutionProject: /dev/null/auxiliaryProject1* *changed* ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /dev/null/inferredProject1* /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /dev/null/inferredProject1* /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /dev/null/inferredProject1* @@ -392,7 +407,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 3, + "seq": 4, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -406,7 +421,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "findSourceDefinition", - "request_seq": 3, + "request_seq": 4, "success": true, "body": [ { diff --git a/tests/baselines/reference/tsserver/fourslashServer/goToSource2_nodeModulesWithTypes.js b/tests/baselines/reference/tsserver/fourslashServer/goToSource2_nodeModulesWithTypes.js index d6dcd6be1bed8..8a9c4bc7d285c 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/goToSource2_nodeModulesWithTypes.js +++ b/tests/baselines/reference/tsserver/fourslashServer/goToSource2_nodeModulesWithTypes.js @@ -1,16 +1,32 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "target": "es5", + "newLine": "crlf", + "lib": [ + "es5" + ], + "moduleResolution": "bundler", + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/home/src/workspaces/project/index.ts] import { a } from "foo"; a @@ -27,7 +43,7 @@ export declare const a: string; Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/home/src/workspaces/project/node_modules/foo/package.json" @@ -41,7 +57,7 @@ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/p Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/foo/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots @@ -55,18 +71,18 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/node_modules/foo/package.json SVC-1-0 "{ \"name\": \"foo\", \"version\": \"1.0.0\", \"main\": \"./lib/main.js\", \"types\": \"./types/main.d.ts\" }" - ../../../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../../../tslibs/TS/Lib/lib.es5.d.ts' ../../../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../../../tslibs/TS/Lib/lib.es5.d.ts' package.json Root file specified for compilation @@ -83,7 +99,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -91,12 +107,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* + {"pollingInterval":500} /home/src/workspaces/project/node_modules/foo/jsconfig.json: *new* {"pollingInterval":2000} /home/src/workspaces/project/node_modules/foo/tsconfig.json: *new* @@ -122,15 +138,15 @@ Projects:: projectProgramVersion: 1 ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* @@ -141,7 +157,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts" @@ -169,19 +185,19 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject2* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject2*' (Inferred) Info seq [hh:mm:ss:mss] Files (5) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/node_modules/foo/types/main.d.ts Text-1 "export declare const a: string;" /home/src/workspaces/project/index.ts SVC-1-0 "import { a } from \"foo\";\na" - ../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' node_modules/foo/types/main.d.ts Imported via "foo" from file 'index.ts' with packageId 'foo/types/main.d.ts@1.0.0' index.ts @@ -206,7 +222,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 1, + "request_seq": 2, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -214,12 +230,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: + {"pollingInterval":500} /home/src/workspaces/project/jsconfig.json: *new* {"pollingInterval":2000} /home/src/workspaces/project/node_modules/foo/jsconfig.json: @@ -269,17 +285,17 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *changed* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *changed* version: Text-1 containingProjects: 2 *changed* /dev/null/inferredProject1* /dev/null/inferredProject2* *new* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *changed* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *changed* version: Text-1 containingProjects: 2 *changed* /dev/null/inferredProject1* /dev/null/inferredProject2* *new* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *changed* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *changed* version: Text-1 containingProjects: 2 *changed* /dev/null/inferredProject1* @@ -299,7 +315,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -339,7 +355,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "findSourceDefinition", - "request_seq": 2, + "request_seq": 3, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -368,12 +384,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: + {"pollingInterval":500} /home/src/workspaces/project/jsconfig.json: {"pollingInterval":2000} /home/src/workspaces/project/node_modules/foo/jsconfig.json: @@ -439,17 +455,17 @@ Projects:: noDtsResolutionProject: /dev/null/auxiliaryProject1* *changed* ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /dev/null/inferredProject1* /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /dev/null/inferredProject1* /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /dev/null/inferredProject1* diff --git a/tests/baselines/reference/tsserver/fourslashServer/goToSource3_nodeModulesAtTypes.js b/tests/baselines/reference/tsserver/fourslashServer/goToSource3_nodeModulesAtTypes.js index 2a98cead0cde4..6d54cf03585d2 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/goToSource3_nodeModulesAtTypes.js +++ b/tests/baselines/reference/tsserver/fourslashServer/goToSource3_nodeModulesAtTypes.js @@ -1,16 +1,32 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "target": "es5", + "newLine": "crlf", + "lib": [ + "es5" + ], + "moduleResolution": "bundler", + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/home/src/workspaces/project/index.ts] import { a } from "foo"; a @@ -30,7 +46,7 @@ export const a = "a"; Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/home/src/workspaces/project/node_modules/foo/package.json" @@ -50,7 +66,7 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspa Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types/foo/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types/foo/index.d.ts 500 undefined WatchType: Closed Script info -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/foo/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots @@ -64,19 +80,19 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (5) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/node_modules/foo/package.json SVC-1-0 "{ \"name\": \"foo\", \"version\": \"1.0.0\", \"main\": \"./lib/main.js\" }" /home/src/workspaces/project/node_modules/@types/foo/index.d.ts Text-1 "export declare const a: string;" - ../../../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../../../tslibs/TS/Lib/lib.es5.d.ts' ../../../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../../../tslibs/TS/Lib/lib.es5.d.ts' package.json Root file specified for compilation ../@types/foo/index.d.ts @@ -95,7 +111,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -103,12 +119,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* + {"pollingInterval":500} /home/src/workspaces/project/node_modules/@types/foo/index.d.ts: *new* {"pollingInterval":500} /home/src/workspaces/project/node_modules/@types/foo/package.json: *new* @@ -142,15 +158,15 @@ Projects:: projectProgramVersion: 1 ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* @@ -165,7 +181,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts" @@ -192,19 +208,19 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject2* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject2*' (Inferred) Info seq [hh:mm:ss:mss] Files (5) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/node_modules/@types/foo/index.d.ts Text-1 "export declare const a: string;" /home/src/workspaces/project/index.ts SVC-1-0 "import { a } from \"foo\";\na" - ../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' node_modules/@types/foo/index.d.ts Imported via "foo" from file 'index.ts' with packageId '@types/foo/index.d.ts@1.0.0' Entry point for implicit type library 'foo' with packageId '@types/foo/index.d.ts@1.0.0' @@ -230,7 +246,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 1, + "request_seq": 2, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -238,12 +254,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: + {"pollingInterval":500} /home/src/workspaces/project/jsconfig.json: *new* {"pollingInterval":2000} /home/src/workspaces/project/node_modules/@types/foo/index.d.ts: @@ -297,17 +313,17 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *changed* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *changed* version: Text-1 containingProjects: 2 *changed* /dev/null/inferredProject1* /dev/null/inferredProject2* *new* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *changed* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *changed* version: Text-1 containingProjects: 2 *changed* /dev/null/inferredProject1* /dev/null/inferredProject2* *new* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *changed* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *changed* version: Text-1 containingProjects: 2 *changed* /dev/null/inferredProject1* @@ -328,7 +344,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -368,7 +384,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "findSourceDefinition", - "request_seq": 2, + "request_seq": 3, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -397,12 +413,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: + {"pollingInterval":500} /home/src/workspaces/project/jsconfig.json: {"pollingInterval":2000} /home/src/workspaces/project/node_modules/@types/foo/index.d.ts: @@ -472,17 +488,17 @@ Projects:: noDtsResolutionProject: /dev/null/auxiliaryProject1* *changed* ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /dev/null/inferredProject1* /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /dev/null/inferredProject1* /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /dev/null/inferredProject1* diff --git a/tests/baselines/reference/tsserver/fourslashServer/goToSource5_sameAsGoToDef1.js b/tests/baselines/reference/tsserver/fourslashServer/goToSource5_sameAsGoToDef1.js index fdd2e6f6d3176..a1fab733071b0 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/goToSource5_sameAsGoToDef1.js +++ b/tests/baselines/reference/tsserver/fourslashServer/goToSource5_sameAsGoToDef1.js @@ -1,16 +1,31 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "target": "es5", + "newLine": "crlf", + "lib": [ + "es5" + ], + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/home/src/workspaces/project/a.d.ts] export declare const a: string; @@ -27,7 +42,7 @@ a Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/home/src/workspaces/project/a.ts" @@ -39,7 +54,7 @@ Info seq [hh:mm:ss:mss] Creating InferredProject: /dev/null/inferredProject1*, Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots @@ -49,18 +64,18 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/a.ts SVC-1-0 "export const a = 'a';" - ../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' a.ts Root file specified for compilation @@ -77,7 +92,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -85,12 +100,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* + {"pollingInterval":500} /home/src/workspaces/project/jsconfig.json: *new* {"pollingInterval":2000} /home/src/workspaces/project/tsconfig.json: *new* @@ -109,15 +124,15 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* @@ -128,7 +143,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "file": "/home/src/workspaces/project/b.ts" @@ -145,19 +160,19 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject2* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject2*' (Inferred) Info seq [hh:mm:ss:mss] Files (5) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/a.ts SVC-1-0 "export const a = 'a';" /home/src/workspaces/project/b.ts SVC-1-0 "import { a } from './a';\na" - ../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' a.ts Imported via './a' from file 'b.ts' b.ts @@ -167,18 +182,18 @@ Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] `remove Project:: Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts + /home/src/tslibs/TS/Lib/lib.es5.d.ts /home/src/tslibs/TS/Lib/lib.decorators.d.ts /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts /home/src/workspaces/project/a.ts - ../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' a.ts Root file specified for compilation @@ -201,7 +216,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 1, + "request_seq": 2, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -209,12 +224,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: + {"pollingInterval":500} /home/src/workspaces/project/jsconfig.json: {"pollingInterval":2000} /home/src/workspaces/project/tsconfig.json: @@ -246,17 +261,17 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *changed* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *changed* version: Text-1 containingProjects: 1 *changed* /dev/null/inferredProject2* *new* /dev/null/inferredProject1* *deleted* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *changed* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *changed* version: Text-1 containingProjects: 1 *changed* /dev/null/inferredProject2* *new* /dev/null/inferredProject1* *deleted* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *changed* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *changed* version: Text-1 containingProjects: 1 *changed* /dev/null/inferredProject2* *new* @@ -273,7 +288,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "file": "/home/src/workspaces/project/b.ts", @@ -287,7 +302,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "findSourceDefinition", - "request_seq": 2, + "request_seq": 3, "success": true, "body": [ { @@ -313,7 +328,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 3, + "seq": 4, "type": "request", "arguments": { "file": "/home/src/workspaces/project/b.ts", @@ -327,7 +342,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "definitionAndBoundSpan", - "request_seq": 3, + "request_seq": 4, "success": true, "body": { "definitions": [ diff --git a/tests/baselines/reference/tsserver/fourslashServer/goToSource6_sameAsGoToDef2.js b/tests/baselines/reference/tsserver/fourslashServer/goToSource6_sameAsGoToDef2.js index 387d155e16559..07a2d1183ab14 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/goToSource6_sameAsGoToDef2.js +++ b/tests/baselines/reference/tsserver/fourslashServer/goToSource6_sameAsGoToDef2.js @@ -1,16 +1,31 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "target": "es5", + "newLine": "crlf", + "lib": [ + "es5" + ], + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/home/src/workspaces/project/b.ts] import { a } from 'foo/a'; a @@ -34,7 +49,7 @@ export declare const a: string; Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/home/src/workspaces/project/node_modules/foo/package.json" @@ -48,7 +63,7 @@ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/p Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/foo/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots @@ -62,18 +77,18 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/node_modules/foo/package.json SVC-1-0 "{ \"name\": \"foo\", \"version\": \"1.2.3\", \"typesVersions\": { \"*\": { \"*\": [\"./types/*\"] } } }" - ../../../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../../../tslibs/TS/Lib/lib.es5.d.ts' ../../../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../../../tslibs/TS/Lib/lib.es5.d.ts' package.json Root file specified for compilation @@ -90,7 +105,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -98,12 +113,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* + {"pollingInterval":500} /home/src/workspaces/project/node_modules/foo/jsconfig.json: *new* {"pollingInterval":2000} /home/src/workspaces/project/node_modules/foo/tsconfig.json: *new* @@ -129,15 +144,15 @@ Projects:: projectProgramVersion: 1 ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* @@ -148,7 +163,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "file": "/home/src/workspaces/project/b.ts" @@ -176,19 +191,19 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject2* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject2*' (Inferred) Info seq [hh:mm:ss:mss] Files (5) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/node_modules/foo/types/a.d.ts Text-1 "export declare const a: string;\n//# sourceMappingURL=a.d.ts.map" /home/src/workspaces/project/b.ts SVC-1-0 "import { a } from 'foo/a';\na" - ../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' node_modules/foo/types/a.d.ts Imported via 'foo/a' from file 'b.ts' with packageId 'foo/types/a.d.ts@1.2.3' b.ts @@ -213,7 +228,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 1, + "request_seq": 2, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -221,12 +236,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: + {"pollingInterval":500} /home/src/workspaces/project/jsconfig.json: *new* {"pollingInterval":2000} /home/src/workspaces/project/node_modules/foo/jsconfig.json: @@ -276,17 +291,17 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *changed* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *changed* version: Text-1 containingProjects: 2 *changed* /dev/null/inferredProject1* /dev/null/inferredProject2* *new* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *changed* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *changed* version: Text-1 containingProjects: 2 *changed* /dev/null/inferredProject1* /dev/null/inferredProject2* *new* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *changed* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *changed* version: Text-1 containingProjects: 2 *changed* /dev/null/inferredProject1* @@ -306,7 +321,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "file": "/home/src/workspaces/project/b.ts", @@ -322,7 +337,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "findSourceDefinition", - "request_seq": 2, + "request_seq": 3, "success": true, "body": [ { @@ -348,12 +363,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: + {"pollingInterval":500} /home/src/workspaces/project/jsconfig.json: {"pollingInterval":2000} /home/src/workspaces/project/node_modules/foo/jsconfig.json: @@ -409,17 +424,17 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /dev/null/inferredProject1* /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /dev/null/inferredProject1* /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /dev/null/inferredProject1* @@ -453,7 +468,7 @@ DocumentPositionMapper1 *new* Info seq [hh:mm:ss:mss] request: { - "seq": 3, + "seq": 4, "type": "request", "arguments": { "file": "/home/src/workspaces/project/b.ts", @@ -467,7 +482,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "definitionAndBoundSpan", - "request_seq": 3, + "request_seq": 4, "success": true, "body": { "definitions": [ diff --git a/tests/baselines/reference/tsserver/fourslashServer/goToSource7_conditionallyMinified.js b/tests/baselines/reference/tsserver/fourslashServer/goToSource7_conditionallyMinified.js index 007d17147f60e..d0f2c8155ef5a 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/goToSource7_conditionallyMinified.js +++ b/tests/baselines/reference/tsserver/fourslashServer/goToSource7_conditionallyMinified.js @@ -1,16 +1,32 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "target": "es5", + "newLine": "crlf", + "lib": [ + "es5" + ], + "moduleResolution": "bundler", + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/home/src/workspaces/project/index.ts] import { useState } from 'react'; @@ -42,7 +58,7 @@ if (process.env.NODE_ENV === 'production') { Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/home/src/workspaces/project/node_modules/react/package.json" @@ -56,7 +72,7 @@ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/p Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/react/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots @@ -70,18 +86,18 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/node_modules/react/package.json SVC-1-0 "{ \"name\": \"react\", \"version\": \"16.8.6\", \"main\": \"index.js\" }" - ../../../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../../../tslibs/TS/Lib/lib.es5.d.ts' ../../../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../../../tslibs/TS/Lib/lib.es5.d.ts' package.json Root file specified for compilation @@ -98,7 +114,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -106,12 +122,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* + {"pollingInterval":500} /home/src/workspaces/project/node_modules/jsconfig.json: *new* {"pollingInterval":2000} /home/src/workspaces/project/node_modules/react/jsconfig.json: *new* @@ -137,15 +153,15 @@ Projects:: projectProgramVersion: 1 ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* @@ -156,7 +172,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts" @@ -184,18 +200,18 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject2* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject2*' (Inferred) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/index.ts SVC-1-0 "import { useState } from 'react';" - ../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' index.ts Root file specified for compilation @@ -218,7 +234,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 1, + "request_seq": 2, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -226,12 +242,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: + {"pollingInterval":500} /home/src/workspaces/project/jsconfig.json: *new* {"pollingInterval":2000} /home/src/workspaces/project/node_modules/jsconfig.json: @@ -279,17 +295,17 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *changed* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *changed* version: Text-1 containingProjects: 2 *changed* /dev/null/inferredProject1* /dev/null/inferredProject2* *new* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *changed* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *changed* version: Text-1 containingProjects: 2 *changed* /dev/null/inferredProject1* /dev/null/inferredProject2* *new* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *changed* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *changed* version: Text-1 containingProjects: 2 *changed* /dev/null/inferredProject1* @@ -305,7 +321,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -353,7 +369,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "findSourceDefinition", - "request_seq": 2, + "request_seq": 3, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -401,12 +417,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: + {"pollingInterval":500} /home/src/workspaces/project/jsconfig.json: {"pollingInterval":2000} /home/src/workspaces/project/node_modules/jsconfig.json: @@ -471,17 +487,17 @@ Projects:: noDtsResolutionProject: /dev/null/auxiliaryProject1* *changed* ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /dev/null/inferredProject1* /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /dev/null/inferredProject1* /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /dev/null/inferredProject1* diff --git a/tests/baselines/reference/tsserver/fourslashServer/goToSource8_mapFromAtTypes.js b/tests/baselines/reference/tsserver/fourslashServer/goToSource8_mapFromAtTypes.js index 598a8dfdc3b43..360cc189b3369 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/goToSource8_mapFromAtTypes.js +++ b/tests/baselines/reference/tsserver/fourslashServer/goToSource8_mapFromAtTypes.js @@ -1,16 +1,32 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "target": "es5", + "newLine": "crlf", + "lib": [ + "es5" + ], + "moduleResolution": "bundler", + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/home/src/workspaces/project/index.ts] import { add } from 'lodash'; @@ -86,7 +102,7 @@ declare namespace _ { Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/home/src/workspaces/project/node_modules/lodash/package.json" @@ -107,7 +123,7 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types/lodash/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types/lodash/index.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types/lodash/common/math.d.ts 500 undefined WatchType: Closed Script info -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types/lodash/common/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution @@ -122,7 +138,7 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (6) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/node_modules/lodash/package.json SVC-1-0 "{ \"name\": \"lodash\", \"version\": \"4.17.15\", \"main\": \"./lodash.js\" }" @@ -130,12 +146,12 @@ Info seq [hh:mm:ss:mss] Files (6) /home/src/workspaces/project/node_modules/@types/lodash/index.d.ts Text-1 "/// \nexport = _;\nexport as namespace _;\ndeclare const _: _.LoDashStatic;\ndeclare namespace _ {\n interface LoDashStatic {}\n}" - ../../../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../../../tslibs/TS/Lib/lib.es5.d.ts' ../../../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../../../tslibs/TS/Lib/lib.es5.d.ts' package.json Root file specified for compilation ../@types/lodash/common/math.d.ts @@ -157,7 +173,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -165,12 +181,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* + {"pollingInterval":500} /home/src/workspaces/project/node_modules/@types/lodash/common/math.d.ts: *new* {"pollingInterval":500} /home/src/workspaces/project/node_modules/@types/lodash/common/package.json: *new* @@ -208,15 +224,15 @@ Projects:: projectProgramVersion: 1 ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* @@ -235,7 +251,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts" @@ -263,7 +279,7 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject2* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject2*' (Inferred) Info seq [hh:mm:ss:mss] Files (6) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/node_modules/@types/lodash/common/math.d.ts Text-1 "import _ = require(\"../index\");\ndeclare module \"../index\" {\n interface LoDashStatic {\n add(augend: number, addend: number): number;\n }\n}" @@ -271,12 +287,12 @@ Info seq [hh:mm:ss:mss] Files (6) /home/src/workspaces/project/index.ts SVC-1-0 "import { add } from 'lodash';" - ../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' node_modules/@types/lodash/common/math.d.ts Referenced via './common/math.d.ts' from file 'node_modules/@types/lodash/index.d.ts' node_modules/@types/lodash/index.d.ts @@ -305,7 +321,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 1, + "request_seq": 2, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -313,12 +329,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: + {"pollingInterval":500} /home/src/workspaces/project/jsconfig.json: *new* {"pollingInterval":2000} /home/src/workspaces/project/node_modules/@types/lodash/common/math.d.ts: @@ -377,17 +393,17 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *changed* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *changed* version: Text-1 containingProjects: 2 *changed* /dev/null/inferredProject1* /dev/null/inferredProject2* *new* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *changed* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *changed* version: Text-1 containingProjects: 2 *changed* /dev/null/inferredProject1* /dev/null/inferredProject2* *new* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *changed* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *changed* version: Text-1 containingProjects: 2 *changed* /dev/null/inferredProject1* @@ -413,7 +429,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -452,7 +468,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "findSourceDefinition", - "request_seq": 2, + "request_seq": 3, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -502,12 +518,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: + {"pollingInterval":500} /home/src/workspaces/project/jsconfig.json: {"pollingInterval":2000} /home/src/workspaces/project/node_modules/@types/lodash/common/math.d.ts: @@ -580,17 +596,17 @@ Projects:: noDtsResolutionProject: /dev/null/auxiliaryProject1* *changed* ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /dev/null/inferredProject1* /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /dev/null/inferredProject1* /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /dev/null/inferredProject1* diff --git a/tests/baselines/reference/tsserver/fourslashServer/goToSource9_mapFromAtTypes2.js b/tests/baselines/reference/tsserver/fourslashServer/goToSource9_mapFromAtTypes2.js index bb0674bb82a50..179414be7308e 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/goToSource9_mapFromAtTypes2.js +++ b/tests/baselines/reference/tsserver/fourslashServer/goToSource9_mapFromAtTypes2.js @@ -1,16 +1,32 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "target": "es5", + "newLine": "crlf", + "lib": [ + "es5" + ], + "moduleResolution": "bundler", + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/home/src/workspaces/project/index.ts] import _, { foo } from 'lodash'; _.add @@ -87,7 +103,7 @@ declare namespace _ { Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/home/src/workspaces/project/node_modules/lodash/package.json" @@ -108,7 +124,7 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types/lodash/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types/lodash/index.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types/lodash/common/math.d.ts 500 undefined WatchType: Closed Script info -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types/lodash/common/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution @@ -123,7 +139,7 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (6) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/node_modules/lodash/package.json SVC-1-0 "{ \"name\": \"lodash\", \"version\": \"4.17.15\", \"main\": \"./lodash.js\" }" @@ -131,12 +147,12 @@ Info seq [hh:mm:ss:mss] Files (6) /home/src/workspaces/project/node_modules/@types/lodash/index.d.ts Text-1 "/// \nexport = _;\nexport as namespace _;\ndeclare const _: _.LoDashStatic;\ndeclare namespace _ {\n interface LoDashStatic {}\n}" - ../../../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../../../tslibs/TS/Lib/lib.es5.d.ts' ../../../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../../../tslibs/TS/Lib/lib.es5.d.ts' package.json Root file specified for compilation ../@types/lodash/common/math.d.ts @@ -158,7 +174,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -166,12 +182,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* + {"pollingInterval":500} /home/src/workspaces/project/node_modules/@types/lodash/common/math.d.ts: *new* {"pollingInterval":500} /home/src/workspaces/project/node_modules/@types/lodash/common/package.json: *new* @@ -209,15 +225,15 @@ Projects:: projectProgramVersion: 1 ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* @@ -236,7 +252,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts" @@ -264,7 +280,7 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject2* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject2*' (Inferred) Info seq [hh:mm:ss:mss] Files (6) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/node_modules/@types/lodash/common/math.d.ts Text-1 "import _ = require(\"../index\");\ndeclare module \"../index\" {\n interface LoDashStatic {\n add(augend: number, addend: number): number;\n }\n}" @@ -272,12 +288,12 @@ Info seq [hh:mm:ss:mss] Files (6) /home/src/workspaces/project/index.ts SVC-1-0 "import _, { foo } from 'lodash';\n_.add" - ../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' node_modules/@types/lodash/common/math.d.ts Referenced via './common/math.d.ts' from file 'node_modules/@types/lodash/index.d.ts' node_modules/@types/lodash/index.d.ts @@ -306,7 +322,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 1, + "request_seq": 2, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -314,12 +330,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: + {"pollingInterval":500} /home/src/workspaces/project/jsconfig.json: *new* {"pollingInterval":2000} /home/src/workspaces/project/node_modules/@types/lodash/common/math.d.ts: @@ -378,17 +394,17 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *changed* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *changed* version: Text-1 containingProjects: 2 *changed* /dev/null/inferredProject1* /dev/null/inferredProject2* *new* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *changed* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *changed* version: Text-1 containingProjects: 2 *changed* /dev/null/inferredProject1* /dev/null/inferredProject2* *new* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *changed* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *changed* version: Text-1 containingProjects: 2 *changed* /dev/null/inferredProject1* @@ -414,7 +430,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -453,7 +469,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "findSourceDefinition", - "request_seq": 2, + "request_seq": 3, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -475,12 +491,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: + {"pollingInterval":500} /home/src/workspaces/project/jsconfig.json: {"pollingInterval":2000} /home/src/workspaces/project/node_modules/@types/lodash/common/math.d.ts: @@ -554,17 +570,17 @@ Projects:: noDtsResolutionProject: /dev/null/auxiliaryProject1* *changed* ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /dev/null/inferredProject1* /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /dev/null/inferredProject1* /dev/null/inferredProject2* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /dev/null/inferredProject1* @@ -597,7 +613,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 3, + "seq": 4, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -611,7 +627,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "findSourceDefinition", - "request_seq": 3, + "request_seq": 4, "success": true, "body": [ { @@ -630,7 +646,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 4, + "seq": 5, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -644,7 +660,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "findSourceDefinition", - "request_seq": 4, + "request_seq": 5, "success": true, "body": [ { diff --git a/tests/baselines/reference/tsserver/fourslashServer/implementation01.js b/tests/baselines/reference/tsserver/fourslashServer/implementation01.js index 7eb74f1394a0c..4fdf4c33a7a60 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/implementation01.js +++ b/tests/baselines/reference/tsserver/fourslashServer/implementation01.js @@ -1,16 +1,31 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "target": "es5", + "newLine": "crlf", + "lib": [ + "es5" + ], + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/tests/cases/fourslash/server/implementation01.ts] interface Foo {} class Bar implements Foo {} @@ -18,7 +33,7 @@ class Bar implements Foo {} Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/implementation01.ts" @@ -30,7 +45,7 @@ Info seq [hh:mm:ss:mss] Creating InferredProject: /dev/null/inferredProject1*, Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots @@ -40,18 +55,18 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /te Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /tests/cases/fourslash/server/implementation01.ts SVC-1-0 "interface Foo {}\nclass Bar implements Foo {}" - ../../../../home/src/tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../../../home/src/tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../../../home/src/tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' ../../../../home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../../../home/src/tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' implementation01.ts Root file specified for compilation @@ -68,7 +83,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -76,12 +91,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* + {"pollingInterval":500} /tests/cases/fourslash/server/jsconfig.json: *new* {"pollingInterval":2000} /tests/cases/fourslash/server/tsconfig.json: *new* @@ -100,15 +115,15 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* @@ -119,7 +134,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/implementation01.ts", @@ -133,7 +148,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "implementation", - "request_seq": 1, + "request_seq": 2, "success": true, "body": [ { diff --git a/tests/baselines/reference/tsserver/fourslashServer/impliedNodeFormat.js b/tests/baselines/reference/tsserver/fourslashServer/impliedNodeFormat.js index e6a9699da40fb..39c43694f0733 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/impliedNodeFormat.js +++ b/tests/baselines/reference/tsserver/fourslashServer/impliedNodeFormat.js @@ -1,16 +1,32 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "module": "nodenext", + "lib": [ + "es5" + ], + "target": "es5", + "newLine": "crlf", + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/home/src/workspaces/project/index.ts] import {} from "foo"; @@ -21,12 +37,12 @@ export {}; { "name": "foo", "type": "module", "exports": { ".": "./main.js" } } //// [/home/src/workspaces/project/tsconfig.json] -{ "compilerOptions": { "module": "nodenext" } } +{ "compilerOptions": { "module": "nodenext", "lib": ["es5"] } } Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/home/src/workspaces/project/tsconfig.json" @@ -43,6 +59,9 @@ Info seq [hh:mm:ss:mss] Config: /home/src/workspaces/project/tsconfig.json : { ], "options": { "module": 199, + "lib": [ + "lib.es5.d.ts" + ], "configFilePath": "/home/src/workspaces/project/tsconfig.json" } } @@ -61,19 +80,33 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/index.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/main.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.esnext.full.d.ts 500 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Missing file +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) -Info seq [hh:mm:ss:mss] Files (2) +Info seq [hh:mm:ss:mss] Files (5) + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text + /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/main.ts Text-1 "export {};" /home/src/workspaces/project/index.ts Text-1 "import {} from \"foo\";" + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions + ../../tslibs/TS/Lib/lib.decorators.d.ts + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' + ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' main.ts Imported via "foo" from file 'index.ts' Matched by default include pattern '**/*' @@ -100,62 +133,16 @@ Info seq [hh:mm:ss:mss] event: "body": { "triggerFile": "/home/src/workspaces/project/tsconfig.json", "configFile": "/home/src/workspaces/project/tsconfig.json", - "diagnostics": [ - { - "text": "File '/home/src/tslibs/TS/Lib/lib.esnext.full.d.ts' not found.\n The file is in the program because:\n Default library for target 'esnext'", - "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" - } - ] + "diagnostics": [] } } Info seq [hh:mm:ss:mss] getConfigFileNameForFile:: File: /home/src/workspaces/project/tsconfig.json ProjectRootPath: undefined:: Result: undefined Info seq [hh:mm:ss:mss] Creating InferredProject: /dev/null/inferredProject1*, currentDirectory: /home/src/workspaces/project Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots @@ -163,25 +150,25 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text - /home/src/workspaces/project/tsconfig.json SVC-1-0 "{ \"compilerOptions\": { \"module\": \"nodenext\" } }" + /home/src/workspaces/project/tsconfig.json SVC-1-0 "{ \"compilerOptions\": { \"module\": \"nodenext\", \"lib\": [\"es5\"] } }" - ../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' tsconfig.json Root file specified for compilation Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/package.json 250 undefined WatchType: package.json file Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) -Info seq [hh:mm:ss:mss] Files (2) +Info seq [hh:mm:ss:mss] Files (5) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) @@ -196,7 +183,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -204,14 +191,21 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} -/home/src/tslibs/TS/Lib/lib.esnext.full.d.ts: *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/package.json: *new* + {"pollingInterval":2000} + {"pollingInterval":2000} +/home/src/tslibs/TS/package.json: *new* + {"pollingInterval":2000} + {"pollingInterval":2000} +/home/src/tslibs/package.json: *new* + {"pollingInterval":2000} + {"pollingInterval":2000} /home/src/workspaces/project/index.ts: *new* {"pollingInterval":500} /home/src/workspaces/project/jsconfig.json: *new* @@ -245,17 +239,20 @@ Projects:: noOpenRef: true ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* - version: Text-1 - containingProjects: 1 - /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/workspaces/project/index.ts *new* version: Text-1 @@ -272,7 +269,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts" @@ -282,7 +279,7 @@ Info seq [hh:mm:ss:mss] request: Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /home/src/workspaces/project/index.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] getConfigFileNameForFile:: File: /home/src/workspaces/project/index.ts ProjectRootPath: undefined:: Result: /home/src/workspaces/project/tsconfig.json Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) -Info seq [hh:mm:ss:mss] Files (2) +Info seq [hh:mm:ss:mss] Files (5) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) @@ -299,19 +296,26 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 1, + "request_seq": 2, "success": true } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} -/home/src/tslibs/TS/Lib/lib.esnext.full.d.ts: +/home/src/tslibs/TS/Lib/lib.es5.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} +/home/src/tslibs/TS/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} +/home/src/tslibs/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} /home/src/workspaces/project/jsconfig.json: {"pollingInterval":2000} /home/src/workspaces/project/main.ts: @@ -347,17 +351,20 @@ Projects:: noOpenRef: false *changed* ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts - version: Text-1 - containingProjects: 1 - /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.es5.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/workspaces/project/index.ts (Open) *changed* open: true *changed* @@ -375,7 +382,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "file": "/home/src/workspaces/project/main.ts", @@ -388,13 +395,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "syntacticDiagnosticsSync", - "request_seq": 2, + "request_seq": 3, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 3, + "seq": 4, "type": "request", "arguments": { "file": "/home/src/workspaces/project/main.ts", @@ -407,13 +414,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "semanticDiagnosticsSync", - "request_seq": 3, + "request_seq": 4, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 4, + "seq": 5, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -426,13 +433,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "syntacticDiagnosticsSync", - "request_seq": 4, + "request_seq": 5, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 5, + "seq": 6, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -445,13 +452,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "semanticDiagnosticsSync", - "request_seq": 5, + "request_seq": 6, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 6, + "seq": 7, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -468,7 +475,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 6, + "request_seq": 7, "success": true } After Request @@ -483,17 +490,20 @@ Projects:: dirty: true *changed* ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts - version: Text-1 - containingProjects: 1 - /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.es5.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/workspaces/project/index.ts (Open) *changed* version: SVC-2-1 *changed* @@ -510,7 +520,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 7, + "seq": 8, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -526,7 +536,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "format", - "request_seq": 7, + "request_seq": 8, "success": true, "body": [ { @@ -544,7 +554,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 8, + "seq": 9, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -561,22 +571,25 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 8, + "request_seq": 9, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts - version: Text-1 - containingProjects: 1 - /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.es5.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/workspaces/project/index.ts (Open) *changed* version: SVC-2-2 *changed* @@ -593,7 +606,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 9, + "seq": 10, "type": "request", "arguments": { "file": "/home/src/workspaces/project/main.ts", @@ -604,7 +617,10 @@ Info seq [hh:mm:ss:mss] request: Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json projectStateVersion: 2 projectProgramVersion: 1 structureChanged: false structureIsReused:: Completely Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) -Info seq [hh:mm:ss:mss] Files (2) +Info seq [hh:mm:ss:mss] Files (5) + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text + /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/main.ts Text-1 "export {};" /home/src/workspaces/project/index.ts SVC-2-2 "\n\"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\"; import {} from \"foo\";" @@ -614,7 +630,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "syntacticDiagnosticsSync", - "request_seq": 9, + "request_seq": 10, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -634,7 +650,7 @@ Projects:: Info seq [hh:mm:ss:mss] request: { - "seq": 10, + "seq": 11, "type": "request", "arguments": { "file": "/home/src/workspaces/project/main.ts", @@ -647,13 +663,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "semanticDiagnosticsSync", - "request_seq": 10, + "request_seq": 11, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 11, + "seq": 12, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -666,13 +682,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "syntacticDiagnosticsSync", - "request_seq": 11, + "request_seq": 12, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 12, + "seq": 13, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -685,7 +701,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "semanticDiagnosticsSync", - "request_seq": 12, + "request_seq": 13, "success": true, "body": [] } \ No newline at end of file diff --git a/tests/baselines/reference/tsserver/fourslashServer/importCompletions_importsMap1.js b/tests/baselines/reference/tsserver/fourslashServer/importCompletions_importsMap1.js index 6862fbfa14ca2..09bc34f33c3bb 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/importCompletions_importsMap1.js +++ b/tests/baselines/reference/tsserver/fourslashServer/importCompletions_importsMap1.js @@ -1,16 +1,34 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "module": "nodenext", + "lib": [ + "es5" + ], + "rootDir": "/home/src/workspaces/project/src", + "outDir": "/home/src/workspaces/project/dist", + "target": "es5", + "newLine": "crlf", + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/home/src/workspaces/project/package.json] { "type": "module", @@ -35,6 +53,7 @@ export const isBrowser = false; { "compilerOptions": { "module": "nodenext", + "lib": ["es5"], "rootDir": "src", "outDir": "dist" } @@ -43,7 +62,7 @@ export const isBrowser = false; Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/home/src/workspaces/project/tsconfig.json" @@ -61,6 +80,9 @@ Info seq [hh:mm:ss:mss] Config: /home/src/workspaces/project/tsconfig.json : { ], "options": { "module": 199, + "lib": [ + "lib.es5.d.ts" + ], "rootDir": "/home/src/workspaces/project/src", "outDir": "/home/src/workspaces/project/dist", "configFilePath": "/home/src/workspaces/project/tsconfig.json" @@ -82,22 +104,36 @@ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/p Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/src/env/browser.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/src/env/node.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/src/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/src/env/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.esnext.full.d.ts 500 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Missing file Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) -Info seq [hh:mm:ss:mss] Files (3) +Info seq [hh:mm:ss:mss] Files (6) + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text + /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/src/a.ts Text-1 "import {} from \"\";" /home/src/workspaces/project/src/env/browser.ts Text-1 "export const isBrowser = true;" /home/src/workspaces/project/src/env/node.ts Text-1 "export const isBrowser = false;" + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions + ../../tslibs/TS/Lib/lib.decorators.d.ts + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' + ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' src/a.ts Matched by default include pattern '**/*' File is ECMAScript module because 'package.json' has field "type" with value "module" @@ -126,62 +162,16 @@ Info seq [hh:mm:ss:mss] event: "body": { "triggerFile": "/home/src/workspaces/project/tsconfig.json", "configFile": "/home/src/workspaces/project/tsconfig.json", - "diagnostics": [ - { - "text": "File '/home/src/tslibs/TS/Lib/lib.esnext.full.d.ts' not found.\n The file is in the program because:\n Default library for target 'esnext'", - "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" - } - ] + "diagnostics": [] } } Info seq [hh:mm:ss:mss] getConfigFileNameForFile:: File: /home/src/workspaces/project/tsconfig.json ProjectRootPath: undefined:: Result: undefined Info seq [hh:mm:ss:mss] Creating InferredProject: /dev/null/inferredProject1*, currentDirectory: /home/src/workspaces/project Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots @@ -189,25 +179,25 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text - /home/src/workspaces/project/tsconfig.json SVC-1-0 "{\n \"compilerOptions\": {\n \"module\": \"nodenext\",\n \"rootDir\": \"src\",\n \"outDir\": \"dist\"\n }\n}" + /home/src/workspaces/project/tsconfig.json SVC-1-0 "{\n \"compilerOptions\": {\n \"module\": \"nodenext\",\n \"lib\": [\"es5\"],\n \"rootDir\": \"src\",\n \"outDir\": \"dist\"\n }\n}" - ../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' tsconfig.json Root file specified for compilation Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/package.json 250 undefined WatchType: package.json file Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) -Info seq [hh:mm:ss:mss] Files (3) +Info seq [hh:mm:ss:mss] Files (6) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) @@ -222,7 +212,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -230,14 +220,21 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} -/home/src/tslibs/TS/Lib/lib.esnext.full.d.ts: *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/package.json: *new* + {"pollingInterval":2000} + {"pollingInterval":2000} +/home/src/tslibs/TS/package.json: *new* + {"pollingInterval":2000} + {"pollingInterval":2000} +/home/src/tslibs/package.json: *new* + {"pollingInterval":2000} + {"pollingInterval":2000} /home/src/workspaces/project/jsconfig.json: *new* {"pollingInterval":2000} /home/src/workspaces/project/package.json: *new* @@ -277,17 +274,20 @@ Projects:: noOpenRef: true ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* - version: Text-1 - containingProjects: 1 - /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/workspaces/project/src/a.ts *new* version: Text-1 @@ -308,7 +308,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/a.ts" @@ -318,7 +318,7 @@ Info seq [hh:mm:ss:mss] request: Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /home/src/workspaces/project/src/a.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] getConfigFileNameForFile:: File: /home/src/workspaces/project/src/a.ts ProjectRootPath: undefined:: Result: /home/src/workspaces/project/tsconfig.json Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) -Info seq [hh:mm:ss:mss] Files (3) +Info seq [hh:mm:ss:mss] Files (6) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) @@ -335,19 +335,26 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 1, + "request_seq": 2, "success": true } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} -/home/src/tslibs/TS/Lib/lib.esnext.full.d.ts: +/home/src/tslibs/TS/Lib/lib.es5.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} +/home/src/tslibs/TS/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} +/home/src/tslibs/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} /home/src/workspaces/project/jsconfig.json: {"pollingInterval":2000} /home/src/workspaces/project/package.json: @@ -389,17 +396,20 @@ Projects:: noOpenRef: false *changed* ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts - version: Text-1 - containingProjects: 1 - /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.es5.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/workspaces/project/src/a.ts (Open) *changed* open: true *changed* @@ -421,7 +431,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "preferences": {} @@ -433,12 +443,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 2, + "request_seq": 3, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 3, + "seq": 4, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/a.ts", @@ -452,7 +462,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "completionInfo", - "request_seq": 3, + "request_seq": 4, "success": true, "body": { "isGlobalCompletion": false, diff --git a/tests/baselines/reference/tsserver/fourslashServer/importCompletions_importsMap2.js b/tests/baselines/reference/tsserver/fourslashServer/importCompletions_importsMap2.js index ed20d2a33a2ca..60c599b2f326c 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/importCompletions_importsMap2.js +++ b/tests/baselines/reference/tsserver/fourslashServer/importCompletions_importsMap2.js @@ -1,16 +1,34 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "module": "nodenext", + "lib": [ + "es5" + ], + "rootDir": "/home/src/workspaces/project/src", + "outDir": "/home/src/workspaces/project/dist", + "target": "es5", + "newLine": "crlf", + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/home/src/workspaces/project/package.json] { "type": "module", @@ -30,6 +48,7 @@ export function something(name: string) {} { "compilerOptions": { "module": "nodenext", + "lib": ["es5"], "rootDir": "src", "outDir": "dist" } @@ -38,7 +57,7 @@ export function something(name: string) {} Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/home/src/workspaces/project/tsconfig.json" @@ -55,6 +74,9 @@ Info seq [hh:mm:ss:mss] Config: /home/src/workspaces/project/tsconfig.json : { ], "options": { "module": 199, + "lib": [ + "lib.es5.d.ts" + ], "rootDir": "/home/src/workspaces/project/src", "outDir": "/home/src/workspaces/project/dist", "configFilePath": "/home/src/workspaces/project/tsconfig.json" @@ -75,6 +97,9 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/src/a.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/src/internal/foo.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/src 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/src 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Failed Lookup Locations @@ -82,20 +107,31 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/node_modules 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/node_modules 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/src/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/src/internal/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.esnext.full.d.ts 500 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Missing file Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) -Info seq [hh:mm:ss:mss] Files (2) +Info seq [hh:mm:ss:mss] Files (5) + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text + /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/src/a.ts Text-1 "import {} from \"\";\nimport {} from \"#internal/\";" /home/src/workspaces/project/src/internal/foo.ts Text-1 "export function something(name: string) {}" + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions + ../../tslibs/TS/Lib/lib.decorators.d.ts + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' + ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' src/a.ts Matched by default include pattern '**/*' File is ECMAScript module because 'package.json' has field "type" with value "module" @@ -121,62 +157,16 @@ Info seq [hh:mm:ss:mss] event: "body": { "triggerFile": "/home/src/workspaces/project/tsconfig.json", "configFile": "/home/src/workspaces/project/tsconfig.json", - "diagnostics": [ - { - "text": "File '/home/src/tslibs/TS/Lib/lib.esnext.full.d.ts' not found.\n The file is in the program because:\n Default library for target 'esnext'", - "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" - } - ] + "diagnostics": [] } } Info seq [hh:mm:ss:mss] getConfigFileNameForFile:: File: /home/src/workspaces/project/tsconfig.json ProjectRootPath: undefined:: Result: undefined Info seq [hh:mm:ss:mss] Creating InferredProject: /dev/null/inferredProject1*, currentDirectory: /home/src/workspaces/project Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots @@ -184,25 +174,25 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text - /home/src/workspaces/project/tsconfig.json SVC-1-0 "{\n \"compilerOptions\": {\n \"module\": \"nodenext\",\n \"rootDir\": \"src\",\n \"outDir\": \"dist\"\n }\n}" + /home/src/workspaces/project/tsconfig.json SVC-1-0 "{\n \"compilerOptions\": {\n \"module\": \"nodenext\",\n \"lib\": [\"es5\"],\n \"rootDir\": \"src\",\n \"outDir\": \"dist\"\n }\n}" - ../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' tsconfig.json Root file specified for compilation Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/package.json 250 undefined WatchType: package.json file Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) -Info seq [hh:mm:ss:mss] Files (2) +Info seq [hh:mm:ss:mss] Files (5) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) @@ -217,7 +207,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -225,14 +215,21 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} -/home/src/tslibs/TS/Lib/lib.esnext.full.d.ts: *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/package.json: *new* + {"pollingInterval":2000} + {"pollingInterval":2000} +/home/src/tslibs/TS/package.json: *new* + {"pollingInterval":2000} + {"pollingInterval":2000} +/home/src/tslibs/package.json: *new* + {"pollingInterval":2000} + {"pollingInterval":2000} /home/src/workspaces/project/jsconfig.json: *new* {"pollingInterval":2000} /home/src/workspaces/project/package.json: *new* @@ -276,17 +273,20 @@ Projects:: noOpenRef: true ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* - version: Text-1 - containingProjects: 1 - /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/workspaces/project/src/a.ts *new* version: Text-1 @@ -303,7 +303,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/a.ts" @@ -313,7 +313,7 @@ Info seq [hh:mm:ss:mss] request: Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /home/src/workspaces/project/src/a.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] getConfigFileNameForFile:: File: /home/src/workspaces/project/src/a.ts ProjectRootPath: undefined:: Result: /home/src/workspaces/project/tsconfig.json Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) -Info seq [hh:mm:ss:mss] Files (2) +Info seq [hh:mm:ss:mss] Files (5) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) @@ -330,19 +330,26 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 1, + "request_seq": 2, "success": true } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} -/home/src/tslibs/TS/Lib/lib.esnext.full.d.ts: +/home/src/tslibs/TS/Lib/lib.es5.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} +/home/src/tslibs/TS/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} +/home/src/tslibs/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} /home/src/workspaces/project/jsconfig.json: {"pollingInterval":2000} /home/src/workspaces/project/package.json: @@ -388,17 +395,20 @@ Projects:: noOpenRef: false *changed* ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts - version: Text-1 - containingProjects: 1 - /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.es5.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/workspaces/project/src/a.ts (Open) *changed* open: true *changed* @@ -416,7 +426,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "preferences": {} @@ -428,12 +438,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 2, + "request_seq": 3, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 3, + "seq": 4, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/a.ts", @@ -447,7 +457,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "completionInfo", - "request_seq": 3, + "request_seq": 4, "success": true, "body": { "isGlobalCompletion": false, @@ -466,7 +476,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 4, + "seq": 5, "type": "request", "arguments": { "preferences": {} @@ -478,12 +488,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 4, + "request_seq": 5, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 5, + "seq": 6, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/a.ts", @@ -497,7 +507,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "completionInfo", - "request_seq": 5, + "request_seq": 6, "success": true, "body": { "isGlobalCompletion": false, diff --git a/tests/baselines/reference/tsserver/fourslashServer/importCompletions_importsMap3.js b/tests/baselines/reference/tsserver/fourslashServer/importCompletions_importsMap3.js index feb37e9e76127..3bcc9de631f0d 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/importCompletions_importsMap3.js +++ b/tests/baselines/reference/tsserver/fourslashServer/importCompletions_importsMap3.js @@ -1,16 +1,34 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "module": "nodenext", + "lib": [ + "es5" + ], + "rootDir": "/home/src/workspaces/project/src", + "outDir": "/home/src/workspaces/project/dist", + "target": "es5", + "newLine": "crlf", + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/home/src/workspaces/project/package.json] { "type": "module", @@ -30,6 +48,7 @@ export function something(name: string) {} { "compilerOptions": { "module": "nodenext", + "lib": ["es5"], "rootDir": "src", "outDir": "dist" } @@ -38,7 +57,7 @@ export function something(name: string) {} Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/home/src/workspaces/project/tsconfig.json" @@ -55,6 +74,9 @@ Info seq [hh:mm:ss:mss] Config: /home/src/workspaces/project/tsconfig.json : { ], "options": { "module": 199, + "lib": [ + "lib.es5.d.ts" + ], "rootDir": "/home/src/workspaces/project/src", "outDir": "/home/src/workspaces/project/dist", "configFilePath": "/home/src/workspaces/project/tsconfig.json" @@ -75,6 +97,9 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/src/a.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/src/internal/foo.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/src 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/src 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Failed Lookup Locations @@ -82,20 +107,31 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/node_modules 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/node_modules 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/src/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/src/internal/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.esnext.full.d.ts 500 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Missing file Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) -Info seq [hh:mm:ss:mss] Files (2) +Info seq [hh:mm:ss:mss] Files (5) + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text + /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/src/a.ts Text-1 "import {} from \"\";\nimport {} from \"#internal/\";" /home/src/workspaces/project/src/internal/foo.ts Text-1 "export function something(name: string) {}" + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions + ../../tslibs/TS/Lib/lib.decorators.d.ts + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' + ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' src/a.ts Matched by default include pattern '**/*' File is ECMAScript module because 'package.json' has field "type" with value "module" @@ -121,62 +157,16 @@ Info seq [hh:mm:ss:mss] event: "body": { "triggerFile": "/home/src/workspaces/project/tsconfig.json", "configFile": "/home/src/workspaces/project/tsconfig.json", - "diagnostics": [ - { - "text": "File '/home/src/tslibs/TS/Lib/lib.esnext.full.d.ts' not found.\n The file is in the program because:\n Default library for target 'esnext'", - "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" - } - ] + "diagnostics": [] } } Info seq [hh:mm:ss:mss] getConfigFileNameForFile:: File: /home/src/workspaces/project/tsconfig.json ProjectRootPath: undefined:: Result: undefined Info seq [hh:mm:ss:mss] Creating InferredProject: /dev/null/inferredProject1*, currentDirectory: /home/src/workspaces/project Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots @@ -184,25 +174,25 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text - /home/src/workspaces/project/tsconfig.json SVC-1-0 "{\n \"compilerOptions\": {\n \"module\": \"nodenext\",\n \"rootDir\": \"src\",\n \"outDir\": \"dist\"\n }\n}" + /home/src/workspaces/project/tsconfig.json SVC-1-0 "{\n \"compilerOptions\": {\n \"module\": \"nodenext\",\n \"lib\": [\"es5\"],\n \"rootDir\": \"src\",\n \"outDir\": \"dist\"\n }\n}" - ../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' tsconfig.json Root file specified for compilation Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/package.json 250 undefined WatchType: package.json file Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) -Info seq [hh:mm:ss:mss] Files (2) +Info seq [hh:mm:ss:mss] Files (5) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) @@ -217,7 +207,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -225,14 +215,21 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} -/home/src/tslibs/TS/Lib/lib.esnext.full.d.ts: *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/package.json: *new* + {"pollingInterval":2000} + {"pollingInterval":2000} +/home/src/tslibs/TS/package.json: *new* + {"pollingInterval":2000} + {"pollingInterval":2000} +/home/src/tslibs/package.json: *new* + {"pollingInterval":2000} + {"pollingInterval":2000} /home/src/workspaces/project/jsconfig.json: *new* {"pollingInterval":2000} /home/src/workspaces/project/package.json: *new* @@ -276,17 +273,20 @@ Projects:: noOpenRef: true ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* - version: Text-1 - containingProjects: 1 - /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/workspaces/project/src/a.ts *new* version: Text-1 @@ -303,7 +303,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/a.ts" @@ -313,7 +313,7 @@ Info seq [hh:mm:ss:mss] request: Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /home/src/workspaces/project/src/a.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] getConfigFileNameForFile:: File: /home/src/workspaces/project/src/a.ts ProjectRootPath: undefined:: Result: /home/src/workspaces/project/tsconfig.json Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) -Info seq [hh:mm:ss:mss] Files (2) +Info seq [hh:mm:ss:mss] Files (5) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) @@ -330,19 +330,26 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 1, + "request_seq": 2, "success": true } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} -/home/src/tslibs/TS/Lib/lib.esnext.full.d.ts: +/home/src/tslibs/TS/Lib/lib.es5.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} +/home/src/tslibs/TS/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} +/home/src/tslibs/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} /home/src/workspaces/project/jsconfig.json: {"pollingInterval":2000} /home/src/workspaces/project/package.json: @@ -388,17 +395,20 @@ Projects:: noOpenRef: false *changed* ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts - version: Text-1 - containingProjects: 1 - /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.es5.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/workspaces/project/src/a.ts (Open) *changed* open: true *changed* @@ -416,7 +426,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "preferences": {} @@ -428,12 +438,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 2, + "request_seq": 3, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 3, + "seq": 4, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/a.ts", @@ -447,7 +457,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "completionInfo", - "request_seq": 3, + "request_seq": 4, "success": true, "body": { "isGlobalCompletion": false, @@ -466,7 +476,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 4, + "seq": 5, "type": "request", "arguments": { "preferences": {} @@ -478,12 +488,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 4, + "request_seq": 5, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 5, + "seq": 6, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/a.ts", @@ -497,7 +507,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "completionInfo", - "request_seq": 5, + "request_seq": 6, "success": true, "body": { "isGlobalCompletion": false, diff --git a/tests/baselines/reference/tsserver/fourslashServer/importCompletions_importsMap4.js b/tests/baselines/reference/tsserver/fourslashServer/importCompletions_importsMap4.js index dce2fda4290f7..0895418841887 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/importCompletions_importsMap4.js +++ b/tests/baselines/reference/tsserver/fourslashServer/importCompletions_importsMap4.js @@ -1,16 +1,34 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "module": "nodenext", + "lib": [ + "es5" + ], + "rootDir": "/home/src/workspaces/project/src", + "outDir": "/home/src/workspaces/project/dist", + "target": "es5", + "newLine": "crlf", + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/home/src/workspaces/project/package.json] { "type": "module", @@ -32,6 +50,7 @@ export const isBrowser = true; { "compilerOptions": { "module": "nodenext", + "lib": ["es5"], "rootDir": "src", "outDir": "dist" } @@ -40,7 +59,7 @@ export const isBrowser = true; Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/home/src/workspaces/project/tsconfig.json" @@ -57,6 +76,9 @@ Info seq [hh:mm:ss:mss] Config: /home/src/workspaces/project/tsconfig.json : { ], "options": { "module": 199, + "lib": [ + "lib.es5.d.ts" + ], "rootDir": "/home/src/workspaces/project/src", "outDir": "/home/src/workspaces/project/dist", "configFilePath": "/home/src/workspaces/project/tsconfig.json" @@ -77,21 +99,35 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/src/a.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/src/env/browser.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/src/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/src/env/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.esnext.full.d.ts 500 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Missing file Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) -Info seq [hh:mm:ss:mss] Files (2) +Info seq [hh:mm:ss:mss] Files (5) + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text + /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/src/a.ts Text-1 "import {} from \"\";" /home/src/workspaces/project/src/env/browser.ts Text-1 "export const isBrowser = true;" + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions + ../../tslibs/TS/Lib/lib.decorators.d.ts + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' + ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' src/a.ts Matched by default include pattern '**/*' File is ECMAScript module because 'package.json' has field "type" with value "module" @@ -117,62 +153,16 @@ Info seq [hh:mm:ss:mss] event: "body": { "triggerFile": "/home/src/workspaces/project/tsconfig.json", "configFile": "/home/src/workspaces/project/tsconfig.json", - "diagnostics": [ - { - "text": "File '/home/src/tslibs/TS/Lib/lib.esnext.full.d.ts' not found.\n The file is in the program because:\n Default library for target 'esnext'", - "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" - } - ] + "diagnostics": [] } } Info seq [hh:mm:ss:mss] getConfigFileNameForFile:: File: /home/src/workspaces/project/tsconfig.json ProjectRootPath: undefined:: Result: undefined Info seq [hh:mm:ss:mss] Creating InferredProject: /dev/null/inferredProject1*, currentDirectory: /home/src/workspaces/project Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots @@ -180,25 +170,25 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text - /home/src/workspaces/project/tsconfig.json SVC-1-0 "{\n \"compilerOptions\": {\n \"module\": \"nodenext\",\n \"rootDir\": \"src\",\n \"outDir\": \"dist\"\n }\n}" + /home/src/workspaces/project/tsconfig.json SVC-1-0 "{\n \"compilerOptions\": {\n \"module\": \"nodenext\",\n \"lib\": [\"es5\"],\n \"rootDir\": \"src\",\n \"outDir\": \"dist\"\n }\n}" - ../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' tsconfig.json Root file specified for compilation Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/package.json 250 undefined WatchType: package.json file Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) -Info seq [hh:mm:ss:mss] Files (2) +Info seq [hh:mm:ss:mss] Files (5) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) @@ -213,7 +203,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -221,14 +211,21 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} -/home/src/tslibs/TS/Lib/lib.esnext.full.d.ts: *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/package.json: *new* + {"pollingInterval":2000} + {"pollingInterval":2000} +/home/src/tslibs/TS/package.json: *new* + {"pollingInterval":2000} + {"pollingInterval":2000} +/home/src/tslibs/package.json: *new* + {"pollingInterval":2000} + {"pollingInterval":2000} /home/src/workspaces/project/jsconfig.json: *new* {"pollingInterval":2000} /home/src/workspaces/project/package.json: *new* @@ -266,17 +263,20 @@ Projects:: noOpenRef: true ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* - version: Text-1 - containingProjects: 1 - /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/workspaces/project/src/a.ts *new* version: Text-1 @@ -293,7 +293,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/a.ts" @@ -303,7 +303,7 @@ Info seq [hh:mm:ss:mss] request: Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /home/src/workspaces/project/src/a.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] getConfigFileNameForFile:: File: /home/src/workspaces/project/src/a.ts ProjectRootPath: undefined:: Result: /home/src/workspaces/project/tsconfig.json Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) -Info seq [hh:mm:ss:mss] Files (2) +Info seq [hh:mm:ss:mss] Files (5) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) @@ -320,19 +320,26 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 1, + "request_seq": 2, "success": true } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} -/home/src/tslibs/TS/Lib/lib.esnext.full.d.ts: +/home/src/tslibs/TS/Lib/lib.es5.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} +/home/src/tslibs/TS/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} +/home/src/tslibs/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} /home/src/workspaces/project/jsconfig.json: {"pollingInterval":2000} /home/src/workspaces/project/package.json: @@ -372,17 +379,20 @@ Projects:: noOpenRef: false *changed* ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts - version: Text-1 - containingProjects: 1 - /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.es5.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/workspaces/project/src/a.ts (Open) *changed* open: true *changed* @@ -400,7 +410,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "preferences": {} @@ -412,12 +422,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 2, + "request_seq": 3, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 3, + "seq": 4, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/a.ts", @@ -431,7 +441,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "completionInfo", - "request_seq": 3, + "request_seq": 4, "success": true, "body": { "isGlobalCompletion": false, diff --git a/tests/baselines/reference/tsserver/fourslashServer/importCompletions_importsMap5.js b/tests/baselines/reference/tsserver/fourslashServer/importCompletions_importsMap5.js index f16e49bfafcd7..659eb3ddb9df9 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/importCompletions_importsMap5.js +++ b/tests/baselines/reference/tsserver/fourslashServer/importCompletions_importsMap5.js @@ -1,16 +1,35 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "module": "nodenext", + "lib": [ + "es5" + ], + "rootDir": "/home/src/workspaces/project/src", + "outDir": "/home/src/workspaces/project/dist", + "declarationDir": "/home/src/workspaces/project/types", + "target": "es5", + "newLine": "crlf", + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/home/src/workspaces/project/package.json] { "type": "module", @@ -32,6 +51,7 @@ export const isBrowser = true; { "compilerOptions": { "module": "nodenext", + "lib": ["es5"], "rootDir": "src", "outDir": "dist", "declarationDir": "types", @@ -41,7 +61,7 @@ export const isBrowser = true; Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/home/src/workspaces/project/tsconfig.json" @@ -58,6 +78,9 @@ Info seq [hh:mm:ss:mss] Config: /home/src/workspaces/project/tsconfig.json : { ], "options": { "module": 199, + "lib": [ + "lib.es5.d.ts" + ], "rootDir": "/home/src/workspaces/project/src", "outDir": "/home/src/workspaces/project/dist", "declarationDir": "/home/src/workspaces/project/types", @@ -79,21 +102,35 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/src/a.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/src/env/browser.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/src/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/src/env/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.esnext.full.d.ts 500 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Missing file Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) -Info seq [hh:mm:ss:mss] Files (2) +Info seq [hh:mm:ss:mss] Files (5) + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text + /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/src/a.ts Text-1 "import {} from \"\";" /home/src/workspaces/project/src/env/browser.ts Text-1 "export const isBrowser = true;" + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions + ../../tslibs/TS/Lib/lib.decorators.d.ts + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' + ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' src/a.ts Matched by default include pattern '**/*' File is ECMAScript module because 'package.json' has field "type" with value "module" @@ -120,64 +157,19 @@ Info seq [hh:mm:ss:mss] event: "triggerFile": "/home/src/workspaces/project/tsconfig.json", "configFile": "/home/src/workspaces/project/tsconfig.json", "diagnostics": [ - { - "text": "File '/home/src/tslibs/TS/Lib/lib.esnext.full.d.ts' not found.\n The file is in the program because:\n Default library for target 'esnext'", - "code": 6053, - "category": "error" - }, { "start": { - "line": 6, + "line": 7, "offset": 5 }, "end": { - "line": 6, + "line": 7, "offset": 21 }, "text": "Option 'declarationDir' cannot be specified without specifying option 'declaration' or option 'composite'.", "code": 5069, "category": "error", "fileName": "/home/src/workspaces/project/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" } ] } @@ -186,9 +178,9 @@ Info seq [hh:mm:ss:mss] getConfigFileNameForFile:: File: /home/src/workspaces/p Info seq [hh:mm:ss:mss] Creating InferredProject: /dev/null/inferredProject1*, currentDirectory: /home/src/workspaces/project Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots @@ -196,25 +188,25 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text - /home/src/workspaces/project/tsconfig.json SVC-1-0 "{\n \"compilerOptions\": {\n \"module\": \"nodenext\",\n \"rootDir\": \"src\",\n \"outDir\": \"dist\",\n \"declarationDir\": \"types\",\n }\n}" + /home/src/workspaces/project/tsconfig.json SVC-1-0 "{\n \"compilerOptions\": {\n \"module\": \"nodenext\",\n \"lib\": [\"es5\"],\n \"rootDir\": \"src\",\n \"outDir\": \"dist\",\n \"declarationDir\": \"types\",\n }\n}" - ../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' tsconfig.json Root file specified for compilation Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/package.json 250 undefined WatchType: package.json file Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) -Info seq [hh:mm:ss:mss] Files (2) +Info seq [hh:mm:ss:mss] Files (5) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) @@ -229,7 +221,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -237,14 +229,21 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} -/home/src/tslibs/TS/Lib/lib.esnext.full.d.ts: *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/package.json: *new* + {"pollingInterval":2000} + {"pollingInterval":2000} +/home/src/tslibs/TS/package.json: *new* + {"pollingInterval":2000} + {"pollingInterval":2000} +/home/src/tslibs/package.json: *new* + {"pollingInterval":2000} + {"pollingInterval":2000} /home/src/workspaces/project/jsconfig.json: *new* {"pollingInterval":2000} /home/src/workspaces/project/package.json: *new* @@ -282,17 +281,20 @@ Projects:: noOpenRef: true ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* - version: Text-1 - containingProjects: 1 - /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/workspaces/project/src/a.ts *new* version: Text-1 @@ -309,7 +311,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/a.ts" @@ -319,7 +321,7 @@ Info seq [hh:mm:ss:mss] request: Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /home/src/workspaces/project/src/a.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] getConfigFileNameForFile:: File: /home/src/workspaces/project/src/a.ts ProjectRootPath: undefined:: Result: /home/src/workspaces/project/tsconfig.json Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) -Info seq [hh:mm:ss:mss] Files (2) +Info seq [hh:mm:ss:mss] Files (5) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) @@ -336,19 +338,26 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 1, + "request_seq": 2, "success": true } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} -/home/src/tslibs/TS/Lib/lib.esnext.full.d.ts: +/home/src/tslibs/TS/Lib/lib.es5.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} +/home/src/tslibs/TS/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} +/home/src/tslibs/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} /home/src/workspaces/project/jsconfig.json: {"pollingInterval":2000} /home/src/workspaces/project/package.json: @@ -388,17 +397,20 @@ Projects:: noOpenRef: false *changed* ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts - version: Text-1 - containingProjects: 1 - /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.es5.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/workspaces/project/src/a.ts (Open) *changed* open: true *changed* @@ -416,7 +428,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "preferences": {} @@ -428,12 +440,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 2, + "request_seq": 3, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 3, + "seq": 4, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/a.ts", @@ -447,7 +459,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "completionInfo", - "request_seq": 3, + "request_seq": 4, "success": true, "body": { "isGlobalCompletion": false, diff --git a/tests/baselines/reference/tsserver/fourslashServer/importFixes_ambientCircularDefaultCrash.js b/tests/baselines/reference/tsserver/fourslashServer/importFixes_ambientCircularDefaultCrash.js index 39bd2aca7882d..e93ab8dc35a65 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/importFixes_ambientCircularDefaultCrash.js +++ b/tests/baselines/reference/tsserver/fourslashServer/importFixes_ambientCircularDefaultCrash.js @@ -1,23 +1,40 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "module": "preserve", + "lib": [ + "es5" + ], + "target": "es5", + "newLine": "crlf", + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/home/src/workspaces/project/index.ts] my //// [/home/src/workspaces/project/tsconfig.json] { "compilerOptions": { - "module": "preserve" + "module": "preserve", + "lib": ["es5"] } } @@ -30,7 +47,7 @@ declare module "mymod" { Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/home/src/workspaces/project/tsconfig.json" @@ -47,6 +64,9 @@ Info seq [hh:mm:ss:mss] Config: /home/src/workspaces/project/tsconfig.json : { ], "options": { "module": 200, + "lib": [ + "lib.es5.d.ts" + ], "configFilePath": "/home/src/workspaces/project/tsconfig.json" } } @@ -65,7 +85,7 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/index.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/types.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots @@ -75,19 +95,19 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (5) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/index.ts Text-1 "my" /home/src/workspaces/project/types.d.ts Text-1 "declare module \"mymod\" {\n import mymod from \"mymod\";\n export default mymod;\n}" - ../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' index.ts Matched by default include pattern '**/*' types.d.ts @@ -125,18 +145,18 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text - /home/src/workspaces/project/tsconfig.json SVC-1-0 "{\n \"compilerOptions\": {\n \"module\": \"preserve\"\n }\n}" + /home/src/workspaces/project/tsconfig.json SVC-1-0 "{\n \"compilerOptions\": {\n \"module\": \"preserve\",\n \"lib\": [\"es5\"]\n }\n}" - ../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' tsconfig.json Root file specified for compilation @@ -157,7 +177,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -165,12 +185,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* + {"pollingInterval":500} /home/src/workspaces/project/index.ts: *new* {"pollingInterval":500} /home/src/workspaces/project/jsconfig.json: *new* @@ -201,17 +221,17 @@ Projects:: noOpenRef: true ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -231,7 +251,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "preferences": { @@ -246,7 +266,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 1, + "request_seq": 2, "success": true } After Request @@ -262,7 +282,7 @@ Projects:: Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -275,13 +295,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "syntacticDiagnosticsSync", - "request_seq": 2, + "request_seq": 3, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 3, + "seq": 4, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -294,7 +314,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "semanticDiagnosticsSync", - "request_seq": 3, + "request_seq": 4, "success": true, "body": [ { @@ -316,7 +336,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 4, + "seq": 5, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -329,13 +349,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "suggestionDiagnosticsSync", - "request_seq": 4, + "request_seq": 5, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 5, + "seq": 6, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -354,7 +374,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "getCodeFixes", - "request_seq": 5, + "request_seq": 6, "success": true, "body": [] } \ No newline at end of file diff --git a/tests/baselines/reference/tsserver/fourslashServer/importNameCodeFix_externalNonRelateive2.js b/tests/baselines/reference/tsserver/fourslashServer/importNameCodeFix_externalNonRelateive2.js index 53e0cb3d6913e..dd014fa7297fe 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/importNameCodeFix_externalNonRelateive2.js +++ b/tests/baselines/reference/tsserver/fourslashServer/importNameCodeFix_externalNonRelateive2.js @@ -1,16 +1,37 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "module": "commonjs", + "lib": [ + "es5" + ], + "paths": { + "shared/*": [ + "../../shared/*" + ] + }, + "target": "es5", + "newLine": "crlf", + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/home/src/workspaces/project/apps/app1/src/app.ts] utils @@ -24,6 +45,7 @@ export const utils = 0; { "compilerOptions": { "module": "commonjs", + "lib": ["es5"], "paths": { "shared/*": ["../../shared/*"] } @@ -40,7 +62,7 @@ shared Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/home/src/workspaces/project/apps/app1/tsconfig.json" @@ -60,6 +82,9 @@ Info seq [hh:mm:ss:mss] Config: /home/src/workspaces/project/apps/app1/tsconfig ], "options": { "module": 1, + "lib": [ + "lib.es5.d.ts" + ], "paths": { "shared/*": [ "../../shared/*" @@ -89,7 +114,7 @@ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/p Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/shared/constants.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/shared/data.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/workspaces/project/apps/app1/tsconfig.json -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/apps/app1/node_modules/@types 1 undefined Project: /home/src/workspaces/project/apps/app1/tsconfig.json WatchType: Type roots @@ -103,7 +128,7 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/apps/app1/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/apps/app1/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (8) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/apps/app1/src/app.ts Text-1 "utils" @@ -113,12 +138,12 @@ Info seq [hh:mm:ss:mss] Files (8) /home/src/workspaces/project/shared/data.ts Text-1 "shared" - ../../../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../../../tslibs/TS/Lib/lib.es5.d.ts' ../../../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../../../tslibs/TS/Lib/lib.es5.d.ts' src/app.ts Matched by include pattern 'src' in 'tsconfig.json' src/index.ts @@ -170,18 +195,18 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text - /home/src/workspaces/project/apps/app1/tsconfig.json SVC-1-0 "{\n \"compilerOptions\": {\n \"module\": \"commonjs\",\n \"paths\": {\n \"shared/*\": [\"../../shared/*\"]\n }\n },\n \"include\": [\"src\", \"../../shared\"]\n}" + /home/src/workspaces/project/apps/app1/tsconfig.json SVC-1-0 "{\n \"compilerOptions\": {\n \"module\": \"commonjs\",\n \"lib\": [\"es5\"],\n \"paths\": {\n \"shared/*\": [\"../../shared/*\"]\n }\n },\n \"include\": [\"src\", \"../../shared\"]\n}" - ../../../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../../../tslibs/TS/Lib/lib.es5.d.ts' ../../../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../../../tslibs/TS/Lib/lib.es5.d.ts' tsconfig.json Root file specified for compilation @@ -202,7 +227,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -210,12 +235,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* + {"pollingInterval":500} /home/src/workspaces/project/apps/app1/jsconfig.json: *new* {"pollingInterval":2000} /home/src/workspaces/project/apps/app1/src/app.ts: *new* @@ -268,17 +293,17 @@ Projects:: noOpenRef: true ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 containingProjects: 2 /home/src/workspaces/project/apps/app1/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 containingProjects: 2 /home/src/workspaces/project/apps/app1/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* version: Text-1 containingProjects: 2 /home/src/workspaces/project/apps/app1/tsconfig.json @@ -310,7 +335,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "formatOptions": { @@ -347,12 +372,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 1, + "request_seq": 2, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "file": "/home/src/workspaces/project/apps/app1/src/index.ts" @@ -379,17 +404,17 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 2, + "request_seq": 3, "success": true } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: + {"pollingInterval":500} /home/src/workspaces/project/apps/app1/jsconfig.json: {"pollingInterval":2000} /home/src/workspaces/project/apps/app1/src/app.ts: @@ -444,17 +469,17 @@ Projects:: noOpenRef: false *changed* ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/apps/app1/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/apps/app1/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/apps/app1/tsconfig.json @@ -487,7 +512,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 3, + "seq": 4, "type": "request", "arguments": { "preferences": { @@ -501,12 +526,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 3, + "request_seq": 4, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 4, + "seq": 5, "type": "request", "arguments": { "preferences": { @@ -520,12 +545,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 4, + "request_seq": 5, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 5, + "seq": 6, "type": "request", "arguments": { "file": "/home/src/workspaces/project/apps/app1/src/index.ts", @@ -538,13 +563,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "syntacticDiagnosticsSync", - "request_seq": 5, + "request_seq": 6, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 6, + "seq": 7, "type": "request", "arguments": { "file": "/home/src/workspaces/project/apps/app1/src/index.ts", @@ -557,7 +582,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "semanticDiagnosticsSync", - "request_seq": 6, + "request_seq": 7, "success": true, "body": [ { @@ -579,7 +604,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 7, + "seq": 8, "type": "request", "arguments": { "file": "/home/src/workspaces/project/apps/app1/src/index.ts", @@ -592,13 +617,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "suggestionDiagnosticsSync", - "request_seq": 7, + "request_seq": 8, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 8, + "seq": 9, "type": "request", "arguments": { "file": "/home/src/workspaces/project/apps/app1/src/index.ts", @@ -617,7 +642,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "getCodeFixes", - "request_seq": 8, + "request_seq": 9, "success": true, "body": [ { @@ -657,7 +682,7 @@ Projects:: Info seq [hh:mm:ss:mss] request: { - "seq": 9, + "seq": 10, "type": "request", "arguments": { "file": "/home/src/workspaces/project/apps/app1/src/index.ts", @@ -674,7 +699,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 9, + "request_seq": 10, "success": true } After Request @@ -690,17 +715,17 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/apps/app1/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/apps/app1/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/apps/app1/tsconfig.json @@ -732,7 +757,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 10, + "seq": 11, "type": "request", "arguments": { "file": "/home/src/workspaces/project/apps/app1/src/index.ts", @@ -749,22 +774,22 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 10, + "request_seq": 11, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/apps/app1/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/apps/app1/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/apps/app1/tsconfig.json @@ -796,7 +821,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 11, + "seq": 12, "type": "request", "arguments": { "file": "/home/src/workspaces/project/apps/app1/src/app.ts" @@ -809,7 +834,7 @@ Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/workspac Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/apps/app1/tsconfig.json projectStateVersion: 2 projectProgramVersion: 1 structureChanged: false structureIsReused:: Completely Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/apps/app1/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (8) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/apps/app1/src/app.ts Text-1 "utils" @@ -839,7 +864,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 11, + "request_seq": 12, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -847,12 +872,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: + {"pollingInterval":500} /home/src/workspaces/project/apps/app1/jsconfig.json: {"pollingInterval":2000} /home/src/workspaces/project/apps/app1/src/utils.ts: @@ -906,17 +931,17 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/apps/app1/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/apps/app1/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/apps/app1/tsconfig.json @@ -949,7 +974,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 12, + "seq": 13, "type": "request", "arguments": { "preferences": { @@ -963,12 +988,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 12, + "request_seq": 13, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 13, + "seq": 14, "type": "request", "arguments": { "preferences": { @@ -982,12 +1007,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 13, + "request_seq": 14, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 14, + "seq": 15, "type": "request", "arguments": { "file": "/home/src/workspaces/project/apps/app1/src/app.ts", @@ -1000,13 +1025,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "syntacticDiagnosticsSync", - "request_seq": 14, + "request_seq": 15, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 15, + "seq": 16, "type": "request", "arguments": { "file": "/home/src/workspaces/project/apps/app1/src/app.ts", @@ -1019,7 +1044,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "semanticDiagnosticsSync", - "request_seq": 15, + "request_seq": 16, "success": true, "body": [ { @@ -1041,7 +1066,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 16, + "seq": 17, "type": "request", "arguments": { "file": "/home/src/workspaces/project/apps/app1/src/app.ts", @@ -1054,13 +1079,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "suggestionDiagnosticsSync", - "request_seq": 16, + "request_seq": 17, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 17, + "seq": 18, "type": "request", "arguments": { "file": "/home/src/workspaces/project/apps/app1/src/app.ts", @@ -1079,7 +1104,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "getCodeFixes", - "request_seq": 17, + "request_seq": 18, "success": true, "body": [ { @@ -1108,7 +1133,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 18, + "seq": 19, "type": "request", "arguments": { "file": "/home/src/workspaces/project/apps/app1/src/app.ts", @@ -1125,7 +1150,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 18, + "request_seq": 19, "success": true } After Request @@ -1141,17 +1166,17 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/apps/app1/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/apps/app1/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/apps/app1/tsconfig.json @@ -1183,7 +1208,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 19, + "seq": 20, "type": "request", "arguments": { "file": "/home/src/workspaces/project/apps/app1/src/app.ts", @@ -1200,22 +1225,22 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 19, + "request_seq": 20, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/apps/app1/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/apps/app1/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/apps/app1/tsconfig.json @@ -1247,7 +1272,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 20, + "seq": 21, "type": "request", "arguments": { "file": "/home/src/workspaces/project/shared/data.ts" @@ -1260,7 +1285,7 @@ Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/workspac Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/apps/app1/tsconfig.json projectStateVersion: 3 projectProgramVersion: 1 structureChanged: false structureIsReused:: Completely Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/apps/app1/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (8) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/apps/app1/src/app.ts SVC-2-2 "utils" @@ -1292,7 +1317,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 20, + "request_seq": 21, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -1300,12 +1325,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: + {"pollingInterval":500} /home/src/workspaces/project/apps/app1/jsconfig.json: {"pollingInterval":2000} /home/src/workspaces/project/apps/app1/src/utils.ts: @@ -1357,17 +1382,17 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/apps/app1/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/apps/app1/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/apps/app1/tsconfig.json @@ -1400,7 +1425,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 21, + "seq": 22, "type": "request", "arguments": { "preferences": { @@ -1414,12 +1439,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 21, + "request_seq": 22, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 22, + "seq": 23, "type": "request", "arguments": { "preferences": { @@ -1433,12 +1458,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 22, + "request_seq": 23, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 23, + "seq": 24, "type": "request", "arguments": { "file": "/home/src/workspaces/project/shared/data.ts", @@ -1451,13 +1476,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "syntacticDiagnosticsSync", - "request_seq": 23, + "request_seq": 24, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 24, + "seq": 25, "type": "request", "arguments": { "file": "/home/src/workspaces/project/shared/data.ts", @@ -1470,7 +1495,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "semanticDiagnosticsSync", - "request_seq": 24, + "request_seq": 25, "success": true, "body": [ { @@ -1492,7 +1517,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 25, + "seq": 26, "type": "request", "arguments": { "file": "/home/src/workspaces/project/shared/data.ts", @@ -1505,13 +1530,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "suggestionDiagnosticsSync", - "request_seq": 25, + "request_seq": 26, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 26, + "seq": 27, "type": "request", "arguments": { "file": "/home/src/workspaces/project/shared/data.ts", @@ -1530,7 +1555,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "getCodeFixes", - "request_seq": 26, + "request_seq": 27, "success": true, "body": [ { @@ -1559,7 +1584,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 27, + "seq": 28, "type": "request", "arguments": { "file": "/home/src/workspaces/project/shared/data.ts", @@ -1576,7 +1601,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 27, + "request_seq": 28, "success": true } After Request @@ -1592,17 +1617,17 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/apps/app1/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/apps/app1/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/apps/app1/tsconfig.json @@ -1634,7 +1659,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 28, + "seq": 29, "type": "request", "arguments": { "file": "/home/src/workspaces/project/shared/data.ts", @@ -1651,22 +1676,22 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 28, + "request_seq": 29, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/apps/app1/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/apps/app1/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/apps/app1/tsconfig.json diff --git a/tests/baselines/reference/tsserver/fourslashServer/importNameCodeFix_externalNonRelative1.js b/tests/baselines/reference/tsserver/fourslashServer/importNameCodeFix_externalNonRelative1.js index cfbfcb5bf21ec..21193e05b3f66 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/importNameCodeFix_externalNonRelative1.js +++ b/tests/baselines/reference/tsserver/fourslashServer/importNameCodeFix_externalNonRelative1.js @@ -1,16 +1,43 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "module": "commonjs", + "lib": [ + "es5" + ], + "paths": { + "pkg-1/*": [ + "./packages/pkg-1/src/*" + ], + "pkg-2/*": [ + "./packages/pkg-2/src/*" + ] + }, + "outDir": "/home/src/workspaces/project/packages/pkg-2/dist", + "rootDir": "/home/src/workspaces/project/packages/pkg-2/src", + "composite": true, + "target": "es5", + "newLine": "crlf", + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/home/src/workspaces/project/packages/pkg-1/node_modules/pkg-2] symlink(/home/src/workspaces/project/packages/pkg-2) //// [/home/src/workspaces/project/packages/pkg-1/package.json] { "dependencies": { "pkg-2": "*" } } @@ -41,13 +68,14 @@ export const Pkg2 = {}; //// [/home/src/workspaces/project/packages/pkg-2/tsconfig.json] { "extends": "../../tsconfig.base.json", - "compilerOptions": { "outDir": "dist", "rootDir": "src", "composite": true } + "compilerOptions": { "outDir": "dist", "rootDir": "src", "composite": true, "lib": ["es5"] } } //// [/home/src/workspaces/project/tsconfig.base.json] { "compilerOptions": { "module": "commonjs", + "lib": ["es5"], "paths": { "pkg-1/*": ["./packages/pkg-1/src/*"], "pkg-2/*": ["./packages/pkg-2/src/*"] @@ -58,7 +86,7 @@ export const Pkg2 = {}; Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/home/src/workspaces/project/tsconfig.base.json" @@ -70,7 +98,7 @@ Info seq [hh:mm:ss:mss] Creating InferredProject: /dev/null/inferredProject1*, Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots @@ -80,18 +108,18 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text - /home/src/workspaces/project/tsconfig.base.json SVC-1-0 "{\n \"compilerOptions\": {\n \"module\": \"commonjs\",\n \"paths\": {\n \"pkg-1/*\": [\"./packages/pkg-1/src/*\"],\n \"pkg-2/*\": [\"./packages/pkg-2/src/*\"]\n }\n }\n}" + /home/src/workspaces/project/tsconfig.base.json SVC-1-0 "{\n \"compilerOptions\": {\n \"module\": \"commonjs\",\n \"lib\": [\"es5\"],\n \"paths\": {\n \"pkg-1/*\": [\"./packages/pkg-1/src/*\"],\n \"pkg-2/*\": [\"./packages/pkg-2/src/*\"]\n }\n }\n}" - ../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' tsconfig.base.json Root file specified for compilation @@ -108,7 +136,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -116,12 +144,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* + {"pollingInterval":500} /home/src/workspaces/project/jsconfig.json: *new* {"pollingInterval":2000} /home/src/workspaces/project/tsconfig.json: *new* @@ -140,15 +168,15 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* @@ -159,7 +187,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "formatOptions": { @@ -196,12 +224,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 1, + "request_seq": 2, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "file": "/home/src/workspaces/project/packages/pkg-1/src/index.ts" @@ -217,6 +245,9 @@ Info seq [hh:mm:ss:mss] Config: /home/src/workspaces/project/packages/pkg-1/tsc ], "options": { "module": 1, + "lib": [ + "lib.es5.d.ts" + ], "paths": { "pkg-1/*": [ "./packages/pkg-1/src/*" @@ -257,6 +288,9 @@ Info seq [hh:mm:ss:mss] Config: /home/src/workspaces/project/packages/pkg-2/tsc ], "options": { "module": 1, + "lib": [ + "lib.es5.d.ts" + ], "paths": { "pkg-1/*": [ "./packages/pkg-1/src/*" @@ -286,18 +320,18 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/packages/pkg-1/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/packages/pkg-1/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/packages/pkg-1/src/index.ts SVC-1-0 "Pkg2" - ../../../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../../../tslibs/TS/Lib/lib.es5.d.ts' ../../../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../../../tslibs/TS/Lib/lib.es5.d.ts' src/index.ts Matched by default include pattern '**/*' @@ -363,7 +397,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 2, + "request_seq": 3, "success": true, "performanceData": { "updateGraphDurationMs": *, @@ -372,12 +406,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: + {"pollingInterval":500} /home/src/workspaces/project/jsconfig.json: {"pollingInterval":2000} /home/src/workspaces/project/packages/pkg-1/package.json: *new* @@ -425,17 +459,17 @@ Projects:: autoImportProviderHost: /dev/null/autoImportProviderProject1* ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *changed* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *changed* version: Text-1 containingProjects: 2 *changed* /dev/null/inferredProject1* /home/src/workspaces/project/packages/pkg-1/tsconfig.json *new* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *changed* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *changed* version: Text-1 containingProjects: 2 *changed* /dev/null/inferredProject1* /home/src/workspaces/project/packages/pkg-1/tsconfig.json *new* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *changed* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *changed* version: Text-1 containingProjects: 2 *changed* /dev/null/inferredProject1* @@ -459,7 +493,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 3, + "seq": 4, "type": "request", "arguments": { "preferences": { @@ -473,12 +507,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 3, + "request_seq": 4, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 4, + "seq": 5, "type": "request", "arguments": { "preferences": { @@ -492,12 +526,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 4, + "request_seq": 5, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 5, + "seq": 6, "type": "request", "arguments": { "file": "/home/src/workspaces/project/packages/pkg-1/src/index.ts", @@ -510,13 +544,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "syntacticDiagnosticsSync", - "request_seq": 5, + "request_seq": 6, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 6, + "seq": 7, "type": "request", "arguments": { "file": "/home/src/workspaces/project/packages/pkg-1/src/index.ts", @@ -529,7 +563,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "semanticDiagnosticsSync", - "request_seq": 6, + "request_seq": 7, "success": true, "body": [ { @@ -551,7 +585,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 7, + "seq": 8, "type": "request", "arguments": { "file": "/home/src/workspaces/project/packages/pkg-1/src/index.ts", @@ -564,13 +598,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "suggestionDiagnosticsSync", - "request_seq": 7, + "request_seq": 8, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 8, + "seq": 9, "type": "request", "arguments": { "file": "/home/src/workspaces/project/packages/pkg-1/src/index.ts", @@ -592,7 +626,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "getCodeFixes", - "request_seq": 8, + "request_seq": 9, "success": true, "body": [ { @@ -621,12 +655,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: + {"pollingInterval":500} /home/src/workspaces/project/jsconfig.json: {"pollingInterval":2000} /home/src/workspaces/project/packages/pkg-1/package.json: @@ -664,7 +698,7 @@ watchedDirectoriesRecursive:: Info seq [hh:mm:ss:mss] request: { - "seq": 9, + "seq": 10, "type": "request", "arguments": { "file": "/home/src/workspaces/project/packages/pkg-1/src/index.ts", @@ -681,7 +715,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 9, + "request_seq": 10, "success": true } After Request @@ -700,17 +734,17 @@ Projects:: autoImportProviderHost: /dev/null/autoImportProviderProject1* ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /dev/null/inferredProject1* /home/src/workspaces/project/packages/pkg-1/tsconfig.json -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /dev/null/inferredProject1* /home/src/workspaces/project/packages/pkg-1/tsconfig.json -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /dev/null/inferredProject1* @@ -734,7 +768,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 10, + "seq": 11, "type": "request", "arguments": { "file": "/home/src/workspaces/project/packages/pkg-1/src/index.ts", @@ -751,22 +785,22 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 10, + "request_seq": 11, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /dev/null/inferredProject1* /home/src/workspaces/project/packages/pkg-1/tsconfig.json -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /dev/null/inferredProject1* /home/src/workspaces/project/packages/pkg-1/tsconfig.json -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /dev/null/inferredProject1* @@ -790,7 +824,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 11, + "seq": 12, "type": "request", "arguments": { "file": "/home/src/workspaces/project/packages/pkg-2/src/blah/foo/data.ts" @@ -821,7 +855,7 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/packages/pkg-2/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/packages/pkg-2/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (6) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/packages/pkg-2/src/utils.ts Text-1 "export const Pkg2 = {};" @@ -829,12 +863,12 @@ Info seq [hh:mm:ss:mss] Files (6) /home/src/workspaces/project/packages/pkg-2/src/blah/foo/data.ts SVC-1-0 "Pkg2" - ../../../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../../../tslibs/TS/Lib/lib.es5.d.ts' ../../../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../../../tslibs/TS/Lib/lib.es5.d.ts' src/utils.ts Imported via "./utils" from file 'src/index.ts' Matched by default include pattern '**/*' @@ -894,7 +928,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 11, + "request_seq": 12, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -902,12 +936,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: + {"pollingInterval":500} /home/src/workspaces/project/jsconfig.json: {"pollingInterval":2000} /home/src/workspaces/project/packages/pkg-1/package.json: @@ -969,19 +1003,19 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *changed* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *changed* version: Text-1 containingProjects: 3 *changed* /dev/null/inferredProject1* /home/src/workspaces/project/packages/pkg-1/tsconfig.json /home/src/workspaces/project/packages/pkg-2/tsconfig.json *new* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *changed* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *changed* version: Text-1 containingProjects: 3 *changed* /dev/null/inferredProject1* /home/src/workspaces/project/packages/pkg-1/tsconfig.json /home/src/workspaces/project/packages/pkg-2/tsconfig.json *new* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *changed* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *changed* version: Text-1 containingProjects: 3 *changed* /dev/null/inferredProject1* @@ -1012,7 +1046,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 12, + "seq": 13, "type": "request", "arguments": { "preferences": { @@ -1026,12 +1060,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 12, + "request_seq": 13, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 13, + "seq": 14, "type": "request", "arguments": { "preferences": { @@ -1045,12 +1079,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 13, + "request_seq": 14, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 14, + "seq": 15, "type": "request", "arguments": { "file": "/home/src/workspaces/project/packages/pkg-2/src/blah/foo/data.ts", @@ -1063,13 +1097,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "syntacticDiagnosticsSync", - "request_seq": 14, + "request_seq": 15, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 15, + "seq": 16, "type": "request", "arguments": { "file": "/home/src/workspaces/project/packages/pkg-2/src/blah/foo/data.ts", @@ -1082,7 +1116,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "semanticDiagnosticsSync", - "request_seq": 15, + "request_seq": 16, "success": true, "body": [ { @@ -1104,7 +1138,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 16, + "seq": 17, "type": "request", "arguments": { "file": "/home/src/workspaces/project/packages/pkg-2/src/blah/foo/data.ts", @@ -1117,13 +1151,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "suggestionDiagnosticsSync", - "request_seq": 16, + "request_seq": 17, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 17, + "seq": 18, "type": "request", "arguments": { "file": "/home/src/workspaces/project/packages/pkg-2/src/blah/foo/data.ts", @@ -1142,7 +1176,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "getCodeFixes", - "request_seq": 17, + "request_seq": 18, "success": true, "body": [ { @@ -1171,7 +1205,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 18, + "seq": 19, "type": "request", "arguments": { "file": "/home/src/workspaces/project/packages/pkg-2/src/blah/foo/data.ts", @@ -1188,7 +1222,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 18, + "request_seq": 19, "success": true } After Request @@ -1212,19 +1246,19 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 3 /dev/null/inferredProject1* /home/src/workspaces/project/packages/pkg-1/tsconfig.json /home/src/workspaces/project/packages/pkg-2/tsconfig.json -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 3 /dev/null/inferredProject1* /home/src/workspaces/project/packages/pkg-1/tsconfig.json /home/src/workspaces/project/packages/pkg-2/tsconfig.json -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 3 /dev/null/inferredProject1* @@ -1255,7 +1289,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 19, + "seq": 20, "type": "request", "arguments": { "file": "/home/src/workspaces/project/packages/pkg-2/src/blah/foo/data.ts", @@ -1272,24 +1306,24 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 19, + "request_seq": 20, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 3 /dev/null/inferredProject1* /home/src/workspaces/project/packages/pkg-1/tsconfig.json /home/src/workspaces/project/packages/pkg-2/tsconfig.json -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 3 /dev/null/inferredProject1* /home/src/workspaces/project/packages/pkg-1/tsconfig.json /home/src/workspaces/project/packages/pkg-2/tsconfig.json -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 3 /dev/null/inferredProject1* diff --git a/tests/baselines/reference/tsserver/fourslashServer/importNameCodeFix_pnpm1.js b/tests/baselines/reference/tsserver/fourslashServer/importNameCodeFix_pnpm1.js index 472204efd95f8..e7946f526923c 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/importNameCodeFix_pnpm1.js +++ b/tests/baselines/reference/tsserver/fourslashServer/importNameCodeFix_pnpm1.js @@ -1,16 +1,32 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "module": "commonjs", + "lib": [ + "es5" + ], + "target": "es5", + "newLine": "crlf", + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/home/src/workspaces/project/index.ts] Component @@ -19,12 +35,12 @@ export declare function Component(): void; //// [/home/src/workspaces/project/node_modules/@types/react] symlink(/home/src/workspaces/project/node_modules/.pnpm/@types+react@17.0.7/node_modules/@types/react) //// [/home/src/workspaces/project/tsconfig.json] -{ "compilerOptions": { "module": "commonjs" } } +{ "compilerOptions": { "module": "commonjs", "lib": ["es5"] } } Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/home/src/workspaces/project/tsconfig.json" @@ -40,6 +56,9 @@ Info seq [hh:mm:ss:mss] Config: /home/src/workspaces/project/tsconfig.json : { ], "options": { "module": 1, + "lib": [ + "lib.es5.d.ts" + ], "configFilePath": "/home/src/workspaces/project/tsconfig.json" } } @@ -60,7 +79,7 @@ Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/workspac Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types/react 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types/react 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/.pnpm/@types+react@17.0.7/node_modules/@types/react/index.d.ts 500 undefined WatchType: Closed Script info -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/.pnpm/@types+react@17.0.7/node_modules/@types/react/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution @@ -78,19 +97,19 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (5) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/index.ts Text-1 "Component" /home/src/workspaces/project/node_modules/.pnpm/@types+react@17.0.7/node_modules/@types/react/index.d.ts Text-1 "export declare function Component(): void;" - ../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' index.ts Matched by default include pattern '**/*' node_modules/.pnpm/@types+react@17.0.7/node_modules/@types/react/index.d.ts @@ -138,19 +157,19 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (5) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text - /home/src/workspaces/project/tsconfig.json SVC-1-0 "{ \"compilerOptions\": { \"module\": \"commonjs\" } }" + /home/src/workspaces/project/tsconfig.json SVC-1-0 "{ \"compilerOptions\": { \"module\": \"commonjs\", \"lib\": [\"es5\"] } }" /home/src/workspaces/project/node_modules/.pnpm/@types+react@17.0.7/node_modules/@types/react/index.d.ts Text-1 "export declare function Component(): void;" - ../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' tsconfig.json Root file specified for compilation node_modules/.pnpm/@types+react@17.0.7/node_modules/@types/react/index.d.ts @@ -173,7 +192,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -181,12 +200,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* + {"pollingInterval":500} /home/src/workspaces/package.json: *new* {"pollingInterval":2000} {"pollingInterval":2000} @@ -244,17 +263,17 @@ Projects:: noOpenRef: true ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -275,7 +294,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts" @@ -302,17 +321,17 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 1, + "request_seq": 2, "success": true } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: + {"pollingInterval":500} /home/src/workspaces/package.json: {"pollingInterval":2000} {"pollingInterval":2000} @@ -372,17 +391,17 @@ Projects:: noOpenRef: false *changed* ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -404,7 +423,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "preferences": {} @@ -416,12 +435,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 2, + "request_seq": 3, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 3, + "seq": 4, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -434,13 +453,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "syntacticDiagnosticsSync", - "request_seq": 3, + "request_seq": 4, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 4, + "seq": 5, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -453,7 +472,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "semanticDiagnosticsSync", - "request_seq": 4, + "request_seq": 5, "success": true, "body": [ { @@ -475,7 +494,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 5, + "seq": 6, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -488,13 +507,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "suggestionDiagnosticsSync", - "request_seq": 5, + "request_seq": 6, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 6, + "seq": 7, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -515,7 +534,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "getCodeFixes", - "request_seq": 6, + "request_seq": 7, "success": true, "body": [ { @@ -544,12 +563,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: + {"pollingInterval":500} /home/src/workspaces/package.json: {"pollingInterval":2000} {"pollingInterval":2000} @@ -608,7 +627,7 @@ Projects:: Info seq [hh:mm:ss:mss] request: { - "seq": 7, + "seq": 8, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -625,7 +644,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 7, + "request_seq": 8, "success": true } After Request @@ -641,17 +660,17 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -672,7 +691,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 8, + "seq": 9, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -689,22 +708,22 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 8, + "request_seq": 9, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json diff --git a/tests/baselines/reference/tsserver/fourslashServer/importStatementCompletions_pnpm1.js b/tests/baselines/reference/tsserver/fourslashServer/importStatementCompletions_pnpm1.js index dbd6fbb636145..0cd4250d9bc8f 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/importStatementCompletions_pnpm1.js +++ b/tests/baselines/reference/tsserver/fourslashServer/importStatementCompletions_pnpm1.js @@ -1,16 +1,32 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "module": "commonjs", + "lib": [ + "es5" + ], + "target": "es5", + "newLine": "crlf", + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/home/src/workspaces/project/index.ts] import Com @@ -19,12 +35,12 @@ export declare function Component(): void; //// [/home/src/workspaces/project/node_modules/@types/react] symlink(/home/src/workspaces/project/node_modules/.pnpm/@types+react@17.0.7/node_modules/@types/react) //// [/home/src/workspaces/project/tsconfig.json] -{ "compilerOptions": { "module": "commonjs" } } +{ "compilerOptions": { "module": "commonjs", "lib": ["es5"] } } Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/home/src/workspaces/project/tsconfig.json" @@ -40,6 +56,9 @@ Info seq [hh:mm:ss:mss] Config: /home/src/workspaces/project/tsconfig.json : { ], "options": { "module": 1, + "lib": [ + "lib.es5.d.ts" + ], "configFilePath": "/home/src/workspaces/project/tsconfig.json" } } @@ -60,7 +79,7 @@ Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/workspac Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types/react 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types/react 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/.pnpm/@types+react@17.0.7/node_modules/@types/react/index.d.ts 500 undefined WatchType: Closed Script info -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/.pnpm/@types+react@17.0.7/node_modules/@types/react/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution @@ -78,19 +97,19 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (5) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/index.ts Text-1 "import Com" /home/src/workspaces/project/node_modules/.pnpm/@types+react@17.0.7/node_modules/@types/react/index.d.ts Text-1 "export declare function Component(): void;" - ../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' index.ts Matched by default include pattern '**/*' node_modules/.pnpm/@types+react@17.0.7/node_modules/@types/react/index.d.ts @@ -138,19 +157,19 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (5) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text - /home/src/workspaces/project/tsconfig.json SVC-1-0 "{ \"compilerOptions\": { \"module\": \"commonjs\" } }" + /home/src/workspaces/project/tsconfig.json SVC-1-0 "{ \"compilerOptions\": { \"module\": \"commonjs\", \"lib\": [\"es5\"] } }" /home/src/workspaces/project/node_modules/.pnpm/@types+react@17.0.7/node_modules/@types/react/index.d.ts Text-1 "export declare function Component(): void;" - ../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' tsconfig.json Root file specified for compilation node_modules/.pnpm/@types+react@17.0.7/node_modules/@types/react/index.d.ts @@ -173,7 +192,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -181,12 +200,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* + {"pollingInterval":500} /home/src/workspaces/package.json: *new* {"pollingInterval":2000} {"pollingInterval":2000} @@ -244,17 +263,17 @@ Projects:: noOpenRef: true ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -275,7 +294,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts" @@ -302,17 +321,17 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 1, + "request_seq": 2, "success": true } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: + {"pollingInterval":500} /home/src/workspaces/package.json: {"pollingInterval":2000} {"pollingInterval":2000} @@ -372,17 +391,17 @@ Projects:: noOpenRef: false *changed* ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -404,7 +423,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "preferences": { @@ -420,12 +439,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 2, + "request_seq": 3, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 3, + "seq": 4, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -451,7 +470,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "completionInfo", - "request_seq": 3, + "request_seq": 4, "success": true, "body": { "flags": 11, @@ -513,12 +532,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: + {"pollingInterval":500} /home/src/workspaces/package.json: {"pollingInterval":2000} {"pollingInterval":2000} diff --git a/tests/baselines/reference/tsserver/fourslashServer/importStatementCompletions_pnpmTransitive.js b/tests/baselines/reference/tsserver/fourslashServer/importStatementCompletions_pnpmTransitive.js index 537136716c501..04215ab4645a2 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/importStatementCompletions_pnpmTransitive.js +++ b/tests/baselines/reference/tsserver/fourslashServer/importStatementCompletions_pnpmTransitive.js @@ -1,16 +1,32 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "module": "commonjs", + "lib": [ + "es5" + ], + "target": "es5", + "newLine": "crlf", + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/home/src/workspaces/project/index.ts] import SvgProp @@ -24,12 +40,12 @@ export interface SvgProperties {} //// [/home/src/workspaces/project/node_modules/@types/react] symlink(/home/src/workspaces/project/node_modules/.pnpm/@types+react@17.0.7/node_modules/@types/react) //// [/home/src/workspaces/project/tsconfig.json] -{ "compilerOptions": { "module": "commonjs" } } +{ "compilerOptions": { "module": "commonjs", "lib": ["es5"] } } Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/home/src/workspaces/project/tsconfig.json" @@ -45,6 +61,9 @@ Info seq [hh:mm:ss:mss] Config: /home/src/workspaces/project/tsconfig.json : { ], "options": { "module": 1, + "lib": [ + "lib.es5.d.ts" + ], "configFilePath": "/home/src/workspaces/project/tsconfig.json" } } @@ -66,7 +85,7 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspa Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types/react 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/.pnpm/@types+react@17.0.7/node_modules/@types/react/index.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/.pnpm/csstype@3.0.8/node_modules/csstype/index.d.ts 500 undefined WatchType: Closed Script info -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Failed Lookup Locations @@ -95,7 +114,7 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (6) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/index.ts Text-1 "import SvgProp" @@ -103,12 +122,12 @@ Info seq [hh:mm:ss:mss] Files (6) /home/src/workspaces/project/node_modules/.pnpm/@types+react@17.0.7/node_modules/@types/react/index.d.ts Text-1 "import \"csstype\";\nexport declare function Component(): void;" - ../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' index.ts Matched by default include pattern '**/*' node_modules/.pnpm/csstype@3.0.8/node_modules/csstype/index.d.ts @@ -169,20 +188,20 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (6) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text - /home/src/workspaces/project/tsconfig.json SVC-1-0 "{ \"compilerOptions\": { \"module\": \"commonjs\" } }" + /home/src/workspaces/project/tsconfig.json SVC-1-0 "{ \"compilerOptions\": { \"module\": \"commonjs\", \"lib\": [\"es5\"] } }" /home/src/workspaces/project/node_modules/.pnpm/csstype@3.0.8/node_modules/csstype/index.d.ts Text-1 "export interface SvgProperties {}" /home/src/workspaces/project/node_modules/.pnpm/@types+react@17.0.7/node_modules/@types/react/index.d.ts Text-1 "import \"csstype\";\nexport declare function Component(): void;" - ../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' tsconfig.json Root file specified for compilation node_modules/.pnpm/csstype@3.0.8/node_modules/csstype/index.d.ts @@ -207,7 +226,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -215,12 +234,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* + {"pollingInterval":500} /home/src/workspaces/package.json: *new* {"pollingInterval":2000} {"pollingInterval":2000} @@ -303,17 +322,17 @@ Projects:: noOpenRef: true ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -339,7 +358,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts" @@ -366,17 +385,17 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 1, + "request_seq": 2, "success": true } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: + {"pollingInterval":500} /home/src/workspaces/package.json: {"pollingInterval":2000} {"pollingInterval":2000} @@ -461,17 +480,17 @@ Projects:: noOpenRef: false *changed* ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -498,7 +517,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "preferences": { @@ -514,12 +533,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 2, + "request_seq": 3, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 3, + "seq": 4, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -543,7 +562,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "completionInfo", - "request_seq": 3, + "request_seq": 4, "success": true, "body": { "flags": 3, diff --git a/tests/baselines/reference/tsserver/fourslashServer/importSuggestionsCache_ambient.js b/tests/baselines/reference/tsserver/fourslashServer/importSuggestionsCache_ambient.js index 72a564e7da11d..daf91dd068274 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/importSuggestionsCache_ambient.js +++ b/tests/baselines/reference/tsserver/fourslashServer/importSuggestionsCache_ambient.js @@ -1,16 +1,32 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "module": "esnext", + "lib": [ + "es5" + ], + "target": "es5", + "newLine": "crlf", + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/home/src/workspaces/project/ambient.d.ts] declare module 'ambient' { export const ambient = 0; @@ -18,12 +34,12 @@ declare module 'ambient' { a //// [/home/src/workspaces/project/tsconfig.json] -{ "compilerOptions": { "module": "esnext" } } +{ "compilerOptions": { "module": "esnext", "lib": ["es5"] } } Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/home/src/workspaces/project/tsconfig.json" @@ -39,6 +55,9 @@ Info seq [hh:mm:ss:mss] Config: /home/src/workspaces/project/tsconfig.json : { ], "options": { "module": 99, + "lib": [ + "lib.es5.d.ts" + ], "configFilePath": "/home/src/workspaces/project/tsconfig.json" } } @@ -56,7 +75,7 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspa Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project 1 undefined Config: /home/src/workspaces/project/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/ambient.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots @@ -66,18 +85,18 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/ambient.d.ts Text-1 "declare module 'ambient' {\n export const ambient = 0;\n}\na" - ../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' ambient.d.ts Matched by default include pattern '**/*' @@ -113,18 +132,18 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text - /home/src/workspaces/project/tsconfig.json SVC-1-0 "{ \"compilerOptions\": { \"module\": \"esnext\" } }" + /home/src/workspaces/project/tsconfig.json SVC-1-0 "{ \"compilerOptions\": { \"module\": \"esnext\", \"lib\": [\"es5\"] } }" - ../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' tsconfig.json Root file specified for compilation @@ -145,7 +164,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -153,12 +172,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* + {"pollingInterval":500} /home/src/workspaces/project/ambient.d.ts: *new* {"pollingInterval":500} /home/src/workspaces/project/jsconfig.json: *new* @@ -187,17 +206,17 @@ Projects:: noOpenRef: true ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -213,7 +232,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "file": "/home/src/workspaces/project/ambient.d.ts" @@ -240,17 +259,17 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 1, + "request_seq": 2, "success": true } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: + {"pollingInterval":500} /home/src/workspaces/project/jsconfig.json: {"pollingInterval":2000} /home/src/workspaces/project/tsconfig.json: @@ -281,17 +300,17 @@ Projects:: noOpenRef: false *changed* ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -308,7 +327,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "preferences": { @@ -323,7 +342,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 2, + "request_seq": 3, "success": true } After Request @@ -338,7 +357,7 @@ Projects:: Info seq [hh:mm:ss:mss] request: { - "seq": 3, + "seq": 4, "type": "request", "arguments": { "file": "/home/src/workspaces/project/ambient.d.ts", @@ -363,7 +382,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "completionInfo", - "request_seq": 3, + "request_seq": 4, "success": true, "body": { "flags": 1, @@ -1075,7 +1094,7 @@ Projects:: Info seq [hh:mm:ss:mss] request: { - "seq": 4, + "seq": 5, "type": "request", "arguments": { "file": "/home/src/workspaces/project/ambient.d.ts", @@ -1092,7 +1111,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 4, + "request_seq": 5, "success": true } After Request @@ -1107,17 +1126,17 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -1133,7 +1152,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 5, + "seq": 6, "type": "request", "arguments": { "preferences": { @@ -1148,12 +1167,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 5, + "request_seq": 6, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 6, + "seq": 7, "type": "request", "arguments": { "file": "/home/src/workspaces/project/ambient.d.ts", @@ -1166,7 +1185,7 @@ Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/workspac Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json projectStateVersion: 2 projectProgramVersion: 1 structureChanged: false structureIsReused:: Completely Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/ambient.d.ts SVC-2-1 "a" @@ -1187,7 +1206,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "completionInfo", - "request_seq": 6, + "request_seq": 7, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -1883,7 +1902,7 @@ Projects:: Info seq [hh:mm:ss:mss] request: { - "seq": 7, + "seq": 8, "type": "request", "arguments": { "file": "/home/src/workspaces/project/ambient.d.ts", @@ -1900,7 +1919,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 7, + "request_seq": 8, "success": true } After Request @@ -1915,17 +1934,17 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -1941,7 +1960,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 8, + "seq": 9, "type": "request", "arguments": { "file": "/home/src/workspaces/project/ambient.d.ts", @@ -1958,22 +1977,22 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 8, + "request_seq": 9, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -1989,7 +2008,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 9, + "seq": 10, "type": "request", "arguments": { "file": "/home/src/workspaces/project/ambient.d.ts", @@ -2006,22 +2025,22 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 9, + "request_seq": 10, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -2037,7 +2056,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 10, + "seq": 11, "type": "request", "arguments": { "file": "/home/src/workspaces/project/ambient.d.ts", @@ -2054,22 +2073,22 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 10, + "request_seq": 11, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -2085,7 +2104,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 11, + "seq": 12, "type": "request", "arguments": { "file": "/home/src/workspaces/project/ambient.d.ts", @@ -2102,22 +2121,22 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 11, + "request_seq": 12, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -2133,7 +2152,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 12, + "seq": 13, "type": "request", "arguments": { "file": "/home/src/workspaces/project/ambient.d.ts", @@ -2150,22 +2169,22 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 12, + "request_seq": 13, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -2181,7 +2200,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 13, + "seq": 14, "type": "request", "arguments": { "file": "/home/src/workspaces/project/ambient.d.ts", @@ -2198,22 +2217,22 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 13, + "request_seq": 14, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -2229,7 +2248,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 14, + "seq": 15, "type": "request", "arguments": { "file": "/home/src/workspaces/project/ambient.d.ts", @@ -2246,22 +2265,22 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 14, + "request_seq": 15, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -2277,7 +2296,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 15, + "seq": 16, "type": "request", "arguments": { "file": "/home/src/workspaces/project/ambient.d.ts", @@ -2294,22 +2313,22 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 15, + "request_seq": 16, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -2325,7 +2344,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 16, + "seq": 17, "type": "request", "arguments": { "file": "/home/src/workspaces/project/ambient.d.ts", @@ -2342,22 +2361,22 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 16, + "request_seq": 17, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -2373,7 +2392,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 17, + "seq": 18, "type": "request", "arguments": { "file": "/home/src/workspaces/project/ambient.d.ts", @@ -2390,22 +2409,22 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 17, + "request_seq": 18, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -2421,7 +2440,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 18, + "seq": 19, "type": "request", "arguments": { "file": "/home/src/workspaces/project/ambient.d.ts", @@ -2438,22 +2457,22 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 18, + "request_seq": 19, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -2469,7 +2488,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 19, + "seq": 20, "type": "request", "arguments": { "file": "/home/src/workspaces/project/ambient.d.ts", @@ -2486,22 +2505,22 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 19, + "request_seq": 20, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -2517,7 +2536,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 20, + "seq": 21, "type": "request", "arguments": { "file": "/home/src/workspaces/project/ambient.d.ts", @@ -2534,22 +2553,22 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 20, + "request_seq": 21, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -2565,7 +2584,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 21, + "seq": 22, "type": "request", "arguments": { "file": "/home/src/workspaces/project/ambient.d.ts", @@ -2582,22 +2601,22 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 21, + "request_seq": 22, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -2613,7 +2632,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 22, + "seq": 23, "type": "request", "arguments": { "file": "/home/src/workspaces/project/ambient.d.ts", @@ -2630,22 +2649,22 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 22, + "request_seq": 23, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -2661,7 +2680,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 23, + "seq": 24, "type": "request", "arguments": { "file": "/home/src/workspaces/project/ambient.d.ts", @@ -2678,22 +2697,22 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 23, + "request_seq": 24, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -2709,7 +2728,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 24, + "seq": 25, "type": "request", "arguments": { "file": "/home/src/workspaces/project/ambient.d.ts", @@ -2726,22 +2745,22 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 24, + "request_seq": 25, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -2757,7 +2776,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 25, + "seq": 26, "type": "request", "arguments": { "file": "/home/src/workspaces/project/ambient.d.ts", @@ -2774,22 +2793,22 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 25, + "request_seq": 26, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -2805,7 +2824,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 26, + "seq": 27, "type": "request", "arguments": { "file": "/home/src/workspaces/project/ambient.d.ts", @@ -2822,22 +2841,22 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 26, + "request_seq": 27, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -2853,7 +2872,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 27, + "seq": 28, "type": "request", "arguments": { "file": "/home/src/workspaces/project/ambient.d.ts", @@ -2870,22 +2889,22 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 27, + "request_seq": 28, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -2901,7 +2920,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 28, + "seq": 29, "type": "request", "arguments": { "file": "/home/src/workspaces/project/ambient.d.ts", @@ -2918,22 +2937,22 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 28, + "request_seq": 29, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -2949,7 +2968,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 29, + "seq": 30, "type": "request", "arguments": { "file": "/home/src/workspaces/project/ambient.d.ts", @@ -2966,22 +2985,22 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 29, + "request_seq": 30, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -2997,7 +3016,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 30, + "seq": 31, "type": "request", "arguments": { "file": "/home/src/workspaces/project/ambient.d.ts", @@ -3014,22 +3033,22 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 30, + "request_seq": 31, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -3045,7 +3064,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 31, + "seq": 32, "type": "request", "arguments": { "file": "/home/src/workspaces/project/ambient.d.ts", @@ -3062,22 +3081,22 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 31, + "request_seq": 32, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -3093,7 +3112,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 32, + "seq": 33, "type": "request", "arguments": { "file": "/home/src/workspaces/project/ambient.d.ts", @@ -3110,22 +3129,22 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 32, + "request_seq": 33, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -3141,7 +3160,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 33, + "seq": 34, "type": "request", "arguments": { "file": "/home/src/workspaces/project/ambient.d.ts", @@ -3158,22 +3177,22 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 33, + "request_seq": 34, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -3189,7 +3208,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 34, + "seq": 35, "type": "request", "arguments": { "file": "/home/src/workspaces/project/ambient.d.ts", @@ -3206,22 +3225,22 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 34, + "request_seq": 35, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -3237,7 +3256,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 35, + "seq": 36, "type": "request", "arguments": { "file": "/home/src/workspaces/project/ambient.d.ts", @@ -3254,22 +3273,22 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 35, + "request_seq": 36, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -3285,7 +3304,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 36, + "seq": 37, "type": "request", "arguments": { "file": "/home/src/workspaces/project/ambient.d.ts", @@ -3302,22 +3321,22 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 36, + "request_seq": 37, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -3333,7 +3352,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 37, + "seq": 38, "type": "request", "arguments": { "file": "/home/src/workspaces/project/ambient.d.ts", @@ -3350,22 +3369,22 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 37, + "request_seq": 38, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -3381,7 +3400,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 38, + "seq": 39, "type": "request", "arguments": { "file": "/home/src/workspaces/project/ambient.d.ts", @@ -3398,22 +3417,22 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 38, + "request_seq": 39, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -3429,7 +3448,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 39, + "seq": 40, "type": "request", "arguments": { "file": "/home/src/workspaces/project/ambient.d.ts", @@ -3446,22 +3465,22 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 39, + "request_seq": 40, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -3477,7 +3496,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 40, + "seq": 41, "type": "request", "arguments": { "file": "/home/src/workspaces/project/ambient.d.ts", @@ -3494,22 +3513,22 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 40, + "request_seq": 41, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -3525,7 +3544,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 41, + "seq": 42, "type": "request", "arguments": { "file": "/home/src/workspaces/project/ambient.d.ts", @@ -3542,22 +3561,22 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 41, + "request_seq": 42, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -3573,7 +3592,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 42, + "seq": 43, "type": "request", "arguments": { "file": "/home/src/workspaces/project/ambient.d.ts", @@ -3590,22 +3609,22 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 42, + "request_seq": 43, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -3621,7 +3640,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 43, + "seq": 44, "type": "request", "arguments": { "file": "/home/src/workspaces/project/ambient.d.ts", @@ -3638,22 +3657,22 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 43, + "request_seq": 44, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -3669,7 +3688,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 44, + "seq": 45, "type": "request", "arguments": { "file": "/home/src/workspaces/project/ambient.d.ts", @@ -3686,22 +3705,22 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 44, + "request_seq": 45, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -3717,7 +3736,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 45, + "seq": 46, "type": "request", "arguments": { "file": "/home/src/workspaces/project/ambient.d.ts", @@ -3734,22 +3753,22 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 45, + "request_seq": 46, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -3765,7 +3784,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 46, + "seq": 47, "type": "request", "arguments": { "file": "/home/src/workspaces/project/ambient.d.ts", @@ -3782,22 +3801,22 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 46, + "request_seq": 47, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -3813,7 +3832,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 47, + "seq": 48, "type": "request", "arguments": { "file": "/home/src/workspaces/project/ambient.d.ts", @@ -3830,22 +3849,22 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 47, + "request_seq": 48, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -3861,7 +3880,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 48, + "seq": 49, "type": "request", "arguments": { "file": "/home/src/workspaces/project/ambient.d.ts", @@ -3878,22 +3897,22 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 48, + "request_seq": 49, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -3909,7 +3928,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 49, + "seq": 50, "type": "request", "arguments": { "file": "/home/src/workspaces/project/ambient.d.ts", @@ -3926,22 +3945,22 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 49, + "request_seq": 50, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -3957,7 +3976,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 50, + "seq": 51, "type": "request", "arguments": { "file": "/home/src/workspaces/project/ambient.d.ts", @@ -3974,22 +3993,22 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 50, + "request_seq": 51, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -4005,7 +4024,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 51, + "seq": 52, "type": "request", "arguments": { "file": "/home/src/workspaces/project/ambient.d.ts", @@ -4022,22 +4041,22 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 51, + "request_seq": 52, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -4053,7 +4072,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 52, + "seq": 53, "type": "request", "arguments": { "file": "/home/src/workspaces/project/ambient.d.ts", @@ -4070,22 +4089,22 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 52, + "request_seq": 53, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -4101,7 +4120,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 53, + "seq": 54, "type": "request", "arguments": { "file": "/home/src/workspaces/project/ambient.d.ts", @@ -4118,22 +4137,22 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 53, + "request_seq": 54, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -4149,7 +4168,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 54, + "seq": 55, "type": "request", "arguments": { "file": "/home/src/workspaces/project/ambient.d.ts", @@ -4166,22 +4185,22 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 54, + "request_seq": 55, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -4197,7 +4216,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 55, + "seq": 56, "type": "request", "arguments": { "file": "/home/src/workspaces/project/ambient.d.ts", @@ -4214,22 +4233,22 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 55, + "request_seq": 56, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -4245,7 +4264,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 56, + "seq": 57, "type": "request", "arguments": { "file": "/home/src/workspaces/project/ambient.d.ts", @@ -4262,22 +4281,22 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 56, + "request_seq": 57, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -4293,7 +4312,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 57, + "seq": 58, "type": "request", "arguments": { "file": "/home/src/workspaces/project/ambient.d.ts", @@ -4310,22 +4329,22 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 57, + "request_seq": 58, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -4341,7 +4360,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 58, + "seq": 59, "type": "request", "arguments": { "file": "/home/src/workspaces/project/ambient.d.ts", @@ -4358,22 +4377,22 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 58, + "request_seq": 59, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -4389,7 +4408,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 59, + "seq": 60, "type": "request", "arguments": { "file": "/home/src/workspaces/project/ambient.d.ts", @@ -4406,22 +4425,22 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 59, + "request_seq": 60, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -4437,7 +4456,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 60, + "seq": 61, "type": "request", "arguments": { "file": "/home/src/workspaces/project/ambient.d.ts", @@ -4454,22 +4473,22 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 60, + "request_seq": 61, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -4485,7 +4504,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 61, + "seq": 62, "type": "request", "arguments": { "file": "/home/src/workspaces/project/ambient.d.ts", @@ -4502,22 +4521,22 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 61, + "request_seq": 62, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -4533,7 +4552,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 62, + "seq": 63, "type": "request", "arguments": { "file": "/home/src/workspaces/project/ambient.d.ts", @@ -4550,22 +4569,22 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 62, + "request_seq": 63, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -4581,7 +4600,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 63, + "seq": 64, "type": "request", "arguments": { "file": "/home/src/workspaces/project/ambient.d.ts", @@ -4598,22 +4617,22 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 63, + "request_seq": 64, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -4629,7 +4648,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 64, + "seq": 65, "type": "request", "arguments": { "file": "/home/src/workspaces/project/ambient.d.ts", @@ -4646,22 +4665,22 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 64, + "request_seq": 65, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -4677,7 +4696,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 65, + "seq": 66, "type": "request", "arguments": { "file": "/home/src/workspaces/project/ambient.d.ts", @@ -4694,22 +4713,22 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 65, + "request_seq": 66, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -4725,7 +4744,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 66, + "seq": 67, "type": "request", "arguments": { "preferences": { @@ -4740,12 +4759,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 66, + "request_seq": 67, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 67, + "seq": 68, "type": "request", "arguments": { "file": "/home/src/workspaces/project/ambient.d.ts", @@ -4758,7 +4777,7 @@ Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/workspac Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json projectStateVersion: 3 projectProgramVersion: 1 structureChanged: false structureIsReused:: Completely Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/ambient.d.ts SVC-2-60 "a\ndeclare module 'ambient' {\n export const ambient2 = 0;\n}" @@ -4779,7 +4798,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "completionInfo", - "request_seq": 67, + "request_seq": 68, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -5495,7 +5514,7 @@ Projects:: Info seq [hh:mm:ss:mss] request: { - "seq": 68, + "seq": 69, "type": "request", "arguments": { "file": "/home/src/workspaces/project/ambient.d.ts" @@ -5520,12 +5539,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 68, + "request_seq": 69, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 69, + "seq": 70, "type": "request", "arguments": { "file": "/home/src/workspaces/project/ambient.d.ts", @@ -5542,7 +5561,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 69, + "request_seq": 70, "success": true } After Request @@ -5557,17 +5576,17 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -5583,7 +5602,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 70, + "seq": 71, "type": "request", "arguments": { "file": "/home/src/workspaces/project/ambient.d.ts", @@ -5600,22 +5619,22 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 70, + "request_seq": 71, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -5631,7 +5650,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 71, + "seq": 72, "type": "request", "arguments": { "file": "/home/src/workspaces/project/ambient.d.ts", @@ -5648,22 +5667,22 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 71, + "request_seq": 72, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -5679,7 +5698,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 72, + "seq": 73, "type": "request", "arguments": { "file": "/home/src/workspaces/project/ambient.d.ts", @@ -5696,22 +5715,22 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 72, + "request_seq": 73, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -5727,7 +5746,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 73, + "seq": 74, "type": "request", "arguments": { "file": "/home/src/workspaces/project/ambient.d.ts", @@ -5744,22 +5763,22 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 73, + "request_seq": 74, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -5775,7 +5794,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 74, + "seq": 75, "type": "request", "arguments": { "file": "/home/src/workspaces/project/ambient.d.ts", @@ -5792,22 +5811,22 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 74, + "request_seq": 75, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -5823,7 +5842,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 75, + "seq": 76, "type": "request", "arguments": { "file": "/home/src/workspaces/project/ambient.d.ts", @@ -5840,22 +5859,22 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 75, + "request_seq": 76, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -5871,7 +5890,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 76, + "seq": 77, "type": "request", "arguments": { "file": "/home/src/workspaces/project/ambient.d.ts", @@ -5888,22 +5907,22 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 76, + "request_seq": 77, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -5919,7 +5938,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 77, + "seq": 78, "type": "request", "arguments": { "file": "/home/src/workspaces/project/ambient.d.ts", @@ -5936,22 +5955,22 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 77, + "request_seq": 78, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -5967,7 +5986,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 78, + "seq": 79, "type": "request", "arguments": { "file": "/home/src/workspaces/project/ambient.d.ts", @@ -5984,22 +6003,22 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 78, + "request_seq": 79, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -6015,7 +6034,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 79, + "seq": 80, "type": "request", "arguments": { "file": "/home/src/workspaces/project/ambient.d.ts", @@ -6032,22 +6051,22 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 79, + "request_seq": 80, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -6063,7 +6082,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 80, + "seq": 81, "type": "request", "arguments": { "file": "/home/src/workspaces/project/ambient.d.ts", @@ -6080,22 +6099,22 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 80, + "request_seq": 81, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -6111,7 +6130,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 81, + "seq": 82, "type": "request", "arguments": { "file": "/home/src/workspaces/project/ambient.d.ts", @@ -6128,22 +6147,22 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 81, + "request_seq": 82, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -6159,7 +6178,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 82, + "seq": 83, "type": "request", "arguments": { "file": "/home/src/workspaces/project/ambient.d.ts", @@ -6176,22 +6195,22 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 82, + "request_seq": 83, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -6207,7 +6226,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 83, + "seq": 84, "type": "request", "arguments": { "file": "/home/src/workspaces/project/ambient.d.ts", @@ -6224,22 +6243,22 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 83, + "request_seq": 84, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -6255,7 +6274,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 84, + "seq": 85, "type": "request", "arguments": { "file": "/home/src/workspaces/project/ambient.d.ts", @@ -6272,22 +6291,22 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 84, + "request_seq": 85, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -6303,7 +6322,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 85, + "seq": 86, "type": "request", "arguments": { "file": "/home/src/workspaces/project/ambient.d.ts", @@ -6320,22 +6339,22 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 85, + "request_seq": 86, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -6351,7 +6370,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 86, + "seq": 87, "type": "request", "arguments": { "file": "/home/src/workspaces/project/ambient.d.ts", @@ -6368,22 +6387,22 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 86, + "request_seq": 87, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -6399,7 +6418,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 87, + "seq": 88, "type": "request", "arguments": { "file": "/home/src/workspaces/project/ambient.d.ts", @@ -6416,22 +6435,22 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 87, + "request_seq": 88, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -6447,7 +6466,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 88, + "seq": 89, "type": "request", "arguments": { "file": "/home/src/workspaces/project/ambient.d.ts", @@ -6464,22 +6483,22 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 88, + "request_seq": 89, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -6495,7 +6514,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 89, + "seq": 90, "type": "request", "arguments": { "file": "/home/src/workspaces/project/ambient.d.ts", @@ -6512,22 +6531,22 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 89, + "request_seq": 90, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -6543,7 +6562,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 90, + "seq": 91, "type": "request", "arguments": { "file": "/home/src/workspaces/project/ambient.d.ts", @@ -6560,22 +6579,22 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 90, + "request_seq": 91, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -6591,7 +6610,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 91, + "seq": 92, "type": "request", "arguments": { "file": "/home/src/workspaces/project/ambient.d.ts", @@ -6608,22 +6627,22 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 91, + "request_seq": 92, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -6639,7 +6658,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 92, + "seq": 93, "type": "request", "arguments": { "file": "/home/src/workspaces/project/ambient.d.ts", @@ -6656,22 +6675,22 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 92, + "request_seq": 93, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -6687,7 +6706,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 93, + "seq": 94, "type": "request", "arguments": { "file": "/home/src/workspaces/project/ambient.d.ts", @@ -6704,22 +6723,22 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 93, + "request_seq": 94, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -6735,7 +6754,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 94, + "seq": 95, "type": "request", "arguments": { "file": "/home/src/workspaces/project/ambient.d.ts", @@ -6752,22 +6771,22 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 94, + "request_seq": 95, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -6783,7 +6802,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 95, + "seq": 96, "type": "request", "arguments": { "file": "/home/src/workspaces/project/ambient.d.ts", @@ -6800,22 +6819,22 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 95, + "request_seq": 96, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -6831,7 +6850,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 96, + "seq": 97, "type": "request", "arguments": { "file": "/home/src/workspaces/project/ambient.d.ts", @@ -6848,22 +6867,22 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 96, + "request_seq": 97, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -6879,7 +6898,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 97, + "seq": 98, "type": "request", "arguments": { "preferences": { @@ -6894,12 +6913,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 97, + "request_seq": 98, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 98, + "seq": 99, "type": "request", "arguments": { "file": "/home/src/workspaces/project/ambient.d.ts", @@ -6912,7 +6931,7 @@ Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/workspac Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json projectStateVersion: 4 projectProgramVersion: 1 structureChanged: false structureIsReused:: Completely Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/ambient.d.ts SVC-2-88 "a\ndeclare module 'ambient' {\n export const ambient3 = 0\n}" @@ -6933,7 +6952,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "completionInfo", - "request_seq": 98, + "request_seq": 99, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -7649,7 +7668,7 @@ Projects:: Info seq [hh:mm:ss:mss] request: { - "seq": 99, + "seq": 100, "type": "request", "arguments": { "preferences": { @@ -7664,12 +7683,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 99, + "request_seq": 100, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 100, + "seq": 101, "type": "request", "arguments": { "file": "/home/src/workspaces/project/ambient.d.ts", @@ -7692,7 +7711,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "completionInfo", - "request_seq": 100, + "request_seq": 101, "success": true, "body": { "flags": 1, diff --git a/tests/baselines/reference/tsserver/fourslashServer/importSuggestionsCache_coreNodeModules.js b/tests/baselines/reference/tsserver/fourslashServer/importSuggestionsCache_coreNodeModules.js index bd405d9cf0e5b..bdcf4b94dca91 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/importSuggestionsCache_coreNodeModules.js +++ b/tests/baselines/reference/tsserver/fourslashServer/importSuggestionsCache_coreNodeModules.js @@ -1,16 +1,37 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "module": "esnext", + "lib": [ + "es5" + ], + "allowJs": true, + "checkJs": true, + "typeRoots": [ + "/home/src/workspaces/project/node_modules/@types" + ], + "target": "es5", + "newLine": "crlf", + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/home/src/workspaces/project/a.js] readF @@ -30,6 +51,7 @@ declare module 'util' { { "compilerOptions": { "module": "esnext", + "lib": ["es5"], "allowJs": true, "checkJs": true, "typeRoots": [ @@ -45,7 +67,7 @@ declare module 'util' { Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/home/src/workspaces/project/tsconfig.json" @@ -61,6 +83,9 @@ Info seq [hh:mm:ss:mss] Config: /home/src/workspaces/project/tsconfig.json : { ], "options": { "module": 99, + "lib": [ + "lib.es5.d.ts" + ], "allowJs": true, "checkJs": true, "typeRoots": [ @@ -86,7 +111,7 @@ Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/workspac Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types/node/index.d.ts 500 undefined WatchType: Closed Script info -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types/node/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution @@ -98,19 +123,19 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (5) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/a.js Text-1 "\nreadF" /home/src/workspaces/project/node_modules/@types/node/index.d.ts Text-1 "declare module 'fs' {\n export function readFile(): void;\n}\ndeclare module 'util' {\n export function promisify(): void;\n}" - ../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' a.js Matched by include pattern '**/*' in 'tsconfig.json' node_modules/@types/node/index.d.ts @@ -155,24 +180,22 @@ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/p Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots -Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots -Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (5) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text - /home/src/workspaces/project/tsconfig.json SVC-1-0 "{\n \"compilerOptions\": {\n \"module\": \"esnext\",\n \"allowJs\": true,\n \"checkJs\": true,\n \"typeRoots\": [\n \"node_modules/@types\"\n ]\n },\n \"include\": [\"**/*\"],\n \"typeAcquisition\": {\n \"enable\": true\n }\n}" + /home/src/workspaces/project/tsconfig.json SVC-1-0 "{\n \"compilerOptions\": {\n \"module\": \"esnext\",\n \"lib\": [\"es5\"],\n \"allowJs\": true,\n \"checkJs\": true,\n \"typeRoots\": [\n \"node_modules/@types\"\n ]\n },\n \"include\": [\"**/*\"],\n \"typeAcquisition\": {\n \"enable\": true\n }\n}" /home/src/workspaces/project/node_modules/@types/node/index.d.ts Text-1 "declare module 'fs' {\n export function readFile(): void;\n}\ndeclare module 'util' {\n export function promisify(): void;\n}" - ../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' tsconfig.json Root file specified for compilation node_modules/@types/node/index.d.ts @@ -196,7 +219,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -204,12 +227,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* + {"pollingInterval":500} /home/src/workspaces/project/a.js: *new* {"pollingInterval":500} /home/src/workspaces/project/jsconfig.json: *new* @@ -233,8 +256,6 @@ watchedFiles:: {"pollingInterval":2000} watchedDirectoriesRecursive:: -/home/src/workspaces/node_modules/@types: *new* - {} /home/src/workspaces/project: *new* {} /home/src/workspaces/project/node_modules: *new* @@ -255,17 +276,17 @@ Projects:: noOpenRef: true ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -286,7 +307,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "file": "/home/src/workspaces/project/a.js" @@ -313,17 +334,17 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 1, + "request_seq": 2, "success": true } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: + {"pollingInterval":500} /home/src/workspaces/project/jsconfig.json: {"pollingInterval":2000} /home/src/workspaces/project/node_modules/@types/node/index.d.ts: @@ -349,8 +370,6 @@ watchedFiles *deleted*:: {"pollingInterval":500} watchedDirectoriesRecursive:: -/home/src/workspaces/node_modules/@types: - {} /home/src/workspaces/project: {} /home/src/workspaces/project/node_modules: @@ -371,17 +390,17 @@ Projects:: noOpenRef: false *changed* ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -403,7 +422,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "preferences": { @@ -418,7 +437,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 2, + "request_seq": 3, "success": true } After Request @@ -433,7 +452,7 @@ Projects:: Info seq [hh:mm:ss:mss] request: { - "seq": 3, + "seq": 4, "type": "request", "arguments": { "file": "/home/src/workspaces/project/a.js", @@ -457,7 +476,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "completionInfo", - "request_seq": 3, + "request_seq": 4, "success": true, "body": { "flags": 1, @@ -1023,7 +1042,7 @@ Projects:: Info seq [hh:mm:ss:mss] request: { - "seq": 4, + "seq": 5, "type": "request", "arguments": { "file": "/home/src/workspaces/project/a.js" @@ -1048,12 +1067,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 4, + "request_seq": 5, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 5, + "seq": 6, "type": "request", "arguments": { "file": "/home/src/workspaces/project/a.js", @@ -1070,7 +1089,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 5, + "request_seq": 6, "success": true } After Request @@ -1085,17 +1104,17 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -1116,7 +1135,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 6, + "seq": 7, "type": "request", "arguments": { "file": "/home/src/workspaces/project/a.js", @@ -1133,22 +1152,22 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 6, + "request_seq": 7, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -1169,7 +1188,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 7, + "seq": 8, "type": "request", "arguments": { "file": "/home/src/workspaces/project/a.js", @@ -1184,13 +1203,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 7, + "request_seq": 8, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 8, + "seq": 9, "type": "request", "arguments": { "file": "/home/src/workspaces/project/a.js", @@ -1207,22 +1226,22 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 8, + "request_seq": 9, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -1243,7 +1262,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 9, + "seq": 10, "type": "request", "arguments": { "file": "/home/src/workspaces/project/a.js", @@ -1258,13 +1277,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 9, + "request_seq": 10, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 10, + "seq": 11, "type": "request", "arguments": { "file": "/home/src/workspaces/project/a.js", @@ -1281,22 +1300,22 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 10, + "request_seq": 11, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -1317,7 +1336,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 11, + "seq": 12, "type": "request", "arguments": { "file": "/home/src/workspaces/project/a.js", @@ -1332,13 +1351,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 11, + "request_seq": 12, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 12, + "seq": 13, "type": "request", "arguments": { "file": "/home/src/workspaces/project/a.js", @@ -1355,22 +1374,22 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 12, + "request_seq": 13, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -1391,7 +1410,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 13, + "seq": 14, "type": "request", "arguments": { "file": "/home/src/workspaces/project/a.js", @@ -1406,13 +1425,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 13, + "request_seq": 14, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 14, + "seq": 15, "type": "request", "arguments": { "file": "/home/src/workspaces/project/a.js", @@ -1429,22 +1448,22 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 14, + "request_seq": 15, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -1465,7 +1484,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 15, + "seq": 16, "type": "request", "arguments": { "file": "/home/src/workspaces/project/a.js", @@ -1480,13 +1499,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 15, + "request_seq": 16, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 16, + "seq": 17, "type": "request", "arguments": { "file": "/home/src/workspaces/project/a.js", @@ -1503,22 +1522,22 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 16, + "request_seq": 17, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -1539,7 +1558,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 17, + "seq": 18, "type": "request", "arguments": { "file": "/home/src/workspaces/project/a.js", @@ -1554,13 +1573,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 17, + "request_seq": 18, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 18, + "seq": 19, "type": "request", "arguments": { "file": "/home/src/workspaces/project/a.js", @@ -1577,22 +1596,22 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 18, + "request_seq": 19, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -1613,7 +1632,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 19, + "seq": 20, "type": "request", "arguments": { "file": "/home/src/workspaces/project/a.js", @@ -1628,13 +1647,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 19, + "request_seq": 20, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 20, + "seq": 21, "type": "request", "arguments": { "file": "/home/src/workspaces/project/a.js", @@ -1651,22 +1670,22 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 20, + "request_seq": 21, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -1687,7 +1706,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 21, + "seq": 22, "type": "request", "arguments": { "file": "/home/src/workspaces/project/a.js", @@ -1702,13 +1721,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 21, + "request_seq": 22, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 22, + "seq": 23, "type": "request", "arguments": { "file": "/home/src/workspaces/project/a.js", @@ -1725,22 +1744,22 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 22, + "request_seq": 23, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -1761,7 +1780,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 23, + "seq": 24, "type": "request", "arguments": { "file": "/home/src/workspaces/project/a.js", @@ -1776,13 +1795,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 23, + "request_seq": 24, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 24, + "seq": 25, "type": "request", "arguments": { "file": "/home/src/workspaces/project/a.js", @@ -1799,22 +1818,22 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 24, + "request_seq": 25, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -1835,7 +1854,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 25, + "seq": 26, "type": "request", "arguments": { "file": "/home/src/workspaces/project/a.js", @@ -1850,13 +1869,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 25, + "request_seq": 26, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 26, + "seq": 27, "type": "request", "arguments": { "file": "/home/src/workspaces/project/a.js", @@ -1873,22 +1892,22 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 26, + "request_seq": 27, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -1909,7 +1928,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 27, + "seq": 28, "type": "request", "arguments": { "file": "/home/src/workspaces/project/a.js", @@ -1924,13 +1943,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 27, + "request_seq": 28, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 28, + "seq": 29, "type": "request", "arguments": { "file": "/home/src/workspaces/project/a.js", @@ -1947,22 +1966,22 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 28, + "request_seq": 29, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -1983,7 +2002,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 29, + "seq": 30, "type": "request", "arguments": { "file": "/home/src/workspaces/project/a.js", @@ -1998,13 +2017,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 29, + "request_seq": 30, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 30, + "seq": 31, "type": "request", "arguments": { "file": "/home/src/workspaces/project/a.js", @@ -2021,22 +2040,22 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 30, + "request_seq": 31, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -2057,7 +2076,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 31, + "seq": 32, "type": "request", "arguments": { "file": "/home/src/workspaces/project/a.js", @@ -2072,13 +2091,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 31, + "request_seq": 32, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 32, + "seq": 33, "type": "request", "arguments": { "file": "/home/src/workspaces/project/a.js", @@ -2095,22 +2114,22 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 32, + "request_seq": 33, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -2131,7 +2150,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 33, + "seq": 34, "type": "request", "arguments": { "file": "/home/src/workspaces/project/a.js", @@ -2146,13 +2165,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 33, + "request_seq": 34, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 34, + "seq": 35, "type": "request", "arguments": { "file": "/home/src/workspaces/project/a.js", @@ -2169,22 +2188,22 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 34, + "request_seq": 35, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -2205,7 +2224,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 35, + "seq": 36, "type": "request", "arguments": { "file": "/home/src/workspaces/project/a.js", @@ -2220,13 +2239,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 35, + "request_seq": 36, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 36, + "seq": 37, "type": "request", "arguments": { "file": "/home/src/workspaces/project/a.js", @@ -2243,22 +2262,22 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 36, + "request_seq": 37, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -2279,7 +2298,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 37, + "seq": 38, "type": "request", "arguments": { "file": "/home/src/workspaces/project/a.js", @@ -2294,13 +2313,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 37, + "request_seq": 38, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 38, + "seq": 39, "type": "request", "arguments": { "file": "/home/src/workspaces/project/a.js", @@ -2317,22 +2336,22 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 38, + "request_seq": 39, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -2353,7 +2372,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 39, + "seq": 40, "type": "request", "arguments": { "file": "/home/src/workspaces/project/a.js", @@ -2368,13 +2387,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 39, + "request_seq": 40, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 40, + "seq": 41, "type": "request", "arguments": { "file": "/home/src/workspaces/project/a.js", @@ -2391,22 +2410,22 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 40, + "request_seq": 41, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -2427,7 +2446,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 41, + "seq": 42, "type": "request", "arguments": { "file": "/home/src/workspaces/project/a.js", @@ -2442,13 +2461,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 41, + "request_seq": 42, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 42, + "seq": 43, "type": "request", "arguments": { "file": "/home/src/workspaces/project/a.js", @@ -2465,22 +2484,22 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 42, + "request_seq": 43, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -2501,7 +2520,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 43, + "seq": 44, "type": "request", "arguments": { "file": "/home/src/workspaces/project/a.js", @@ -2516,13 +2535,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 43, + "request_seq": 44, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 44, + "seq": 45, "type": "request", "arguments": { "file": "/home/src/workspaces/project/a.js", @@ -2539,22 +2558,22 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 44, + "request_seq": 45, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -2575,7 +2594,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 45, + "seq": 46, "type": "request", "arguments": { "file": "/home/src/workspaces/project/a.js", @@ -2590,13 +2609,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 45, + "request_seq": 46, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 46, + "seq": 47, "type": "request", "arguments": { "file": "/home/src/workspaces/project/a.js", @@ -2613,22 +2632,22 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 46, + "request_seq": 47, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -2649,7 +2668,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 47, + "seq": 48, "type": "request", "arguments": { "file": "/home/src/workspaces/project/a.js", @@ -2664,13 +2683,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 47, + "request_seq": 48, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 48, + "seq": 49, "type": "request", "arguments": { "file": "/home/src/workspaces/project/a.js", @@ -2687,22 +2706,22 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 48, + "request_seq": 49, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -2723,7 +2742,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 49, + "seq": 50, "type": "request", "arguments": { "file": "/home/src/workspaces/project/a.js", @@ -2738,13 +2757,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 49, + "request_seq": 50, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 50, + "seq": 51, "type": "request", "arguments": { "file": "/home/src/workspaces/project/a.js", @@ -2761,22 +2780,22 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 50, + "request_seq": 51, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -2797,7 +2816,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 51, + "seq": 52, "type": "request", "arguments": { "file": "/home/src/workspaces/project/a.js", @@ -2812,13 +2831,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 51, + "request_seq": 52, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 52, + "seq": 53, "type": "request", "arguments": { "file": "/home/src/workspaces/project/a.js", @@ -2835,22 +2854,22 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 52, + "request_seq": 53, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -2871,7 +2890,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 53, + "seq": 54, "type": "request", "arguments": { "file": "/home/src/workspaces/project/a.js", @@ -2886,13 +2905,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 53, + "request_seq": 54, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 54, + "seq": 55, "type": "request", "arguments": { "file": "/home/src/workspaces/project/a.js", @@ -2909,22 +2928,22 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 54, + "request_seq": 55, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -2945,7 +2964,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 55, + "seq": 56, "type": "request", "arguments": { "file": "/home/src/workspaces/project/a.js", @@ -2960,13 +2979,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 55, + "request_seq": 56, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 56, + "seq": 57, "type": "request", "arguments": { "file": "/home/src/workspaces/project/a.js", @@ -2983,22 +3002,22 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 56, + "request_seq": 57, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -3019,7 +3038,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 57, + "seq": 58, "type": "request", "arguments": { "file": "/home/src/workspaces/project/a.js", @@ -3034,13 +3053,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 57, + "request_seq": 58, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 58, + "seq": 59, "type": "request", "arguments": { "file": "/home/src/workspaces/project/a.js", @@ -3057,22 +3076,22 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 58, + "request_seq": 59, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -3093,7 +3112,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 59, + "seq": 60, "type": "request", "arguments": { "file": "/home/src/workspaces/project/a.js", @@ -3108,13 +3127,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 59, + "request_seq": 60, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 60, + "seq": 61, "type": "request", "arguments": { "file": "/home/src/workspaces/project/a.js", @@ -3131,22 +3150,22 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 60, + "request_seq": 61, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -3167,7 +3186,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 61, + "seq": 62, "type": "request", "arguments": { "file": "/home/src/workspaces/project/a.js", @@ -3182,13 +3201,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 61, + "request_seq": 62, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 62, + "seq": 63, "type": "request", "arguments": { "file": "/home/src/workspaces/project/a.js", @@ -3205,22 +3224,22 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 62, + "request_seq": 63, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -3241,7 +3260,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 63, + "seq": 64, "type": "request", "arguments": { "file": "/home/src/workspaces/project/a.js", @@ -3256,13 +3275,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 63, + "request_seq": 64, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 64, + "seq": 65, "type": "request", "arguments": { "file": "/home/src/workspaces/project/a.js", @@ -3279,22 +3298,22 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 64, + "request_seq": 65, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -3315,7 +3334,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 65, + "seq": 66, "type": "request", "arguments": { "file": "/home/src/workspaces/project/a.js", @@ -3330,13 +3349,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 65, + "request_seq": 66, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 66, + "seq": 67, "type": "request", "arguments": { "file": "/home/src/workspaces/project/a.js", @@ -3353,22 +3372,22 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 66, + "request_seq": 67, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -3389,7 +3408,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 67, + "seq": 68, "type": "request", "arguments": { "file": "/home/src/workspaces/project/a.js", @@ -3404,13 +3423,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 67, + "request_seq": 68, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 68, + "seq": 69, "type": "request", "arguments": { "file": "/home/src/workspaces/project/a.js", @@ -3427,22 +3446,22 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 68, + "request_seq": 69, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -3463,7 +3482,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 69, + "seq": 70, "type": "request", "arguments": { "file": "/home/src/workspaces/project/a.js", @@ -3478,13 +3497,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 69, + "request_seq": 70, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 70, + "seq": 71, "type": "request", "arguments": { "file": "/home/src/workspaces/project/a.js", @@ -3501,22 +3520,22 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 70, + "request_seq": 71, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -3537,7 +3556,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 71, + "seq": 72, "type": "request", "arguments": { "file": "/home/src/workspaces/project/a.js", @@ -3552,13 +3571,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 71, + "request_seq": 72, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 72, + "seq": 73, "type": "request", "arguments": { "preferences": { @@ -3573,12 +3592,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 72, + "request_seq": 73, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 73, + "seq": 74, "type": "request", "arguments": { "file": "/home/src/workspaces/project/a.js", @@ -3593,7 +3612,7 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json projectStateVersion: 2 projectProgramVersion: 1 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (5) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/a.js SVC-2-34 "import { promisify } from 'util';\nreadF" @@ -3616,7 +3635,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "completionInfo", - "request_seq": 73, + "request_seq": 74, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -4201,12 +4220,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: + {"pollingInterval":500} /home/src/workspaces/project/jsconfig.json: {"pollingInterval":2000} /home/src/workspaces/project/node_modules/@types/node/index.d.ts: @@ -4230,8 +4249,6 @@ watchedFiles:: watchedDirectoriesRecursive:: /home/src/workspaces/node_modules: *new* {} -/home/src/workspaces/node_modules/@types: - {} /home/src/workspaces/project: {} /home/src/workspaces/project/node_modules: @@ -4253,7 +4270,7 @@ Projects:: Info seq [hh:mm:ss:mss] request: { - "seq": 74, + "seq": 75, "type": "request", "arguments": { "file": "/home/src/workspaces/project/a.js", @@ -4270,7 +4287,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 74, + "request_seq": 75, "success": true } After Request @@ -4285,17 +4302,17 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -4316,7 +4333,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 75, + "seq": 76, "type": "request", "arguments": { "preferences": { @@ -4331,12 +4348,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 75, + "request_seq": 76, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 76, + "seq": 77, "type": "request", "arguments": { "file": "/home/src/workspaces/project/a.js", @@ -4349,7 +4366,7 @@ Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/workspac Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json projectStateVersion: 3 projectProgramVersion: 2 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (5) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/a.js SVC-2-35 "readF" @@ -4371,7 +4388,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "completionInfo", - "request_seq": 76, + "request_seq": 77, "success": true, "performanceData": { "updateGraphDurationMs": * diff --git a/tests/baselines/reference/tsserver/fourslashServer/importSuggestionsCache_exportUndefined.js b/tests/baselines/reference/tsserver/fourslashServer/importSuggestionsCache_exportUndefined.js index d4a5624f2865d..2ffed88ecb790 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/importSuggestionsCache_exportUndefined.js +++ b/tests/baselines/reference/tsserver/fourslashServer/importSuggestionsCache_exportUndefined.js @@ -1,21 +1,37 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "module": "esnext", + "lib": [ + "es5" + ], + "target": "es5", + "newLine": "crlf", + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/home/src/workspaces/project/index.ts] //// [/home/src/workspaces/project/tsconfig.json] -{ "compilerOptions": { "module": "esnext" } } +{ "compilerOptions": { "module": "esnext", "lib": ["es5"] } } //// [/home/src/workspaces/project/undefined.ts] export = undefined; @@ -27,7 +43,7 @@ export = x; Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/home/src/workspaces/project/tsconfig.json" @@ -45,6 +61,9 @@ Info seq [hh:mm:ss:mss] Config: /home/src/workspaces/project/tsconfig.json : { ], "options": { "module": 99, + "lib": [ + "lib.es5.d.ts" + ], "configFilePath": "/home/src/workspaces/project/tsconfig.json" } } @@ -64,7 +83,7 @@ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/p Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/undefined.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/undefinedAlias.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots @@ -74,7 +93,7 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (6) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/index.ts Text-1 "" @@ -82,12 +101,12 @@ Info seq [hh:mm:ss:mss] Files (6) /home/src/workspaces/project/undefinedAlias.ts Text-1 "const x = undefined;\nexport = x;" - ../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' index.ts Matched by default include pattern '**/*' undefined.ts @@ -127,18 +146,18 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text - /home/src/workspaces/project/tsconfig.json SVC-1-0 "{ \"compilerOptions\": { \"module\": \"esnext\" } }" + /home/src/workspaces/project/tsconfig.json SVC-1-0 "{ \"compilerOptions\": { \"module\": \"esnext\", \"lib\": [\"es5\"] } }" - ../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' tsconfig.json Root file specified for compilation @@ -159,7 +178,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -167,12 +186,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* + {"pollingInterval":500} /home/src/workspaces/project/index.ts: *new* {"pollingInterval":500} /home/src/workspaces/project/jsconfig.json: *new* @@ -205,17 +224,17 @@ Projects:: noOpenRef: true ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -239,7 +258,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts" @@ -266,17 +285,17 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 1, + "request_seq": 2, "success": true } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: + {"pollingInterval":500} /home/src/workspaces/project/jsconfig.json: {"pollingInterval":2000} /home/src/workspaces/project/tsconfig.json: @@ -311,17 +330,17 @@ Projects:: noOpenRef: false *changed* ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -346,7 +365,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "preferences": { @@ -361,7 +380,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 2, + "request_seq": 3, "success": true } After Request @@ -376,7 +395,7 @@ Projects:: Info seq [hh:mm:ss:mss] request: { - "seq": 3, + "seq": 4, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -400,7 +419,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "completionInfo", - "request_seq": 3, + "request_seq": 4, "success": true, "body": { "flags": 9, @@ -1102,7 +1121,7 @@ Projects:: Info seq [hh:mm:ss:mss] request: { - "seq": 4, + "seq": 5, "type": "request", "arguments": { "preferences": { @@ -1117,12 +1136,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 4, + "request_seq": 5, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 5, + "seq": 6, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -1145,7 +1164,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "completionInfo", - "request_seq": 5, + "request_seq": 6, "success": true, "body": { "flags": 1, diff --git a/tests/baselines/reference/tsserver/fourslashServer/importSuggestionsCache_invalidPackageJson.js b/tests/baselines/reference/tsserver/fourslashServer/importSuggestionsCache_invalidPackageJson.js index 455cd73846bd3..453e7727b69be 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/importSuggestionsCache_invalidPackageJson.js +++ b/tests/baselines/reference/tsserver/fourslashServer/importSuggestionsCache_invalidPackageJson.js @@ -1,16 +1,37 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "allowJs": true, + "maxNodeModuleJsDepth": 2, + "allowSyntheticDefaultImports": true, + "skipLibCheck": true, + "noEmit": true, + "lib": [ + "es5" + ], + "module": "commonjs", + "target": "es5", + "newLine": "crlf", + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/home/src/workspaces/project/a.js] readF @@ -18,6 +39,7 @@ readF //// [/home/src/workspaces/project/jsconfig.json] { "compilerOptions": { + "lib": ["es5"], "module": "commonjs", }, } @@ -36,7 +58,7 @@ declare module 'util' { Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/home/src/workspaces/project/jsconfig.json" @@ -56,6 +78,9 @@ Info seq [hh:mm:ss:mss] Config: /home/src/workspaces/project/jsconfig.json : { "allowSyntheticDefaultImports": true, "skipLibCheck": true, "noEmit": true, + "lib": [ + "lib.es5.d.ts" + ], "module": 1, "configFilePath": "/home/src/workspaces/project/jsconfig.json" } @@ -77,7 +102,7 @@ Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/workspac Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules 1 undefined Project: /home/src/workspaces/project/jsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules 1 undefined Project: /home/src/workspaces/project/jsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types/node/index.d.ts 500 undefined WatchType: Closed Script info -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types/node/package.json 2000 undefined Project: /home/src/workspaces/project/jsconfig.json WatchType: File location affecting resolution @@ -91,19 +116,19 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/jsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/jsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (5) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/a.js Text-1 "\nreadF" /home/src/workspaces/project/node_modules/@types/node/index.d.ts Text-1 "declare module 'fs' {\n export function readFile(): void;\n}\ndeclare module 'util' {\n export function promisify(): void;\n}" - ../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' a.js Matched by default include pattern '**/*' node_modules/@types/node/index.d.ts @@ -147,19 +172,19 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (5) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text - /home/src/workspaces/project/jsconfig.json SVC-1-0 "{\n \"compilerOptions\": {\n \"module\": \"commonjs\",\n },\n}" + /home/src/workspaces/project/jsconfig.json SVC-1-0 "{\n \"compilerOptions\": {\n \"lib\": [\"es5\"],\n \"module\": \"commonjs\",\n },\n}" /home/src/workspaces/project/node_modules/@types/node/index.d.ts Text-1 "declare module 'fs' {\n export function readFile(): void;\n}\ndeclare module 'util' {\n export function promisify(): void;\n}" - ../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' jsconfig.json Root file specified for compilation node_modules/@types/node/index.d.ts @@ -183,7 +208,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -191,12 +216,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* + {"pollingInterval":500} /home/src/workspaces/project/a.js: *new* {"pollingInterval":500} /home/src/workspaces/project/jsconfig.json: *new* @@ -243,17 +268,17 @@ Projects:: noOpenRef: true ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 containingProjects: 2 /home/src/workspaces/project/jsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 containingProjects: 2 /home/src/workspaces/project/jsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* version: Text-1 containingProjects: 2 /home/src/workspaces/project/jsconfig.json @@ -274,7 +299,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "file": "/home/src/workspaces/project/a.js" @@ -301,17 +326,17 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 1, + "request_seq": 2, "success": true } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: + {"pollingInterval":500} /home/src/workspaces/project/jsconfig.json: {"pollingInterval":2000} /home/src/workspaces/project/node_modules/@types/node/index.d.ts: @@ -360,17 +385,17 @@ Projects:: noOpenRef: false *changed* ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/jsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/jsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/jsconfig.json @@ -392,7 +417,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "preferences": { @@ -407,7 +432,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 2, + "request_seq": 3, "success": true } After Request @@ -422,7 +447,7 @@ Projects:: Info seq [hh:mm:ss:mss] request: { - "seq": 3, + "seq": 4, "type": "request", "arguments": { "file": "/home/src/workspaces/project/a.js", @@ -446,7 +471,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "completionInfo", - "request_seq": 3, + "request_seq": 4, "success": true, "body": { "flags": 1, diff --git a/tests/baselines/reference/tsserver/fourslashServer/importSuggestionsCache_moduleAugmentation.js b/tests/baselines/reference/tsserver/fourslashServer/importSuggestionsCache_moduleAugmentation.js index 3323b4222a6b6..9a00be6ec8d53 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/importSuggestionsCache_moduleAugmentation.js +++ b/tests/baselines/reference/tsserver/fourslashServer/importSuggestionsCache_moduleAugmentation.js @@ -1,16 +1,32 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "module": "esnext", + "lib": [ + "es5" + ], + "target": "es5", + "newLine": "crlf", + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/home/src/workspaces/project/a.ts] import 'react'; declare module 'react' { @@ -23,12 +39,12 @@ use export function useState(): void; //// [/home/src/workspaces/project/tsconfig.json] -{ "compilerOptions": { "module": "esnext" } } +{ "compilerOptions": { "module": "esnext", "lib": ["es5"] } } Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/home/src/workspaces/project/tsconfig.json" @@ -44,6 +60,9 @@ Info seq [hh:mm:ss:mss] Config: /home/src/workspaces/project/tsconfig.json : { ], "options": { "module": 99, + "lib": [ + "lib.es5.d.ts" + ], "configFilePath": "/home/src/workspaces/project/tsconfig.json" } } @@ -64,7 +83,7 @@ Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/workspac Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types/react/index.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces 0 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Failed Lookup Locations @@ -83,19 +102,19 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (5) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/node_modules/@types/react/index.d.ts Text-1 "export function useState(): void;" /home/src/workspaces/project/a.ts Text-1 "import 'react';\ndeclare module 'react' {\n export function useBlah(): void; \n}\n0;\nuse" - ../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' node_modules/@types/react/index.d.ts Imported via 'react' from file 'a.ts' Entry point for implicit type library 'react' @@ -141,19 +160,19 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (5) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text - /home/src/workspaces/project/tsconfig.json SVC-1-0 "{ \"compilerOptions\": { \"module\": \"esnext\" } }" + /home/src/workspaces/project/tsconfig.json SVC-1-0 "{ \"compilerOptions\": { \"module\": \"esnext\", \"lib\": [\"es5\"] } }" /home/src/workspaces/project/node_modules/@types/react/index.d.ts Text-1 "export function useState(): void;" - ../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' tsconfig.json Root file specified for compilation node_modules/@types/react/index.d.ts @@ -176,7 +195,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -184,12 +203,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* + {"pollingInterval":500} /home/src/workspaces/package.json: *new* {"pollingInterval":2000} {"pollingInterval":2000} @@ -244,17 +263,17 @@ Projects:: noOpenRef: true ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -275,7 +294,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "file": "/home/src/workspaces/project/a.ts" @@ -302,17 +321,17 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 1, + "request_seq": 2, "success": true } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: + {"pollingInterval":500} /home/src/workspaces/package.json: {"pollingInterval":2000} {"pollingInterval":2000} @@ -369,17 +388,17 @@ Projects:: noOpenRef: false *changed* ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -401,7 +420,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "preferences": { @@ -416,7 +435,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 2, + "request_seq": 3, "success": true } After Request @@ -431,7 +450,7 @@ Projects:: Info seq [hh:mm:ss:mss] request: { - "seq": 3, + "seq": 4, "type": "request", "arguments": { "file": "/home/src/workspaces/project/a.ts", @@ -456,7 +475,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "completionInfo", - "request_seq": 3, + "request_seq": 4, "success": true, "body": { "flags": 1, @@ -1188,7 +1207,7 @@ Projects:: Info seq [hh:mm:ss:mss] request: { - "seq": 4, + "seq": 5, "type": "request", "arguments": { "preferences": { @@ -1203,12 +1222,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 4, + "request_seq": 5, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 5, + "seq": 6, "type": "request", "arguments": { "file": "/home/src/workspaces/project/a.ts", @@ -1232,7 +1251,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "completionInfo", - "request_seq": 5, + "request_seq": 6, "success": true, "body": { "flags": 1, @@ -1954,7 +1973,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 6, + "seq": 7, "type": "request", "arguments": { "file": "/home/src/workspaces/project/a.ts" @@ -1979,12 +1998,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 6, + "request_seq": 7, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 7, + "seq": 8, "type": "request", "arguments": { "file": "/home/src/workspaces/project/a.ts", @@ -2001,7 +2020,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 7, + "request_seq": 8, "success": true } After Request @@ -2016,17 +2035,17 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -2047,7 +2066,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 8, + "seq": 9, "type": "request", "arguments": { "file": "/home/src/workspaces/project/a.ts", @@ -2064,22 +2083,22 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 8, + "request_seq": 9, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -2100,7 +2119,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 9, + "seq": 10, "type": "request", "arguments": { "file": "/home/src/workspaces/project/a.ts", @@ -2115,13 +2134,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 9, + "request_seq": 10, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 10, + "seq": 11, "type": "request", "arguments": { "file": "/home/src/workspaces/project/a.ts", @@ -2138,22 +2157,22 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 10, + "request_seq": 11, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -2174,7 +2193,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 11, + "seq": 12, "type": "request", "arguments": { "file": "/home/src/workspaces/project/a.ts", @@ -2189,13 +2208,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 11, + "request_seq": 12, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 12, + "seq": 13, "type": "request", "arguments": { "file": "/home/src/workspaces/project/a.ts", @@ -2212,22 +2231,22 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 12, + "request_seq": 13, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -2248,7 +2267,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 13, + "seq": 14, "type": "request", "arguments": { "file": "/home/src/workspaces/project/a.ts", @@ -2263,13 +2282,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 13, + "request_seq": 14, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 14, + "seq": 15, "type": "request", "arguments": { "file": "/home/src/workspaces/project/a.ts", @@ -2286,22 +2305,22 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 14, + "request_seq": 15, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -2322,7 +2341,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 15, + "seq": 16, "type": "request", "arguments": { "file": "/home/src/workspaces/project/a.ts", @@ -2337,13 +2356,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 15, + "request_seq": 16, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 16, + "seq": 17, "type": "request", "arguments": { "file": "/home/src/workspaces/project/a.ts", @@ -2360,22 +2379,22 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 16, + "request_seq": 17, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -2396,7 +2415,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 17, + "seq": 18, "type": "request", "arguments": { "file": "/home/src/workspaces/project/a.ts", @@ -2411,13 +2430,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 17, + "request_seq": 18, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 18, + "seq": 19, "type": "request", "arguments": { "file": "/home/src/workspaces/project/a.ts", @@ -2434,22 +2453,22 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 18, + "request_seq": 19, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -2470,7 +2489,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 19, + "seq": 20, "type": "request", "arguments": { "file": "/home/src/workspaces/project/a.ts", @@ -2485,13 +2504,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 19, + "request_seq": 20, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 20, + "seq": 21, "type": "request", "arguments": { "file": "/home/src/workspaces/project/a.ts", @@ -2508,22 +2527,22 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 20, + "request_seq": 21, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -2544,7 +2563,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 21, + "seq": 22, "type": "request", "arguments": { "file": "/home/src/workspaces/project/a.ts", @@ -2559,13 +2578,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 21, + "request_seq": 22, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 22, + "seq": 23, "type": "request", "arguments": { "file": "/home/src/workspaces/project/a.ts", @@ -2582,22 +2601,22 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 22, + "request_seq": 23, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -2618,7 +2637,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 23, + "seq": 24, "type": "request", "arguments": { "file": "/home/src/workspaces/project/a.ts", @@ -2633,13 +2652,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 23, + "request_seq": 24, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 24, + "seq": 25, "type": "request", "arguments": { "file": "/home/src/workspaces/project/a.ts", @@ -2656,22 +2675,22 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 24, + "request_seq": 25, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -2692,7 +2711,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 25, + "seq": 26, "type": "request", "arguments": { "file": "/home/src/workspaces/project/a.ts", @@ -2707,13 +2726,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 25, + "request_seq": 26, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 26, + "seq": 27, "type": "request", "arguments": { "file": "/home/src/workspaces/project/a.ts", @@ -2730,22 +2749,22 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 26, + "request_seq": 27, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -2766,7 +2785,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 27, + "seq": 28, "type": "request", "arguments": { "file": "/home/src/workspaces/project/a.ts", @@ -2781,13 +2800,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 27, + "request_seq": 28, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 28, + "seq": 29, "type": "request", "arguments": { "file": "/home/src/workspaces/project/a.ts", @@ -2804,22 +2823,22 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 28, + "request_seq": 29, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -2840,7 +2859,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 29, + "seq": 30, "type": "request", "arguments": { "file": "/home/src/workspaces/project/a.ts", @@ -2855,13 +2874,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 29, + "request_seq": 30, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 30, + "seq": 31, "type": "request", "arguments": { "file": "/home/src/workspaces/project/a.ts", @@ -2878,22 +2897,22 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 30, + "request_seq": 31, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -2914,7 +2933,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 31, + "seq": 32, "type": "request", "arguments": { "file": "/home/src/workspaces/project/a.ts", @@ -2929,13 +2948,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 31, + "request_seq": 32, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 32, + "seq": 33, "type": "request", "arguments": { "file": "/home/src/workspaces/project/a.ts", @@ -2952,22 +2971,22 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 32, + "request_seq": 33, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -2988,7 +3007,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 33, + "seq": 34, "type": "request", "arguments": { "file": "/home/src/workspaces/project/a.ts", @@ -3003,13 +3022,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 33, + "request_seq": 34, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 34, + "seq": 35, "type": "request", "arguments": { "file": "/home/src/workspaces/project/a.ts", @@ -3026,22 +3045,22 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 34, + "request_seq": 35, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -3062,7 +3081,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 35, + "seq": 36, "type": "request", "arguments": { "file": "/home/src/workspaces/project/a.ts", @@ -3077,13 +3096,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 35, + "request_seq": 36, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 36, + "seq": 37, "type": "request", "arguments": { "file": "/home/src/workspaces/project/a.ts", @@ -3100,22 +3119,22 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 36, + "request_seq": 37, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -3136,7 +3155,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 37, + "seq": 38, "type": "request", "arguments": { "file": "/home/src/workspaces/project/a.ts", @@ -3151,13 +3170,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 37, + "request_seq": 38, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 38, + "seq": 39, "type": "request", "arguments": { "file": "/home/src/workspaces/project/a.ts", @@ -3174,22 +3193,22 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 38, + "request_seq": 39, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -3210,7 +3229,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 39, + "seq": 40, "type": "request", "arguments": { "file": "/home/src/workspaces/project/a.ts", @@ -3225,13 +3244,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 39, + "request_seq": 40, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 40, + "seq": 41, "type": "request", "arguments": { "file": "/home/src/workspaces/project/a.ts", @@ -3248,22 +3267,22 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 40, + "request_seq": 41, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -3284,7 +3303,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 41, + "seq": 42, "type": "request", "arguments": { "file": "/home/src/workspaces/project/a.ts", @@ -3299,13 +3318,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 41, + "request_seq": 42, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 42, + "seq": 43, "type": "request", "arguments": { "file": "/home/src/workspaces/project/a.ts", @@ -3322,22 +3341,22 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 42, + "request_seq": 43, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -3358,7 +3377,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 43, + "seq": 44, "type": "request", "arguments": { "file": "/home/src/workspaces/project/a.ts", @@ -3373,13 +3392,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 43, + "request_seq": 44, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 44, + "seq": 45, "type": "request", "arguments": { "file": "/home/src/workspaces/project/a.ts", @@ -3396,22 +3415,22 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 44, + "request_seq": 45, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -3432,7 +3451,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 45, + "seq": 46, "type": "request", "arguments": { "file": "/home/src/workspaces/project/a.ts", @@ -3447,13 +3466,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 45, + "request_seq": 46, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 46, + "seq": 47, "type": "request", "arguments": { "file": "/home/src/workspaces/project/a.ts", @@ -3470,22 +3489,22 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 46, + "request_seq": 47, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -3506,7 +3525,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 47, + "seq": 48, "type": "request", "arguments": { "file": "/home/src/workspaces/project/a.ts", @@ -3521,13 +3540,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 47, + "request_seq": 48, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 48, + "seq": 49, "type": "request", "arguments": { "file": "/home/src/workspaces/project/a.ts", @@ -3544,22 +3563,22 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 48, + "request_seq": 49, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -3580,7 +3599,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 49, + "seq": 50, "type": "request", "arguments": { "file": "/home/src/workspaces/project/a.ts", @@ -3595,13 +3614,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 49, + "request_seq": 50, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 50, + "seq": 51, "type": "request", "arguments": { "file": "/home/src/workspaces/project/a.ts", @@ -3618,22 +3637,22 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 50, + "request_seq": 51, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -3654,7 +3673,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 51, + "seq": 52, "type": "request", "arguments": { "file": "/home/src/workspaces/project/a.ts", @@ -3669,13 +3688,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 51, + "request_seq": 52, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 52, + "seq": 53, "type": "request", "arguments": { "file": "/home/src/workspaces/project/a.ts", @@ -3692,22 +3711,22 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 52, + "request_seq": 53, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -3728,7 +3747,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 53, + "seq": 54, "type": "request", "arguments": { "file": "/home/src/workspaces/project/a.ts", @@ -3743,13 +3762,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 53, + "request_seq": 54, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 54, + "seq": 55, "type": "request", "arguments": { "file": "/home/src/workspaces/project/a.ts", @@ -3766,22 +3785,22 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 54, + "request_seq": 55, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -3802,7 +3821,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 55, + "seq": 56, "type": "request", "arguments": { "file": "/home/src/workspaces/project/a.ts", @@ -3817,13 +3836,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 55, + "request_seq": 56, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 56, + "seq": 57, "type": "request", "arguments": { "file": "/home/src/workspaces/project/a.ts", @@ -3840,22 +3859,22 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 56, + "request_seq": 57, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -3876,7 +3895,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 57, + "seq": 58, "type": "request", "arguments": { "file": "/home/src/workspaces/project/a.ts", @@ -3891,13 +3910,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 57, + "request_seq": 58, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 58, + "seq": 59, "type": "request", "arguments": { "file": "/home/src/workspaces/project/a.ts", @@ -3914,22 +3933,22 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 58, + "request_seq": 59, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -3950,7 +3969,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 59, + "seq": 60, "type": "request", "arguments": { "file": "/home/src/workspaces/project/a.ts", @@ -3965,13 +3984,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 59, + "request_seq": 60, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 60, + "seq": 61, "type": "request", "arguments": { "file": "/home/src/workspaces/project/a.ts", @@ -3988,22 +4007,22 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 60, + "request_seq": 61, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -4024,7 +4043,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 61, + "seq": 62, "type": "request", "arguments": { "file": "/home/src/workspaces/project/a.ts", @@ -4039,13 +4058,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 61, + "request_seq": 62, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 62, + "seq": 63, "type": "request", "arguments": { "file": "/home/src/workspaces/project/a.ts", @@ -4062,22 +4081,22 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 62, + "request_seq": 63, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -4098,7 +4117,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 63, + "seq": 64, "type": "request", "arguments": { "file": "/home/src/workspaces/project/a.ts", @@ -4113,13 +4132,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 63, + "request_seq": 64, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 64, + "seq": 65, "type": "request", "arguments": { "file": "/home/src/workspaces/project/a.ts", @@ -4136,22 +4155,22 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 64, + "request_seq": 65, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -4172,7 +4191,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 65, + "seq": 66, "type": "request", "arguments": { "file": "/home/src/workspaces/project/a.ts", @@ -4187,13 +4206,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 65, + "request_seq": 66, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 66, + "seq": 67, "type": "request", "arguments": { "file": "/home/src/workspaces/project/a.ts", @@ -4210,22 +4229,22 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 66, + "request_seq": 67, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -4246,7 +4265,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 67, + "seq": 68, "type": "request", "arguments": { "file": "/home/src/workspaces/project/a.ts", @@ -4261,13 +4280,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 67, + "request_seq": 68, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 68, + "seq": 69, "type": "request", "arguments": { "file": "/home/src/workspaces/project/a.ts", @@ -4284,22 +4303,22 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 68, + "request_seq": 69, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -4320,7 +4339,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 69, + "seq": 70, "type": "request", "arguments": { "file": "/home/src/workspaces/project/a.ts", @@ -4335,13 +4354,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 69, + "request_seq": 70, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 70, + "seq": 71, "type": "request", "arguments": { "file": "/home/src/workspaces/project/a.ts", @@ -4358,22 +4377,22 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 70, + "request_seq": 71, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/tsconfig.json @@ -4394,7 +4413,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 71, + "seq": 72, "type": "request", "arguments": { "file": "/home/src/workspaces/project/a.ts", @@ -4409,13 +4428,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 71, + "request_seq": 72, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 72, + "seq": 73, "type": "request", "arguments": { "preferences": { @@ -4430,12 +4449,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 72, + "request_seq": 73, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 73, + "seq": 74, "type": "request", "arguments": { "file": "/home/src/workspaces/project/a.ts", @@ -4448,7 +4467,7 @@ Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/workspac Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json projectStateVersion: 2 projectProgramVersion: 1 structureChanged: false structureIsReused:: Completely Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (5) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/node_modules/@types/react/index.d.ts Text-1 "export function useState(): void;" @@ -4471,7 +4490,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "completionInfo", - "request_seq": 73, + "request_seq": 74, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -5207,7 +5226,7 @@ Projects:: Info seq [hh:mm:ss:mss] request: { - "seq": 74, + "seq": 75, "type": "request", "arguments": { "preferences": { @@ -5222,12 +5241,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 74, + "request_seq": 75, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 75, + "seq": 76, "type": "request", "arguments": { "file": "/home/src/workspaces/project/a.ts", @@ -5251,7 +5270,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "completionInfo", - "request_seq": 75, + "request_seq": 76, "success": true, "body": { "flags": 1, diff --git a/tests/baselines/reference/tsserver/fourslashServer/isDefinitionAcrossGlobalProjects.js b/tests/baselines/reference/tsserver/fourslashServer/isDefinitionAcrossGlobalProjects.js index 69968a6de6302..13e18e6fffbcb 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/isDefinitionAcrossGlobalProjects.js +++ b/tests/baselines/reference/tsserver/fourslashServer/isDefinitionAcrossGlobalProjects.js @@ -1,16 +1,32 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "composite": true, + "lib": [ + "es5" + ], + "target": "es5", + "newLine": "crlf", + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/home/src/workspaces/project/a/index.ts] namespace NS { export function FA() { @@ -82,6 +98,7 @@ const ic: I = { FC() {} }; { "compilerOptions": { "composite": true, + "lib": ["es5"], }, "references": [ { "path": "a" }, @@ -97,13 +114,14 @@ const ic: I = { FC() {} }; "declarationMap": true, "module": "none", "emitDeclarationOnly": true, + "lib": ["es5"], } } Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/home/src/workspaces/project/a/index.ts" @@ -123,6 +141,9 @@ Info seq [hh:mm:ss:mss] Config: /home/src/workspaces/project/a/tsconfig.json : "declarationMap": true, "module": 0, "emitDeclarationOnly": true, + "lib": [ + "lib.es5.d.ts" + ], "configFilePath": "/home/src/workspaces/project/a/tsconfig.json" }, "projectReferences": [ @@ -158,6 +179,9 @@ Info seq [hh:mm:ss:mss] Config: /home/src/workspaces/project/b/tsconfig.json : "declarationMap": true, "module": 0, "emitDeclarationOnly": true, + "lib": [ + "lib.es5.d.ts" + ], "configFilePath": "/home/src/workspaces/project/b/tsconfig.json" } } @@ -172,13 +196,16 @@ Info seq [hh:mm:ss:mss] Config: /home/src/workspaces/project/c/tsconfig.json : "declarationMap": true, "module": 0, "emitDeclarationOnly": true, + "lib": [ + "lib.es5.d.ts" + ], "configFilePath": "/home/src/workspaces/project/c/tsconfig.json" } } Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/c/tsconfig.json 2000 undefined Project: /home/src/workspaces/project/a/tsconfig.json WatchType: Config file Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/b/index.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/c/index.ts 500 undefined WatchType: Closed Script info -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/a/node_modules/@types 1 undefined Project: /home/src/workspaces/project/a/tsconfig.json WatchType: Type roots @@ -190,7 +217,7 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/a/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/a/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (6) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/b/index.ts Text-1 "namespace NS {\n export function FB() {}\n}\n\ninterface I {\n FB();\n}\n\nconst ib: I = { FB() {} };" @@ -198,12 +225,12 @@ Info seq [hh:mm:ss:mss] Files (6) /home/src/workspaces/project/a/index.ts SVC-1-0 "namespace NS {\n export function FA() {\n FB();\n }\n}\n\ninterface I {\n FA();\n}\n\nconst ia: I = {\n FA() { },\n FB() { },\n FC() { },\n };" - ../../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../../tslibs/TS/Lib/lib.es5.d.ts' ../../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../../tslibs/TS/Lib/lib.es5.d.ts' ../b/index.ts Source from referenced project '../b/tsconfig.json' included because '--module' is specified as 'none' ../c/index.ts @@ -258,7 +285,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -266,12 +293,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* + {"pollingInterval":500} /home/src/workspaces/project/a/tsconfig.json: *new* {"pollingInterval":2000} /home/src/workspaces/project/b/index.ts: *new* @@ -307,15 +334,15 @@ Projects:: initialLoadPending: true ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 containingProjects: 1 /home/src/workspaces/project/a/tsconfig.json -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 containingProjects: 1 /home/src/workspaces/project/a/tsconfig.json -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* version: Text-1 containingProjects: 1 /home/src/workspaces/project/a/tsconfig.json @@ -334,7 +361,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "file": "/home/src/workspaces/project/a/index.ts", @@ -358,6 +385,9 @@ Info seq [hh:mm:ss:mss] Config: /home/src/workspaces/project/tsconfig.json : { "rootNames": [], "options": { "composite": true, + "lib": [ + "lib.es5.d.ts" + ], "configFilePath": "/home/src/workspaces/project/tsconfig.json" }, "projectReferences": [ @@ -403,7 +433,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "references-full", - "request_seq": 1, + "request_seq": 2, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -487,12 +517,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: + {"pollingInterval":500} /home/src/workspaces/project/a/index.d.ts: *new* {"pollingInterval":2000} /home/src/workspaces/project/a/tsconfig.json: @@ -535,7 +565,7 @@ Projects:: Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "file": "/home/src/workspaces/project/a/index.ts", @@ -567,18 +597,18 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/b/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/b/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/b/index.ts Text-1 "namespace NS {\n export function FB() {}\n}\n\ninterface I {\n FB();\n}\n\nconst ib: I = { FB() {} };" - ../../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../../tslibs/TS/Lib/lib.es5.d.ts' ../../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../../tslibs/TS/Lib/lib.es5.d.ts' index.ts Part of 'files' list in tsconfig.json @@ -633,18 +663,18 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/c/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/c/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/c/index.ts Text-1 "namespace NS {\n export function FC() {}\n}\n\ninterface I {\n FC();\n}\n\nconst ic: I = { FC() {} };" - ../../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../../tslibs/TS/Lib/lib.es5.d.ts' ../../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../../tslibs/TS/Lib/lib.es5.d.ts' index.ts Part of 'files' list in tsconfig.json @@ -683,7 +713,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "references-full", - "request_seq": 2, + "request_seq": 3, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -792,12 +822,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: + {"pollingInterval":500} /home/src/workspaces/project/a/index.d.ts: {"pollingInterval":2000} /home/src/workspaces/project/a/tsconfig.json: @@ -853,19 +883,19 @@ Projects:: projectProgramVersion: 1 ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *changed* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *changed* version: Text-1 containingProjects: 3 *changed* /home/src/workspaces/project/a/tsconfig.json /home/src/workspaces/project/b/tsconfig.json *new* /home/src/workspaces/project/c/tsconfig.json *new* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *changed* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *changed* version: Text-1 containingProjects: 3 *changed* /home/src/workspaces/project/a/tsconfig.json /home/src/workspaces/project/b/tsconfig.json *new* /home/src/workspaces/project/c/tsconfig.json *new* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *changed* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *changed* version: Text-1 containingProjects: 3 *changed* /home/src/workspaces/project/a/tsconfig.json @@ -888,7 +918,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 3, + "seq": 4, "type": "request", "arguments": { "file": "/home/src/workspaces/project/a/index.ts", @@ -903,7 +933,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "references-full", - "request_seq": 3, + "request_seq": 4, "success": true, "body": [ { @@ -1005,7 +1035,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 4, + "seq": 5, "type": "request", "arguments": { "file": "/home/src/workspaces/project/b/index.ts" @@ -1042,17 +1072,17 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 4, + "request_seq": 5, "success": true } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: + {"pollingInterval":500} /home/src/workspaces/project/a/index.d.ts: {"pollingInterval":2000} /home/src/workspaces/project/a/tsconfig.json: @@ -1091,19 +1121,19 @@ watchedDirectoriesRecursive:: {} ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 3 /home/src/workspaces/project/a/tsconfig.json /home/src/workspaces/project/b/tsconfig.json /home/src/workspaces/project/c/tsconfig.json -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 3 /home/src/workspaces/project/a/tsconfig.json /home/src/workspaces/project/b/tsconfig.json /home/src/workspaces/project/c/tsconfig.json -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 3 /home/src/workspaces/project/a/tsconfig.json @@ -1127,7 +1157,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 5, + "seq": 6, "type": "request", "arguments": { "file": "/home/src/workspaces/project/b/index.ts", @@ -1144,7 +1174,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "references-full", - "request_seq": 5, + "request_seq": 6, "success": true, "body": [ { @@ -1234,12 +1264,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: + {"pollingInterval":500} /home/src/workspaces/project/a/index.d.ts: {"pollingInterval":2000} /home/src/workspaces/project/a/tsconfig.json: @@ -1298,7 +1328,7 @@ Projects:: Info seq [hh:mm:ss:mss] request: { - "seq": 6, + "seq": 7, "type": "request", "arguments": { "file": "/home/src/workspaces/project/b/index.ts", @@ -1317,7 +1347,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "references-full", - "request_seq": 6, + "request_seq": 7, "success": true, "body": [ { @@ -1423,7 +1453,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 7, + "seq": 8, "type": "request", "arguments": { "file": "/home/src/workspaces/project/b/index.ts", @@ -1439,7 +1469,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "references-full", - "request_seq": 7, + "request_seq": 8, "success": true, "body": [ { @@ -1554,7 +1584,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 8, + "seq": 9, "type": "request", "arguments": { "file": "/home/src/workspaces/project/c/index.ts" @@ -1593,17 +1623,17 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 8, + "request_seq": 9, "success": true } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: + {"pollingInterval":500} /home/src/workspaces/project/a/index.d.ts: {"pollingInterval":2000} /home/src/workspaces/project/a/tsconfig.json: @@ -1642,19 +1672,19 @@ watchedDirectoriesRecursive:: {} ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 3 /home/src/workspaces/project/a/tsconfig.json /home/src/workspaces/project/b/tsconfig.json /home/src/workspaces/project/c/tsconfig.json -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 3 /home/src/workspaces/project/a/tsconfig.json /home/src/workspaces/project/b/tsconfig.json /home/src/workspaces/project/c/tsconfig.json -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 3 /home/src/workspaces/project/a/tsconfig.json @@ -1678,7 +1708,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 9, + "seq": 10, "type": "request", "arguments": { "file": "/home/src/workspaces/project/c/index.ts", @@ -1695,7 +1725,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "references-full", - "request_seq": 9, + "request_seq": 10, "success": true, "body": [ { @@ -1776,12 +1806,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: + {"pollingInterval":500} /home/src/workspaces/project/a/index.d.ts: {"pollingInterval":2000} /home/src/workspaces/project/a/tsconfig.json: @@ -1840,7 +1870,7 @@ Projects:: Info seq [hh:mm:ss:mss] request: { - "seq": 10, + "seq": 11, "type": "request", "arguments": { "file": "/home/src/workspaces/project/c/index.ts", @@ -1857,7 +1887,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "references-full", - "request_seq": 10, + "request_seq": 11, "success": true, "body": [ { @@ -1996,7 +2026,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 11, + "seq": 12, "type": "request", "arguments": { "file": "/home/src/workspaces/project/c/index.ts", @@ -2012,7 +2042,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "references-full", - "request_seq": 11, + "request_seq": 12, "success": true, "body": [ { diff --git a/tests/baselines/reference/tsserver/fourslashServer/isDefinitionAcrossModuleProjects.js b/tests/baselines/reference/tsserver/fourslashServer/isDefinitionAcrossModuleProjects.js index 866f402b0e5b5..f29d4a783e2b8 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/isDefinitionAcrossModuleProjects.js +++ b/tests/baselines/reference/tsserver/fourslashServer/isDefinitionAcrossModuleProjects.js @@ -1,16 +1,32 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "composite": true, + "lib": [ + "es5" + ], + "target": "es5", + "newLine": "crlf", + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/home/src/workspaces/project/a/index.ts] import { NS } from "../b"; import { I } from "../c"; @@ -123,6 +139,7 @@ const ic: I = { FC() {} }; { "compilerOptions": { "composite": true, + "lib": ["es5"], }, "references": [ { "path": "a" }, @@ -139,13 +156,14 @@ const ic: I = { FC() {} }; "declarationMap": true, "module": "CommonJS", "emitDeclarationOnly": true, + "lib": ["es5"], } } Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/home/src/workspaces/project/a/index.ts" @@ -165,6 +183,9 @@ Info seq [hh:mm:ss:mss] Config: /home/src/workspaces/project/a/tsconfig.json : "declarationMap": true, "module": 1, "emitDeclarationOnly": true, + "lib": [ + "lib.es5.d.ts" + ], "configFilePath": "/home/src/workspaces/project/a/tsconfig.json" }, "projectReferences": [ @@ -201,6 +222,9 @@ Info seq [hh:mm:ss:mss] Config: /home/src/workspaces/project/b/tsconfig.json : "declarationMap": true, "module": 1, "emitDeclarationOnly": true, + "lib": [ + "lib.es5.d.ts" + ], "configFilePath": "/home/src/workspaces/project/b/tsconfig.json" } } @@ -215,6 +239,9 @@ Info seq [hh:mm:ss:mss] Config: /home/src/workspaces/project/c/tsconfig.json : "declarationMap": true, "module": 1, "emitDeclarationOnly": true, + "lib": [ + "lib.es5.d.ts" + ], "configFilePath": "/home/src/workspaces/project/c/tsconfig.json" } } @@ -227,7 +254,7 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspa Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/c 1 undefined Project: /home/src/workspaces/project/a/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/b/index.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/c/index.ts 500 undefined WatchType: Closed Script info -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/a/node_modules/@types 1 undefined Project: /home/src/workspaces/project/a/tsconfig.json WatchType: Type roots @@ -239,7 +266,7 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/a/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/a/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (6) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/b/index.ts Text-1 "export namespace NS {\n export function FB() {}\n}\n\nexport interface I {\n FB();\n}\n\nconst ib: I = { FB() {} };" @@ -247,12 +274,12 @@ Info seq [hh:mm:ss:mss] Files (6) /home/src/workspaces/project/a/index.ts SVC-1-0 "import { NS } from \"../b\";\nimport { I } from \"../c\";\n\ndeclare module \"../b\" {\n export namespace NS {\n export function FA();\n }\n}\n\ndeclare module \"../c\" {\n export interface I {\n FA();\n }\n}\n\nconst ia: I = {\n FA: NS.FA,\n FC() { },\n};" - ../../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../../tslibs/TS/Lib/lib.es5.d.ts' ../../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../../tslibs/TS/Lib/lib.es5.d.ts' ../b/index.ts Imported via "../b" from file 'index.ts' ../c/index.ts @@ -301,7 +328,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -309,12 +336,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* + {"pollingInterval":500} /home/src/workspaces/project/a/tsconfig.json: *new* {"pollingInterval":2000} /home/src/workspaces/project/b/index.ts: *new* @@ -358,15 +385,15 @@ Projects:: initialLoadPending: true ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 containingProjects: 1 /home/src/workspaces/project/a/tsconfig.json -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 containingProjects: 1 /home/src/workspaces/project/a/tsconfig.json -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* version: Text-1 containingProjects: 1 /home/src/workspaces/project/a/tsconfig.json @@ -385,7 +412,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "file": "/home/src/workspaces/project/a/index.ts", @@ -409,6 +436,9 @@ Info seq [hh:mm:ss:mss] Config: /home/src/workspaces/project/tsconfig.json : { "rootNames": [], "options": { "composite": true, + "lib": [ + "lib.es5.d.ts" + ], "configFilePath": "/home/src/workspaces/project/tsconfig.json" }, "projectReferences": [ @@ -433,6 +463,9 @@ Info seq [hh:mm:ss:mss] Config: /home/src/workspaces/project/a2/tsconfig.json : "declarationMap": true, "module": 1, "emitDeclarationOnly": true, + "lib": [ + "lib.es5.d.ts" + ], "configFilePath": "/home/src/workspaces/project/a2/tsconfig.json" }, "projectReferences": [ @@ -482,7 +515,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "references-full", - "request_seq": 1, + "request_seq": 2, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -575,12 +608,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: + {"pollingInterval":500} /home/src/workspaces/project/a/index.d.ts: *new* {"pollingInterval":2000} /home/src/workspaces/project/a/tsconfig.json: @@ -633,7 +666,7 @@ Projects:: Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "file": "/home/src/workspaces/project/a/index.ts", @@ -665,18 +698,18 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/c/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/c/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/c/index.ts Text-1 "export namespace NS {\n export function FC() {}\n}\n\nexport interface I {\n FC();\n}\n\nconst ic: I = { FC() {} };" - ../../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../../tslibs/TS/Lib/lib.es5.d.ts' ../../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../../tslibs/TS/Lib/lib.es5.d.ts' index.ts Part of 'files' list in tsconfig.json @@ -732,7 +765,7 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/a2/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/a2/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (6) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/b/index.ts Text-1 "export namespace NS {\n export function FB() {}\n}\n\nexport interface I {\n FB();\n}\n\nconst ib: I = { FB() {} };" @@ -740,12 +773,12 @@ Info seq [hh:mm:ss:mss] Files (6) /home/src/workspaces/project/a2/index.ts Text-1 "import { NS } from \"../b\";\nimport { I } from \"../c\";\n\ndeclare module \"../b\" {\n export namespace NS {\n export function FA();\n }\n}\n\ndeclare module \"../c\" {\n export interface I {\n FA();\n }\n}\n\nconst ia: I = {\n FA: NS.FA,\n FC() { },\n};" - ../../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../../tslibs/TS/Lib/lib.es5.d.ts' ../../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../../tslibs/TS/Lib/lib.es5.d.ts' ../b/index.ts Imported via "../b" from file 'index.ts' ../c/index.ts @@ -783,7 +816,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "references-full", - "request_seq": 2, + "request_seq": 3, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -1048,12 +1081,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: + {"pollingInterval":500} /home/src/workspaces/project/a/index.d.ts: {"pollingInterval":2000} /home/src/workspaces/project/a/tsconfig.json: @@ -1127,19 +1160,19 @@ Projects:: projectProgramVersion: 1 ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *changed* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *changed* version: Text-1 containingProjects: 3 *changed* /home/src/workspaces/project/a/tsconfig.json /home/src/workspaces/project/c/tsconfig.json *new* /home/src/workspaces/project/a2/tsconfig.json *new* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *changed* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *changed* version: Text-1 containingProjects: 3 *changed* /home/src/workspaces/project/a/tsconfig.json /home/src/workspaces/project/c/tsconfig.json *new* /home/src/workspaces/project/a2/tsconfig.json *new* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *changed* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *changed* version: Text-1 containingProjects: 3 *changed* /home/src/workspaces/project/a/tsconfig.json @@ -1167,7 +1200,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 3, + "seq": 4, "type": "request", "arguments": { "file": "/home/src/workspaces/project/a/index.ts", @@ -1182,7 +1215,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "references-full", - "request_seq": 3, + "request_seq": 4, "success": true, "body": [ { @@ -1284,7 +1317,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 4, + "seq": 5, "type": "request", "arguments": { "file": "/home/src/workspaces/project/a2/index.ts" @@ -1321,17 +1354,17 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 4, + "request_seq": 5, "success": true } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: + {"pollingInterval":500} /home/src/workspaces/project/a/index.d.ts: {"pollingInterval":2000} /home/src/workspaces/project/a/tsconfig.json: @@ -1385,19 +1418,19 @@ watchedDirectoriesRecursive:: {} ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 3 /home/src/workspaces/project/a/tsconfig.json /home/src/workspaces/project/c/tsconfig.json /home/src/workspaces/project/a2/tsconfig.json -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 3 /home/src/workspaces/project/a/tsconfig.json /home/src/workspaces/project/c/tsconfig.json /home/src/workspaces/project/a2/tsconfig.json -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 3 /home/src/workspaces/project/a/tsconfig.json @@ -1426,7 +1459,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 5, + "seq": 6, "type": "request", "arguments": { "file": "/home/src/workspaces/project/a2/index.ts", @@ -1442,7 +1475,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "references-full", - "request_seq": 5, + "request_seq": 6, "success": true, "body": [ { @@ -1532,12 +1565,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: + {"pollingInterval":500} /home/src/workspaces/project/a/index.d.ts: {"pollingInterval":2000} /home/src/workspaces/project/a/tsconfig.json: @@ -1614,7 +1647,7 @@ Projects:: Info seq [hh:mm:ss:mss] request: { - "seq": 6, + "seq": 7, "type": "request", "arguments": { "file": "/home/src/workspaces/project/a2/index.ts", @@ -1637,7 +1670,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "references-full", - "request_seq": 6, + "request_seq": 7, "success": true, "body": [ { @@ -1923,7 +1956,7 @@ Projects:: Info seq [hh:mm:ss:mss] request: { - "seq": 7, + "seq": 8, "type": "request", "arguments": { "file": "/home/src/workspaces/project/a2/index.ts", @@ -1938,7 +1971,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "references-full", - "request_seq": 7, + "request_seq": 8, "success": true, "body": [ { @@ -2040,7 +2073,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 8, + "seq": 9, "type": "request", "arguments": { "file": "/home/src/workspaces/project/b/index.ts" @@ -2071,19 +2104,19 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/b/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/b/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (5) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/b/index.ts Text-1 "export namespace NS {\n export function FB() {}\n}\n\nexport interface I {\n FB();\n}\n\nconst ib: I = { FB() {} };" /home/src/workspaces/project/b/other.ts Text-1 "export const Other = 1;" - ../../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../../tslibs/TS/Lib/lib.es5.d.ts' ../../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../../tslibs/TS/Lib/lib.es5.d.ts' index.ts Part of 'files' list in tsconfig.json other.ts @@ -2144,7 +2177,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 8, + "request_seq": 9, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -2152,12 +2185,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: + {"pollingInterval":500} /home/src/workspaces/project/a/index.d.ts: {"pollingInterval":2000} /home/src/workspaces/project/a/tsconfig.json: @@ -2244,21 +2277,21 @@ Projects:: projectProgramVersion: 1 ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *changed* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *changed* version: Text-1 containingProjects: 4 *changed* /home/src/workspaces/project/a/tsconfig.json /home/src/workspaces/project/c/tsconfig.json /home/src/workspaces/project/a2/tsconfig.json /home/src/workspaces/project/b/tsconfig.json *new* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *changed* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *changed* version: Text-1 containingProjects: 4 *changed* /home/src/workspaces/project/a/tsconfig.json /home/src/workspaces/project/c/tsconfig.json /home/src/workspaces/project/a2/tsconfig.json /home/src/workspaces/project/b/tsconfig.json *new* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *changed* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *changed* version: Text-1 containingProjects: 4 *changed* /home/src/workspaces/project/a/tsconfig.json @@ -2293,7 +2326,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 9, + "seq": 10, "type": "request", "arguments": { "file": "/home/src/workspaces/project/b/index.ts", @@ -2311,7 +2344,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "references-full", - "request_seq": 9, + "request_seq": 10, "success": true, "body": [ { @@ -2392,12 +2425,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: + {"pollingInterval":500} /home/src/workspaces/project/a/index.d.ts: {"pollingInterval":2000} /home/src/workspaces/project/a/tsconfig.json: @@ -2487,7 +2520,7 @@ Projects:: Info seq [hh:mm:ss:mss] request: { - "seq": 10, + "seq": 11, "type": "request", "arguments": { "file": "/home/src/workspaces/project/b/index.ts", @@ -2504,7 +2537,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "references-full", - "request_seq": 10, + "request_seq": 11, "success": true, "body": [ { @@ -2566,7 +2599,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 11, + "seq": 12, "type": "request", "arguments": { "file": "/home/src/workspaces/project/b/index.ts", @@ -2583,7 +2616,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "references-full", - "request_seq": 11, + "request_seq": 12, "success": true, "body": [ { @@ -2685,7 +2718,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 12, + "seq": 13, "type": "request", "arguments": { "file": "/home/src/workspaces/project/c/index.ts" @@ -2730,17 +2763,17 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 12, + "request_seq": 13, "success": true } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: + {"pollingInterval":500} /home/src/workspaces/project/a/index.d.ts: {"pollingInterval":2000} /home/src/workspaces/project/a/tsconfig.json: @@ -2800,21 +2833,21 @@ watchedDirectoriesRecursive:: {} ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 4 /home/src/workspaces/project/a/tsconfig.json /home/src/workspaces/project/c/tsconfig.json /home/src/workspaces/project/a2/tsconfig.json /home/src/workspaces/project/b/tsconfig.json -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 4 /home/src/workspaces/project/a/tsconfig.json /home/src/workspaces/project/c/tsconfig.json /home/src/workspaces/project/a2/tsconfig.json /home/src/workspaces/project/b/tsconfig.json -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 4 /home/src/workspaces/project/a/tsconfig.json @@ -2849,7 +2882,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 13, + "seq": 14, "type": "request", "arguments": { "file": "/home/src/workspaces/project/c/index.ts", @@ -2867,7 +2900,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "references-full", - "request_seq": 13, + "request_seq": 14, "success": true, "body": [ { @@ -2948,12 +2981,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: + {"pollingInterval":500} /home/src/workspaces/project/a/index.d.ts: {"pollingInterval":2000} /home/src/workspaces/project/a/tsconfig.json: @@ -3043,7 +3076,7 @@ Projects:: Info seq [hh:mm:ss:mss] request: { - "seq": 14, + "seq": 15, "type": "request", "arguments": { "file": "/home/src/workspaces/project/c/index.ts", @@ -3060,7 +3093,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "references-full", - "request_seq": 14, + "request_seq": 15, "success": true, "body": [ { @@ -3322,7 +3355,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 15, + "seq": 16, "type": "request", "arguments": { "file": "/home/src/workspaces/project/c/index.ts", @@ -3339,7 +3372,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "references-full", - "request_seq": 15, + "request_seq": 16, "success": true, "body": [ { diff --git a/tests/baselines/reference/tsserver/fourslashServer/jsdocCallbackTag.js b/tests/baselines/reference/tsserver/fourslashServer/jsdocCallbackTag.js index 921b73d11702f..13fbebd6c6085 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/jsdocCallbackTag.js +++ b/tests/baselines/reference/tsserver/fourslashServer/jsdocCallbackTag.js @@ -1,16 +1,32 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "target": "es5", + "newLine": "crlf", + "lib": [ + "es5" + ], + "strict": false, + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/tests/cases/fourslash/server/jsdocCallbackTag.js] /** * @callback FooHandler - A kind of magic @@ -38,7 +54,7 @@ t("!", 12, false); Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/jsdocCallbackTag.js" @@ -50,7 +66,7 @@ Info seq [hh:mm:ss:mss] Creating InferredProject: /dev/null/inferredProject1*, Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots @@ -60,18 +76,18 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /te Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /tests/cases/fourslash/server/jsdocCallbackTag.js SVC-1-0 "/**\n * @callback FooHandler - A kind of magic\n * @param {string} eventName - So many words\n * @param eventName2 {number | string} - Silence is golden\n * @param eventName3 - Osterreich mos def\n * @return {number} - DIVEKICK\n */\n/**\n * @type {FooHandler} callback\n */\nvar t;\n\n/**\n * @callback FooHandler2 - What, another one?\n * @param {string=} eventName - it keeps happening\n * @param {string} [eventName2] - i WARNED you dog\n */\n/**\n * @type {FooHandler2} callback\n */\nvar t2;\nt(\"!\", 12, false);" - ../../../../home/src/tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../../../home/src/tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../../../home/src/tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' ../../../../home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../../../home/src/tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' jsdocCallbackTag.js Root file specified for compilation @@ -88,7 +104,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -96,12 +112,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* + {"pollingInterval":500} /tests/cases/fourslash/server/jsconfig.json: *new* {"pollingInterval":2000} /tests/cases/fourslash/server/tsconfig.json: *new* @@ -120,15 +136,15 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* @@ -139,7 +155,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/jsdocCallbackTag.js", @@ -153,7 +169,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "quickinfo", - "request_seq": 1, + "request_seq": 2, "success": true, "body": { "kind": "var", @@ -178,7 +194,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/jsdocCallbackTag.js", @@ -192,7 +208,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "quickinfo", - "request_seq": 2, + "request_seq": 3, "success": true, "body": { "kind": "var", @@ -217,7 +233,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 3, + "seq": 4, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/jsdocCallbackTag.js", @@ -231,7 +247,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "quickinfo", - "request_seq": 3, + "request_seq": 4, "success": true, "body": { "kind": "type", @@ -251,7 +267,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 4, + "seq": 5, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/jsdocCallbackTag.js", @@ -265,7 +281,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "quickinfo", - "request_seq": 4, + "request_seq": 5, "success": true, "body": { "kind": "type", diff --git a/tests/baselines/reference/tsserver/fourslashServer/jsdocCallbackTagNavigateTo.js b/tests/baselines/reference/tsserver/fourslashServer/jsdocCallbackTagNavigateTo.js index 7893c5cf5f26f..22a5478770558 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/jsdocCallbackTagNavigateTo.js +++ b/tests/baselines/reference/tsserver/fourslashServer/jsdocCallbackTagNavigateTo.js @@ -1,16 +1,31 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "target": "es5", + "newLine": "crlf", + "lib": [ + "es5" + ], + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/tests/cases/fourslash/server/jsDocCallback.js] /** * @callback FooCallback @@ -22,7 +37,7 @@ var t; Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/jsDocCallback.js" @@ -34,7 +49,7 @@ Info seq [hh:mm:ss:mss] Creating InferredProject: /dev/null/inferredProject1*, Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots @@ -44,18 +59,18 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /te Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /tests/cases/fourslash/server/jsDocCallback.js SVC-1-0 "/**\n * @callback FooCallback\n * @param {string} eventName - What even is the navigation bar?\n */\n/** @type {FooCallback} */\nvar t;" - ../../../../home/src/tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../../../home/src/tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../../../home/src/tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' ../../../../home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../../../home/src/tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' jsDocCallback.js Root file specified for compilation @@ -72,7 +87,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -80,12 +95,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* + {"pollingInterval":500} /tests/cases/fourslash/server/jsconfig.json: *new* {"pollingInterval":2000} /tests/cases/fourslash/server/tsconfig.json: *new* @@ -104,15 +119,15 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* @@ -123,7 +138,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/jsDocCallback.js" @@ -135,7 +150,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "navbar", - "request_seq": 1, + "request_seq": 2, "success": true, "body": [ { diff --git a/tests/baselines/reference/tsserver/fourslashServer/jsdocCallbackTagRename01.js b/tests/baselines/reference/tsserver/fourslashServer/jsdocCallbackTagRename01.js index c686a36d6b9d6..706ea800aaebf 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/jsdocCallbackTagRename01.js +++ b/tests/baselines/reference/tsserver/fourslashServer/jsdocCallbackTagRename01.js @@ -1,16 +1,31 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "target": "es5", + "newLine": "crlf", + "lib": [ + "es5" + ], + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/tests/cases/fourslash/server/jsDocCallback.js] /** @@ -24,7 +39,7 @@ var t; Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/jsDocCallback.js" @@ -36,7 +51,7 @@ Info seq [hh:mm:ss:mss] Creating InferredProject: /dev/null/inferredProject1*, Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots @@ -46,18 +61,18 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /te Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /tests/cases/fourslash/server/jsDocCallback.js SVC-1-0 "\n/**\n * @callback FooCallback\n * @param {string} eventName - Rename should work\n */\n\n/** @type {FooCallback} */\nvar t;" - ../../../../home/src/tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../../../home/src/tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../../../home/src/tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' ../../../../home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../../../home/src/tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' jsDocCallback.js Root file specified for compilation @@ -74,7 +89,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -82,12 +97,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* + {"pollingInterval":500} /tests/cases/fourslash/server/jsconfig.json: *new* {"pollingInterval":2000} /tests/cases/fourslash/server/tsconfig.json: *new* @@ -106,15 +121,15 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* @@ -125,7 +140,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "preferences": { @@ -140,12 +155,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 1, + "request_seq": 2, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/jsDocCallback.js", @@ -161,7 +176,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "rename", - "request_seq": 2, + "request_seq": 3, "success": true, "body": { "info": { @@ -220,7 +235,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 3, + "seq": 4, "type": "request", "arguments": { "preferences": {} @@ -232,6 +247,6 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 3, + "request_seq": 4, "success": true } \ No newline at end of file diff --git a/tests/baselines/reference/tsserver/fourslashServer/jsdocParamTagSpecialKeywords.js b/tests/baselines/reference/tsserver/fourslashServer/jsdocParamTagSpecialKeywords.js index db368e95224c3..944111dec9639 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/jsdocParamTagSpecialKeywords.js +++ b/tests/baselines/reference/tsserver/fourslashServer/jsdocParamTagSpecialKeywords.js @@ -1,16 +1,31 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "target": "es5", + "newLine": "crlf", + "lib": [ + "es5" + ], + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/tests/cases/fourslash/server/test.js] /** * @param {string} type @@ -22,7 +37,7 @@ function test(type) { Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/test.js" @@ -34,7 +49,7 @@ Info seq [hh:mm:ss:mss] Creating InferredProject: /dev/null/inferredProject1*, Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots @@ -44,18 +59,18 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /te Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /tests/cases/fourslash/server/test.js SVC-1-0 "/**\n * @param {string} type\n */\nfunction test(type) {\n type.\n}" - ../../../../home/src/tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../../../home/src/tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../../../home/src/tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' ../../../../home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../../../home/src/tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' test.js Root file specified for compilation @@ -72,7 +87,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -80,12 +95,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* + {"pollingInterval":500} /tests/cases/fourslash/server/jsconfig.json: *new* {"pollingInterval":2000} /tests/cases/fourslash/server/tsconfig.json: *new* @@ -104,15 +119,15 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* @@ -123,7 +138,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "preferences": {} @@ -135,12 +150,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 1, + "request_seq": 2, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/test.js", @@ -160,7 +175,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "completionInfo", - "request_seq": 2, + "request_seq": 3, "success": true, "body": { "flags": 0, diff --git a/tests/baselines/reference/tsserver/fourslashServer/jsdocTypedefTag.js b/tests/baselines/reference/tsserver/fourslashServer/jsdocTypedefTag.js index f5c65c32ee3c1..0e717ab854598 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/jsdocTypedefTag.js +++ b/tests/baselines/reference/tsserver/fourslashServer/jsdocTypedefTag.js @@ -1,16 +1,31 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "target": "es5", + "newLine": "crlf", + "lib": [ + "es5" + ], + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/tests/cases/fourslash/server/jsdocCompletion_typedef.js] /** @typedef {(string | number)} NumberLike */ @@ -63,7 +78,7 @@ d.dogAge.; Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/jsdocCompletion_typedef.js" @@ -75,7 +90,7 @@ Info seq [hh:mm:ss:mss] Creating InferredProject: /dev/null/inferredProject1*, Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots @@ -85,18 +100,18 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /te Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /tests/cases/fourslash/server/jsdocCompletion_typedef.js SVC-1-0 "/** @typedef {(string | number)} NumberLike */\n\n/**\n * @typedef Animal - think Giraffes\n * @type {Object}\n * @property {string} animalName\n * @property {number} animalAge\n */\n\n/**\n * @typedef {Object} Person\n * @property {string} personName\n * @property {number} personAge\n */\n\n/**\n * @typedef {Object}\n * @property {string} catName\n * @property {number} catAge\n */\nvar Cat;\n\n/** @typedef {{ dogName: string, dogAge: number }} */\nvar Dog;\n\n/** @type {NumberLike} */\nvar numberLike; numberLike.\n\n/** @type {Person} */\nvar p;p.;\np.personName.;\np.personAge.;\n\n/** @type {Animal} */\nvar a;a.;\na.animalName.;\na.animalAge.;\n\n/** @type {Cat} */\nvar c;c.;\nc.catName.;\nc.catAge.;\n\n/** @type {Dog} */\nvar d;d.;\nd.dogName.;\nd.dogAge.;" - ../../../../home/src/tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../../../home/src/tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../../../home/src/tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' ../../../../home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../../../home/src/tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' jsdocCompletion_typedef.js Root file specified for compilation @@ -113,7 +128,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -121,12 +136,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* + {"pollingInterval":500} /tests/cases/fourslash/server/jsconfig.json: *new* {"pollingInterval":2000} /tests/cases/fourslash/server/tsconfig.json: *new* @@ -145,15 +160,15 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* @@ -164,7 +179,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "preferences": {} @@ -176,12 +191,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 1, + "request_seq": 2, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/jsdocCompletion_typedef.js", @@ -201,7 +216,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "completionInfo", - "request_seq": 2, + "request_seq": 3, "success": true, "body": { "flags": 0, @@ -513,7 +528,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 3, + "seq": 4, "type": "request", "arguments": { "preferences": {} @@ -525,12 +540,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 3, + "request_seq": 4, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 4, + "seq": 5, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/jsdocCompletion_typedef.js", @@ -550,7 +565,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "completionInfo", - "request_seq": 4, + "request_seq": 5, "success": true, "body": { "flags": 0, @@ -708,7 +723,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 5, + "seq": 6, "type": "request", "arguments": { "preferences": {} @@ -720,12 +735,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 5, + "request_seq": 6, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 6, + "seq": 7, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/jsdocCompletion_typedef.js", @@ -745,7 +760,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "completionInfo", - "request_seq": 6, + "request_seq": 7, "success": true, "body": { "flags": 0, @@ -1033,7 +1048,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 7, + "seq": 8, "type": "request", "arguments": { "preferences": {} @@ -1045,12 +1060,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 7, + "request_seq": 8, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 8, + "seq": 9, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/jsdocCompletion_typedef.js", @@ -1070,7 +1085,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "completionInfo", - "request_seq": 8, + "request_seq": 9, "success": true, "body": { "flags": 0, @@ -1268,7 +1283,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 9, + "seq": 10, "type": "request", "arguments": { "preferences": {} @@ -1280,12 +1295,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 9, + "request_seq": 10, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 10, + "seq": 11, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/jsdocCompletion_typedef.js", @@ -1305,7 +1320,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "completionInfo", - "request_seq": 10, + "request_seq": 11, "success": true, "body": { "flags": 0, @@ -1463,7 +1478,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 11, + "seq": 12, "type": "request", "arguments": { "preferences": {} @@ -1475,12 +1490,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 11, + "request_seq": 12, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 12, + "seq": 13, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/jsdocCompletion_typedef.js", @@ -1500,7 +1515,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "completionInfo", - "request_seq": 12, + "request_seq": 13, "success": true, "body": { "flags": 0, @@ -1788,7 +1803,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 13, + "seq": 14, "type": "request", "arguments": { "preferences": {} @@ -1800,12 +1815,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 13, + "request_seq": 14, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 14, + "seq": 15, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/jsdocCompletion_typedef.js", @@ -1825,7 +1840,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "completionInfo", - "request_seq": 14, + "request_seq": 15, "success": true, "body": { "flags": 0, @@ -2023,7 +2038,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 15, + "seq": 16, "type": "request", "arguments": { "preferences": {} @@ -2035,12 +2050,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 15, + "request_seq": 16, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 16, + "seq": 17, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/jsdocCompletion_typedef.js", @@ -2060,7 +2075,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "completionInfo", - "request_seq": 16, + "request_seq": 17, "success": true, "body": { "flags": 0, @@ -2218,7 +2233,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 17, + "seq": 18, "type": "request", "arguments": { "preferences": {} @@ -2230,12 +2245,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 17, + "request_seq": 18, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 18, + "seq": 19, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/jsdocCompletion_typedef.js", @@ -2255,7 +2270,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "completionInfo", - "request_seq": 18, + "request_seq": 19, "success": true, "body": { "flags": 0, @@ -2543,7 +2558,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 19, + "seq": 20, "type": "request", "arguments": { "preferences": {} @@ -2555,12 +2570,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 19, + "request_seq": 20, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 20, + "seq": 21, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/jsdocCompletion_typedef.js", @@ -2580,7 +2595,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "completionInfo", - "request_seq": 20, + "request_seq": 21, "success": true, "body": { "flags": 0, @@ -2778,7 +2793,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 21, + "seq": 22, "type": "request", "arguments": { "preferences": {} @@ -2790,12 +2805,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 21, + "request_seq": 22, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 22, + "seq": 23, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/jsdocCompletion_typedef.js", @@ -2815,7 +2830,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "completionInfo", - "request_seq": 22, + "request_seq": 23, "success": true, "body": { "flags": 0, @@ -2973,7 +2988,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 23, + "seq": 24, "type": "request", "arguments": { "preferences": {} @@ -2985,12 +3000,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 23, + "request_seq": 24, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 24, + "seq": 25, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/jsdocCompletion_typedef.js", @@ -3010,7 +3025,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "completionInfo", - "request_seq": 24, + "request_seq": 25, "success": true, "body": { "flags": 0, @@ -3298,7 +3313,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 25, + "seq": 26, "type": "request", "arguments": { "preferences": {} @@ -3310,12 +3325,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 25, + "request_seq": 26, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 26, + "seq": 27, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/jsdocCompletion_typedef.js", @@ -3335,7 +3350,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "completionInfo", - "request_seq": 26, + "request_seq": 27, "success": true, "body": { "flags": 0, @@ -3533,7 +3548,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 27, + "seq": 28, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/jsdocCompletion_typedef.js", @@ -3547,7 +3562,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "quickinfo", - "request_seq": 27, + "request_seq": 28, "success": true, "body": { "kind": "type", diff --git a/tests/baselines/reference/tsserver/fourslashServer/jsdocTypedefTag1.js b/tests/baselines/reference/tsserver/fourslashServer/jsdocTypedefTag1.js index 74436fb6dfb0a..81a02af153d48 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/jsdocTypedefTag1.js +++ b/tests/baselines/reference/tsserver/fourslashServer/jsdocTypedefTag1.js @@ -1,16 +1,31 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "target": "es5", + "newLine": "crlf", + "lib": [ + "es6" + ], + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/tests/cases/fourslash/server/jsdocCompletion_typedef.js] /** * @typedef {Object} MyType @@ -27,7 +42,7 @@ function a(my) { Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/jsdocCompletion_typedef.js" @@ -39,34 +54,77 @@ Info seq [hh:mm:ss:mss] Creating InferredProject: /dev/null/inferredProject1*, Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es2015.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es2015.core.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es2015.collection.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es2015.iterable.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es2015.symbol.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es2015.generator.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es2015.promise.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es2015.proxy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es2015.reflect.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es2015.symbol.wellknown.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) -Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text +Info seq [hh:mm:ss:mss] Files (14) + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es2015.d.ts Text-1 lib.es2015.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es2015.core.d.ts Text-1 lib.es2015.core.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es2015.collection.d.ts Text-1 lib.es2015.collection.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es2015.generator.d.ts Text-1 lib.es2015.generator.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es2015.iterable.d.ts Text-1 lib.es2015.iterable.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es2015.promise.d.ts Text-1 lib.es2015.promise.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es2015.proxy.d.ts Text-1 lib.es2015.proxy.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es2015.reflect.d.ts Text-1 lib.es2015.reflect.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es2015.symbol.d.ts Text-1 lib.es2015.symbol.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es2015.symbol.wellknown.d.ts Text-1 lib.es2015.symbol.wellknown.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /tests/cases/fourslash/server/jsdocCompletion_typedef.js SVC-1-0 "/**\n * @typedef {Object} MyType\n * @property {string} yes\n */\nfunction foo() { }\n/**\n * @param {MyType} my\n */\nfunction a(my) {\n my.yes.\n}" - ../../../../home/src/tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts + Library referenced via 'es5' from file '../../../../home/src/tslibs/TS/Lib/lib.es2015.d.ts' + ../../../../home/src/tslibs/TS/Lib/lib.es2015.d.ts + Library 'lib.es2015.d.ts' specified in compilerOptions + ../../../../home/src/tslibs/TS/Lib/lib.es2015.core.d.ts + Library referenced via 'es2015.core' from file '../../../../home/src/tslibs/TS/Lib/lib.es2015.d.ts' + ../../../../home/src/tslibs/TS/Lib/lib.es2015.collection.d.ts + Library referenced via 'es2015.collection' from file '../../../../home/src/tslibs/TS/Lib/lib.es2015.d.ts' + ../../../../home/src/tslibs/TS/Lib/lib.es2015.generator.d.ts + Library referenced via 'es2015.generator' from file '../../../../home/src/tslibs/TS/Lib/lib.es2015.d.ts' + ../../../../home/src/tslibs/TS/Lib/lib.es2015.iterable.d.ts + Library referenced via 'es2015.iterable' from file '../../../../home/src/tslibs/TS/Lib/lib.es2015.d.ts' + Library referenced via 'es2015.iterable' from file '../../../../home/src/tslibs/TS/Lib/lib.es2015.generator.d.ts' + ../../../../home/src/tslibs/TS/Lib/lib.es2015.promise.d.ts + Library referenced via 'es2015.promise' from file '../../../../home/src/tslibs/TS/Lib/lib.es2015.d.ts' + ../../../../home/src/tslibs/TS/Lib/lib.es2015.proxy.d.ts + Library referenced via 'es2015.proxy' from file '../../../../home/src/tslibs/TS/Lib/lib.es2015.d.ts' + ../../../../home/src/tslibs/TS/Lib/lib.es2015.reflect.d.ts + Library referenced via 'es2015.reflect' from file '../../../../home/src/tslibs/TS/Lib/lib.es2015.d.ts' + ../../../../home/src/tslibs/TS/Lib/lib.es2015.symbol.d.ts + Library referenced via 'es2015.symbol' from file '../../../../home/src/tslibs/TS/Lib/lib.es2015.iterable.d.ts' + Library referenced via 'es2015.symbol' from file '../../../../home/src/tslibs/TS/Lib/lib.es2015.d.ts' + Library referenced via 'es2015.symbol' from file '../../../../home/src/tslibs/TS/Lib/lib.es2015.symbol.wellknown.d.ts' + ../../../../home/src/tslibs/TS/Lib/lib.es2015.symbol.wellknown.d.ts + Library referenced via 'es2015.symbol.wellknown' from file '../../../../home/src/tslibs/TS/Lib/lib.es2015.d.ts' ../../../../home/src/tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../../../home/src/tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' ../../../../home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../../../home/src/tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' jsdocCompletion_typedef.js Root file specified for compilation Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) -Info seq [hh:mm:ss:mss] Files (4) +Info seq [hh:mm:ss:mss] Files (14) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Open files: @@ -77,7 +135,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -85,12 +143,32 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es2015.collection.d.ts: *new* + {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es2015.core.d.ts: *new* + {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es2015.d.ts: *new* + {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es2015.generator.d.ts: *new* + {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es2015.iterable.d.ts: *new* + {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es2015.promise.d.ts: *new* + {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es2015.proxy.d.ts: *new* + {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es2015.reflect.d.ts: *new* + {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es2015.symbol.d.ts: *new* + {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es2015.symbol.wellknown.d.ts: *new* + {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* + {"pollingInterval":500} /tests/cases/fourslash/server/jsconfig.json: *new* {"pollingInterval":2000} /tests/cases/fourslash/server/tsconfig.json: *new* @@ -109,15 +187,55 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* +/home/src/tslibs/TS/Lib/lib.es2015.collection.d.ts *new* + version: Text-1 + containingProjects: 1 + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.es2015.core.d.ts *new* + version: Text-1 + containingProjects: 1 + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.es2015.d.ts *new* + version: Text-1 + containingProjects: 1 + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.es2015.generator.d.ts *new* + version: Text-1 + containingProjects: 1 + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.es2015.iterable.d.ts *new* + version: Text-1 + containingProjects: 1 + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.es2015.promise.d.ts *new* + version: Text-1 + containingProjects: 1 + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.es2015.proxy.d.ts *new* + version: Text-1 + containingProjects: 1 + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.es2015.reflect.d.ts *new* + version: Text-1 + containingProjects: 1 + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.es2015.symbol.d.ts *new* + version: Text-1 + containingProjects: 1 + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.es2015.symbol.wellknown.d.ts *new* + version: Text-1 + containingProjects: 1 + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* @@ -128,7 +246,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "preferences": {} @@ -140,12 +258,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 1, + "request_seq": 2, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/jsdocCompletion_typedef.js", @@ -165,7 +283,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "completionInfo", - "request_seq": 2, + "request_seq": 3, "success": true, "body": { "flags": 0, @@ -185,12 +303,30 @@ Info seq [hh:mm:ss:mss] response: "kindModifiers": "declare", "sortText": "11" }, + { + "name": "codePointAt", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, { "name": "concat", "kind": "method", "kindModifiers": "declare", "sortText": "11" }, + { + "name": "endsWith", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "includes", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, { "name": "indexOf", "kind": "method", @@ -221,6 +357,18 @@ Info seq [hh:mm:ss:mss] response: "kindModifiers": "declare", "sortText": "11" }, + { + "name": "normalize", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, + { + "name": "repeat", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, { "name": "replace", "kind": "method", @@ -245,6 +393,12 @@ Info seq [hh:mm:ss:mss] response: "kindModifiers": "declare", "sortText": "11" }, + { + "name": "startsWith", + "kind": "method", + "kindModifiers": "declare", + "sortText": "11" + }, { "name": "substring", "kind": "method", @@ -333,11 +487,89 @@ Info seq [hh:mm:ss:mss] response: "isFromUncheckedFile": true, "commitCharacters": [] }, + { + "name": "anchor", + "kind": "method", + "kindModifiers": "deprecated,declare", + "sortText": "z11" + }, + { + "name": "big", + "kind": "method", + "kindModifiers": "deprecated,declare", + "sortText": "z11" + }, + { + "name": "blink", + "kind": "method", + "kindModifiers": "deprecated,declare", + "sortText": "z11" + }, + { + "name": "bold", + "kind": "method", + "kindModifiers": "deprecated,declare", + "sortText": "z11" + }, + { + "name": "fixed", + "kind": "method", + "kindModifiers": "deprecated,declare", + "sortText": "z11" + }, + { + "name": "fontcolor", + "kind": "method", + "kindModifiers": "deprecated,declare", + "sortText": "z11" + }, + { + "name": "fontsize", + "kind": "method", + "kindModifiers": "deprecated,declare", + "sortText": "z11" + }, + { + "name": "italics", + "kind": "method", + "kindModifiers": "deprecated,declare", + "sortText": "z11" + }, + { + "name": "link", + "kind": "method", + "kindModifiers": "deprecated,declare", + "sortText": "z11" + }, + { + "name": "small", + "kind": "method", + "kindModifiers": "deprecated,declare", + "sortText": "z11" + }, + { + "name": "strike", + "kind": "method", + "kindModifiers": "deprecated,declare", + "sortText": "z11" + }, + { + "name": "sub", + "kind": "method", + "kindModifiers": "deprecated,declare", + "sortText": "z11" + }, { "name": "substr", "kind": "method", "kindModifiers": "deprecated,declare", "sortText": "z11" + }, + { + "name": "sup", + "kind": "method", + "kindModifiers": "deprecated,declare", + "sortText": "z11" } ], "defaultCommitCharacters": [ diff --git a/tests/baselines/reference/tsserver/fourslashServer/jsdocTypedefTag2.js b/tests/baselines/reference/tsserver/fourslashServer/jsdocTypedefTag2.js index f107c1e2ba965..a5e60eaee34c5 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/jsdocTypedefTag2.js +++ b/tests/baselines/reference/tsserver/fourslashServer/jsdocTypedefTag2.js @@ -1,16 +1,31 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "target": "es5", + "newLine": "crlf", + "lib": [ + "es5" + ], + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/tests/cases/fourslash/server/jsdocCompletion_typedef.js] /** * @typedef {Object} A.B.MyType @@ -33,7 +48,7 @@ function b(my2) { Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/jsdocCompletion_typedef.js" @@ -45,7 +60,7 @@ Info seq [hh:mm:ss:mss] Creating InferredProject: /dev/null/inferredProject1*, Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots @@ -55,18 +70,18 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /te Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /tests/cases/fourslash/server/jsdocCompletion_typedef.js SVC-1-0 "/**\n * @typedef {Object} A.B.MyType\n * @property {string} yes\n */\nfunction foo() {}\n/**\n * @param {A.B.MyType} my2\n */\nfunction a(my2) {\n my2.yes.\n}\n/**\n * @param {MyType} my2\n */\nfunction b(my2) {\n my2.yes.\n}" - ../../../../home/src/tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../../../home/src/tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../../../home/src/tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' ../../../../home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../../../home/src/tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' jsdocCompletion_typedef.js Root file specified for compilation @@ -83,7 +98,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -91,12 +106,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* + {"pollingInterval":500} /tests/cases/fourslash/server/jsconfig.json: *new* {"pollingInterval":2000} /tests/cases/fourslash/server/tsconfig.json: *new* @@ -115,15 +130,15 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* @@ -134,7 +149,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "preferences": {} @@ -146,12 +161,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 1, + "request_seq": 2, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/jsdocCompletion_typedef.js", @@ -171,7 +186,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "completionInfo", - "request_seq": 2, + "request_seq": 3, "success": true, "body": { "flags": 0, @@ -379,7 +394,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 3, + "seq": 4, "type": "request", "arguments": { "preferences": {} @@ -391,12 +406,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 3, + "request_seq": 4, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 4, + "seq": 5, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/jsdocCompletion_typedef.js", @@ -416,7 +431,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "completionInfo", - "request_seq": 4, + "request_seq": 5, "success": true, "body": { "flags": 0, diff --git a/tests/baselines/reference/tsserver/fourslashServer/jsdocTypedefTagGoToDefinition.js b/tests/baselines/reference/tsserver/fourslashServer/jsdocTypedefTagGoToDefinition.js index f9a4d6bc8d2ca..3948139d9a84f 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/jsdocTypedefTagGoToDefinition.js +++ b/tests/baselines/reference/tsserver/fourslashServer/jsdocTypedefTagGoToDefinition.js @@ -1,16 +1,31 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "target": "es5", + "newLine": "crlf", + "lib": [ + "es5" + ], + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/tests/cases/fourslash/server/jsdocCompletion_typedef.js] /** * @typedef {Object} Person @@ -31,7 +46,7 @@ var animal; animal.animalName Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/jsdocCompletion_typedef.js" @@ -43,7 +58,7 @@ Info seq [hh:mm:ss:mss] Creating InferredProject: /dev/null/inferredProject1*, Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots @@ -53,18 +68,18 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /te Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /tests/cases/fourslash/server/jsdocCompletion_typedef.js SVC-1-0 "/**\n * @typedef {Object} Person\n * @property {string} personName\n * @property {number} personAge\n */\n\n/**\n * @typedef {{ animalName: string, animalAge: number }} Animal\n */\n\n/** @type {Person} */\nvar person; person.personName\n\n/** @type {Animal} */\nvar animal; animal.animalName" - ../../../../home/src/tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../../../home/src/tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../../../home/src/tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' ../../../../home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../../../home/src/tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' jsdocCompletion_typedef.js Root file specified for compilation @@ -81,7 +96,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -89,12 +104,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* + {"pollingInterval":500} /tests/cases/fourslash/server/jsconfig.json: *new* {"pollingInterval":2000} /tests/cases/fourslash/server/tsconfig.json: *new* @@ -113,15 +128,15 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* @@ -132,7 +147,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/jsdocCompletion_typedef.js", @@ -146,7 +161,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "definitionAndBoundSpan", - "request_seq": 1, + "request_seq": 2, "success": true, "body": { "definitions": [ @@ -184,7 +199,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/jsdocCompletion_typedef.js", @@ -198,7 +213,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "definitionAndBoundSpan", - "request_seq": 2, + "request_seq": 3, "success": true, "body": { "definitions": [ diff --git a/tests/baselines/reference/tsserver/fourslashServer/jsdocTypedefTagNamespace.js b/tests/baselines/reference/tsserver/fourslashServer/jsdocTypedefTagNamespace.js index 2cc8a802cd6ba..10136643f3cd6 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/jsdocTypedefTagNamespace.js +++ b/tests/baselines/reference/tsserver/fourslashServer/jsdocTypedefTagNamespace.js @@ -1,16 +1,31 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "target": "es5", + "newLine": "crlf", + "lib": [ + "es5" + ], + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/tests/cases/fourslash/server/jsdocCompletion_typedef.js] /** * @typedef {string | number} T.NumberLike @@ -27,7 +42,7 @@ var x1; x1.; Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/jsdocCompletion_typedef.js" @@ -39,7 +54,7 @@ Info seq [hh:mm:ss:mss] Creating InferredProject: /dev/null/inferredProject1*, Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots @@ -49,18 +64,18 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /te Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /tests/cases/fourslash/server/jsdocCompletion_typedef.js SVC-1-0 "/**\n * @typedef {string | number} T.NumberLike\n * @typedef {{age: number}} T.People\n * @typedef {string | number} T.O.Q.NumberLike\n * @type {T.NumberLike}\n */\nvar x; x.;\n/** @type {T.O.Q.NumberLike} */\nvar x1; x1.;\n/** @type {T.People} */\nvar x1; x1.;" - ../../../../home/src/tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../../../home/src/tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../../../home/src/tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' ../../../../home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../../../home/src/tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' jsdocCompletion_typedef.js Root file specified for compilation @@ -77,7 +92,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -85,12 +100,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* + {"pollingInterval":500} /tests/cases/fourslash/server/jsconfig.json: *new* {"pollingInterval":2000} /tests/cases/fourslash/server/tsconfig.json: *new* @@ -109,15 +124,15 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* @@ -128,7 +143,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "preferences": {} @@ -140,12 +155,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 1, + "request_seq": 2, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/jsdocCompletion_typedef.js", @@ -165,7 +180,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "completionInfo", - "request_seq": 2, + "request_seq": 3, "success": true, "body": { "flags": 0, @@ -397,7 +412,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 3, + "seq": 4, "type": "request", "arguments": { "preferences": {} @@ -409,12 +424,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 3, + "request_seq": 4, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 4, + "seq": 5, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/jsdocCompletion_typedef.js", @@ -434,7 +449,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "completionInfo", - "request_seq": 4, + "request_seq": 5, "success": true, "body": { "flags": 0, @@ -666,7 +681,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 5, + "seq": 6, "type": "request", "arguments": { "preferences": {} @@ -678,12 +693,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 5, + "request_seq": 6, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 6, + "seq": 7, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/jsdocCompletion_typedef.js", @@ -703,7 +718,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "completionInfo", - "request_seq": 6, + "request_seq": 7, "success": true, "body": { "flags": 0, diff --git a/tests/baselines/reference/tsserver/fourslashServer/jsdocTypedefTagNavigateTo.js b/tests/baselines/reference/tsserver/fourslashServer/jsdocTypedefTagNavigateTo.js index 95a00d7613e70..a3b959e284740 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/jsdocTypedefTagNavigateTo.js +++ b/tests/baselines/reference/tsserver/fourslashServer/jsdocTypedefTagNavigateTo.js @@ -1,16 +1,31 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "target": "es5", + "newLine": "crlf", + "lib": [ + "es5" + ], + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/tests/cases/fourslash/server/jsDocTypedef_form2.js] /** @typedef {(string | number)} NumberLike */ @@ -23,7 +38,7 @@ var numberLike; Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/jsDocTypedef_form2.js" @@ -35,7 +50,7 @@ Info seq [hh:mm:ss:mss] Creating InferredProject: /dev/null/inferredProject1*, Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots @@ -45,18 +60,18 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /te Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /tests/cases/fourslash/server/jsDocTypedef_form2.js SVC-1-0 "\n/** @typedef {(string | number)} NumberLike */\n/** @typedef {(string | number | string[])} */\nvar NumberLike2;\n\n/** @type {NumberLike} */\nvar numberLike;" - ../../../../home/src/tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../../../home/src/tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../../../home/src/tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' ../../../../home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../../../home/src/tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' jsDocTypedef_form2.js Root file specified for compilation @@ -73,7 +88,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -81,12 +96,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* + {"pollingInterval":500} /tests/cases/fourslash/server/jsconfig.json: *new* {"pollingInterval":2000} /tests/cases/fourslash/server/tsconfig.json: *new* @@ -105,15 +120,15 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* @@ -124,7 +139,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/jsDocTypedef_form2.js" @@ -136,7 +151,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "navtree", - "request_seq": 1, + "request_seq": 2, "success": true, "body": { "text": "", @@ -268,7 +283,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/jsDocTypedef_form2.js" @@ -280,7 +295,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "navbar", - "request_seq": 2, + "request_seq": 3, "success": true, "body": [ { diff --git a/tests/baselines/reference/tsserver/fourslashServer/jsdocTypedefTagRename01.js b/tests/baselines/reference/tsserver/fourslashServer/jsdocTypedefTagRename01.js index 8c7ff40e506a6..ac97a83c87c8e 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/jsdocTypedefTagRename01.js +++ b/tests/baselines/reference/tsserver/fourslashServer/jsdocTypedefTagRename01.js @@ -1,16 +1,31 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "target": "es5", + "newLine": "crlf", + "lib": [ + "es5" + ], + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/tests/cases/fourslash/server/jsDocTypedef_form1.js] /** @typedef {(string | number)} */ @@ -24,7 +39,7 @@ var numberLike; Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/jsDocTypedef_form1.js" @@ -36,7 +51,7 @@ Info seq [hh:mm:ss:mss] Creating InferredProject: /dev/null/inferredProject1*, Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots @@ -46,18 +61,18 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /te Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /tests/cases/fourslash/server/jsDocTypedef_form1.js SVC-1-0 "\n/** @typedef {(string | number)} */\nvar NumberLike;\n\nNumberLike = 10;\n\n/** @type {NumberLike} */\nvar numberLike;" - ../../../../home/src/tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../../../home/src/tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../../../home/src/tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' ../../../../home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../../../home/src/tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' jsDocTypedef_form1.js Root file specified for compilation @@ -74,7 +89,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -82,12 +97,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* + {"pollingInterval":500} /tests/cases/fourslash/server/jsconfig.json: *new* {"pollingInterval":2000} /tests/cases/fourslash/server/tsconfig.json: *new* @@ -106,15 +121,15 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* @@ -125,7 +140,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "preferences": { @@ -140,12 +155,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 1, + "request_seq": 2, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/jsDocTypedef_form1.js", @@ -161,7 +176,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "rename", - "request_seq": 2, + "request_seq": 3, "success": true, "body": { "info": { @@ -230,7 +245,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 3, + "seq": 4, "type": "request", "arguments": { "preferences": {} @@ -242,12 +257,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 3, + "request_seq": 4, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 4, + "seq": 5, "type": "request", "arguments": { "preferences": { @@ -262,12 +277,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 4, + "request_seq": 5, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 5, + "seq": 6, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/jsDocTypedef_form1.js", @@ -283,7 +298,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "rename", - "request_seq": 5, + "request_seq": 6, "success": true, "body": { "info": { @@ -352,7 +367,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 6, + "seq": 7, "type": "request", "arguments": { "preferences": {} @@ -364,12 +379,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 6, + "request_seq": 7, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 7, + "seq": 8, "type": "request", "arguments": { "preferences": { @@ -384,12 +399,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 7, + "request_seq": 8, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 8, + "seq": 9, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/jsDocTypedef_form1.js", @@ -405,7 +420,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "rename", - "request_seq": 8, + "request_seq": 9, "success": true, "body": { "info": { @@ -474,7 +489,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 9, + "seq": 10, "type": "request", "arguments": { "preferences": {} @@ -486,6 +501,6 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 9, + "request_seq": 10, "success": true } \ No newline at end of file diff --git a/tests/baselines/reference/tsserver/fourslashServer/jsdocTypedefTagRename02.js b/tests/baselines/reference/tsserver/fourslashServer/jsdocTypedefTagRename02.js index d1c0c315c6c01..3cdba680e66a3 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/jsdocTypedefTagRename02.js +++ b/tests/baselines/reference/tsserver/fourslashServer/jsdocTypedefTagRename02.js @@ -1,16 +1,31 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "target": "es5", + "newLine": "crlf", + "lib": [ + "es5" + ], + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/tests/cases/fourslash/server/jsDocTypedef_form2.js] /** @typedef {(string | number)} NumberLike */ @@ -21,7 +36,7 @@ var numberLike; Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/jsDocTypedef_form2.js" @@ -33,7 +48,7 @@ Info seq [hh:mm:ss:mss] Creating InferredProject: /dev/null/inferredProject1*, Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots @@ -43,18 +58,18 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /te Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /tests/cases/fourslash/server/jsDocTypedef_form2.js SVC-1-0 "\n/** @typedef {(string | number)} NumberLike */\n\n/** @type {NumberLike} */\nvar numberLike;" - ../../../../home/src/tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../../../home/src/tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../../../home/src/tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' ../../../../home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../../../home/src/tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' jsDocTypedef_form2.js Root file specified for compilation @@ -71,7 +86,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -79,12 +94,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* + {"pollingInterval":500} /tests/cases/fourslash/server/jsconfig.json: *new* {"pollingInterval":2000} /tests/cases/fourslash/server/tsconfig.json: *new* @@ -103,15 +118,15 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* @@ -122,7 +137,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "preferences": { @@ -137,12 +152,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 1, + "request_seq": 2, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/jsDocTypedef_form2.js", @@ -158,7 +173,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "rename", - "request_seq": 2, + "request_seq": 3, "success": true, "body": { "info": { @@ -217,7 +232,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 3, + "seq": 4, "type": "request", "arguments": { "preferences": {} @@ -229,12 +244,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 3, + "request_seq": 4, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 4, + "seq": 5, "type": "request", "arguments": { "preferences": { @@ -249,12 +264,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 4, + "request_seq": 5, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 5, + "seq": 6, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/jsDocTypedef_form2.js", @@ -270,7 +285,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "rename", - "request_seq": 5, + "request_seq": 6, "success": true, "body": { "info": { @@ -329,7 +344,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 6, + "seq": 7, "type": "request", "arguments": { "preferences": {} @@ -341,6 +356,6 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 6, + "request_seq": 7, "success": true } \ No newline at end of file diff --git a/tests/baselines/reference/tsserver/fourslashServer/jsdocTypedefTagRename03.js b/tests/baselines/reference/tsserver/fourslashServer/jsdocTypedefTagRename03.js index f345e4fa4f0cd..09b3918d71165 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/jsdocTypedefTagRename03.js +++ b/tests/baselines/reference/tsserver/fourslashServer/jsdocTypedefTagRename03.js @@ -1,16 +1,31 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "target": "es5", + "newLine": "crlf", + "lib": [ + "es5" + ], + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/tests/cases/fourslash/server/jsDocTypedef_form3.js] /** @@ -26,7 +41,7 @@ var person; Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/jsDocTypedef_form3.js" @@ -38,7 +53,7 @@ Info seq [hh:mm:ss:mss] Creating InferredProject: /dev/null/inferredProject1*, Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots @@ -48,18 +63,18 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /te Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /tests/cases/fourslash/server/jsDocTypedef_form3.js SVC-1-0 "\n/**\n * @typedef Person\n * @type {Object}\n * @property {number} age\n * @property {string} name\n */\n\n/** @type {Person} */\nvar person;" - ../../../../home/src/tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../../../home/src/tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../../../home/src/tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' ../../../../home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../../../home/src/tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' jsDocTypedef_form3.js Root file specified for compilation @@ -76,7 +91,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -84,12 +99,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* + {"pollingInterval":500} /tests/cases/fourslash/server/jsconfig.json: *new* {"pollingInterval":2000} /tests/cases/fourslash/server/tsconfig.json: *new* @@ -108,15 +123,15 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* @@ -127,7 +142,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/jsDocTypedef_form3.js" @@ -146,12 +161,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 1, + "request_seq": 2, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "preferences": { @@ -166,12 +181,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 2, + "request_seq": 3, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 3, + "seq": 4, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/jsDocTypedef_form3.js", @@ -187,7 +202,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "rename", - "request_seq": 3, + "request_seq": 4, "success": true, "body": { "info": { @@ -246,7 +261,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 4, + "seq": 5, "type": "request", "arguments": { "preferences": {} @@ -258,12 +273,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 4, + "request_seq": 5, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 5, + "seq": 6, "type": "request", "arguments": { "preferences": { @@ -278,12 +293,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 5, + "request_seq": 6, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 6, + "seq": 7, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/jsDocTypedef_form3.js", @@ -299,7 +314,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "rename", - "request_seq": 6, + "request_seq": 7, "success": true, "body": { "info": { @@ -358,7 +373,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 7, + "seq": 8, "type": "request", "arguments": { "preferences": {} @@ -370,6 +385,6 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 7, + "request_seq": 8, "success": true } \ No newline at end of file diff --git a/tests/baselines/reference/tsserver/fourslashServer/jsdocTypedefTagRename04.js b/tests/baselines/reference/tsserver/fourslashServer/jsdocTypedefTagRename04.js index a21011d7a9e74..a0f02aa0ac497 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/jsdocTypedefTagRename04.js +++ b/tests/baselines/reference/tsserver/fourslashServer/jsdocTypedefTagRename04.js @@ -1,16 +1,31 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "target": "es5", + "newLine": "crlf", + "lib": [ + "es5" + ], + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/tests/cases/fourslash/server/jsDocTypedef_form2.js] function test1() { @@ -29,7 +44,7 @@ function test2() { Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/jsDocTypedef_form2.js" @@ -41,7 +56,7 @@ Info seq [hh:mm:ss:mss] Creating InferredProject: /dev/null/inferredProject1*, Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots @@ -51,18 +66,18 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /te Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /tests/cases/fourslash/server/jsDocTypedef_form2.js SVC-1-0 "\nfunction test1() {\n /** @typedef {(string | number)} NumberLike */\n\n /** @type {NumberLike} */\n var numberLike;\n}\nfunction test2() {\n /** @typedef {(string | number)} NumberLike2 */\n\n /** @type {NumberLike2} */\n var numberLike2;\n}" - ../../../../home/src/tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../../../home/src/tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../../../home/src/tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' ../../../../home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../../../home/src/tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' jsDocTypedef_form2.js Root file specified for compilation @@ -79,7 +94,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -87,12 +102,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* + {"pollingInterval":500} /tests/cases/fourslash/server/jsconfig.json: *new* {"pollingInterval":2000} /tests/cases/fourslash/server/tsconfig.json: *new* @@ -111,15 +126,15 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* @@ -130,7 +145,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/jsDocTypedef_form2.js", @@ -144,7 +159,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "quickinfo", - "request_seq": 1, + "request_seq": 2, "success": true, "body": { "kind": "local var", @@ -169,7 +184,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/jsDocTypedef_form2.js", @@ -186,7 +201,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 2, + "request_seq": 3, "success": true } After Request @@ -198,15 +213,15 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* @@ -217,7 +232,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 3, + "seq": 4, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/jsDocTypedef_form2.js", @@ -234,20 +249,20 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 3, + "request_seq": 4, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* @@ -258,7 +273,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 4, + "seq": 5, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/jsDocTypedef_form2.js", @@ -273,13 +288,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 4, + "request_seq": 5, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 5, + "seq": 6, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/jsDocTypedef_form2.js", @@ -296,20 +311,20 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 5, + "request_seq": 6, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* @@ -320,7 +335,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 6, + "seq": 7, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/jsDocTypedef_form2.js", @@ -335,13 +350,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 6, + "request_seq": 7, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 7, + "seq": 8, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/jsDocTypedef_form2.js", @@ -358,20 +373,20 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 7, + "request_seq": 8, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* @@ -382,7 +397,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 8, + "seq": 9, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/jsDocTypedef_form2.js", @@ -397,13 +412,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 8, + "request_seq": 9, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 9, + "seq": 10, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/jsDocTypedef_form2.js", @@ -416,7 +431,7 @@ Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferred Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 2 projectProgramVersion: 1 structureChanged: false structureIsReused:: Completely Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /tests/cases/fourslash/server/jsDocTypedef_form2.js SVC-1-4 "\nfunction test1() {\n /** @typedef {(string | number)} NumberLike */\n\n /** @type {111NumberLike} */\n var numberLike;\n}\nfunction test2() {\n /** @typedef {(string | number)} NumberLike2 */\n\n /** @type {NumberLike2} */\n var numberLike2;\n}" @@ -427,7 +442,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "quickinfo", - "request_seq": 9, + "request_seq": 10, "success": true, "performanceData": { "updateGraphDurationMs": * diff --git a/tests/baselines/reference/tsserver/fourslashServer/moveToFile_emptyTargetFile.js b/tests/baselines/reference/tsserver/fourslashServer/moveToFile_emptyTargetFile.js index 0ada2ef5833a9..2ec47d92cf966 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/moveToFile_emptyTargetFile.js +++ b/tests/baselines/reference/tsserver/fourslashServer/moveToFile_emptyTargetFile.js @@ -1,16 +1,31 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "newLine": "lf", + "lib": [ + "es5" + ], + "target": "es5", + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/home/src/workspaces/project/source.ts] export const a = 1; const b = 2; @@ -20,12 +35,12 @@ console.log(a, b); /** empty */ //// [/home/src/workspaces/project/tsconfig.json] -/ { "compilerOptions": { "newLine": "lf" } } +/ { "compilerOptions": { "newLine": "lf", "lib": ["es5"] } } Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/home/src/workspaces/project/source.ts" @@ -42,6 +57,9 @@ Info seq [hh:mm:ss:mss] Config: /home/src/workspaces/project/tsconfig.json : { ], "options": { "newLine": 1, + "lib": [ + "lib.es5.d.ts" + ], "configFilePath": "/home/src/workspaces/project/tsconfig.json" } } @@ -59,7 +77,7 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspa Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project 1 undefined Config: /home/src/workspaces/project/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/target.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots @@ -69,19 +87,19 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (5) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/source.ts SVC-1-0 "export const a = 1;\nconst b = 2;\nconsole.log(a, b);" /home/src/workspaces/project/target.ts Text-1 "/** empty */" - ../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' source.ts Matched by default include pattern '**/*' target.ts @@ -149,7 +167,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -157,12 +175,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* + {"pollingInterval":500} /home/src/workspaces/project/target.ts: *new* {"pollingInterval":500} /home/src/workspaces/project/tsconfig.json: *new* @@ -183,15 +201,15 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json @@ -206,7 +224,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "preferences": { @@ -220,12 +238,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 1, + "request_seq": 2, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "file": "/home/src/workspaces/project/source.ts", @@ -243,7 +261,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "getApplicableRefactors", - "request_seq": 2, + "request_seq": 3, "success": true, "body": [ { @@ -345,7 +363,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 3, + "seq": 4, "type": "request", "arguments": { "preferences": {} @@ -357,12 +375,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 3, + "request_seq": 4, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 4, + "seq": 5, "type": "request", "arguments": { "preferences": {} @@ -374,12 +392,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 4, + "request_seq": 5, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 5, + "seq": 6, "type": "request", "arguments": { "file": "/home/src/workspaces/project/source.ts", @@ -400,7 +418,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "getEditsForRefactor", - "request_seq": 5, + "request_seq": 6, "success": true, "body": { "edits": [ @@ -452,7 +470,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 6, + "seq": 7, "type": "request", "arguments": { "preferences": {} @@ -464,6 +482,6 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 6, + "request_seq": 7, "success": true } \ No newline at end of file diff --git a/tests/baselines/reference/tsserver/fourslashServer/navbar01.js b/tests/baselines/reference/tsserver/fourslashServer/navbar01.js index e075c0c2f7138..cc529de84c58e 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/navbar01.js +++ b/tests/baselines/reference/tsserver/fourslashServer/navbar01.js @@ -1,16 +1,31 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "target": "es5", + "newLine": "crlf", + "lib": [ + "es5" + ], + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/tests/cases/fourslash/server/navbar01.ts] // Interface interface IPoint { @@ -53,7 +68,7 @@ var dist = p.getDist(); Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/navbar01.ts" @@ -65,7 +80,7 @@ Info seq [hh:mm:ss:mss] Creating InferredProject: /dev/null/inferredProject1*, Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots @@ -75,18 +90,18 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /te Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /tests/cases/fourslash/server/navbar01.ts SVC-1-0 "// Interface\ninterface IPoint {\n getDist(): number;\n new(): IPoint;\n (): any;\n [x:string]: number;\n prop: string;\n}\n\n/// Module\nnamespace Shapes {\n // Class\n export class Point implements IPoint {\n constructor (public x: number, public y: number) { }\n\n // Instance member\n getDist() { return Math.sqrt(this.x * this.x + this.y * this.y); }\n\n // Getter\n get value(): number { return 0; }\n\n // Setter\n set value(newValue: number) { return; }\n\n // Static member\n static origin = new Point(0, 0);\n\n // Static method\n private static getOrigin() { return Point.origin;}\n }\n\n enum Values { value1, value2, value3 }\n}\n\n// Local variables\nvar p: IPoint = new Shapes.Point(3, 4);\nvar dist = p.getDist();" - ../../../../home/src/tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../../../home/src/tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../../../home/src/tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' ../../../../home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../../../home/src/tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' navbar01.ts Root file specified for compilation @@ -103,7 +118,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -111,12 +126,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* + {"pollingInterval":500} /tests/cases/fourslash/server/jsconfig.json: *new* {"pollingInterval":2000} /tests/cases/fourslash/server/tsconfig.json: *new* @@ -135,15 +150,15 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* @@ -154,7 +169,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/navbar01.ts" @@ -166,7 +181,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "navtree", - "request_seq": 1, + "request_seq": 2, "success": true, "body": { "text": "", @@ -752,7 +767,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/navbar01.ts" @@ -764,7 +779,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "navbar", - "request_seq": 2, + "request_seq": 3, "success": true, "body": [ { diff --git a/tests/baselines/reference/tsserver/fourslashServer/navto01.js b/tests/baselines/reference/tsserver/fourslashServer/navto01.js index 79a9b6a7e532d..ba8bb1ed772e3 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/navto01.js +++ b/tests/baselines/reference/tsserver/fourslashServer/navto01.js @@ -1,16 +1,31 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "target": "es5", + "newLine": "crlf", + "lib": [ + "es5" + ], + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/tests/cases/fourslash/server/navto01.ts] /// Module namespace MyShapes { @@ -31,7 +46,7 @@ var myXyz = new Shapes.Point(); Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/navto01.ts" @@ -43,7 +58,7 @@ Info seq [hh:mm:ss:mss] Creating InferredProject: /dev/null/inferredProject1*, Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots @@ -53,18 +68,18 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /te Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /tests/cases/fourslash/server/navto01.ts SVC-1-0 "/// Module\nnamespace MyShapes {\n\n // Class\n export class MyPoint {\n // Instance member\n private MyoriginAttheHorizon = 0.0;\n\n // Getter\n get MydistanceFromOrigin(): number { return 0; }\n }\n}\n\n// Local variables\nvar myXyz = new Shapes.Point();" - ../../../../home/src/tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../../../home/src/tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../../../home/src/tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' ../../../../home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../../../home/src/tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' navto01.ts Root file specified for compilation @@ -81,7 +96,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -89,12 +104,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* + {"pollingInterval":500} /tests/cases/fourslash/server/jsconfig.json: *new* {"pollingInterval":2000} /tests/cases/fourslash/server/tsconfig.json: *new* @@ -113,15 +128,15 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* @@ -132,7 +147,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "searchValue": "Shapes", @@ -145,7 +160,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "navto", - "request_seq": 1, + "request_seq": 2, "success": true, "body": [ { @@ -168,7 +183,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "searchValue": "Point", @@ -181,7 +196,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "navto", - "request_seq": 2, + "request_seq": 3, "success": true, "body": [ { @@ -206,7 +221,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 3, + "seq": 4, "type": "request", "arguments": { "searchValue": "originAttheHorizon", @@ -219,7 +234,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "navto", - "request_seq": 3, + "request_seq": 4, "success": true, "body": [ { @@ -244,7 +259,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 4, + "seq": 5, "type": "request", "arguments": { "searchValue": "distanceFromOrigin", @@ -257,7 +272,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "navto", - "request_seq": 4, + "request_seq": 5, "success": true, "body": [ { @@ -282,7 +297,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 5, + "seq": 6, "type": "request", "arguments": { "searchValue": "Xyz", @@ -295,7 +310,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "navto", - "request_seq": 5, + "request_seq": 6, "success": true, "body": [ { diff --git a/tests/baselines/reference/tsserver/fourslashServer/navto_serverExcludeLib.js b/tests/baselines/reference/tsserver/fourslashServer/navto_serverExcludeLib.js index 82675f87cd0da..1a0132c0b9630 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/navto_serverExcludeLib.js +++ b/tests/baselines/reference/tsserver/fourslashServer/navto_serverExcludeLib.js @@ -1,16 +1,31 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "lib": [ + "es5" + ], + "target": "es5", + "newLine": "crlf", + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/home/src/workspaces/project/index.ts] import { weirdName as otherName } from "bar"; const weirdName: number = 1; @@ -22,12 +37,12 @@ export const weirdName: number; {} //// [/home/src/workspaces/project/tsconfig.json] -{} +{ "compilerOptions": { "lib": ["es5"] } } Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts" @@ -42,6 +57,9 @@ Info seq [hh:mm:ss:mss] Config: /home/src/workspaces/project/tsconfig.json : { "/home/src/workspaces/project/index.ts" ], "options": { + "lib": [ + "lib.es5.d.ts" + ], "configFilePath": "/home/src/workspaces/project/tsconfig.json" } } @@ -59,7 +77,7 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspa Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project 1 undefined Config: /home/src/workspaces/project/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/bar/index.d.ts 500 undefined WatchType: Closed Script info -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces 0 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Failed Lookup Locations @@ -76,19 +94,19 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (5) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/node_modules/bar/index.d.ts Text-1 "export const weirdName: number;" /home/src/workspaces/project/index.ts SVC-1-0 "import { weirdName as otherName } from \"bar\";\nconst weirdName: number = 1;" - ../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' node_modules/bar/index.d.ts Imported via "bar" from file 'index.ts' index.ts @@ -127,7 +145,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -135,12 +153,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* + {"pollingInterval":500} /home/src/workspaces/project/node_modules/bar/index.d.ts: *new* {"pollingInterval":500} /home/src/workspaces/project/node_modules/bar/package.json: *new* @@ -171,15 +189,15 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json @@ -194,7 +212,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "searchValue": "weirdName", @@ -207,7 +225,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "navto", - "request_seq": 1, + "request_seq": 2, "success": true, "body": [ { @@ -254,15 +272,15 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json @@ -278,7 +296,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "preferences": { @@ -292,12 +310,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 2, + "request_seq": 3, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 3, + "seq": 4, "type": "request", "arguments": { "searchValue": "weirdName", @@ -310,7 +328,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "navto", - "request_seq": 3, + "request_seq": 4, "success": true, "body": [ { @@ -333,7 +351,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 4, + "seq": 5, "type": "request", "arguments": { "preferences": {} @@ -345,6 +363,6 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 4, + "request_seq": 5, "success": true } \ No newline at end of file diff --git a/tests/baselines/reference/tsserver/fourslashServer/ngProxy1.js b/tests/baselines/reference/tsserver/fourslashServer/ngProxy1.js index 8e4bbe9bbb4be..a93b79358e8ea 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/ngProxy1.js +++ b/tests/baselines/reference/tsserver/fourslashServer/ngProxy1.js @@ -1,16 +1,37 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "lib": [ + "es5" + ], + "plugins": [ + { + "name": "quickinfo-augmeneter", + "message": "hello world" + } + ], + "target": "es5", + "newLine": "crlf", + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/tests/cases/fourslash/server/a.ts] let x = [1, 2]; x @@ -19,6 +40,7 @@ x //// [/tests/cases/fourslash/server/tsconfig.json] { "compilerOptions": { + "lib": ["es5"], "plugins": [ { "name": "quickinfo-augmeneter", "message": "hello world" } ] @@ -29,7 +51,7 @@ x Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/tsconfig.json" @@ -44,6 +66,9 @@ Info seq [hh:mm:ss:mss] Config: /tests/cases/fourslash/server/tsconfig.json : { "/tests/cases/fourslash/server/a.ts" ], "options": { + "lib": [ + "lib.es5.d.ts" + ], "plugins": [ { "name": "quickinfo-augmeneter", @@ -68,7 +93,7 @@ Info seq [hh:mm:ss:mss] Loading quickinfo-augmeneter from /home/src/tslibs/TS/L Info seq [hh:mm:ss:mss] Plugin validation succeeded Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/a.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /tests/cases/fourslash/server/tsconfig.json -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /tests/cases/fourslash/server/tsconfig.json WatchType: Type roots @@ -78,18 +103,18 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /te Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /tests/cases/fourslash/server/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/tests/cases/fourslash/server/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /tests/cases/fourslash/server/a.ts Text-1 "let x = [1, 2];\nx\n" - ../../../../home/src/tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../../../home/src/tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../../../home/src/tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' ../../../../home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../../../home/src/tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' a.ts Part of 'files' list in tsconfig.json @@ -125,18 +150,18 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /te Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text - /tests/cases/fourslash/server/tsconfig.json SVC-1-0 "{\n \"compilerOptions\": {\n \"plugins\": [\n { \"name\": \"quickinfo-augmeneter\", \"message\": \"hello world\" }\n ]\n },\n \"files\": [\"a.ts\"]\n}" + /tests/cases/fourslash/server/tsconfig.json SVC-1-0 "{\n \"compilerOptions\": {\n \"lib\": [\"es5\"],\n \"plugins\": [\n { \"name\": \"quickinfo-augmeneter\", \"message\": \"hello world\" }\n ]\n },\n \"files\": [\"a.ts\"]\n}" - ../../../../home/src/tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../../../home/src/tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../../../home/src/tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' ../../../../home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../../../home/src/tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' tsconfig.json Root file specified for compilation @@ -157,7 +182,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -165,12 +190,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* + {"pollingInterval":500} /tests/cases/fourslash/server/a.ts: *new* {"pollingInterval":500} /tests/cases/fourslash/server/jsconfig.json: *new* @@ -197,17 +222,17 @@ Projects:: noOpenRef: true ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 containingProjects: 2 /tests/cases/fourslash/server/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 containingProjects: 2 /tests/cases/fourslash/server/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* version: Text-1 containingProjects: 2 /tests/cases/fourslash/server/tsconfig.json @@ -223,7 +248,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/a.ts" @@ -250,17 +275,17 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 1, + "request_seq": 2, "success": true } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: + {"pollingInterval":500} /tests/cases/fourslash/server/jsconfig.json: {"pollingInterval":2000} /tests/cases/fourslash/server/tsconfig.json: @@ -289,17 +314,17 @@ Projects:: noOpenRef: false *changed* ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /tests/cases/fourslash/server/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /tests/cases/fourslash/server/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /tests/cases/fourslash/server/tsconfig.json @@ -316,7 +341,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/a.ts", @@ -330,7 +355,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "quickinfo", - "request_seq": 2, + "request_seq": 3, "success": true, "body": { "kind": "let", diff --git a/tests/baselines/reference/tsserver/fourslashServer/ngProxy2.js b/tests/baselines/reference/tsserver/fourslashServer/ngProxy2.js index f3c5e55bca3f2..d2e6fed132091 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/ngProxy2.js +++ b/tests/baselines/reference/tsserver/fourslashServer/ngProxy2.js @@ -1,16 +1,36 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "lib": [ + "es5" + ], + "plugins": [ + { + "name": "invalidmodulename" + } + ], + "target": "es5", + "newLine": "crlf", + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/tests/cases/fourslash/server/a.ts] let x = [1, 2]; x @@ -19,6 +39,7 @@ x //// [/tests/cases/fourslash/server/tsconfig.json] { "compilerOptions": { + "lib": ["es5"], "plugins": [ { "name": "invalidmodulename" } ] @@ -29,7 +50,7 @@ x Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/tsconfig.json" @@ -44,6 +65,9 @@ Info seq [hh:mm:ss:mss] Config: /tests/cases/fourslash/server/tsconfig.json : { "/tests/cases/fourslash/server/a.ts" ], "options": { + "lib": [ + "lib.es5.d.ts" + ], "plugins": [ { "name": "invalidmodulename" @@ -68,7 +92,7 @@ Info seq [hh:mm:ss:mss] Failed to load module 'invalidmodulename' from /home/sr Info seq [hh:mm:ss:mss] Couldn't find invalidmodulename Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/a.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /tests/cases/fourslash/server/tsconfig.json -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /tests/cases/fourslash/server/tsconfig.json WatchType: Type roots @@ -78,18 +102,18 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /te Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /tests/cases/fourslash/server/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/tests/cases/fourslash/server/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /tests/cases/fourslash/server/a.ts Text-1 "let x = [1, 2];\nx\n" - ../../../../home/src/tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../../../home/src/tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../../../home/src/tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' ../../../../home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../../../home/src/tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' a.ts Part of 'files' list in tsconfig.json @@ -125,18 +149,18 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /te Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text - /tests/cases/fourslash/server/tsconfig.json SVC-1-0 "{\n \"compilerOptions\": {\n \"plugins\": [\n { \"name\": \"invalidmodulename\" }\n ]\n },\n \"files\": [\"a.ts\"]\n}" + /tests/cases/fourslash/server/tsconfig.json SVC-1-0 "{\n \"compilerOptions\": {\n \"lib\": [\"es5\"],\n \"plugins\": [\n { \"name\": \"invalidmodulename\" }\n ]\n },\n \"files\": [\"a.ts\"]\n}" - ../../../../home/src/tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../../../home/src/tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../../../home/src/tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' ../../../../home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../../../home/src/tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' tsconfig.json Root file specified for compilation @@ -157,7 +181,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -165,12 +189,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* + {"pollingInterval":500} /tests/cases/fourslash/server/a.ts: *new* {"pollingInterval":500} /tests/cases/fourslash/server/jsconfig.json: *new* @@ -197,17 +221,17 @@ Projects:: noOpenRef: true ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 containingProjects: 2 /tests/cases/fourslash/server/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 containingProjects: 2 /tests/cases/fourslash/server/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* version: Text-1 containingProjects: 2 /tests/cases/fourslash/server/tsconfig.json @@ -223,7 +247,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/a.ts" @@ -250,17 +274,17 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 1, + "request_seq": 2, "success": true } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: + {"pollingInterval":500} /tests/cases/fourslash/server/jsconfig.json: {"pollingInterval":2000} /tests/cases/fourslash/server/tsconfig.json: @@ -289,17 +313,17 @@ Projects:: noOpenRef: false *changed* ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /tests/cases/fourslash/server/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /tests/cases/fourslash/server/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /tests/cases/fourslash/server/tsconfig.json @@ -316,7 +340,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/a.ts", @@ -330,7 +354,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "quickinfo", - "request_seq": 2, + "request_seq": 3, "success": true, "body": { "kind": "let", diff --git a/tests/baselines/reference/tsserver/fourslashServer/ngProxy3.js b/tests/baselines/reference/tsserver/fourslashServer/ngProxy3.js index 9ff754c9f0ddb..171a2dc597190 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/ngProxy3.js +++ b/tests/baselines/reference/tsserver/fourslashServer/ngProxy3.js @@ -1,16 +1,36 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "lib": [ + "es5" + ], + "plugins": [ + { + "name": "create-thrower" + } + ], + "target": "es5", + "newLine": "crlf", + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/tests/cases/fourslash/server/a.ts] let x = [1, 2]; x @@ -19,6 +39,7 @@ x //// [/tests/cases/fourslash/server/tsconfig.json] { "compilerOptions": { + "lib": ["es5"], "plugins": [ { "name": "create-thrower" } ] @@ -29,7 +50,7 @@ x Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/tsconfig.json" @@ -44,6 +65,9 @@ Info seq [hh:mm:ss:mss] Config: /tests/cases/fourslash/server/tsconfig.json : { "/tests/cases/fourslash/server/a.ts" ], "options": { + "lib": [ + "lib.es5.d.ts" + ], "plugins": [ { "name": "create-thrower" @@ -67,7 +91,7 @@ Info seq [hh:mm:ss:mss] Loading create-thrower from /home/src/tslibs/TS/Lib/tsc Info seq [hh:mm:ss:mss] Plugin activation failed: Error: I am not a well-behaved plugin Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/a.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /tests/cases/fourslash/server/tsconfig.json -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /tests/cases/fourslash/server/tsconfig.json WatchType: Type roots @@ -77,18 +101,18 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /te Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /tests/cases/fourslash/server/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/tests/cases/fourslash/server/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /tests/cases/fourslash/server/a.ts Text-1 "let x = [1, 2];\nx\n" - ../../../../home/src/tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../../../home/src/tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../../../home/src/tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' ../../../../home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../../../home/src/tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' a.ts Part of 'files' list in tsconfig.json @@ -124,18 +148,18 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /te Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text - /tests/cases/fourslash/server/tsconfig.json SVC-1-0 "{\n \"compilerOptions\": {\n \"plugins\": [\n { \"name\": \"create-thrower\" }\n ]\n },\n \"files\": [\"a.ts\"]\n}" + /tests/cases/fourslash/server/tsconfig.json SVC-1-0 "{\n \"compilerOptions\": {\n \"lib\": [\"es5\"],\n \"plugins\": [\n { \"name\": \"create-thrower\" }\n ]\n },\n \"files\": [\"a.ts\"]\n}" - ../../../../home/src/tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../../../home/src/tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../../../home/src/tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' ../../../../home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../../../home/src/tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' tsconfig.json Root file specified for compilation @@ -156,7 +180,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -164,12 +188,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* + {"pollingInterval":500} /tests/cases/fourslash/server/a.ts: *new* {"pollingInterval":500} /tests/cases/fourslash/server/jsconfig.json: *new* @@ -196,17 +220,17 @@ Projects:: noOpenRef: true ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 containingProjects: 2 /tests/cases/fourslash/server/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 containingProjects: 2 /tests/cases/fourslash/server/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* version: Text-1 containingProjects: 2 /tests/cases/fourslash/server/tsconfig.json @@ -222,7 +246,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/a.ts" @@ -249,17 +273,17 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 1, + "request_seq": 2, "success": true } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: + {"pollingInterval":500} /tests/cases/fourslash/server/jsconfig.json: {"pollingInterval":2000} /tests/cases/fourslash/server/tsconfig.json: @@ -288,17 +312,17 @@ Projects:: noOpenRef: false *changed* ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /tests/cases/fourslash/server/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /tests/cases/fourslash/server/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /tests/cases/fourslash/server/tsconfig.json @@ -315,7 +339,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/a.ts", @@ -329,7 +353,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "quickinfo", - "request_seq": 2, + "request_seq": 3, "success": true, "body": { "kind": "let", diff --git a/tests/baselines/reference/tsserver/fourslashServer/ngProxy4.js b/tests/baselines/reference/tsserver/fourslashServer/ngProxy4.js index 1872e649fe674..1b524010aff87 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/ngProxy4.js +++ b/tests/baselines/reference/tsserver/fourslashServer/ngProxy4.js @@ -1,16 +1,36 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "lib": [ + "es5" + ], + "plugins": [ + { + "name": "diagnostic-adder" + } + ], + "target": "es5", + "newLine": "crlf", + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/tests/cases/fourslash/server/a.ts] let x = [1, 2]; x @@ -19,6 +39,7 @@ x //// [/tests/cases/fourslash/server/tsconfig.json] { "compilerOptions": { + "lib": ["es5"], "plugins": [ { "name": "diagnostic-adder" } ] @@ -29,7 +50,7 @@ x Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/tsconfig.json" @@ -44,6 +65,9 @@ Info seq [hh:mm:ss:mss] Config: /tests/cases/fourslash/server/tsconfig.json : { "/tests/cases/fourslash/server/a.ts" ], "options": { + "lib": [ + "lib.es5.d.ts" + ], "plugins": [ { "name": "diagnostic-adder" @@ -67,7 +91,7 @@ Info seq [hh:mm:ss:mss] Loading diagnostic-adder from /home/src/tslibs/TS/Lib/t Info seq [hh:mm:ss:mss] Plugin validation succeeded Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/a.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /tests/cases/fourslash/server/tsconfig.json -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /tests/cases/fourslash/server/tsconfig.json WatchType: Type roots @@ -77,18 +101,18 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /te Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /tests/cases/fourslash/server/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/tests/cases/fourslash/server/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /tests/cases/fourslash/server/a.ts Text-1 "let x = [1, 2];\nx\n" - ../../../../home/src/tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../../../home/src/tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../../../home/src/tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' ../../../../home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../../../home/src/tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' a.ts Part of 'files' list in tsconfig.json @@ -124,18 +148,18 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /te Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text - /tests/cases/fourslash/server/tsconfig.json SVC-1-0 "{\n \"compilerOptions\": {\n \"plugins\": [\n { \"name\": \"diagnostic-adder\" }\n ]\n },\n \"files\": [\"a.ts\"]\n}" + /tests/cases/fourslash/server/tsconfig.json SVC-1-0 "{\n \"compilerOptions\": {\n \"lib\": [\"es5\"],\n \"plugins\": [\n { \"name\": \"diagnostic-adder\" }\n ]\n },\n \"files\": [\"a.ts\"]\n}" - ../../../../home/src/tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../../../home/src/tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../../../home/src/tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' ../../../../home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../../../home/src/tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' tsconfig.json Root file specified for compilation @@ -156,7 +180,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -164,12 +188,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* + {"pollingInterval":500} /tests/cases/fourslash/server/a.ts: *new* {"pollingInterval":500} /tests/cases/fourslash/server/jsconfig.json: *new* @@ -196,17 +220,17 @@ Projects:: noOpenRef: true ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 containingProjects: 2 /tests/cases/fourslash/server/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 containingProjects: 2 /tests/cases/fourslash/server/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* version: Text-1 containingProjects: 2 /tests/cases/fourslash/server/tsconfig.json @@ -222,7 +246,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/a.ts" @@ -249,17 +273,17 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 1, + "request_seq": 2, "success": true } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: + {"pollingInterval":500} /tests/cases/fourslash/server/jsconfig.json: {"pollingInterval":2000} /tests/cases/fourslash/server/tsconfig.json: @@ -288,17 +312,17 @@ Projects:: noOpenRef: false *changed* ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /tests/cases/fourslash/server/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /tests/cases/fourslash/server/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /tests/cases/fourslash/server/tsconfig.json @@ -315,7 +339,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/a.ts", @@ -328,13 +352,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "syntacticDiagnosticsSync", - "request_seq": 2, + "request_seq": 3, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 3, + "seq": 4, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/a.ts", @@ -347,7 +371,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "semanticDiagnosticsSync", - "request_seq": 3, + "request_seq": 4, "success": true, "body": [ { diff --git a/tests/baselines/reference/tsserver/fourslashServer/nodeNextModuleKindCaching1.js b/tests/baselines/reference/tsserver/fourslashServer/nodeNextModuleKindCaching1.js index 6cc20176372dc..b964f1bb4c98a 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/nodeNextModuleKindCaching1.js +++ b/tests/baselines/reference/tsserver/fourslashServer/nodeNextModuleKindCaching1.js @@ -1,16 +1,35 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "lib": [ + "es5" + ], + "rootDir": "/tests/cases/fourslash/server/src", + "outDir": "/tests/cases/fourslash/server/dist", + "target": "es2020", + "module": "nodenext", + "strict": true, + "newLine": "crlf", + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/tests/cases/fourslash/server/package.json] { "type": "module", @@ -33,6 +52,7 @@ helloWorld() //// [/tests/cases/fourslash/server/tsconfig.json] { "compilerOptions": { + "lib": ["es5"], "rootDir": "src", "outDir": "dist", "target": "ES2020", @@ -45,7 +65,7 @@ helloWorld() Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/tsconfig.json" @@ -61,6 +81,9 @@ Info seq [hh:mm:ss:mss] Config: /tests/cases/fourslash/server/tsconfig.json : { "/tests/cases/fourslash/server/src/index.ts" ], "options": { + "lib": [ + "lib.es5.d.ts" + ], "rootDir": "/tests/cases/fourslash/server/src", "outDir": "/tests/cases/fourslash/server/dist", "target": 7, @@ -84,20 +107,34 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /te Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/src/example.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/src/index.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /tests/cases/fourslash/server/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/package.json 2000 undefined Project: /tests/cases/fourslash/server/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/package.json 2000 undefined Project: /tests/cases/fourslash/server/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/package.json 2000 undefined Project: /tests/cases/fourslash/server/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/src/package.json 2000 undefined Project: /tests/cases/fourslash/server/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/package.json 2000 undefined Project: /tests/cases/fourslash/server/tsconfig.json WatchType: File location affecting resolution -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es2020.full.d.ts 500 undefined Project: /tests/cases/fourslash/server/tsconfig.json WatchType: Missing file Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /tests/cases/fourslash/server/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /tests/cases/fourslash/server/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /tests/cases/fourslash/server/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /tests/cases/fourslash/server/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /tests/cases/fourslash/server/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/tests/cases/fourslash/server/tsconfig.json' (Configured) -Info seq [hh:mm:ss:mss] Files (2) +Info seq [hh:mm:ss:mss] Files (5) + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text + /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /tests/cases/fourslash/server/src/example.ts Text-1 "export function helloWorld() {\n console.log('Hello, world!')\n}" /tests/cases/fourslash/server/src/index.ts Text-1 "// The line below should show a \"Relative import paths need explicit file\n// extensions...\" error in VS Code, but it doesn't. The error is only picked up\n// by `tsc` which seems to properly infer the module type.\nimport { helloWorld } from './example'\n\nhelloWorld()" + ../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions + ../../../../home/src/tslibs/TS/Lib/lib.decorators.d.ts + Library referenced via 'decorators' from file '../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' + ../../../../home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' src/example.ts Matched by include pattern 'src\**\*.ts' in 'tsconfig.json' File is ECMAScript module because 'package.json' has field "type" with value "module" @@ -123,72 +160,16 @@ Info seq [hh:mm:ss:mss] event: "body": { "triggerFile": "/tests/cases/fourslash/server/tsconfig.json", "configFile": "/tests/cases/fourslash/server/tsconfig.json", - "diagnostics": [ - { - "text": "File '/home/src/tslibs/TS/Lib/lib.es2020.full.d.ts' not found.\n The file is in the program because:\n Default library for target 'es2020'", - "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 'CallableFunction'.", - "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 'NewableFunction'.", - "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" - } - ] + "diagnostics": [] } } Info seq [hh:mm:ss:mss] getConfigFileNameForFile:: File: /tests/cases/fourslash/server/tsconfig.json ProjectRootPath: undefined:: Result: undefined Info seq [hh:mm:ss:mss] Creating InferredProject: /dev/null/inferredProject1*, currentDirectory: /tests/cases/fourslash/server Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots @@ -196,25 +177,25 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /te Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text - /tests/cases/fourslash/server/tsconfig.json SVC-1-0 "{\n \"compilerOptions\": {\n \"rootDir\": \"src\",\n \"outDir\": \"dist\",\n \"target\": \"ES2020\",\n \"module\": \"NodeNext\",\n \"strict\": true\n },\n \"include\": [\"src\\\\**\\\\*.ts\"]\n}" + /tests/cases/fourslash/server/tsconfig.json SVC-1-0 "{\n \"compilerOptions\": {\n \"lib\": [\"es5\"],\n \"rootDir\": \"src\",\n \"outDir\": \"dist\",\n \"target\": \"ES2020\",\n \"module\": \"NodeNext\",\n \"strict\": true\n },\n \"include\": [\"src\\\\**\\\\*.ts\"]\n}" - ../../../../home/src/tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../../../home/src/tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../../../home/src/tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' ../../../../home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../../../home/src/tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' tsconfig.json Root file specified for compilation Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/package.json 250 undefined WatchType: package.json file Info seq [hh:mm:ss:mss] Project '/tests/cases/fourslash/server/tsconfig.json' (Configured) -Info seq [hh:mm:ss:mss] Files (2) +Info seq [hh:mm:ss:mss] Files (5) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) @@ -229,7 +210,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -237,14 +218,21 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} -/home/src/tslibs/TS/Lib/lib.es2020.full.d.ts: *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/package.json: *new* + {"pollingInterval":2000} + {"pollingInterval":2000} +/home/src/tslibs/TS/package.json: *new* + {"pollingInterval":2000} + {"pollingInterval":2000} +/home/src/tslibs/package.json: *new* + {"pollingInterval":2000} + {"pollingInterval":2000} /tests/cases/fourslash/server/jsconfig.json: *new* {"pollingInterval":2000} /tests/cases/fourslash/server/package.json: *new* @@ -280,17 +268,20 @@ Projects:: noOpenRef: true ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* - version: Text-1 - containingProjects: 1 - /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 - containingProjects: 1 + containingProjects: 2 + /tests/cases/fourslash/server/tsconfig.json /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 - containingProjects: 1 + containingProjects: 2 + /tests/cases/fourslash/server/tsconfig.json + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* + version: Text-1 + containingProjects: 2 + /tests/cases/fourslash/server/tsconfig.json /dev/null/inferredProject1* /tests/cases/fourslash/server/src/example.ts *new* version: Text-1 @@ -307,7 +298,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/src/index.ts" @@ -317,7 +308,7 @@ Info seq [hh:mm:ss:mss] request: Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /tests/cases/fourslash/server/src/index.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] getConfigFileNameForFile:: File: /tests/cases/fourslash/server/src/index.ts ProjectRootPath: undefined:: Result: /tests/cases/fourslash/server/tsconfig.json Info seq [hh:mm:ss:mss] Project '/tests/cases/fourslash/server/tsconfig.json' (Configured) -Info seq [hh:mm:ss:mss] Files (2) +Info seq [hh:mm:ss:mss] Files (5) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) @@ -334,19 +325,26 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 1, + "request_seq": 2, "success": true } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} -/home/src/tslibs/TS/Lib/lib.es2020.full.d.ts: +/home/src/tslibs/TS/Lib/lib.es5.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} +/home/src/tslibs/TS/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} +/home/src/tslibs/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} /tests/cases/fourslash/server/jsconfig.json: {"pollingInterval":2000} /tests/cases/fourslash/server/package.json: @@ -384,17 +382,20 @@ Projects:: noOpenRef: false *changed* ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts - version: Text-1 - containingProjects: 1 - /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /tests/cases/fourslash/server/tsconfig.json /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /tests/cases/fourslash/server/tsconfig.json + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.es5.d.ts + version: Text-1 + containingProjects: 2 + /tests/cases/fourslash/server/tsconfig.json /dev/null/inferredProject1* /tests/cases/fourslash/server/src/example.ts version: Text-1 @@ -412,7 +413,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/src/index.ts", @@ -425,13 +426,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "syntacticDiagnosticsSync", - "request_seq": 2, + "request_seq": 3, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 3, + "seq": 4, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/src/index.ts", @@ -444,7 +445,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "semanticDiagnosticsSync", - "request_seq": 3, + "request_seq": 4, "success": true, "body": [ { diff --git a/tests/baselines/reference/tsserver/fourslashServer/nodeNextPathCompletions.js b/tests/baselines/reference/tsserver/fourslashServer/nodeNextPathCompletions.js index 83f13593d0cea..a347001e0edba 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/nodeNextPathCompletions.js +++ b/tests/baselines/reference/tsserver/fourslashServer/nodeNextPathCompletions.js @@ -1,16 +1,32 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "lib": [ + "es5" + ], + "module": "nodenext", + "target": "es5", + "newLine": "crlf", + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/home/src/workspaces/project/node_modules/dependency/lib/index.d.ts] export function fooFromIndex(): void; @@ -45,12 +61,12 @@ export function fooFromLol(): void; import { fooFromIndex } from ""; //// [/home/src/workspaces/project/tsconfig.json] -{ "compilerOptions": { "module": "nodenext" }, "files": ["./src/foo.ts"] } +{ "compilerOptions": { "lib": ["es5"], "module": "nodenext" }, "files": ["./src/foo.ts"] } Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/home/src/workspaces/project/node_modules/dependency/package.json" @@ -64,9 +80,12 @@ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/p Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/dependency/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/dependency/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots @@ -78,18 +97,18 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/node_modules/dependency/package.json SVC-1-0 "{\n \"type\": \"module\",\n \"name\": \"dependency\",\n \"version\": \"1.0.0\",\n \"exports\": {\n \".\": {\n \"types\": \"./lib/index.d.ts\"\n },\n \"./lol\": {\n \"types\": \"./lib/lol.d.ts\"\n },\n \"./dir/*\": \"./lib/*\"\n }\n}" - ../../../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../../../tslibs/TS/Lib/lib.es5.d.ts' ../../../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../../../tslibs/TS/Lib/lib.es5.d.ts' package.json Root file specified for compilation @@ -106,7 +125,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -114,12 +133,18 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* + {"pollingInterval":500} +/home/src/tslibs/TS/Lib/package.json: *new* + {"pollingInterval":2000} +/home/src/tslibs/TS/package.json: *new* + {"pollingInterval":2000} +/home/src/tslibs/package.json: *new* + {"pollingInterval":2000} /home/src/workspaces/project/node_modules/dependency/jsconfig.json: *new* {"pollingInterval":2000} /home/src/workspaces/project/node_modules/dependency/tsconfig.json: *new* @@ -145,15 +170,15 @@ Projects:: projectProgramVersion: 1 ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* @@ -164,7 +189,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/foo.ts" @@ -179,6 +204,9 @@ Info seq [hh:mm:ss:mss] Config: /home/src/workspaces/project/tsconfig.json : { "/home/src/workspaces/project/src/foo.ts" ], "options": { + "lib": [ + "lib.es5.d.ts" + ], "module": 199, "configFilePath": "/home/src/workspaces/project/tsconfig.json" } @@ -194,19 +222,30 @@ Info seq [hh:mm:ss:mss] event: } } Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/src/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.esnext.full.d.ts 500 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Missing file Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) -Info seq [hh:mm:ss:mss] Files (1) +Info seq [hh:mm:ss:mss] Files (4) + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text + /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/src/foo.ts SVC-1-0 "import { fooFromIndex } from \"\";" + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions + ../../tslibs/TS/Lib/lib.decorators.d.ts + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' + ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' src/foo.ts Part of 'files' list in tsconfig.json File is ECMAScript module because 'package.json' has field "type" with value "module" @@ -252,57 +291,11 @@ Info seq [hh:mm:ss:mss] event: "body": { "triggerFile": "/home/src/workspaces/project/src/foo.ts", "configFile": "/home/src/workspaces/project/tsconfig.json", - "diagnostics": [ - { - "text": "File '/home/src/tslibs/TS/Lib/lib.esnext.full.d.ts' not found.\n The file is in the program because:\n Default library for target 'esnext'", - "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" - } - ] + "diagnostics": [] } } Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) -Info seq [hh:mm:ss:mss] Files (1) +Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Project '/dev/null/autoImportProviderProject1*' (AutoImportProvider) @@ -323,7 +316,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 1, + "request_seq": 2, "success": true, "performanceData": { "updateGraphDurationMs": *, @@ -332,14 +325,21 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} -/home/src/tslibs/TS/Lib/lib.esnext.full.d.ts: *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} *new* +/home/src/tslibs/TS/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} *new* +/home/src/tslibs/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} *new* /home/src/workspaces/project/node_modules/dependency/jsconfig.json: {"pollingInterval":2000} /home/src/workspaces/project/node_modules/dependency/lib/index.d.ts: *new* @@ -389,18 +389,21 @@ Projects:: autoImportProviderHost: /dev/null/autoImportProviderProject1* ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *changed* version: Text-1 - containingProjects: 1 + containingProjects: 2 *changed* /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts + /home/src/workspaces/project/tsconfig.json *new* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *changed* version: Text-1 - containingProjects: 1 + containingProjects: 2 *changed* /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts + /home/src/workspaces/project/tsconfig.json *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *changed* version: Text-1 - containingProjects: 1 + containingProjects: 2 *changed* /dev/null/inferredProject1* + /home/src/workspaces/project/tsconfig.json *new* /home/src/workspaces/project/node_modules/dependency/lib/index.d.ts *new* version: Text-1 containingProjects: 1 @@ -420,7 +423,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/foo.ts", @@ -434,7 +437,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "completionInfo", - "request_seq": 2, + "request_seq": 3, "success": true, "body": { "isGlobalCompletion": false, @@ -453,7 +456,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 3, + "seq": 4, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/foo.ts", @@ -472,7 +475,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "completionEntryDetails-full", - "request_seq": 3, + "request_seq": 4, "success": true, "body": [ { @@ -491,7 +494,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 4, + "seq": 5, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/foo.ts", @@ -508,7 +511,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 4, + "request_seq": 5, "success": true } After Request @@ -526,18 +529,21 @@ Projects:: autoImportProviderHost: /dev/null/autoImportProviderProject1* ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts - version: Text-1 - containingProjects: 1 - /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 /dev/null/inferredProject1* + /home/src/workspaces/project/tsconfig.json /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 /dev/null/inferredProject1* + /home/src/workspaces/project/tsconfig.json +/home/src/tslibs/TS/Lib/lib.es5.d.ts + version: Text-1 + containingProjects: 2 + /dev/null/inferredProject1* + /home/src/workspaces/project/tsconfig.json /home/src/workspaces/project/node_modules/dependency/lib/index.d.ts version: Text-1 containingProjects: 1 @@ -557,7 +563,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 5, + "seq": 6, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/foo.ts", @@ -574,23 +580,26 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 5, + "request_seq": 6, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts - version: Text-1 - containingProjects: 1 - /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 /dev/null/inferredProject1* + /home/src/workspaces/project/tsconfig.json /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /dev/null/inferredProject1* + /home/src/workspaces/project/tsconfig.json +/home/src/tslibs/TS/Lib/lib.es5.d.ts + version: Text-1 + containingProjects: 2 /dev/null/inferredProject1* + /home/src/workspaces/project/tsconfig.json /home/src/workspaces/project/node_modules/dependency/lib/index.d.ts version: Text-1 containingProjects: 1 @@ -610,7 +619,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 6, + "seq": 7, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/foo.ts", @@ -625,13 +634,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 6, + "request_seq": 7, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 7, + "seq": 8, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/foo.ts", @@ -648,23 +657,26 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 7, + "request_seq": 8, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts - version: Text-1 - containingProjects: 1 - /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 /dev/null/inferredProject1* + /home/src/workspaces/project/tsconfig.json /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 /dev/null/inferredProject1* + /home/src/workspaces/project/tsconfig.json +/home/src/tslibs/TS/Lib/lib.es5.d.ts + version: Text-1 + containingProjects: 2 + /dev/null/inferredProject1* + /home/src/workspaces/project/tsconfig.json /home/src/workspaces/project/node_modules/dependency/lib/index.d.ts version: Text-1 containingProjects: 1 @@ -684,7 +696,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 8, + "seq": 9, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/foo.ts", @@ -699,13 +711,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 8, + "request_seq": 9, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 9, + "seq": 10, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/foo.ts", @@ -722,23 +734,26 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 9, + "request_seq": 10, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts - version: Text-1 - containingProjects: 1 - /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 /dev/null/inferredProject1* + /home/src/workspaces/project/tsconfig.json /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 /dev/null/inferredProject1* + /home/src/workspaces/project/tsconfig.json +/home/src/tslibs/TS/Lib/lib.es5.d.ts + version: Text-1 + containingProjects: 2 + /dev/null/inferredProject1* + /home/src/workspaces/project/tsconfig.json /home/src/workspaces/project/node_modules/dependency/lib/index.d.ts version: Text-1 containingProjects: 1 @@ -758,7 +773,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 10, + "seq": 11, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/foo.ts", @@ -773,13 +788,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 10, + "request_seq": 11, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 11, + "seq": 12, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/foo.ts", @@ -796,23 +811,26 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 11, + "request_seq": 12, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts - version: Text-1 - containingProjects: 1 - /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 /dev/null/inferredProject1* + /home/src/workspaces/project/tsconfig.json /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 /dev/null/inferredProject1* + /home/src/workspaces/project/tsconfig.json +/home/src/tslibs/TS/Lib/lib.es5.d.ts + version: Text-1 + containingProjects: 2 + /dev/null/inferredProject1* + /home/src/workspaces/project/tsconfig.json /home/src/workspaces/project/node_modules/dependency/lib/index.d.ts version: Text-1 containingProjects: 1 @@ -832,7 +850,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 12, + "seq": 13, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/foo.ts", @@ -847,13 +865,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 12, + "request_seq": 13, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 13, + "seq": 14, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/foo.ts", @@ -870,23 +888,26 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 13, + "request_seq": 14, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts - version: Text-1 - containingProjects: 1 - /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 /dev/null/inferredProject1* + /home/src/workspaces/project/tsconfig.json /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 /dev/null/inferredProject1* + /home/src/workspaces/project/tsconfig.json +/home/src/tslibs/TS/Lib/lib.es5.d.ts + version: Text-1 + containingProjects: 2 + /dev/null/inferredProject1* + /home/src/workspaces/project/tsconfig.json /home/src/workspaces/project/node_modules/dependency/lib/index.d.ts version: Text-1 containingProjects: 1 @@ -906,7 +927,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 14, + "seq": 15, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/foo.ts", @@ -921,13 +942,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 14, + "request_seq": 15, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 15, + "seq": 16, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/foo.ts", @@ -944,23 +965,26 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 15, + "request_seq": 16, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts - version: Text-1 - containingProjects: 1 - /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 /dev/null/inferredProject1* + /home/src/workspaces/project/tsconfig.json /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /dev/null/inferredProject1* + /home/src/workspaces/project/tsconfig.json +/home/src/tslibs/TS/Lib/lib.es5.d.ts + version: Text-1 + containingProjects: 2 /dev/null/inferredProject1* + /home/src/workspaces/project/tsconfig.json /home/src/workspaces/project/node_modules/dependency/lib/index.d.ts version: Text-1 containingProjects: 1 @@ -980,7 +1004,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 16, + "seq": 17, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/foo.ts", @@ -995,13 +1019,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 16, + "request_seq": 17, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 17, + "seq": 18, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/foo.ts", @@ -1018,23 +1042,26 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 17, + "request_seq": 18, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts - version: Text-1 - containingProjects: 1 - /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 /dev/null/inferredProject1* + /home/src/workspaces/project/tsconfig.json /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /dev/null/inferredProject1* + /home/src/workspaces/project/tsconfig.json +/home/src/tslibs/TS/Lib/lib.es5.d.ts + version: Text-1 + containingProjects: 2 /dev/null/inferredProject1* + /home/src/workspaces/project/tsconfig.json /home/src/workspaces/project/node_modules/dependency/lib/index.d.ts version: Text-1 containingProjects: 1 @@ -1054,7 +1081,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 18, + "seq": 19, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/foo.ts", @@ -1069,13 +1096,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 18, + "request_seq": 19, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 19, + "seq": 20, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/foo.ts", @@ -1092,23 +1119,26 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 19, + "request_seq": 20, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts - version: Text-1 - containingProjects: 1 - /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 /dev/null/inferredProject1* + /home/src/workspaces/project/tsconfig.json /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 /dev/null/inferredProject1* + /home/src/workspaces/project/tsconfig.json +/home/src/tslibs/TS/Lib/lib.es5.d.ts + version: Text-1 + containingProjects: 2 + /dev/null/inferredProject1* + /home/src/workspaces/project/tsconfig.json /home/src/workspaces/project/node_modules/dependency/lib/index.d.ts version: Text-1 containingProjects: 1 @@ -1128,7 +1158,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 20, + "seq": 21, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/foo.ts", @@ -1143,13 +1173,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 20, + "request_seq": 21, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 21, + "seq": 22, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/foo.ts", @@ -1166,23 +1196,26 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 21, + "request_seq": 22, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts - version: Text-1 - containingProjects: 1 - /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 /dev/null/inferredProject1* + /home/src/workspaces/project/tsconfig.json /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 /dev/null/inferredProject1* + /home/src/workspaces/project/tsconfig.json +/home/src/tslibs/TS/Lib/lib.es5.d.ts + version: Text-1 + containingProjects: 2 + /dev/null/inferredProject1* + /home/src/workspaces/project/tsconfig.json /home/src/workspaces/project/node_modules/dependency/lib/index.d.ts version: Text-1 containingProjects: 1 @@ -1202,7 +1235,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 22, + "seq": 23, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/foo.ts", @@ -1217,13 +1250,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 22, + "request_seq": 23, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 23, + "seq": 24, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/foo.ts", @@ -1240,23 +1273,26 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 23, + "request_seq": 24, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts - version: Text-1 - containingProjects: 1 - /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 /dev/null/inferredProject1* + /home/src/workspaces/project/tsconfig.json /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /dev/null/inferredProject1* + /home/src/workspaces/project/tsconfig.json +/home/src/tslibs/TS/Lib/lib.es5.d.ts + version: Text-1 + containingProjects: 2 /dev/null/inferredProject1* + /home/src/workspaces/project/tsconfig.json /home/src/workspaces/project/node_modules/dependency/lib/index.d.ts version: Text-1 containingProjects: 1 @@ -1276,7 +1312,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 24, + "seq": 25, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/foo.ts", @@ -1291,13 +1327,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 24, + "request_seq": 25, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 25, + "seq": 26, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/foo.ts", @@ -1314,23 +1350,26 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 25, + "request_seq": 26, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts - version: Text-1 - containingProjects: 1 - /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 /dev/null/inferredProject1* + /home/src/workspaces/project/tsconfig.json /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 /dev/null/inferredProject1* + /home/src/workspaces/project/tsconfig.json +/home/src/tslibs/TS/Lib/lib.es5.d.ts + version: Text-1 + containingProjects: 2 + /dev/null/inferredProject1* + /home/src/workspaces/project/tsconfig.json /home/src/workspaces/project/node_modules/dependency/lib/index.d.ts version: Text-1 containingProjects: 1 @@ -1350,7 +1389,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 26, + "seq": 27, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/foo.ts", @@ -1365,13 +1404,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 26, + "request_seq": 27, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 27, + "seq": 28, "type": "request", "arguments": { "preferences": {} @@ -1383,12 +1422,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 27, + "request_seq": 28, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 28, + "seq": 29, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/foo.ts", @@ -1404,11 +1443,20 @@ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/p Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/dependency/lib/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json projectStateVersion: 2 projectProgramVersion: 1 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) -Info seq [hh:mm:ss:mss] Files (2) +Info seq [hh:mm:ss:mss] Files (5) + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text + /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/node_modules/dependency/lib/index.d.ts Text-1 "export function fooFromIndex(): void;" /home/src/workspaces/project/src/foo.ts SVC-1-12 "import { fooFromIndex } from \"dependency/\";" + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions + ../../tslibs/TS/Lib/lib.decorators.d.ts + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' + ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' node_modules/dependency/lib/index.d.ts Imported via "dependency/" from file 'src/foo.ts' with packageId 'dependency/ib/index.d.ts@1.0.0' File is ECMAScript module because 'node_modules/dependency/package.json' has field "type" with value "module" @@ -1426,7 +1474,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "completionInfo", - "request_seq": 28, + "request_seq": 29, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -1454,14 +1502,21 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} -/home/src/tslibs/TS/Lib/lib.esnext.full.d.ts: +/home/src/tslibs/TS/Lib/lib.es5.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} +/home/src/tslibs/TS/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} +/home/src/tslibs/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} /home/src/workspaces/project/node_modules/dependency/jsconfig.json: {"pollingInterval":2000} /home/src/workspaces/project/node_modules/dependency/lib/index.d.ts: @@ -1517,18 +1572,21 @@ Projects:: autoImportProviderHost: /dev/null/autoImportProviderProject1* ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts - version: Text-1 - containingProjects: 1 - /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 /dev/null/inferredProject1* + /home/src/workspaces/project/tsconfig.json /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 /dev/null/inferredProject1* + /home/src/workspaces/project/tsconfig.json +/home/src/tslibs/TS/Lib/lib.es5.d.ts + version: Text-1 + containingProjects: 2 + /dev/null/inferredProject1* + /home/src/workspaces/project/tsconfig.json /home/src/workspaces/project/node_modules/dependency/lib/index.d.ts *changed* version: Text-1 containingProjects: 2 *changed* @@ -1549,7 +1607,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 29, + "seq": 30, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/foo.ts", @@ -1566,7 +1624,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 29, + "request_seq": 30, "success": true } After Request @@ -1585,18 +1643,21 @@ Projects:: autoImportProviderHost: /dev/null/autoImportProviderProject1* ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts - version: Text-1 - containingProjects: 1 - /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 /dev/null/inferredProject1* + /home/src/workspaces/project/tsconfig.json /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 /dev/null/inferredProject1* + /home/src/workspaces/project/tsconfig.json +/home/src/tslibs/TS/Lib/lib.es5.d.ts + version: Text-1 + containingProjects: 2 + /dev/null/inferredProject1* + /home/src/workspaces/project/tsconfig.json /home/src/workspaces/project/node_modules/dependency/lib/index.d.ts version: Text-1 containingProjects: 2 @@ -1617,7 +1678,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 30, + "seq": 31, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/foo.ts", @@ -1634,23 +1695,26 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 30, + "request_seq": 31, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts - version: Text-1 - containingProjects: 1 - /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 /dev/null/inferredProject1* + /home/src/workspaces/project/tsconfig.json /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 /dev/null/inferredProject1* + /home/src/workspaces/project/tsconfig.json +/home/src/tslibs/TS/Lib/lib.es5.d.ts + version: Text-1 + containingProjects: 2 + /dev/null/inferredProject1* + /home/src/workspaces/project/tsconfig.json /home/src/workspaces/project/node_modules/dependency/lib/index.d.ts version: Text-1 containingProjects: 2 @@ -1671,7 +1735,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 31, + "seq": 32, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/foo.ts", @@ -1686,13 +1750,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 31, + "request_seq": 32, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 32, + "seq": 33, "type": "request", "arguments": { "preferences": {} @@ -1704,12 +1768,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 32, + "request_seq": 33, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 33, + "seq": 34, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/foo.ts", @@ -1726,10 +1790,19 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /home/src/workspaces/project/node_modules/dependency/lib/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json projectStateVersion: 3 projectProgramVersion: 2 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) -Info seq [hh:mm:ss:mss] Files (1) +Info seq [hh:mm:ss:mss] Files (4) + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text + /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/src/foo.ts SVC-1-14 "import { fooFromIndex } from \"dependency/l\";" + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions + ../../tslibs/TS/Lib/lib.decorators.d.ts + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' + ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' src/foo.ts Part of 'files' list in tsconfig.json File is ECMAScript module because 'package.json' has field "type" with value "module" @@ -1744,7 +1817,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "completionInfo", - "request_seq": 33, + "request_seq": 34, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -1766,14 +1839,21 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} -/home/src/tslibs/TS/Lib/lib.esnext.full.d.ts: +/home/src/tslibs/TS/Lib/lib.es5.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} +/home/src/tslibs/TS/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} +/home/src/tslibs/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} /home/src/workspaces/project/node_modules/dependency/jsconfig.json: {"pollingInterval":2000} /home/src/workspaces/project/node_modules/dependency/lib/index.d.ts: @@ -1836,18 +1916,21 @@ Projects:: autoImportProviderHost: /dev/null/autoImportProviderProject1* ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts - version: Text-1 - containingProjects: 1 - /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 /dev/null/inferredProject1* + /home/src/workspaces/project/tsconfig.json /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /dev/null/inferredProject1* + /home/src/workspaces/project/tsconfig.json +/home/src/tslibs/TS/Lib/lib.es5.d.ts + version: Text-1 + containingProjects: 2 /dev/null/inferredProject1* + /home/src/workspaces/project/tsconfig.json /home/src/workspaces/project/node_modules/dependency/lib/index.d.ts *changed* version: Text-1 containingProjects: 1 *changed* diff --git a/tests/baselines/reference/tsserver/fourslashServer/nonJsDeclarationFilePathCompletions.js b/tests/baselines/reference/tsserver/fourslashServer/nonJsDeclarationFilePathCompletions.js index 8f137d889c20f..79fe952d23bcb 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/nonJsDeclarationFilePathCompletions.js +++ b/tests/baselines/reference/tsserver/fourslashServer/nonJsDeclarationFilePathCompletions.js @@ -1,16 +1,32 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "target": "es5", + "newLine": "crlf", + "lib": [ + "es5" + ], + "allowArbitraryExtensions": true, + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/home/src/workspaces/project/mod.d.html.ts] export declare class HtmlModuleThing {} @@ -24,7 +40,7 @@ import { PackageHtmlModuleThing } from "package/"; Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/home/src/workspaces/project/mod.d.html.ts" @@ -36,7 +52,7 @@ Info seq [hh:mm:ss:mss] Creating InferredProject: /dev/null/inferredProject1*, Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots @@ -46,18 +62,18 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/mod.d.html.ts SVC-1-0 "export declare class HtmlModuleThing {}" - ../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' mod.d.html.ts Root file specified for compilation @@ -74,7 +90,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -82,12 +98,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* + {"pollingInterval":500} /home/src/workspaces/project/jsconfig.json: *new* {"pollingInterval":2000} /home/src/workspaces/project/tsconfig.json: *new* @@ -106,15 +122,15 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* @@ -125,7 +141,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "file": "/home/src/workspaces/project/usage.ts" @@ -150,18 +166,18 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject2* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject2*' (Inferred) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/usage.ts SVC-1-0 "import { HtmlModuleThing } from \"./\";\nimport { PackageHtmlModuleThing } from \"package/\";" - ../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' usage.ts Root file specified for compilation @@ -184,7 +200,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 1, + "request_seq": 2, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -192,12 +208,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: + {"pollingInterval":500} /home/src/workspaces/project/jsconfig.json: {"pollingInterval":2000} /home/src/workspaces/project/tsconfig.json: @@ -232,17 +248,17 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *changed* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *changed* version: Text-1 containingProjects: 2 *changed* /dev/null/inferredProject1* /dev/null/inferredProject2* *new* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *changed* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *changed* version: Text-1 containingProjects: 2 *changed* /dev/null/inferredProject1* /dev/null/inferredProject2* *new* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *changed* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *changed* version: Text-1 containingProjects: 2 *changed* /dev/null/inferredProject1* @@ -258,7 +274,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "file": "/home/src/workspaces/project/usage.ts", @@ -272,7 +288,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "completionInfo", - "request_seq": 2, + "request_seq": 3, "success": true, "body": { "isGlobalCompletion": false, @@ -297,7 +313,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 3, + "seq": 4, "type": "request", "arguments": { "file": "/home/src/workspaces/project/usage.ts", @@ -316,7 +332,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "completionEntryDetails-full", - "request_seq": 3, + "request_seq": 4, "success": true, "body": [ { @@ -335,7 +351,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 4, + "seq": 5, "type": "request", "arguments": { "file": "/home/src/workspaces/project/usage.ts", @@ -354,7 +370,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "completionEntryDetails-full", - "request_seq": 4, + "request_seq": 5, "success": true, "body": [ { @@ -373,7 +389,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 5, + "seq": 6, "type": "request", "arguments": { "file": "/home/src/workspaces/project/usage.ts", @@ -387,7 +403,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "completionInfo", - "request_seq": 5, + "request_seq": 6, "success": true, "body": { "isGlobalCompletion": false, @@ -406,7 +422,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 6, + "seq": 7, "type": "request", "arguments": { "file": "/home/src/workspaces/project/usage.ts", @@ -425,7 +441,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "completionEntryDetails-full", - "request_seq": 6, + "request_seq": 7, "success": true, "body": [ { diff --git a/tests/baselines/reference/tsserver/fourslashServer/occurrences01.js b/tests/baselines/reference/tsserver/fourslashServer/occurrences01.js index 09c15c9580e49..636eb51c80d49 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/occurrences01.js +++ b/tests/baselines/reference/tsserver/fourslashServer/occurrences01.js @@ -1,16 +1,31 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "target": "es5", + "newLine": "crlf", + "lib": [ + "es5" + ], + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/tests/cases/fourslash/server/occurrences01.ts] foo: switch (10) { case 1: @@ -25,7 +40,7 @@ foo: switch (10) { Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/occurrences01.ts" @@ -37,7 +52,7 @@ Info seq [hh:mm:ss:mss] Creating InferredProject: /dev/null/inferredProject1*, Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots @@ -47,18 +62,18 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /te Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /tests/cases/fourslash/server/occurrences01.ts SVC-1-0 "foo: switch (10) {\n case 1:\n case 2:\n case 3:\n break;\n break foo;\n continue;\n continue foo;\n}" - ../../../../home/src/tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../../../home/src/tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../../../home/src/tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' ../../../../home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../../../home/src/tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' occurrences01.ts Root file specified for compilation @@ -75,7 +90,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -83,12 +98,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* + {"pollingInterval":500} /tests/cases/fourslash/server/jsconfig.json: *new* {"pollingInterval":2000} /tests/cases/fourslash/server/tsconfig.json: *new* @@ -107,15 +122,15 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* @@ -126,7 +141,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/occurrences01.ts" @@ -145,12 +160,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 1, + "request_seq": 2, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/occurrences01.ts", @@ -167,7 +182,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "documentHighlights", - "request_seq": 2, + "request_seq": 3, "success": true, "body": [ { @@ -245,7 +260,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 3, + "seq": 4, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/occurrences01.ts" @@ -264,12 +279,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 3, + "request_seq": 4, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 4, + "seq": 5, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/occurrences01.ts", @@ -286,7 +301,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "documentHighlights", - "request_seq": 4, + "request_seq": 5, "success": true, "body": [ { @@ -364,7 +379,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 5, + "seq": 6, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/occurrences01.ts" @@ -383,12 +398,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 5, + "request_seq": 6, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 6, + "seq": 7, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/occurrences01.ts", @@ -405,7 +420,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "documentHighlights", - "request_seq": 6, + "request_seq": 7, "success": true, "body": [ { @@ -483,7 +498,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 7, + "seq": 8, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/occurrences01.ts" @@ -502,12 +517,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 7, + "request_seq": 8, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 8, + "seq": 9, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/occurrences01.ts", @@ -524,7 +539,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "documentHighlights", - "request_seq": 8, + "request_seq": 9, "success": true, "body": [ { @@ -602,7 +617,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 9, + "seq": 10, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/occurrences01.ts" @@ -621,12 +636,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 9, + "request_seq": 10, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 10, + "seq": 11, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/occurrences01.ts", @@ -643,7 +658,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "documentHighlights", - "request_seq": 10, + "request_seq": 11, "success": true, "body": [ { @@ -721,7 +736,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 11, + "seq": 12, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/occurrences01.ts" @@ -740,12 +755,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 11, + "request_seq": 12, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 12, + "seq": 13, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/occurrences01.ts", @@ -762,7 +777,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "documentHighlights", - "request_seq": 12, + "request_seq": 13, "success": true, "body": [ { diff --git a/tests/baselines/reference/tsserver/fourslashServer/occurrences02.js b/tests/baselines/reference/tsserver/fourslashServer/occurrences02.js index a43ea7e862003..bb1423606b851 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/occurrences02.js +++ b/tests/baselines/reference/tsserver/fourslashServer/occurrences02.js @@ -1,16 +1,31 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "target": "es5", + "newLine": "crlf", + "lib": [ + "es5" + ], + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/tests/cases/fourslash/server/occurrences02.ts] function f(x: typeof f) { f(f); @@ -19,7 +34,7 @@ function f(x: typeof f) { Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/occurrences02.ts" @@ -31,7 +46,7 @@ Info seq [hh:mm:ss:mss] Creating InferredProject: /dev/null/inferredProject1*, Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots @@ -41,18 +56,18 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /te Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /tests/cases/fourslash/server/occurrences02.ts SVC-1-0 "function f(x: typeof f) {\n f(f);\n}" - ../../../../home/src/tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../../../home/src/tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../../../home/src/tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' ../../../../home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../../../home/src/tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' occurrences02.ts Root file specified for compilation @@ -69,7 +84,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -77,12 +92,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* + {"pollingInterval":500} /tests/cases/fourslash/server/jsconfig.json: *new* {"pollingInterval":2000} /tests/cases/fourslash/server/tsconfig.json: *new* @@ -101,15 +116,15 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* @@ -120,7 +135,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/occurrences02.ts" @@ -139,12 +154,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 1, + "request_seq": 2, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/occurrences02.ts", @@ -161,7 +176,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "documentHighlights", - "request_seq": 2, + "request_seq": 3, "success": true, "body": [ { @@ -225,7 +240,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 3, + "seq": 4, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/occurrences02.ts" @@ -244,12 +259,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 3, + "request_seq": 4, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 4, + "seq": 5, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/occurrences02.ts", @@ -266,7 +281,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "documentHighlights", - "request_seq": 4, + "request_seq": 5, "success": true, "body": [ { @@ -330,7 +345,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 5, + "seq": 6, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/occurrences02.ts" @@ -349,12 +364,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 5, + "request_seq": 6, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 6, + "seq": 7, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/occurrences02.ts", @@ -371,7 +386,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "documentHighlights", - "request_seq": 6, + "request_seq": 7, "success": true, "body": [ { @@ -435,7 +450,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 7, + "seq": 8, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/occurrences02.ts" @@ -454,12 +469,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 7, + "request_seq": 8, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 8, + "seq": 9, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/occurrences02.ts", @@ -476,7 +491,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "documentHighlights", - "request_seq": 8, + "request_seq": 9, "success": true, "body": [ { diff --git a/tests/baselines/reference/tsserver/fourslashServer/openFile.js b/tests/baselines/reference/tsserver/fourslashServer/openFile.js index e0e3ff9e4b83c..536445ae9ddbb 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/openFile.js +++ b/tests/baselines/reference/tsserver/fourslashServer/openFile.js @@ -1,16 +1,31 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "lib": [ + "es5" + ], + "target": "es5", + "newLine": "crlf", + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/tests/cases/fourslash/server/test.ts] var t = '10'; @@ -18,12 +33,12 @@ var t = '10'; t. //// [/tests/cases/fourslash/server/tsconfig.json] -{ "files": ["test.ts", "test1.ts"] } +{ "compilerOptions": { "lib": ["es5"] }, "files": ["test.ts", "test1.ts"] } Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/test1.ts" @@ -39,6 +54,9 @@ Info seq [hh:mm:ss:mss] Config: /tests/cases/fourslash/server/tsconfig.json : { "/tests/cases/fourslash/server/test1.ts" ], "options": { + "lib": [ + "lib.es5.d.ts" + ], "configFilePath": "/tests/cases/fourslash/server/tsconfig.json" } } @@ -54,7 +72,7 @@ Info seq [hh:mm:ss:mss] event: } Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/test.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /tests/cases/fourslash/server/tsconfig.json -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /tests/cases/fourslash/server/tsconfig.json WatchType: Type roots @@ -64,19 +82,19 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /te Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /tests/cases/fourslash/server/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/tests/cases/fourslash/server/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (5) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /tests/cases/fourslash/server/test.ts Text-1 "var t = '10';" /tests/cases/fourslash/server/test1.ts SVC-1-0 "t." - ../../../../home/src/tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../../../home/src/tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../../../home/src/tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' ../../../../home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../../../home/src/tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' test.ts Part of 'files' list in tsconfig.json test1.ts @@ -115,7 +133,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -123,12 +141,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* + {"pollingInterval":500} /tests/cases/fourslash/server/test.ts: *new* {"pollingInterval":500} /tests/cases/fourslash/server/tsconfig.json: *new* @@ -147,15 +165,15 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 containingProjects: 1 /tests/cases/fourslash/server/tsconfig.json -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 containingProjects: 1 /tests/cases/fourslash/server/tsconfig.json -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* version: Text-1 containingProjects: 1 /tests/cases/fourslash/server/tsconfig.json @@ -170,7 +188,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/test.ts", @@ -184,7 +202,7 @@ Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /tests/cases/fours Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /tests/cases/fourslash/server/tsconfig.json projectStateVersion: 2 projectProgramVersion: 1 structureChanged: false structureIsReused:: Completely Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/tests/cases/fourslash/server/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (5) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /tests/cases/fourslash/server/test.ts SVC-2-0 "var t = 10; t." @@ -205,7 +223,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 1, + "request_seq": 2, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -213,12 +231,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: + {"pollingInterval":500} /tests/cases/fourslash/server/tsconfig.json: {"pollingInterval":2000} @@ -239,15 +257,15 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 1 /tests/cases/fourslash/server/tsconfig.json -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 1 /tests/cases/fourslash/server/tsconfig.json -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 1 /tests/cases/fourslash/server/tsconfig.json @@ -263,7 +281,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/test1.ts" @@ -284,12 +302,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 2, + "request_seq": 3, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 3, + "seq": 4, "type": "request", "arguments": { "preferences": {} @@ -301,12 +319,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 3, + "request_seq": 4, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 4, + "seq": 5, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/test1.ts", @@ -326,7 +344,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "completionInfo", - "request_seq": 4, + "request_seq": 5, "success": true, "body": { "flags": 0, diff --git a/tests/baselines/reference/tsserver/fourslashServer/openFileWithSyntaxKind.js b/tests/baselines/reference/tsserver/fourslashServer/openFileWithSyntaxKind.js index b0b686e4ef79b..aafb01b644ef9 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/openFileWithSyntaxKind.js +++ b/tests/baselines/reference/tsserver/fourslashServer/openFileWithSyntaxKind.js @@ -1,16 +1,32 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "target": "es5", + "newLine": "crlf", + "lib": [ + "es5" + ], + "allowJs": true, + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/tests/cases/fourslash/server/dumbFile.ts] var x; @@ -24,7 +40,7 @@ t. Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/dumbFile.ts" @@ -36,7 +52,7 @@ Info seq [hh:mm:ss:mss] Creating InferredProject: /dev/null/inferredProject1*, Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots @@ -46,18 +62,18 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /te Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /tests/cases/fourslash/server/dumbFile.ts SVC-1-0 "var x;" - ../../../../home/src/tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../../../home/src/tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../../../home/src/tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' ../../../../home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../../../home/src/tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' dumbFile.ts Root file specified for compilation @@ -74,7 +90,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -82,12 +98,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* + {"pollingInterval":500} /tests/cases/fourslash/server/jsconfig.json: *new* {"pollingInterval":2000} /tests/cases/fourslash/server/tsconfig.json: *new* @@ -106,15 +122,15 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* @@ -125,7 +141,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/test.ts", @@ -143,18 +159,18 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /te Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject2* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject2*' (Inferred) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /tests/cases/fourslash/server/test.ts SVC-1-0 "/**\n * @type {number}\n */\nvar t;\nt." - ../../../../home/src/tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../../../home/src/tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../../../home/src/tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' ../../../../home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../../../home/src/tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' test.ts Root file specified for compilation @@ -177,7 +193,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 1, + "request_seq": 2, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -185,12 +201,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: + {"pollingInterval":500} /tests/cases/fourslash/server/jsconfig.json: {"pollingInterval":2000} /tests/cases/fourslash/server/tsconfig.json: @@ -215,17 +231,17 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *changed* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *changed* version: Text-1 containingProjects: 2 *changed* /dev/null/inferredProject1* /dev/null/inferredProject2* *new* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *changed* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *changed* version: Text-1 containingProjects: 2 *changed* /dev/null/inferredProject1* /dev/null/inferredProject2* *new* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *changed* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *changed* version: Text-1 containingProjects: 2 *changed* /dev/null/inferredProject1* @@ -241,7 +257,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "preferences": {} @@ -253,12 +269,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 2, + "request_seq": 3, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 3, + "seq": 4, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/test.ts", @@ -278,7 +294,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "completionInfo", - "request_seq": 3, + "request_seq": 4, "success": true, "body": { "flags": 0, diff --git a/tests/baselines/reference/tsserver/fourslashServer/packageJsonImportsFailedLookups.js b/tests/baselines/reference/tsserver/fourslashServer/packageJsonImportsFailedLookups.js index bc42bf9dbd63c..6adf7a3010916 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/packageJsonImportsFailedLookups.js +++ b/tests/baselines/reference/tsserver/fourslashServer/packageJsonImportsFailedLookups.js @@ -1,7 +1,32 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "lib": [ + "es5" + ], + "module": "nodenext", + "target": "es5", + "newLine": "crlf", + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/a/b/c/d/e/index.ts] import { add } from "#utils"; @@ -14,24 +39,15 @@ import { add } from "#utils"; } //// [/a/b/c/d/e/tsconfig.json] -{ "compilerOptions": { "module": "nodenext" } } +{ "compilerOptions": { "lib": ["es5"], "module": "nodenext" } } //// [/a/b/node_modules/lodash/index.d.ts] export function add(a: number, b: number): number; -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/a/b/c/d/e/tsconfig.json" @@ -46,6 +62,9 @@ Info seq [hh:mm:ss:mss] Config: /a/b/c/d/e/tsconfig.json : { "/a/b/c/d/e/index.ts" ], "options": { + "lib": [ + "lib.es5.d.ts" + ], "module": 199, "configFilePath": "/a/b/c/d/e/tsconfig.json" } @@ -65,6 +84,9 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a/ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/b/c/d/e/index.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /a/b/c/d/e/tsconfig.json Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/b/node_modules/lodash/index.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /a/b/c/d/e/node_modules 1 undefined Project: /a/b/c/d/e/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a/b/c/d/e/node_modules 1 undefined Project: /a/b/c/d/e/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /a/b/c/d/node_modules 1 undefined Project: /a/b/c/d/e/tsconfig.json WatchType: Failed Lookup Locations @@ -72,9 +94,11 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a/ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /a/b/c/node_modules 1 undefined Project: /a/b/c/d/e/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a/b/c/node_modules 1 undefined Project: /a/b/c/d/e/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/b/c/d/e/package.json 2000 undefined Project: /a/b/c/d/e/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/package.json 2000 undefined Project: /a/b/c/d/e/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/package.json 2000 undefined Project: /a/b/c/d/e/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/package.json 2000 undefined Project: /a/b/c/d/e/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/b/node_modules/lodash/package.json 2000 undefined Project: /a/b/c/d/e/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/b/node_modules/package.json 2000 undefined Project: /a/b/c/d/e/tsconfig.json WatchType: File location affecting resolution -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.esnext.full.d.ts 500 undefined Project: /a/b/c/d/e/tsconfig.json WatchType: Missing file Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /a/b/c/d/e/node_modules/@types 1 undefined Project: /a/b/c/d/e/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a/b/c/d/e/node_modules/@types 1 undefined Project: /a/b/c/d/e/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /a/b/c/d/node_modules/@types 1 undefined Project: /a/b/c/d/e/tsconfig.json WatchType: Type roots @@ -83,11 +107,20 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /a/b/c/node_modul Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a/b/c/node_modules/@types 1 undefined Project: /a/b/c/d/e/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /a/b/c/d/e/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/a/b/c/d/e/tsconfig.json' (Configured) -Info seq [hh:mm:ss:mss] Files (2) +Info seq [hh:mm:ss:mss] Files (5) + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text + /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /a/b/node_modules/lodash/index.d.ts Text-1 "export function add(a: number, b: number): number;" /a/b/c/d/e/index.ts Text-1 "import { add } from \"#utils\";" + ../../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions + ../../../../../home/src/tslibs/TS/Lib/lib.decorators.d.ts + Library referenced via 'decorators' from file '../../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' + ../../../../../home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' ../../../node_modules/lodash/index.d.ts Imported via "#utils" from file 'index.ts' File is CommonJS module because 'package.json' was not found @@ -113,53 +146,7 @@ Info seq [hh:mm:ss:mss] event: "body": { "triggerFile": "/a/b/c/d/e/tsconfig.json", "configFile": "/a/b/c/d/e/tsconfig.json", - "diagnostics": [ - { - "text": "File '/home/src/tslibs/TS/Lib/lib.esnext.full.d.ts' not found.\n The file is in the program because:\n Default library for target 'esnext'", - "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" - } - ] + "diagnostics": [] } } Info seq [hh:mm:ss:mss] getConfigFileNameForFile:: File: /a/b/c/d/e/tsconfig.json ProjectRootPath: undefined:: Result: undefined @@ -168,9 +155,9 @@ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/b/c/d/e/jsconfig.js Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/b/c/d/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/b/c/d/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /a/b/c/d/e/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a/b/c/d/e/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /a/b/c/d/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots @@ -180,25 +167,25 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /a/ Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text - /a/b/c/d/e/tsconfig.json SVC-1-0 "{ \"compilerOptions\": { \"module\": \"nodenext\" } }" + /a/b/c/d/e/tsconfig.json SVC-1-0 "{ \"compilerOptions\": { \"lib\": [\"es5\"], \"module\": \"nodenext\" } }" - ../../../../../home/src/tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../../../../home/src/tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../../../../home/src/tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' ../../../../../home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../../../../home/src/tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' tsconfig.json Root file specified for compilation Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /a/b/c/d/e/package.json 250 undefined WatchType: package.json file Info seq [hh:mm:ss:mss] Project '/a/b/c/d/e/tsconfig.json' (Configured) -Info seq [hh:mm:ss:mss] Files (2) +Info seq [hh:mm:ss:mss] Files (5) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) @@ -213,7 +200,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -240,14 +227,21 @@ watchedFiles:: {"pollingInterval":2000} /a/b/node_modules/package.json: *new* {"pollingInterval":2000} -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} -/home/src/tslibs/TS/Lib/lib.esnext.full.d.ts: *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/package.json: *new* + {"pollingInterval":2000} + {"pollingInterval":2000} +/home/src/tslibs/TS/package.json: *new* + {"pollingInterval":2000} + {"pollingInterval":2000} +/home/src/tslibs/package.json: *new* + {"pollingInterval":2000} + {"pollingInterval":2000} watchedDirectoriesRecursive:: /a/b/c/d/e: *new* @@ -291,22 +285,25 @@ ScriptInfos:: version: Text-1 containingProjects: 1 /a/b/c/d/e/tsconfig.json -/home/src/tslibs/TS/Lib/lib.d.ts *new* - version: Text-1 - containingProjects: 1 - /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 - containingProjects: 1 + containingProjects: 2 + /a/b/c/d/e/tsconfig.json /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 - containingProjects: 1 + containingProjects: 2 + /a/b/c/d/e/tsconfig.json + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* + version: Text-1 + containingProjects: 2 + /a/b/c/d/e/tsconfig.json /dev/null/inferredProject1* Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "file": "/a/b/c/d/e/index.ts" @@ -316,7 +313,7 @@ Info seq [hh:mm:ss:mss] request: Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /a/b/c/d/e/index.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] getConfigFileNameForFile:: File: /a/b/c/d/e/index.ts ProjectRootPath: undefined:: Result: /a/b/c/d/e/tsconfig.json Info seq [hh:mm:ss:mss] Project '/a/b/c/d/e/tsconfig.json' (Configured) -Info seq [hh:mm:ss:mss] Files (2) +Info seq [hh:mm:ss:mss] Files (5) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) @@ -333,7 +330,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 1, + "request_seq": 2, "success": true } After Request @@ -355,14 +352,21 @@ watchedFiles:: {"pollingInterval":2000} /a/b/node_modules/package.json: {"pollingInterval":2000} -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} -/home/src/tslibs/TS/Lib/lib.esnext.full.d.ts: +/home/src/tslibs/TS/Lib/lib.es5.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} +/home/src/tslibs/TS/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} +/home/src/tslibs/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} watchedFiles *deleted*:: /a/b/c/d/e/index.ts: @@ -411,15 +415,18 @@ ScriptInfos:: version: Text-1 containingProjects: 1 /a/b/c/d/e/tsconfig.json -/home/src/tslibs/TS/Lib/lib.d.ts - version: Text-1 - containingProjects: 1 - /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /a/b/c/d/e/tsconfig.json /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /a/b/c/d/e/tsconfig.json + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.es5.d.ts + version: Text-1 + containingProjects: 2 + /a/b/c/d/e/tsconfig.json /dev/null/inferredProject1* diff --git a/tests/baselines/reference/tsserver/fourslashServer/pasteEdits_addInNextLine.js b/tests/baselines/reference/tsserver/fourslashServer/pasteEdits_addInNextLine.js index 33ec76ac213de..a5831e3e1a9b1 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/pasteEdits_addInNextLine.js +++ b/tests/baselines/reference/tsserver/fourslashServer/pasteEdits_addInNextLine.js @@ -1,16 +1,31 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "lib": [ + "es5" + ], + "target": "es5", + "newLine": "crlf", + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/home/src/workspaces/project/a.ts] @@ -27,12 +42,12 @@ export const foo: Foo = { }; export const k = a+ t; //// [/home/src/workspaces/project/tsconfig.json] -{ "files": ["a.ts", "b.ts"] } +{ "compilerOptions": { "lib": ["es5"] }, "files": ["a.ts", "b.ts"] } Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/home/src/workspaces/project/a.ts" @@ -48,6 +63,9 @@ Info seq [hh:mm:ss:mss] Config: /home/src/workspaces/project/tsconfig.json : { "/home/src/workspaces/project/b.ts" ], "options": { + "lib": [ + "lib.es5.d.ts" + ], "configFilePath": "/home/src/workspaces/project/tsconfig.json" } } @@ -63,7 +81,7 @@ Info seq [hh:mm:ss:mss] event: } Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/b.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots @@ -73,19 +91,19 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (5) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/a.ts SVC-1-0 "\n\n\n\n" /home/src/workspaces/project/b.ts Text-1 "export interface Foo { }\nexport const a = 1;\nexport const t = 1;\n\nexport const foo: Foo = { };\nexport const k = a+ t;" - ../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' a.ts Part of 'files' list in tsconfig.json b.ts @@ -124,7 +142,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -132,12 +150,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* + {"pollingInterval":500} /home/src/workspaces/project/b.ts: *new* {"pollingInterval":500} /home/src/workspaces/project/tsconfig.json: *new* @@ -156,15 +174,15 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json @@ -179,7 +197,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "formatOptions": { @@ -215,12 +233,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 1, + "request_seq": 2, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "file": "/home/src/workspaces/project/a.ts", @@ -261,7 +279,7 @@ Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/workspac Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json projectStateVersion: 2 projectProgramVersion: 1 structureChanged: false structureIsReused:: Completely Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (5) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/a.ts SVC-1-1 "\n\n\nexport const foo: Foo = {};\n" @@ -273,7 +291,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "getPasteEdits", - "request_seq": 2, + "request_seq": 3, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -320,15 +338,15 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json diff --git a/tests/baselines/reference/tsserver/fourslashServer/pasteEdits_blankTargetFile.js b/tests/baselines/reference/tsserver/fourslashServer/pasteEdits_blankTargetFile.js index c9ef35dc40fa6..b9635ba601852 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/pasteEdits_blankTargetFile.js +++ b/tests/baselines/reference/tsserver/fourslashServer/pasteEdits_blankTargetFile.js @@ -1,16 +1,31 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "lib": [ + "es5" + ], + "target": "es5", + "newLine": "crlf", + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/home/src/workspaces/project/a.ts] export const abc = 10; @@ -26,12 +41,12 @@ console.log("abc"); //// [/home/src/workspaces/project/tsconfig.json] -{ "files": ["folder/c.ts", "a.ts", "b.ts"] } +{ "compilerOptions": { "lib": ["es5"] }, "files": ["folder/c.ts", "a.ts", "b.ts"] } Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/home/src/workspaces/project/folder/c.ts" @@ -48,6 +63,9 @@ Info seq [hh:mm:ss:mss] Config: /home/src/workspaces/project/tsconfig.json : { "/home/src/workspaces/project/b.ts" ], "options": { + "lib": [ + "lib.es5.d.ts" + ], "configFilePath": "/home/src/workspaces/project/tsconfig.json" } } @@ -64,7 +82,7 @@ Info seq [hh:mm:ss:mss] event: Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/a.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/b.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots @@ -74,7 +92,7 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (6) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/folder/c.ts SVC-1-0 "" @@ -82,12 +100,12 @@ Info seq [hh:mm:ss:mss] Files (6) /home/src/workspaces/project/b.ts Text-1 "import { abc } from \"./a\";\n\nconsole.log(abc);\n\n\nconsole.log(\"abc\");" - ../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' folder/c.ts Part of 'files' list in tsconfig.json a.ts @@ -129,7 +147,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -137,12 +155,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* + {"pollingInterval":500} /home/src/workspaces/project/a.ts: *new* {"pollingInterval":500} /home/src/workspaces/project/b.ts: *new* @@ -163,15 +181,15 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json @@ -190,7 +208,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "formatOptions": { @@ -226,12 +244,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 1, + "request_seq": 2, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "file": "/home/src/workspaces/project/folder/c.ts", @@ -272,7 +290,7 @@ Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/workspac Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json projectStateVersion: 2 projectProgramVersion: 1 structureChanged: false structureIsReused:: Completely Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (6) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/folder/c.ts SVC-1-1 "console.log(abc);" @@ -287,7 +305,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "getPasteEdits", - "request_seq": 2, + "request_seq": 3, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -334,15 +352,15 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json diff --git a/tests/baselines/reference/tsserver/fourslashServer/pasteEdits_defaultExport1.js b/tests/baselines/reference/tsserver/fourslashServer/pasteEdits_defaultExport1.js index 4d679c393a1c5..b2d99376c9bdd 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/pasteEdits_defaultExport1.js +++ b/tests/baselines/reference/tsserver/fourslashServer/pasteEdits_defaultExport1.js @@ -1,16 +1,31 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "lib": [ + "es5" + ], + "target": "es5", + "newLine": "crlf", + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/home/src/workspaces/project/a.ts] export default function foo(name: string): void { console.log(name); @@ -24,12 +39,12 @@ const b = foo("bar"); //// [/home/src/workspaces/project/tsconfig.json] -{ "files": ["folder/c.ts", "a.ts", "b.ts"] } +{ "compilerOptions": { "lib": ["es5"] }, "files": ["folder/c.ts", "a.ts", "b.ts"] } Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/home/src/workspaces/project/folder/c.ts" @@ -46,6 +61,9 @@ Info seq [hh:mm:ss:mss] Config: /home/src/workspaces/project/tsconfig.json : { "/home/src/workspaces/project/b.ts" ], "options": { + "lib": [ + "lib.es5.d.ts" + ], "configFilePath": "/home/src/workspaces/project/tsconfig.json" } } @@ -62,7 +80,7 @@ Info seq [hh:mm:ss:mss] event: Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/a.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/b.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots @@ -72,7 +90,7 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (6) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/folder/c.ts SVC-1-0 "" @@ -80,12 +98,12 @@ Info seq [hh:mm:ss:mss] Files (6) /home/src/workspaces/project/b.ts Text-1 "import foo from \"./a\";\nconst b = foo(\"bar\");" - ../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' folder/c.ts Part of 'files' list in tsconfig.json a.ts @@ -127,7 +145,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -135,12 +153,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* + {"pollingInterval":500} /home/src/workspaces/project/a.ts: *new* {"pollingInterval":500} /home/src/workspaces/project/b.ts: *new* @@ -161,15 +179,15 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json @@ -188,7 +206,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "formatOptions": { @@ -224,12 +242,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 1, + "request_seq": 2, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "file": "/home/src/workspaces/project/folder/c.ts", @@ -270,7 +288,7 @@ Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/workspac Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json projectStateVersion: 2 projectProgramVersion: 1 structureChanged: false structureIsReused:: Completely Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (6) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/folder/c.ts SVC-1-1 "const b = foo(\"bar\");" @@ -285,7 +303,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "getPasteEdits", - "request_seq": 2, + "request_seq": 3, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -332,15 +350,15 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json diff --git a/tests/baselines/reference/tsserver/fourslashServer/pasteEdits_defaultExport2.js b/tests/baselines/reference/tsserver/fourslashServer/pasteEdits_defaultExport2.js index 0ee7f5d8d2990..7c37e9582de37 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/pasteEdits_defaultExport2.js +++ b/tests/baselines/reference/tsserver/fourslashServer/pasteEdits_defaultExport2.js @@ -1,16 +1,31 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "lib": [ + "es5" + ], + "target": "es5", + "newLine": "crlf", + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/home/src/workspaces/project/a.ts] const b = foo("bar"); export default function foo(name: string): void { @@ -21,12 +36,12 @@ const b = foo("bar"); //// [/home/src/workspaces/project/tsconfig.json] -{ "files": ["folder/c.ts", "a.ts"] } +{ "compilerOptions": { "lib": ["es5"] }, "files": ["folder/c.ts", "a.ts"] } Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/home/src/workspaces/project/folder/c.ts" @@ -42,6 +57,9 @@ Info seq [hh:mm:ss:mss] Config: /home/src/workspaces/project/tsconfig.json : { "/home/src/workspaces/project/a.ts" ], "options": { + "lib": [ + "lib.es5.d.ts" + ], "configFilePath": "/home/src/workspaces/project/tsconfig.json" } } @@ -57,7 +75,7 @@ Info seq [hh:mm:ss:mss] event: } Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/a.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots @@ -67,19 +85,19 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (5) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/folder/c.ts SVC-1-0 "" /home/src/workspaces/project/a.ts Text-1 "const b = foo(\"bar\");\n export default function foo(name: string): void {\n console.log(name);\n }" - ../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' folder/c.ts Part of 'files' list in tsconfig.json a.ts @@ -118,7 +136,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -126,12 +144,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* + {"pollingInterval":500} /home/src/workspaces/project/a.ts: *new* {"pollingInterval":500} /home/src/workspaces/project/tsconfig.json: *new* @@ -150,15 +168,15 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json @@ -173,7 +191,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "formatOptions": { @@ -209,12 +227,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 1, + "request_seq": 2, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "file": "/home/src/workspaces/project/folder/c.ts", @@ -255,7 +273,7 @@ Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/workspac Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json projectStateVersion: 2 projectProgramVersion: 1 structureChanged: false structureIsReused:: Completely Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (5) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/folder/c.ts SVC-1-1 "const b = foo(\"bar\");" @@ -267,7 +285,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "getPasteEdits", - "request_seq": 2, + "request_seq": 3, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -314,15 +332,15 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json diff --git a/tests/baselines/reference/tsserver/fourslashServer/pasteEdits_defaultImport.js b/tests/baselines/reference/tsserver/fourslashServer/pasteEdits_defaultImport.js index a3d38c09021da..35d0604c55bfe 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/pasteEdits_defaultImport.js +++ b/tests/baselines/reference/tsserver/fourslashServer/pasteEdits_defaultImport.js @@ -1,16 +1,32 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "lib": [ + "es5" + ], + "module": "nodenext", + "target": "es5", + "newLine": "crlf", + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/home/src/workspaces/project/folder/a.ts] const abc = 10; const def = 20; @@ -32,12 +48,12 @@ function foo(abc: test.testInterface, def: test.testInterface) { //// [/home/src/workspaces/project/folder/tsconfig.json] -{ "compilerOptions": { "module": "nodenext" }, "files": ["folder/c.ts", "a.ts", "b.mts"] } +{ "compilerOptions": { "lib": ["es5"], "module": "nodenext" }, "files": ["folder/c.ts", "a.ts", "b.mts"] } Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/home/src/workspaces/project/folder/folder/c.ts" @@ -54,6 +70,9 @@ Info seq [hh:mm:ss:mss] Config: /home/src/workspaces/project/folder/tsconfig.js "/home/src/workspaces/project/folder/b.mts" ], "options": { + "lib": [ + "lib.es5.d.ts" + ], "module": 199, "configFilePath": "/home/src/workspaces/project/folder/tsconfig.json" } @@ -71,11 +90,16 @@ Info seq [hh:mm:ss:mss] event: Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/folder/a.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/folder/b.mts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/workspaces/project/folder/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/package.json 2000 undefined Project: /home/src/workspaces/project/folder/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/package.json 2000 undefined Project: /home/src/workspaces/project/folder/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/package.json 2000 undefined Project: /home/src/workspaces/project/folder/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/folder/folder/package.json 2000 undefined Project: /home/src/workspaces/project/folder/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/folder/package.json 2000 undefined Project: /home/src/workspaces/project/folder/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/package.json 2000 undefined Project: /home/src/workspaces/project/folder/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/package.json 2000 undefined Project: /home/src/workspaces/project/folder/tsconfig.json WatchType: File location affecting resolution -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.esnext.full.d.ts 500 undefined Project: /home/src/workspaces/project/folder/tsconfig.json WatchType: Missing file Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/folder/node_modules/@types 1 undefined Project: /home/src/workspaces/project/folder/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/folder/node_modules/@types 1 undefined Project: /home/src/workspaces/project/folder/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /home/src/workspaces/project/folder/tsconfig.json WatchType: Type roots @@ -84,12 +108,21 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspa Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/node_modules/@types 1 undefined Project: /home/src/workspaces/project/folder/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/folder/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/folder/tsconfig.json' (Configured) -Info seq [hh:mm:ss:mss] Files (3) +Info seq [hh:mm:ss:mss] Files (6) + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text + /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/folder/folder/c.ts SVC-1-0 "" /home/src/workspaces/project/folder/a.ts Text-1 "const abc = 10;\nconst def = 20;\nexport interface testInterface {\n abc: number;\n def: number;\n}" /home/src/workspaces/project/folder/b.mts Text-1 "import test from \"./a.js\";\n\nfunction foo(abc: test.testInterface, def: test.testInterface) {\n console.log(abc);\n console.log(def);\n}\n" + ../../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions + ../../../tslibs/TS/Lib/lib.decorators.d.ts + Library referenced via 'decorators' from file '../../../tslibs/TS/Lib/lib.es5.d.ts' + ../../../tslibs/TS/Lib/lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../../../tslibs/TS/Lib/lib.es5.d.ts' folder/c.ts Part of 'files' list in tsconfig.json File is CommonJS module because 'package.json' was not found @@ -118,57 +151,11 @@ Info seq [hh:mm:ss:mss] event: "body": { "triggerFile": "/home/src/workspaces/project/folder/folder/c.ts", "configFile": "/home/src/workspaces/project/folder/tsconfig.json", - "diagnostics": [ - { - "text": "File '/home/src/tslibs/TS/Lib/lib.esnext.full.d.ts' not found.\n The file is in the program because:\n Default library for target 'esnext'", - "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" - } - ] + "diagnostics": [] } } Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/folder/tsconfig.json' (Configured) -Info seq [hh:mm:ss:mss] Files (3) +Info seq [hh:mm:ss:mss] Files (6) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Open files: @@ -179,7 +166,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -187,8 +174,18 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.esnext.full.d.ts: *new* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* + {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* + {"pollingInterval":500} +/home/src/tslibs/TS/Lib/package.json: *new* + {"pollingInterval":2000} +/home/src/tslibs/TS/package.json: *new* + {"pollingInterval":2000} +/home/src/tslibs/package.json: *new* + {"pollingInterval":2000} /home/src/workspaces/package.json: *new* {"pollingInterval":2000} /home/src/workspaces/project/folder/a.ts: *new* @@ -219,6 +216,18 @@ Projects:: autoImportProviderHost: false ScriptInfos:: +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* + version: Text-1 + containingProjects: 1 + /home/src/workspaces/project/folder/tsconfig.json +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* + version: Text-1 + containingProjects: 1 + /home/src/workspaces/project/folder/tsconfig.json +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* + version: Text-1 + containingProjects: 1 + /home/src/workspaces/project/folder/tsconfig.json /home/src/workspaces/project/folder/a.ts *new* version: Text-1 containingProjects: 1 @@ -234,7 +243,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "formatOptions": { @@ -270,12 +279,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 1, + "request_seq": 2, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "file": "/home/src/workspaces/project/folder/folder/c.ts", @@ -315,7 +324,10 @@ Info seq [hh:mm:ss:mss] request: Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/workspaces/project/folder/tsconfig.json Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/folder/tsconfig.json projectStateVersion: 2 projectProgramVersion: 1 structureChanged: false structureIsReused:: Completely Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/folder/tsconfig.json' (Configured) -Info seq [hh:mm:ss:mss] Files (3) +Info seq [hh:mm:ss:mss] Files (6) + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text + /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/folder/folder/c.ts SVC-1-1 "function foo(abc: test.abc, def: test.def) {\nconsole.log(abc);\nconsole.log(def);\n}" /home/src/workspaces/project/folder/a.ts Text-1 "const abc = 10;\nconst def = 20;\nexport interface testInterface {\n abc: number;\n def: number;\n}" /home/src/workspaces/project/folder/b.mts Text-1 "import test from \"./a.js\";\n\nfunction foo(abc: test.testInterface, def: test.testInterface) {\n console.log(abc);\n console.log(def);\n}\n" @@ -326,7 +338,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "getPasteEdits", - "request_seq": 2, + "request_seq": 3, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -373,6 +385,18 @@ Projects:: autoImportProviderHost: false ScriptInfos:: +/home/src/tslibs/TS/Lib/lib.decorators.d.ts + version: Text-1 + containingProjects: 1 + /home/src/workspaces/project/folder/tsconfig.json +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts + version: Text-1 + containingProjects: 1 + /home/src/workspaces/project/folder/tsconfig.json +/home/src/tslibs/TS/Lib/lib.es5.d.ts + version: Text-1 + containingProjects: 1 + /home/src/workspaces/project/folder/tsconfig.json /home/src/workspaces/project/folder/a.ts version: Text-1 containingProjects: 1 diff --git a/tests/baselines/reference/tsserver/fourslashServer/pasteEdits_existingImports1.js b/tests/baselines/reference/tsserver/fourslashServer/pasteEdits_existingImports1.js index cc16e91b12f81..5d3e627f2ef11 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/pasteEdits_existingImports1.js +++ b/tests/baselines/reference/tsserver/fourslashServer/pasteEdits_existingImports1.js @@ -1,16 +1,31 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "lib": [ + "es5" + ], + "target": "es5", + "newLine": "crlf", + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/home/src/workspaces/project/other.ts] export const t = 1; @@ -28,12 +43,12 @@ const b = 10; const c = 10; //// [/home/src/workspaces/project/tsconfig.json] -{ "files": ["target.ts", "other.ts", "other2.ts", "other3.ts"] } +{ "compilerOptions": { "lib": ["es5"] }, "files": ["target.ts", "other.ts", "other2.ts", "other3.ts"] } Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/home/src/workspaces/project/target.ts" @@ -51,6 +66,9 @@ Info seq [hh:mm:ss:mss] Config: /home/src/workspaces/project/tsconfig.json : { "/home/src/workspaces/project/other3.ts" ], "options": { + "lib": [ + "lib.es5.d.ts" + ], "configFilePath": "/home/src/workspaces/project/tsconfig.json" } } @@ -68,7 +86,7 @@ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/p Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/other2.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/other3.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots @@ -78,7 +96,7 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (7) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/other.ts Text-1 "export const t = 1;" @@ -87,12 +105,12 @@ Info seq [hh:mm:ss:mss] Files (7) /home/src/workspaces/project/other2.ts Text-1 "export const t2 = 1;" - ../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' other.ts Imported via "./other" from file 'target.ts' Part of 'files' list in tsconfig.json @@ -137,7 +155,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -145,12 +163,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* + {"pollingInterval":500} /home/src/workspaces/project/other.ts: *new* {"pollingInterval":500} /home/src/workspaces/project/other2.ts: *new* @@ -173,15 +191,15 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json @@ -204,7 +222,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "formatOptions": { @@ -240,12 +258,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 1, + "request_seq": 2, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "file": "/home/src/workspaces/project/target.ts", @@ -271,7 +289,7 @@ Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/workspac Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json projectStateVersion: 2 projectProgramVersion: 1 structureChanged: false structureIsReused:: Completely Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (7) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/other.ts Text-1 "export const t = 1;" @@ -285,7 +303,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "getPasteEdits", - "request_seq": 2, + "request_seq": 3, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -332,15 +350,15 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json diff --git a/tests/baselines/reference/tsserver/fourslashServer/pasteEdits_existingImports2.js b/tests/baselines/reference/tsserver/fourslashServer/pasteEdits_existingImports2.js index 05195d057d794..3c5aafb4655be 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/pasteEdits_existingImports2.js +++ b/tests/baselines/reference/tsserver/fourslashServer/pasteEdits_existingImports2.js @@ -1,16 +1,31 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "lib": [ + "es5" + ], + "target": "es5", + "newLine": "crlf", + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/home/src/workspaces/project/originalFile.ts] import { t2 } from "./other2"; import { t3 } from "./other3"; @@ -34,12 +49,12 @@ const b = 10; const c = 10; //// [/home/src/workspaces/project/tsconfig.json] -{ "files": ["target.ts", "originalFile.ts", "other.ts", "other2.ts", "other3.ts"] } +{ "compilerOptions": { "lib": ["es5"] }, "files": ["target.ts", "originalFile.ts", "other.ts", "other2.ts", "other3.ts"] } Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/home/src/workspaces/project/target.ts" @@ -58,6 +73,9 @@ Info seq [hh:mm:ss:mss] Config: /home/src/workspaces/project/tsconfig.json : { "/home/src/workspaces/project/other3.ts" ], "options": { + "lib": [ + "lib.es5.d.ts" + ], "configFilePath": "/home/src/workspaces/project/tsconfig.json" } } @@ -76,7 +94,7 @@ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/p Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/other2.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/other3.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots @@ -86,7 +104,7 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (8) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/other.ts Text-1 "export const t = 1;" @@ -96,12 +114,12 @@ Info seq [hh:mm:ss:mss] Files (8) /home/src/workspaces/project/originalFile.ts Text-1 "import { t2 } from \"./other2\";\nimport { t3 } from \"./other3\";\nexport const n = 10;\nexport const m = t3 + t2 + n;" - ../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' other.ts Imported via "./other" from file 'target.ts' Part of 'files' list in tsconfig.json @@ -150,7 +168,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -158,12 +176,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* + {"pollingInterval":500} /home/src/workspaces/project/originalFile.ts: *new* {"pollingInterval":500} /home/src/workspaces/project/other.ts: *new* @@ -188,15 +206,15 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json @@ -223,7 +241,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "formatOptions": { @@ -259,12 +277,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 1, + "request_seq": 2, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "file": "/home/src/workspaces/project/target.ts", @@ -305,7 +323,7 @@ Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/workspac Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json projectStateVersion: 2 projectProgramVersion: 1 structureChanged: false structureIsReused:: Completely Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (8) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/other.ts Text-1 "export const t = 1;" @@ -322,7 +340,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "getPasteEdits", - "request_seq": 2, + "request_seq": 3, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -380,15 +398,15 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json diff --git a/tests/baselines/reference/tsserver/fourslashServer/pasteEdits_globalAndLocal1.js b/tests/baselines/reference/tsserver/fourslashServer/pasteEdits_globalAndLocal1.js index 9a9dc2c692487..2cd02601f56a1 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/pasteEdits_globalAndLocal1.js +++ b/tests/baselines/reference/tsserver/fourslashServer/pasteEdits_globalAndLocal1.js @@ -1,16 +1,31 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "lib": [ + "es5" + ], + "target": "es5", + "newLine": "crlf", + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/home/src/workspaces/project/globals.d.ts] export {}; // Make this a module declare global { @@ -29,12 +44,12 @@ export interface Disposable { export interface EditingService extends Disposable { } //// [/home/src/workspaces/project/tsconfig.json] -{ "files": ["target.ts", "globals.d.ts", "test.ts"] } +{ "compilerOptions": { "lib": ["es5"] }, "files": ["target.ts", "globals.d.ts", "test.ts"] } Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/home/src/workspaces/project/target.ts" @@ -51,6 +66,9 @@ Info seq [hh:mm:ss:mss] Config: /home/src/workspaces/project/tsconfig.json : { "/home/src/workspaces/project/test.ts" ], "options": { + "lib": [ + "lib.es5.d.ts" + ], "configFilePath": "/home/src/workspaces/project/tsconfig.json" } } @@ -67,7 +85,7 @@ Info seq [hh:mm:ss:mss] event: Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/globals.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/test.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots @@ -77,7 +95,7 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (6) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/target.ts SVC-1-0 "" @@ -85,12 +103,12 @@ Info seq [hh:mm:ss:mss] Files (6) /home/src/workspaces/project/test.ts Text-1 "export interface Disposable {\n (): string;\n}\nexport interface EditingService extends Disposable { }" - ../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' target.ts Part of 'files' list in tsconfig.json globals.d.ts @@ -131,7 +149,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -139,12 +157,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* + {"pollingInterval":500} /home/src/workspaces/project/globals.d.ts: *new* {"pollingInterval":500} /home/src/workspaces/project/test.ts: *new* @@ -165,15 +183,15 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json @@ -192,7 +210,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "formatOptions": { @@ -228,12 +246,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 1, + "request_seq": 2, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "file": "/home/src/workspaces/project/target.ts", @@ -274,7 +292,7 @@ Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/workspac Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json projectStateVersion: 2 projectProgramVersion: 1 structureChanged: false structureIsReused:: Completely Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (6) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/target.ts SVC-1-1 "export interface EditingService extends Disposable { }" @@ -287,7 +305,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "getPasteEdits", - "request_seq": 2, + "request_seq": 3, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -334,15 +352,15 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json diff --git a/tests/baselines/reference/tsserver/fourslashServer/pasteEdits_globalAndLocal2.js b/tests/baselines/reference/tsserver/fourslashServer/pasteEdits_globalAndLocal2.js index 37eb9ea350420..d90065720b43b 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/pasteEdits_globalAndLocal2.js +++ b/tests/baselines/reference/tsserver/fourslashServer/pasteEdits_globalAndLocal2.js @@ -1,16 +1,31 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "lib": [ + "es5" + ], + "target": "es5", + "newLine": "crlf", + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/home/src/workspaces/project/globals.d.ts] export {}; // Make this a module declare global { @@ -32,12 +47,12 @@ import { Disposable } from './lifecycle'; export interface EditingService extends Disposable { } //// [/home/src/workspaces/project/tsconfig.json] -{ "files": ["target.ts", "globals.d.ts", "test.ts", "lifecycle.ts"] } +{ "compilerOptions": { "lib": ["es5"] }, "files": ["target.ts", "globals.d.ts", "test.ts", "lifecycle.ts"] } Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/home/src/workspaces/project/target.ts" @@ -55,6 +70,9 @@ Info seq [hh:mm:ss:mss] Config: /home/src/workspaces/project/tsconfig.json : { "/home/src/workspaces/project/lifecycle.ts" ], "options": { + "lib": [ + "lib.es5.d.ts" + ], "configFilePath": "/home/src/workspaces/project/tsconfig.json" } } @@ -72,7 +90,7 @@ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/p Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/test.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/lifecycle.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots @@ -82,7 +100,7 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (7) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/target.ts SVC-1-0 "" @@ -91,12 +109,12 @@ Info seq [hh:mm:ss:mss] Files (7) /home/src/workspaces/project/test.ts Text-1 "import { Disposable } from './lifecycle';\nexport interface EditingService extends Disposable { }" - ../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' target.ts Part of 'files' list in tsconfig.json globals.d.ts @@ -140,7 +158,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -148,12 +166,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* + {"pollingInterval":500} /home/src/workspaces/project/globals.d.ts: *new* {"pollingInterval":500} /home/src/workspaces/project/lifecycle.ts: *new* @@ -176,15 +194,15 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json @@ -207,7 +225,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "formatOptions": { @@ -243,12 +261,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 1, + "request_seq": 2, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "file": "/home/src/workspaces/project/target.ts", @@ -289,7 +307,7 @@ Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/workspac Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json projectStateVersion: 2 projectProgramVersion: 1 structureChanged: false structureIsReused:: Completely Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (7) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/target.ts SVC-1-1 "export interface EditingService extends Disposable { }" @@ -305,7 +323,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "getPasteEdits", - "request_seq": 2, + "request_seq": 3, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -352,15 +370,15 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json diff --git a/tests/baselines/reference/tsserver/fourslashServer/pasteEdits_knownSourceFile.js b/tests/baselines/reference/tsserver/fourslashServer/pasteEdits_knownSourceFile.js index 3d53d2ed85eb1..f7b26bfcea484 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/pasteEdits_knownSourceFile.js +++ b/tests/baselines/reference/tsserver/fourslashServer/pasteEdits_knownSourceFile.js @@ -1,16 +1,31 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "lib": [ + "es5" + ], + "target": "es5", + "newLine": "crlf", + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/home/src/workspaces/project/file1.ts] export const b = 2; @@ -26,12 +41,12 @@ function f(); const p = 1; //// [/home/src/workspaces/project/tsconfig.json] -{ "files": ["file1.ts", "file2.ts", "target.ts"] } +{ "compilerOptions": { "lib": ["es5"] }, "files": ["file1.ts", "file2.ts", "target.ts"] } Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/home/src/workspaces/project/target.ts" @@ -48,6 +63,9 @@ Info seq [hh:mm:ss:mss] Config: /home/src/workspaces/project/tsconfig.json : { "/home/src/workspaces/project/target.ts" ], "options": { + "lib": [ + "lib.es5.d.ts" + ], "configFilePath": "/home/src/workspaces/project/tsconfig.json" } } @@ -64,7 +82,7 @@ Info seq [hh:mm:ss:mss] event: Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/file1.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/file2.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots @@ -74,7 +92,7 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (6) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/file1.ts Text-1 "export const b = 2;" @@ -82,12 +100,12 @@ Info seq [hh:mm:ss:mss] Files (6) /home/src/workspaces/project/target.ts SVC-1-0 "export const tt = 2;\nfunction f();\nconst p = 1;" - ../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' file1.ts Part of 'files' list in tsconfig.json Imported via './file1' from file 'file2.ts' @@ -129,7 +147,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -137,12 +155,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* + {"pollingInterval":500} /home/src/workspaces/project/file1.ts: *new* {"pollingInterval":500} /home/src/workspaces/project/file2.ts: *new* @@ -163,15 +181,15 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json @@ -190,7 +208,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "formatOptions": { @@ -226,12 +244,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 1, + "request_seq": 2, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "file": "/home/src/workspaces/project/target.ts", @@ -272,7 +290,7 @@ Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/workspac Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json projectStateVersion: 2 projectProgramVersion: 1 structureChanged: false structureIsReused:: Completely Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (6) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/file1.ts Text-1 "export const b = 2;" @@ -287,7 +305,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "getPasteEdits", - "request_seq": 2, + "request_seq": 3, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -350,15 +368,15 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json diff --git a/tests/baselines/reference/tsserver/fourslashServer/pasteEdits_multiplePastes1.js b/tests/baselines/reference/tsserver/fourslashServer/pasteEdits_multiplePastes1.js index 9833db3b4f5eb..fc9b5a517e6ca 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/pasteEdits_multiplePastes1.js +++ b/tests/baselines/reference/tsserver/fourslashServer/pasteEdits_multiplePastes1.js @@ -1,16 +1,31 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "lib": [ + "es5" + ], + "target": "es5", + "newLine": "crlf", + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/home/src/workspaces/project/file1.ts] export const p = 10; export const q = 12; @@ -28,12 +43,12 @@ const c = 3; const d = 4; //// [/home/src/workspaces/project/tsconfig.json] -{ "files": ["file1.ts", "target.ts", "file3.ts"] } +{ "compilerOptions": { "lib": ["es5"] }, "files": ["file1.ts", "target.ts", "file3.ts"] } Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/home/src/workspaces/project/target.ts" @@ -50,6 +65,9 @@ Info seq [hh:mm:ss:mss] Config: /home/src/workspaces/project/tsconfig.json : { "/home/src/workspaces/project/file3.ts" ], "options": { + "lib": [ + "lib.es5.d.ts" + ], "configFilePath": "/home/src/workspaces/project/tsconfig.json" } } @@ -66,7 +84,7 @@ Info seq [hh:mm:ss:mss] event: Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/file1.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/file3.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots @@ -76,7 +94,7 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (6) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/file1.ts Text-1 "export const p = 10;\nexport const q = 12;" @@ -84,12 +102,12 @@ Info seq [hh:mm:ss:mss] Files (6) /home/src/workspaces/project/file3.ts Text-1 "export const r = 10;\nexport const s = 12;" - ../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' file1.ts Part of 'files' list in tsconfig.json target.ts @@ -130,7 +148,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -138,12 +156,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* + {"pollingInterval":500} /home/src/workspaces/project/file1.ts: *new* {"pollingInterval":500} /home/src/workspaces/project/file3.ts: *new* @@ -164,15 +182,15 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json @@ -191,7 +209,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "formatOptions": { @@ -227,12 +245,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 1, + "request_seq": 2, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "file": "/home/src/workspaces/project/target.ts", @@ -268,7 +286,7 @@ Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/workspac Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json projectStateVersion: 2 projectProgramVersion: 1 structureChanged: false structureIsReused:: Completely Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (6) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/file1.ts Text-1 "export const p = 10;\nexport const q = 12;" @@ -281,7 +299,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "getPasteEdits", - "request_seq": 2, + "request_seq": 3, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -339,15 +357,15 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json diff --git a/tests/baselines/reference/tsserver/fourslashServer/pasteEdits_multiplePastes2.js b/tests/baselines/reference/tsserver/fourslashServer/pasteEdits_multiplePastes2.js index 79818d3b6aec7..168c4a0007f65 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/pasteEdits_multiplePastes2.js +++ b/tests/baselines/reference/tsserver/fourslashServer/pasteEdits_multiplePastes2.js @@ -1,16 +1,31 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "lib": [ + "es5" + ], + "target": "es5", + "newLine": "crlf", + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/home/src/workspaces/project/file1.ts] import { aa, bb } from "./other"; export const r = 10; @@ -30,12 +45,12 @@ const c = 3; const d = 4; //// [/home/src/workspaces/project/tsconfig.json] -{ "files": ["file1.ts", "target.ts", "other.ts"] } +{ "compilerOptions": { "lib": ["es5"] }, "files": ["file1.ts", "target.ts", "other.ts"] } Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/home/src/workspaces/project/target.ts" @@ -52,6 +67,9 @@ Info seq [hh:mm:ss:mss] Config: /home/src/workspaces/project/tsconfig.json : { "/home/src/workspaces/project/other.ts" ], "options": { + "lib": [ + "lib.es5.d.ts" + ], "configFilePath": "/home/src/workspaces/project/tsconfig.json" } } @@ -68,7 +86,7 @@ Info seq [hh:mm:ss:mss] event: Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/file1.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/other.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots @@ -78,7 +96,7 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (6) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/other.ts Text-1 "export const aa = 1;\nexport const bb = 2;" @@ -86,12 +104,12 @@ Info seq [hh:mm:ss:mss] Files (6) /home/src/workspaces/project/target.ts SVC-1-0 "const a = 1;\nconst b = 2;\nconst c = 3;\n\nconst d = 4;" - ../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' other.ts Imported via "./other" from file 'file1.ts' Part of 'files' list in tsconfig.json @@ -133,7 +151,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -141,12 +159,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* + {"pollingInterval":500} /home/src/workspaces/project/file1.ts: *new* {"pollingInterval":500} /home/src/workspaces/project/other.ts: *new* @@ -167,15 +185,15 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json @@ -194,7 +212,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "formatOptions": { @@ -230,12 +248,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 1, + "request_seq": 2, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "file": "/home/src/workspaces/project/target.ts", @@ -286,7 +304,7 @@ Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/workspac Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json projectStateVersion: 2 projectProgramVersion: 1 structureChanged: false structureIsReused:: Completely Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (6) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/other.ts Text-1 "export const aa = 1;\nexport const bb = 2;" @@ -302,7 +320,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "getPasteEdits", - "request_seq": 2, + "request_seq": 3, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -360,15 +378,15 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json diff --git a/tests/baselines/reference/tsserver/fourslashServer/pasteEdits_multiplePastes3.js b/tests/baselines/reference/tsserver/fourslashServer/pasteEdits_multiplePastes3.js index c0ac11e5bf513..8e98dee983f31 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/pasteEdits_multiplePastes3.js +++ b/tests/baselines/reference/tsserver/fourslashServer/pasteEdits_multiplePastes3.js @@ -1,16 +1,31 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "lib": [ + "es5" + ], + "target": "es5", + "newLine": "crlf", + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/home/src/workspaces/project/file1.ts] import { aa, bb } from "./other"; export const r = 10; @@ -33,12 +48,12 @@ const c = 3; const d = 4; //// [/home/src/workspaces/project/tsconfig.json] -{ "files": ["file1.ts", "target.ts", "other.ts"] } +{ "compilerOptions": { "lib": ["es5"] }, "files": ["file1.ts", "target.ts", "other.ts"] } Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/home/src/workspaces/project/target.ts" @@ -55,6 +70,9 @@ Info seq [hh:mm:ss:mss] Config: /home/src/workspaces/project/tsconfig.json : { "/home/src/workspaces/project/other.ts" ], "options": { + "lib": [ + "lib.es5.d.ts" + ], "configFilePath": "/home/src/workspaces/project/tsconfig.json" } } @@ -71,7 +89,7 @@ Info seq [hh:mm:ss:mss] event: Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/file1.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/other.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots @@ -81,7 +99,7 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (6) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/other.ts Text-1 "export const aa = 1;\nexport const bb = 2;" @@ -89,12 +107,12 @@ Info seq [hh:mm:ss:mss] Files (6) /home/src/workspaces/project/target.ts SVC-1-0 "import { r } from \"./file1\";\nconst a = r;\nconst b = 2;\nconst c = 3;\n\nconst d = 4;" - ../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' other.ts Imported via "./other" from file 'file1.ts' Part of 'files' list in tsconfig.json @@ -137,7 +155,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -145,12 +163,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* + {"pollingInterval":500} /home/src/workspaces/project/file1.ts: *new* {"pollingInterval":500} /home/src/workspaces/project/other.ts: *new* @@ -171,15 +189,15 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json @@ -198,7 +216,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "formatOptions": { @@ -234,12 +252,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 1, + "request_seq": 2, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "file": "/home/src/workspaces/project/target.ts", @@ -301,7 +319,7 @@ Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/workspac Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json projectStateVersion: 2 projectProgramVersion: 1 structureChanged: false structureIsReused:: Completely Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (6) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/other.ts Text-1 "export const aa = 1;\nexport const bb = 2;" @@ -317,7 +335,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "getPasteEdits", - "request_seq": 2, + "request_seq": 3, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -413,15 +431,15 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json diff --git a/tests/baselines/reference/tsserver/fourslashServer/pasteEdits_multiplePastes4.js b/tests/baselines/reference/tsserver/fourslashServer/pasteEdits_multiplePastes4.js index 5dae36bae2dcc..678284b107227 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/pasteEdits_multiplePastes4.js +++ b/tests/baselines/reference/tsserver/fourslashServer/pasteEdits_multiplePastes4.js @@ -1,16 +1,31 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "lib": [ + "es5" + ], + "target": "es5", + "newLine": "crlf", + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/home/src/workspaces/project/file1.ts] export const p = 10; export const q = 12; @@ -28,12 +43,12 @@ const c = 3; const d = 4; //// [/home/src/workspaces/project/tsconfig.json] -{ "files": ["file1.ts", "target.ts", "file3.ts"] } +{ "compilerOptions": { "lib": ["es5"] }, "files": ["file1.ts", "target.ts", "file3.ts"] } Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/home/src/workspaces/project/target.ts" @@ -50,6 +65,9 @@ Info seq [hh:mm:ss:mss] Config: /home/src/workspaces/project/tsconfig.json : { "/home/src/workspaces/project/file3.ts" ], "options": { + "lib": [ + "lib.es5.d.ts" + ], "configFilePath": "/home/src/workspaces/project/tsconfig.json" } } @@ -66,7 +84,7 @@ Info seq [hh:mm:ss:mss] event: Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/file1.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/file3.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots @@ -76,7 +94,7 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (6) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/file1.ts Text-1 "export const p = 10;\nexport const q = 12;" @@ -84,12 +102,12 @@ Info seq [hh:mm:ss:mss] Files (6) /home/src/workspaces/project/file3.ts Text-1 "export const r = 10;\nexport const s = 12;" - ../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' file1.ts Part of 'files' list in tsconfig.json target.ts @@ -130,7 +148,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -138,12 +156,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* + {"pollingInterval":500} /home/src/workspaces/project/file1.ts: *new* {"pollingInterval":500} /home/src/workspaces/project/file3.ts: *new* @@ -164,15 +182,15 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json @@ -191,7 +209,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "formatOptions": { @@ -227,12 +245,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 1, + "request_seq": 2, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "file": "/home/src/workspaces/project/target.ts", @@ -279,7 +297,7 @@ Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/workspac Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json projectStateVersion: 2 projectProgramVersion: 1 structureChanged: false structureIsReused:: Completely Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (6) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/file1.ts Text-1 "export const p = 10;\nexport const q = 12;" @@ -292,7 +310,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "getPasteEdits", - "request_seq": 2, + "request_seq": 3, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -361,15 +379,15 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json diff --git a/tests/baselines/reference/tsserver/fourslashServer/pasteEdits_multiplePastesConsistentlyLargerInSize.js b/tests/baselines/reference/tsserver/fourslashServer/pasteEdits_multiplePastesConsistentlyLargerInSize.js index 89a296a933e93..860b16d8d3f42 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/pasteEdits_multiplePastesConsistentlyLargerInSize.js +++ b/tests/baselines/reference/tsserver/fourslashServer/pasteEdits_multiplePastesConsistentlyLargerInSize.js @@ -1,16 +1,31 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "lib": [ + "es5" + ], + "target": "es5", + "newLine": "crlf", + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/home/src/workspaces/project/a.ts] function foo() { const p = 1; @@ -44,12 +59,12 @@ export const fig = 3; export const tomato = 4; //// [/home/src/workspaces/project/tsconfig.json] -{ "files": ["a.ts", "b.ts"] } +{ "compilerOptions": { "lib": ["es5"] }, "files": ["a.ts", "b.ts"] } Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/home/src/workspaces/project/a.ts" @@ -65,6 +80,9 @@ Info seq [hh:mm:ss:mss] Config: /home/src/workspaces/project/tsconfig.json : { "/home/src/workspaces/project/b.ts" ], "options": { + "lib": [ + "lib.es5.d.ts" + ], "configFilePath": "/home/src/workspaces/project/tsconfig.json" } } @@ -80,7 +98,7 @@ Info seq [hh:mm:ss:mss] event: } Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/b.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots @@ -90,19 +108,19 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (5) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/a.ts SVC-1-0 "function foo() {\n const p = 1;\n console.log(\"yes\");\n}\nclass bar {\n constructor() {\n function a() {\n console.log(\"have a good day\");\n }\n a();\n function b() {\n function c() {\n const test = 1 + 2 + 3;\n } \n }\n b();\n }\n c() {\n console.log(\"hello again\");\n function k() {\n const happy = banana + avocados;\n }\n }\n}" /home/src/workspaces/project/b.ts Text-1 "export const juice = 1;\nexport const sauce = 2;\nexport const fig = 3;\nexport const tomato = 4;" - ../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' a.ts Part of 'files' list in tsconfig.json b.ts @@ -141,7 +159,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -149,12 +167,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* + {"pollingInterval":500} /home/src/workspaces/project/b.ts: *new* {"pollingInterval":500} /home/src/workspaces/project/tsconfig.json: *new* @@ -173,15 +191,15 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json @@ -196,7 +214,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "formatOptions": { @@ -232,12 +250,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 1, + "request_seq": 2, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "file": "/home/src/workspaces/project/a.ts", @@ -296,7 +314,7 @@ Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/workspac Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json projectStateVersion: 2 projectProgramVersion: 1 structureChanged: false structureIsReused:: Completely Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (5) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/a.ts SVC-1-1 "function foo() {\n const p = 1;\n const t = 1 + juice + p;\n}\nclass bar {\n constructor() {\n function a() {\n function avacado() { return sauce; }\n }\n a();\n function b() {\n function c() {\n const test = fig + kiwi + 3;\n } \n }\n b();\n }\n c() {\n console.log(\"hello again\");\n function k() {\n const cherry = 3 + tomato + cucumber;\n }\n }\n}" @@ -308,7 +326,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "getPasteEdits", - "request_seq": 2, + "request_seq": 3, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -388,15 +406,15 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json diff --git a/tests/baselines/reference/tsserver/fourslashServer/pasteEdits_multiplePastesConsistentlySmallerInSize.js b/tests/baselines/reference/tsserver/fourslashServer/pasteEdits_multiplePastesConsistentlySmallerInSize.js index 9c4f4dabb6f17..28ebaf5c1631f 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/pasteEdits_multiplePastesConsistentlySmallerInSize.js +++ b/tests/baselines/reference/tsserver/fourslashServer/pasteEdits_multiplePastesConsistentlySmallerInSize.js @@ -1,16 +1,31 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "lib": [ + "es5" + ], + "target": "es5", + "newLine": "crlf", + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/home/src/workspaces/project/a.ts] function foo() { const p = 1; @@ -51,12 +66,12 @@ export const fig = 3; export const tomato = 4; //// [/home/src/workspaces/project/tsconfig.json] -{ "files": ["a.ts", "b.ts"] } +{ "compilerOptions": { "lib": ["es5"] }, "files": ["a.ts", "b.ts"] } Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/home/src/workspaces/project/a.ts" @@ -72,6 +87,9 @@ Info seq [hh:mm:ss:mss] Config: /home/src/workspaces/project/tsconfig.json : { "/home/src/workspaces/project/b.ts" ], "options": { + "lib": [ + "lib.es5.d.ts" + ], "configFilePath": "/home/src/workspaces/project/tsconfig.json" } } @@ -87,7 +105,7 @@ Info seq [hh:mm:ss:mss] event: } Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/b.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots @@ -97,19 +115,19 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (5) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/a.ts SVC-1-0 "function foo() {\n const p = 1;\n function bar() {\n console.log(\"Testing\");\n }\n console.log(\"yes\");\n}\nclass bar {\n constructor() {\n function a() {\n function aa() {\n console.log(\"have a good day\");\n }\n \n }\n a();\n function b() {\n function c() {\n export const testing = 1;\n const test = 1 + testing + 3;\n }\n }\n b();\n }\n c() {\n console.log(\"hello again\");\n function k() {\n const happy = banana + avocados;\n }\n }\n}" /home/src/workspaces/project/b.ts Text-1 "export const juice = 1;\nexport const sauce = 2;\nexport const fig = 3;\nexport const tomato = 4;" - ../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' a.ts Part of 'files' list in tsconfig.json b.ts @@ -148,7 +166,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -156,12 +174,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* + {"pollingInterval":500} /home/src/workspaces/project/b.ts: *new* {"pollingInterval":500} /home/src/workspaces/project/tsconfig.json: *new* @@ -180,15 +198,15 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json @@ -203,7 +221,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "formatOptions": { @@ -239,12 +257,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 1, + "request_seq": 2, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "file": "/home/src/workspaces/project/a.ts", @@ -303,7 +321,7 @@ Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/workspac Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json projectStateVersion: 2 projectProgramVersion: 1 structureChanged: false structureIsReused:: Completely Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (5) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/a.ts SVC-1-1 "function foo() {\n const p = 1;\n function bar() {\n console.log(juice);\n }\n console.log(\"yes\");\n}\nclass bar {\n constructor() {\n function a() {\n function aa() {\n console.log(sauce + juice);\n }\n \n }\n a();\n function b() {\n function c() {\n export const testing = 1;\n const test = fig + kiwi3;\n }\n }\n b();\n }\n c() {\n console.log(\"hello again\");\n function k() {\n const cherry =tomato + kiwi;\n }\n }\n}" @@ -315,7 +333,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "getPasteEdits", - "request_seq": 2, + "request_seq": 3, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -395,15 +413,15 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json diff --git a/tests/baselines/reference/tsserver/fourslashServer/pasteEdits_multiplePastesEqualInSize.js b/tests/baselines/reference/tsserver/fourslashServer/pasteEdits_multiplePastesEqualInSize.js index 88315021d358e..5ea694be07c15 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/pasteEdits_multiplePastesEqualInSize.js +++ b/tests/baselines/reference/tsserver/fourslashServer/pasteEdits_multiplePastesEqualInSize.js @@ -1,16 +1,31 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "lib": [ + "es5" + ], + "target": "es5", + "newLine": "crlf", + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/home/src/workspaces/project/a.ts] function foo() { console.log("yes"); @@ -43,12 +58,12 @@ export const apple = 3; export const tomato = 4; //// [/home/src/workspaces/project/tsconfig.json] -{ "files": ["a.ts", "b.ts"] } +{ "compilerOptions": { "lib": ["es5"] }, "files": ["a.ts", "b.ts"] } Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/home/src/workspaces/project/a.ts" @@ -64,6 +79,9 @@ Info seq [hh:mm:ss:mss] Config: /home/src/workspaces/project/tsconfig.json : { "/home/src/workspaces/project/b.ts" ], "options": { + "lib": [ + "lib.es5.d.ts" + ], "configFilePath": "/home/src/workspaces/project/tsconfig.json" } } @@ -79,7 +97,7 @@ Info seq [hh:mm:ss:mss] event: } Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/b.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots @@ -89,19 +107,19 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (5) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/a.ts SVC-1-0 "function foo() {\n console.log(\"yes\");\n}\nclass bar {\n constructor() {\n function a() {\n console.log(\"have a good day\");\n }\n a();\n function b() {\n function c() {\n const test = 1 + 2 + 3;\n }\n }\n b();\n }\n c() {\n console.log(\"hello again\");\n function k() {\n const happy = 1 + banana + avocados;\n }\n }\n}" /home/src/workspaces/project/b.ts Text-1 "export const juice = 1;\nexport const sauce = 2;\nexport const apple = 3;\nexport const tomato = 4;" - ../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' a.ts Part of 'files' list in tsconfig.json b.ts @@ -140,7 +158,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -148,12 +166,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* + {"pollingInterval":500} /home/src/workspaces/project/b.ts: *new* {"pollingInterval":500} /home/src/workspaces/project/tsconfig.json: *new* @@ -172,15 +190,15 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json @@ -195,7 +213,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "formatOptions": { @@ -231,12 +249,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 1, + "request_seq": 2, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "file": "/home/src/workspaces/project/a.ts", @@ -295,7 +313,7 @@ Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/workspac Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json projectStateVersion: 2 projectProgramVersion: 1 structureChanged: false structureIsReused:: Completely Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (5) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/a.ts SVC-1-1 "function foo() {\n console.log(juice);\n}\nclass bar {\n constructor() {\n function a() {\n function kl() { return sauce; }\n }\n a();\n function b() {\n function c() {\n const test = apple + 3;\n }\n }\n b();\n }\n c() {\n console.log(\"hello again\");\n function k() {\n const cherry = 3 + tomato + cucumber;\n }\n }\n}" @@ -307,7 +325,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "getPasteEdits", - "request_seq": 2, + "request_seq": 3, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -387,15 +405,15 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json diff --git a/tests/baselines/reference/tsserver/fourslashServer/pasteEdits_multiplePastesGrowingAndShrinkingInSize.js b/tests/baselines/reference/tsserver/fourslashServer/pasteEdits_multiplePastesGrowingAndShrinkingInSize.js index 7fb1c5deeafd7..9fb0763664749 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/pasteEdits_multiplePastesGrowingAndShrinkingInSize.js +++ b/tests/baselines/reference/tsserver/fourslashServer/pasteEdits_multiplePastesGrowingAndShrinkingInSize.js @@ -1,16 +1,31 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "lib": [ + "es5" + ], + "target": "es5", + "newLine": "crlf", + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/home/src/workspaces/project/a.ts] function foo() { console.log("Hello"); @@ -40,12 +55,12 @@ export const sauce = 2; export const tomato = 3; //// [/home/src/workspaces/project/tsconfig.json] -{ "files": ["a.ts", "b.ts"] } +{ "compilerOptions": { "lib": ["es5"] }, "files": ["a.ts", "b.ts"] } Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/home/src/workspaces/project/a.ts" @@ -61,6 +76,9 @@ Info seq [hh:mm:ss:mss] Config: /home/src/workspaces/project/tsconfig.json : { "/home/src/workspaces/project/b.ts" ], "options": { + "lib": [ + "lib.es5.d.ts" + ], "configFilePath": "/home/src/workspaces/project/tsconfig.json" } } @@ -76,7 +94,7 @@ Info seq [hh:mm:ss:mss] event: } Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/b.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots @@ -86,19 +104,19 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (5) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/a.ts SVC-1-0 "function foo() {\n console.log(\"Hello\");\n}\nclass bar {\n constructor() {\n function a() {\n console.log(\"hii\");\n }\n a();\n function b() {\n function c() {\n console.log(\"hola\");\n }\n }\n b();\n }\n c() {\n console.log(\"hello again\");\n \n }\n}" /home/src/workspaces/project/b.ts Text-1 "export const juice = 1;\nexport const sauce = 2;\nexport const tomato = 3;" - ../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' a.ts Part of 'files' list in tsconfig.json b.ts @@ -137,7 +155,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -145,12 +163,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* + {"pollingInterval":500} /home/src/workspaces/project/b.ts: *new* {"pollingInterval":500} /home/src/workspaces/project/tsconfig.json: *new* @@ -169,15 +187,15 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json @@ -192,7 +210,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "formatOptions": { @@ -228,12 +246,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 1, + "request_seq": 2, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "file": "/home/src/workspaces/project/a.ts", @@ -292,7 +310,7 @@ Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/workspac Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json projectStateVersion: 2 projectProgramVersion: 1 structureChanged: false structureIsReused:: Completely Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (5) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/a.ts SVC-1-1 "function foo() {\n console.log(sauce);\n}\nclass bar {\n const apple = 1 + juicector() {\n function a() {\n console.log(\"hii\");\n }\n a();\n function b() {\n function c() {\n const kiwi = 1;\n }\n }\n b();\n }\n c() {\n console.log(\"hello again\");\n function k() {\n const cherry = 3 + tomato + cucumber;\n }\n }\n}" @@ -304,7 +322,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "getPasteEdits", - "request_seq": 2, + "request_seq": 3, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -384,15 +402,15 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json diff --git a/tests/baselines/reference/tsserver/fourslashServer/pasteEdits_multiplePastesGrowingInSize.js b/tests/baselines/reference/tsserver/fourslashServer/pasteEdits_multiplePastesGrowingInSize.js index 73a79fe1ff852..ea8fe36699196 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/pasteEdits_multiplePastesGrowingInSize.js +++ b/tests/baselines/reference/tsserver/fourslashServer/pasteEdits_multiplePastesGrowingInSize.js @@ -1,16 +1,31 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "lib": [ + "es5" + ], + "target": "es5", + "newLine": "crlf", + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/home/src/workspaces/project/a.ts] function foo() { const p = 1; @@ -44,12 +59,12 @@ export const figs = 3; export const tomato = 4; //// [/home/src/workspaces/project/tsconfig.json] -{ "files": ["a.ts", "b.ts", "c.ts"] } +{ "compilerOptions": { "lib": ["es5"] }, "files": ["a.ts", "b.ts", "c.ts"] } Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/home/src/workspaces/project/a.ts" @@ -66,6 +81,9 @@ Info seq [hh:mm:ss:mss] Config: /home/src/workspaces/project/tsconfig.json : { "/home/src/workspaces/project/c.ts" ], "options": { + "lib": [ + "lib.es5.d.ts" + ], "configFilePath": "/home/src/workspaces/project/tsconfig.json" } } @@ -82,7 +100,7 @@ Info seq [hh:mm:ss:mss] event: Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/b.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/c.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots @@ -92,7 +110,7 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (6) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/a.ts SVC-1-0 "function foo() {\n const p = 1;\n}\nfunction too() {\n function k(t: string) {\n console.log(t);\n }\n}\nclass bar {\n constructor() {\n function a() {\n console.log(\"hello\");\n }\n a();\n }\n c() {\n console.log(\"hello again\");\n function k() {\n const happy = banana + avocados;\n }\n }\n}" @@ -100,12 +118,12 @@ Info seq [hh:mm:ss:mss] Files (6) /home/src/workspaces/project/c.ts Text-1 "export const figs = 3;\nexport const tomato = 4;" - ../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' a.ts Part of 'files' list in tsconfig.json b.ts @@ -146,7 +164,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -154,12 +172,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* + {"pollingInterval":500} /home/src/workspaces/project/b.ts: *new* {"pollingInterval":500} /home/src/workspaces/project/c.ts: *new* @@ -180,15 +198,15 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json @@ -207,7 +225,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "formatOptions": { @@ -243,12 +261,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 1, + "request_seq": 2, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "file": "/home/src/workspaces/project/a.ts", @@ -307,7 +325,7 @@ Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/workspac Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json projectStateVersion: 2 projectProgramVersion: 1 structureChanged: false structureIsReused:: Completely Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (6) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/a.ts SVC-1-1 "function foo() {\n const t = figs;\n}\nfunction too() {\n function k(apples : number) {\n console.log(t);\n }\n}\nclass bar {\n constructor() {\n function a() {\n console.log(sauce + tomato); \n }\n a();\n }\n c() {\n console.log(\"hello again\");\n //function k(i:string) {\n const cherry = 3 + juices + cucumber;\n// }\n }\n}" @@ -320,7 +338,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "getPasteEdits", - "request_seq": 2, + "request_seq": 3, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -400,15 +418,15 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json diff --git a/tests/baselines/reference/tsserver/fourslashServer/pasteEdits_multiplePastesShrinkingInSize.js b/tests/baselines/reference/tsserver/fourslashServer/pasteEdits_multiplePastesShrinkingInSize.js index 3c197d6e88d0a..fd4b1a4991033 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/pasteEdits_multiplePastesShrinkingInSize.js +++ b/tests/baselines/reference/tsserver/fourslashServer/pasteEdits_multiplePastesShrinkingInSize.js @@ -1,16 +1,31 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "lib": [ + "es5" + ], + "target": "es5", + "newLine": "crlf", + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/home/src/workspaces/project/a.ts] function foo() { console.log("Good day"); @@ -44,12 +59,12 @@ export const figs = 3; export const tomato = 4; //// [/home/src/workspaces/project/tsconfig.json] -{ "files": ["a.ts", "b.ts", "c.ts"] } +{ "compilerOptions": { "lib": ["es5"] }, "files": ["a.ts", "b.ts", "c.ts"] } Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/home/src/workspaces/project/a.ts" @@ -66,6 +81,9 @@ Info seq [hh:mm:ss:mss] Config: /home/src/workspaces/project/tsconfig.json : { "/home/src/workspaces/project/c.ts" ], "options": { + "lib": [ + "lib.es5.d.ts" + ], "configFilePath": "/home/src/workspaces/project/tsconfig.json" } } @@ -82,7 +100,7 @@ Info seq [hh:mm:ss:mss] event: Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/b.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/c.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots @@ -92,7 +110,7 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (6) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/a.ts SVC-1-0 "function foo() {\n console.log(\"Good day\");\n}\nfunction too() {\n function k(t: string) {\n console.log(\"Happy Holidays\");\n }\n}\nclass bar {\n constructor() {\n function a() {\n console.log(\"hello\");\n }\n a();\n }\n c() {\n console.log(\"hello again\");\n function k() {\n const happy = banana + avocados;\n }\n }\n}" @@ -100,12 +118,12 @@ Info seq [hh:mm:ss:mss] Files (6) /home/src/workspaces/project/c.ts Text-1 "export const figs = 3;\nexport const tomato = 4;" - ../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' a.ts Part of 'files' list in tsconfig.json b.ts @@ -146,7 +164,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -154,12 +172,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* + {"pollingInterval":500} /home/src/workspaces/project/b.ts: *new* {"pollingInterval":500} /home/src/workspaces/project/c.ts: *new* @@ -180,15 +198,15 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json @@ -207,7 +225,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "formatOptions": { @@ -243,12 +261,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 1, + "request_seq": 2, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "file": "/home/src/workspaces/project/a.ts", @@ -307,7 +325,7 @@ Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/workspac Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json projectStateVersion: 2 projectProgramVersion: 1 structureChanged: false structureIsReused:: Completely Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (6) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/a.ts SVC-1-1 "function foo() {\n console.log(\"Good \");\n}\nfunction too() {\n function k(t: string) {\n const k = figs + juices;\n }\n}\nclass bar {\n constructor() {\n function a() {\n console.log(tomato);\n }\n a();\n }\n c() {\n console.log(\"hello again\");\n function k(kiwi: string) {\n const cherry=tomato;\n }\n }\n}" @@ -320,7 +338,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "getPasteEdits", - "request_seq": 2, + "request_seq": 3, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -400,15 +418,15 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json diff --git a/tests/baselines/reference/tsserver/fourslashServer/pasteEdits_namespaceImport.js b/tests/baselines/reference/tsserver/fourslashServer/pasteEdits_namespaceImport.js index 61fedaeab0815..f749e917fcefb 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/pasteEdits_namespaceImport.js +++ b/tests/baselines/reference/tsserver/fourslashServer/pasteEdits_namespaceImport.js @@ -1,16 +1,31 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "lib": [ + "es5" + ], + "target": "es5", + "newLine": "crlf", + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/home/src/workspaces/project/a.ts] const abc = 10; const def = 20; @@ -32,12 +47,12 @@ function foo(abc: test.abc, def: test.def) { //// [/home/src/workspaces/project/tsconfig.json] -{ "files": ["folder/c.ts", "a.ts", "b.ts"] } +{ "compilerOptions": { "lib": ["es5"] }, "files": ["folder/c.ts", "a.ts", "b.ts"] } Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/home/src/workspaces/project/folder/c.ts" @@ -54,6 +69,9 @@ Info seq [hh:mm:ss:mss] Config: /home/src/workspaces/project/tsconfig.json : { "/home/src/workspaces/project/b.ts" ], "options": { + "lib": [ + "lib.es5.d.ts" + ], "configFilePath": "/home/src/workspaces/project/tsconfig.json" } } @@ -70,7 +88,7 @@ Info seq [hh:mm:ss:mss] event: Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/a.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/b.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots @@ -80,7 +98,7 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (6) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/folder/c.ts SVC-1-0 "" @@ -88,12 +106,12 @@ Info seq [hh:mm:ss:mss] Files (6) /home/src/workspaces/project/b.ts Text-1 "import * as test from \"./a\";\n\nfunction foo(abc: test.abc, def: test.def) {\n console.log(abc);\n console.log(def);\n}\n" - ../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' folder/c.ts Part of 'files' list in tsconfig.json a.ts @@ -135,7 +153,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -143,12 +161,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* + {"pollingInterval":500} /home/src/workspaces/project/a.ts: *new* {"pollingInterval":500} /home/src/workspaces/project/b.ts: *new* @@ -169,15 +187,15 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json @@ -196,7 +214,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "formatOptions": { @@ -232,12 +250,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 1, + "request_seq": 2, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "file": "/home/src/workspaces/project/folder/c.ts", @@ -278,7 +296,7 @@ Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/workspac Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json projectStateVersion: 2 projectProgramVersion: 1 structureChanged: false structureIsReused:: Completely Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (6) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/folder/c.ts SVC-1-1 "function foo(abc: test.abc, def: test.def) {\nconsole.log(abc);\nconsole.log(def);\n}" @@ -291,7 +309,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "getPasteEdits", - "request_seq": 2, + "request_seq": 3, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -338,15 +356,15 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json diff --git a/tests/baselines/reference/tsserver/fourslashServer/pasteEdits_noImportNeeded.js b/tests/baselines/reference/tsserver/fourslashServer/pasteEdits_noImportNeeded.js index bff3ec6a16f34..1037262c20223 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/pasteEdits_noImportNeeded.js +++ b/tests/baselines/reference/tsserver/fourslashServer/pasteEdits_noImportNeeded.js @@ -1,16 +1,31 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "lib": [ + "es5" + ], + "target": "es5", + "newLine": "crlf", + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/home/src/workspaces/project/a.ts] export interface Foo { } @@ -20,12 +35,12 @@ export const foo: Foo = {} //// [/home/src/workspaces/project/tsconfig.json] -{ "files": ["a.ts", "b.ts"] } +{ "compilerOptions": { "lib": ["es5"] }, "files": ["a.ts", "b.ts"] } Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/home/src/workspaces/project/b.ts" @@ -41,6 +56,9 @@ Info seq [hh:mm:ss:mss] Config: /home/src/workspaces/project/tsconfig.json : { "/home/src/workspaces/project/b.ts" ], "options": { + "lib": [ + "lib.es5.d.ts" + ], "configFilePath": "/home/src/workspaces/project/tsconfig.json" } } @@ -56,7 +74,7 @@ Info seq [hh:mm:ss:mss] event: } Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/a.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots @@ -66,19 +84,19 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (5) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/a.ts Text-1 "export interface Foo { }\n\nexport const foo: Foo = {}" /home/src/workspaces/project/b.ts SVC-1-0 "" - ../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' a.ts Part of 'files' list in tsconfig.json b.ts @@ -117,7 +135,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -125,12 +143,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* + {"pollingInterval":500} /home/src/workspaces/project/a.ts: *new* {"pollingInterval":500} /home/src/workspaces/project/tsconfig.json: *new* @@ -149,15 +167,15 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json @@ -172,7 +190,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "formatOptions": { @@ -208,12 +226,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 1, + "request_seq": 2, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "file": "/home/src/workspaces/project/b.ts", @@ -254,7 +272,7 @@ Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/workspac Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json projectStateVersion: 2 projectProgramVersion: 1 structureChanged: false structureIsReused:: Completely Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (5) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/a.ts Text-1 "export interface Foo { }\n\nexport const foo: Foo = {}" @@ -266,7 +284,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "getPasteEdits", - "request_seq": 2, + "request_seq": 3, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -285,15 +303,15 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json diff --git a/tests/baselines/reference/tsserver/fourslashServer/pasteEdits_noImportNeededInUpdatedProgram.js b/tests/baselines/reference/tsserver/fourslashServer/pasteEdits_noImportNeededInUpdatedProgram.js index f1586b49c8ad3..80941a67bcbd5 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/pasteEdits_noImportNeededInUpdatedProgram.js +++ b/tests/baselines/reference/tsserver/fourslashServer/pasteEdits_noImportNeededInUpdatedProgram.js @@ -1,16 +1,31 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "lib": [ + "es5" + ], + "target": "es5", + "newLine": "crlf", + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/home/src/workspaces/project/a.ts] @@ -18,12 +33,12 @@ lib.decorators.legacy.d.ts-Text export const b = 10; //// [/home/src/workspaces/project/tsconfig.json] -{ "files": ["a.ts", "b.ts"] } +{ "compilerOptions": { "lib": ["es5"] }, "files": ["a.ts", "b.ts"] } Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/home/src/workspaces/project/a.ts" @@ -39,6 +54,9 @@ Info seq [hh:mm:ss:mss] Config: /home/src/workspaces/project/tsconfig.json : { "/home/src/workspaces/project/b.ts" ], "options": { + "lib": [ + "lib.es5.d.ts" + ], "configFilePath": "/home/src/workspaces/project/tsconfig.json" } } @@ -54,7 +72,7 @@ Info seq [hh:mm:ss:mss] event: } Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/b.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots @@ -64,19 +82,19 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (5) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/a.ts SVC-1-0 "" /home/src/workspaces/project/b.ts Text-1 "export const b = 10;" - ../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' a.ts Part of 'files' list in tsconfig.json b.ts @@ -115,7 +133,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -123,12 +141,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* + {"pollingInterval":500} /home/src/workspaces/project/b.ts: *new* {"pollingInterval":500} /home/src/workspaces/project/tsconfig.json: *new* @@ -147,15 +165,15 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json @@ -170,7 +188,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "formatOptions": { @@ -206,12 +224,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 1, + "request_seq": 2, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "file": "/home/src/workspaces/project/a.ts", @@ -237,7 +255,7 @@ Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/workspac Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json projectStateVersion: 2 projectProgramVersion: 1 structureChanged: false structureIsReused:: Completely Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (5) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/a.ts SVC-1-1 "const b = 1;\nconsole.log(b);" @@ -249,7 +267,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "getPasteEdits", - "request_seq": 2, + "request_seq": 3, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -268,15 +286,15 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json diff --git a/tests/baselines/reference/tsserver/fourslashServer/pasteEdits_pasteComments.js b/tests/baselines/reference/tsserver/fourslashServer/pasteEdits_pasteComments.js index 2d17b537365de..b0fad00c37ec2 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/pasteEdits_pasteComments.js +++ b/tests/baselines/reference/tsserver/fourslashServer/pasteEdits_pasteComments.js @@ -1,28 +1,43 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "lib": [ + "es5" + ], + "target": "es5", + "newLine": "crlf", + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/home/src/workspaces/project/target.ts] const a = 10; const b = 10; const c = 10; //// [/home/src/workspaces/project/tsconfig.json] -{ "files": ["target.ts"] } +{ "compilerOptions": { "lib": ["es5"] }, "files": ["target.ts"] } Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/home/src/workspaces/project/target.ts" @@ -37,6 +52,9 @@ Info seq [hh:mm:ss:mss] Config: /home/src/workspaces/project/tsconfig.json : { "/home/src/workspaces/project/target.ts" ], "options": { + "lib": [ + "lib.es5.d.ts" + ], "configFilePath": "/home/src/workspaces/project/tsconfig.json" } } @@ -51,7 +69,7 @@ Info seq [hh:mm:ss:mss] event: } } Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots @@ -61,18 +79,18 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/target.ts SVC-1-0 "const a = 10;\nconst b = 10;\nconst c = 10;" - ../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' target.ts Part of 'files' list in tsconfig.json @@ -109,7 +127,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -117,12 +135,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* + {"pollingInterval":500} /home/src/workspaces/project/tsconfig.json: *new* {"pollingInterval":2000} @@ -139,15 +157,15 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json @@ -158,7 +176,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "formatOptions": { @@ -194,12 +212,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 1, + "request_seq": 2, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "file": "/home/src/workspaces/project/target.ts", @@ -225,7 +243,7 @@ Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/workspac Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json projectStateVersion: 2 projectProgramVersion: 1 structureChanged: false structureIsReused:: Completely Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/target.ts SVC-1-1 "const a = 10;\nconst b = 10;/**\n* Testing comment line 1\n* line 2\n* line 3\n* line 4\n*/\nconst c = 10;" @@ -236,7 +254,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "getPasteEdits", - "request_seq": 2, + "request_seq": 3, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -255,15 +273,15 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json diff --git a/tests/baselines/reference/tsserver/fourslashServer/pasteEdits_pasteIntoSameFile.js b/tests/baselines/reference/tsserver/fourslashServer/pasteEdits_pasteIntoSameFile.js index 9893d3a138057..5135984ec5b93 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/pasteEdits_pasteIntoSameFile.js +++ b/tests/baselines/reference/tsserver/fourslashServer/pasteEdits_pasteIntoSameFile.js @@ -1,16 +1,31 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "lib": [ + "es5" + ], + "target": "es5", + "newLine": "crlf", + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/home/src/workspaces/project/target.ts] const k = 1; console.log(k); @@ -19,12 +34,12 @@ console.log(k); console.log("test"); //// [/home/src/workspaces/project/tsconfig.json] -{ "files": ["target.ts"] } +{ "compilerOptions": { "lib": ["es5"] }, "files": ["target.ts"] } Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/home/src/workspaces/project/target.ts" @@ -39,6 +54,9 @@ Info seq [hh:mm:ss:mss] Config: /home/src/workspaces/project/tsconfig.json : { "/home/src/workspaces/project/target.ts" ], "options": { + "lib": [ + "lib.es5.d.ts" + ], "configFilePath": "/home/src/workspaces/project/tsconfig.json" } } @@ -53,7 +71,7 @@ Info seq [hh:mm:ss:mss] event: } } Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots @@ -63,18 +81,18 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/target.ts SVC-1-0 "const k = 1;\nconsole.log(k);\n\n\nconsole.log(\"test\");" - ../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' target.ts Part of 'files' list in tsconfig.json @@ -111,7 +129,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -119,12 +137,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* + {"pollingInterval":500} /home/src/workspaces/project/tsconfig.json: *new* {"pollingInterval":2000} @@ -141,15 +159,15 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json @@ -160,7 +178,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "formatOptions": { @@ -196,12 +214,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 1, + "request_seq": 2, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "file": "/home/src/workspaces/project/target.ts", @@ -242,7 +260,7 @@ Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/workspac Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json projectStateVersion: 2 projectProgramVersion: 1 structureChanged: false structureIsReused:: Completely Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/target.ts SVC-1-1 "const k = 1;\nconsole.log(k);\n\nconsole.log(k);\nconsole.log(\"test\");" @@ -253,7 +271,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "getPasteEdits", - "request_seq": 2, + "request_seq": 3, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -272,15 +290,15 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json diff --git a/tests/baselines/reference/tsserver/fourslashServer/pasteEdits_rangeSelection0.js b/tests/baselines/reference/tsserver/fourslashServer/pasteEdits_rangeSelection0.js index 775a151962d36..898763eee81cc 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/pasteEdits_rangeSelection0.js +++ b/tests/baselines/reference/tsserver/fourslashServer/pasteEdits_rangeSelection0.js @@ -1,16 +1,31 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "lib": [ + "es5" + ], + "target": "es5", + "newLine": "crlf", + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/home/src/workspaces/project/a.ts] function foo() { } const x = foo() @@ -22,12 +37,12 @@ x //// [/home/src/workspaces/project/tsconfig.json] -{ "files": ["a.ts", "folder/target.ts"] } +{ "compilerOptions": { "lib": ["es5"] }, "files": ["a.ts", "folder/target.ts"] } Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/home/src/workspaces/project/folder/target.ts" @@ -43,6 +58,9 @@ Info seq [hh:mm:ss:mss] Config: /home/src/workspaces/project/tsconfig.json : { "/home/src/workspaces/project/folder/target.ts" ], "options": { + "lib": [ + "lib.es5.d.ts" + ], "configFilePath": "/home/src/workspaces/project/tsconfig.json" } } @@ -58,7 +76,7 @@ Info seq [hh:mm:ss:mss] event: } Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/a.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots @@ -68,19 +86,19 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (5) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/a.ts Text-1 "function foo() { }\nconst x = foo()\n\nfoo()\nx" /home/src/workspaces/project/folder/target.ts SVC-1-0 "" - ../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' a.ts Part of 'files' list in tsconfig.json folder/target.ts @@ -119,7 +137,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -127,12 +145,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* + {"pollingInterval":500} /home/src/workspaces/project/a.ts: *new* {"pollingInterval":500} /home/src/workspaces/project/tsconfig.json: *new* @@ -151,15 +169,15 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json @@ -174,7 +192,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "formatOptions": { @@ -210,12 +228,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 1, + "request_seq": 2, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "file": "/home/src/workspaces/project/folder/target.ts", @@ -256,7 +274,7 @@ Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/workspac Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json projectStateVersion: 2 projectProgramVersion: 1 structureChanged: false structureIsReused:: Completely Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (5) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/a.ts Text-1 "function foo() { }\nconst x = foo()\n\nfoo()\nx" @@ -268,7 +286,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "getPasteEdits", - "request_seq": 2, + "request_seq": 3, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -287,15 +305,15 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json diff --git a/tests/baselines/reference/tsserver/fourslashServer/pasteEdits_rangeSelection1.js b/tests/baselines/reference/tsserver/fourslashServer/pasteEdits_rangeSelection1.js index 33b5dbf19fc0c..4261168f52d35 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/pasteEdits_rangeSelection1.js +++ b/tests/baselines/reference/tsserver/fourslashServer/pasteEdits_rangeSelection1.js @@ -1,16 +1,31 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "lib": [ + "es5" + ], + "target": "es5", + "newLine": "crlf", + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/home/src/workspaces/project/a.ts] function foo() { } const x = foo() @@ -22,12 +37,12 @@ x //// [/home/src/workspaces/project/tsconfig.json] -{ "files": ["a.ts", "folder/target.ts"] } +{ "compilerOptions": { "lib": ["es5"] }, "files": ["a.ts", "folder/target.ts"] } Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/home/src/workspaces/project/folder/target.ts" @@ -43,6 +58,9 @@ Info seq [hh:mm:ss:mss] Config: /home/src/workspaces/project/tsconfig.json : { "/home/src/workspaces/project/folder/target.ts" ], "options": { + "lib": [ + "lib.es5.d.ts" + ], "configFilePath": "/home/src/workspaces/project/tsconfig.json" } } @@ -58,7 +76,7 @@ Info seq [hh:mm:ss:mss] event: } Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/a.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots @@ -68,19 +86,19 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (5) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/a.ts Text-1 "function foo() { }\nconst x = foo()\n\nfoo()\nx" /home/src/workspaces/project/folder/target.ts SVC-1-0 "" - ../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' a.ts Part of 'files' list in tsconfig.json folder/target.ts @@ -119,7 +137,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -127,12 +145,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* + {"pollingInterval":500} /home/src/workspaces/project/a.ts: *new* {"pollingInterval":500} /home/src/workspaces/project/tsconfig.json: *new* @@ -151,15 +169,15 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json @@ -174,7 +192,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "formatOptions": { @@ -210,12 +228,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 1, + "request_seq": 2, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "file": "/home/src/workspaces/project/folder/target.ts", @@ -256,7 +274,7 @@ Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/workspac Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json projectStateVersion: 2 projectProgramVersion: 1 structureChanged: false structureIsReused:: Completely Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (5) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/a.ts Text-1 "function foo() { }\nconst x = foo()\n\nfoo()\nx" @@ -268,7 +286,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "getPasteEdits", - "request_seq": 2, + "request_seq": 3, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -331,15 +349,15 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json diff --git a/tests/baselines/reference/tsserver/fourslashServer/pasteEdits_rangeSelection2.js b/tests/baselines/reference/tsserver/fourslashServer/pasteEdits_rangeSelection2.js index 1330ac12464dd..27d65f83c15e0 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/pasteEdits_rangeSelection2.js +++ b/tests/baselines/reference/tsserver/fourslashServer/pasteEdits_rangeSelection2.js @@ -1,16 +1,31 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "lib": [ + "es5" + ], + "target": "es5", + "newLine": "crlf", + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/home/src/workspaces/project/a.ts] function foo() { } @@ -21,12 +36,12 @@ foo() //// [/home/src/workspaces/project/tsconfig.json] -{ "files": ["a.ts", "folder/target.ts"] } +{ "compilerOptions": { "lib": ["es5"] }, "files": ["a.ts", "folder/target.ts"] } Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/home/src/workspaces/project/folder/target.ts" @@ -42,6 +57,9 @@ Info seq [hh:mm:ss:mss] Config: /home/src/workspaces/project/tsconfig.json : { "/home/src/workspaces/project/folder/target.ts" ], "options": { + "lib": [ + "lib.es5.d.ts" + ], "configFilePath": "/home/src/workspaces/project/tsconfig.json" } } @@ -57,7 +75,7 @@ Info seq [hh:mm:ss:mss] event: } Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/a.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots @@ -67,19 +85,19 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (5) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/a.ts Text-1 "function foo() { }\n\n// comment\nfoo()" /home/src/workspaces/project/folder/target.ts SVC-1-0 "" - ../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' a.ts Part of 'files' list in tsconfig.json folder/target.ts @@ -118,7 +136,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -126,12 +144,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* + {"pollingInterval":500} /home/src/workspaces/project/a.ts: *new* {"pollingInterval":500} /home/src/workspaces/project/tsconfig.json: *new* @@ -150,15 +168,15 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json @@ -173,7 +191,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "formatOptions": { @@ -209,12 +227,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 1, + "request_seq": 2, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "file": "/home/src/workspaces/project/folder/target.ts", @@ -255,7 +273,7 @@ Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/workspac Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json projectStateVersion: 2 projectProgramVersion: 1 structureChanged: false structureIsReused:: Completely Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (5) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/a.ts Text-1 "function foo() { }\n\n// comment\nfoo()" @@ -267,7 +285,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "getPasteEdits", - "request_seq": 2, + "request_seq": 3, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -330,15 +348,15 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json diff --git a/tests/baselines/reference/tsserver/fourslashServer/pasteEdits_rangeSelection3.js b/tests/baselines/reference/tsserver/fourslashServer/pasteEdits_rangeSelection3.js index 119277b14b73d..142fb9c546e2a 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/pasteEdits_rangeSelection3.js +++ b/tests/baselines/reference/tsserver/fourslashServer/pasteEdits_rangeSelection3.js @@ -1,16 +1,31 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "lib": [ + "es5" + ], + "target": "es5", + "newLine": "crlf", + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/home/src/workspaces/project/a.ts] function foo() { } @@ -21,12 +36,12 @@ foo() //// [/home/src/workspaces/project/tsconfig.json] -{ "files": ["a.ts", "folder/target.ts"] } +{ "compilerOptions": { "lib": ["es5"] }, "files": ["a.ts", "folder/target.ts"] } Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/home/src/workspaces/project/folder/target.ts" @@ -42,6 +57,9 @@ Info seq [hh:mm:ss:mss] Config: /home/src/workspaces/project/tsconfig.json : { "/home/src/workspaces/project/folder/target.ts" ], "options": { + "lib": [ + "lib.es5.d.ts" + ], "configFilePath": "/home/src/workspaces/project/tsconfig.json" } } @@ -57,7 +75,7 @@ Info seq [hh:mm:ss:mss] event: } Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/a.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots @@ -67,19 +85,19 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (5) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/a.ts Text-1 "function foo() { }\n\n/* comment */\nfoo()" /home/src/workspaces/project/folder/target.ts SVC-1-0 "" - ../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' a.ts Part of 'files' list in tsconfig.json folder/target.ts @@ -118,7 +136,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -126,12 +144,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* + {"pollingInterval":500} /home/src/workspaces/project/a.ts: *new* {"pollingInterval":500} /home/src/workspaces/project/tsconfig.json: *new* @@ -150,15 +168,15 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json @@ -173,7 +191,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "formatOptions": { @@ -209,12 +227,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 1, + "request_seq": 2, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "file": "/home/src/workspaces/project/folder/target.ts", @@ -255,7 +273,7 @@ Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/workspac Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json projectStateVersion: 2 projectProgramVersion: 1 structureChanged: false structureIsReused:: Completely Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (5) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/a.ts Text-1 "function foo() { }\n\n/* comment */\nfoo()" @@ -267,7 +285,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "getPasteEdits", - "request_seq": 2, + "request_seq": 3, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -330,15 +348,15 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json diff --git a/tests/baselines/reference/tsserver/fourslashServer/pasteEdits_rangeSelection4.js b/tests/baselines/reference/tsserver/fourslashServer/pasteEdits_rangeSelection4.js index 6c9f5c0e3e0ac..4cbf71f7f35c9 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/pasteEdits_rangeSelection4.js +++ b/tests/baselines/reference/tsserver/fourslashServer/pasteEdits_rangeSelection4.js @@ -1,16 +1,31 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "lib": [ + "es5" + ], + "target": "es5", + "newLine": "crlf", + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/home/src/workspaces/project/a.ts] function foo() { } @@ -24,12 +39,12 @@ foo() //// [/home/src/workspaces/project/tsconfig.json] -{ "files": ["a.ts", "folder/target.ts"] } +{ "compilerOptions": { "lib": ["es5"] }, "files": ["a.ts", "folder/target.ts"] } Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/home/src/workspaces/project/folder/target.ts" @@ -45,6 +60,9 @@ Info seq [hh:mm:ss:mss] Config: /home/src/workspaces/project/tsconfig.json : { "/home/src/workspaces/project/folder/target.ts" ], "options": { + "lib": [ + "lib.es5.d.ts" + ], "configFilePath": "/home/src/workspaces/project/tsconfig.json" } } @@ -60,7 +78,7 @@ Info seq [hh:mm:ss:mss] event: } Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/a.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots @@ -70,19 +88,19 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (5) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/a.ts Text-1 "function foo() { }\n\n/*\n comment\n more comment\n*/\nfoo()" /home/src/workspaces/project/folder/target.ts SVC-1-0 "" - ../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' a.ts Part of 'files' list in tsconfig.json folder/target.ts @@ -121,7 +139,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -129,12 +147,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* + {"pollingInterval":500} /home/src/workspaces/project/a.ts: *new* {"pollingInterval":500} /home/src/workspaces/project/tsconfig.json: *new* @@ -153,15 +171,15 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json @@ -176,7 +194,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "formatOptions": { @@ -212,12 +230,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 1, + "request_seq": 2, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "file": "/home/src/workspaces/project/folder/target.ts", @@ -258,7 +276,7 @@ Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/workspac Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json projectStateVersion: 2 projectProgramVersion: 1 structureChanged: false structureIsReused:: Completely Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (5) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/a.ts Text-1 "function foo() { }\n\n/*\n comment\n more comment\n*/\nfoo()" @@ -270,7 +288,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "getPasteEdits", - "request_seq": 2, + "request_seq": 3, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -333,15 +351,15 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json diff --git a/tests/baselines/reference/tsserver/fourslashServer/pasteEdits_rangeSelection5.js b/tests/baselines/reference/tsserver/fourslashServer/pasteEdits_rangeSelection5.js index 469122edafceb..e2d5c9eed7312 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/pasteEdits_rangeSelection5.js +++ b/tests/baselines/reference/tsserver/fourslashServer/pasteEdits_rangeSelection5.js @@ -1,16 +1,31 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "lib": [ + "es5" + ], + "target": "es5", + "newLine": "crlf", + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/home/src/workspaces/project/a.ts] function foo() { } @@ -21,12 +36,12 @@ foo() //// [/home/src/workspaces/project/tsconfig.json] -{ "files": ["a.ts", "folder/target.ts"] } +{ "compilerOptions": { "lib": ["es5"] }, "files": ["a.ts", "folder/target.ts"] } Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/home/src/workspaces/project/folder/target.ts" @@ -42,6 +57,9 @@ Info seq [hh:mm:ss:mss] Config: /home/src/workspaces/project/tsconfig.json : { "/home/src/workspaces/project/folder/target.ts" ], "options": { + "lib": [ + "lib.es5.d.ts" + ], "configFilePath": "/home/src/workspaces/project/tsconfig.json" } } @@ -57,7 +75,7 @@ Info seq [hh:mm:ss:mss] event: } Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/a.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots @@ -67,19 +85,19 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (5) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/a.ts Text-1 "function foo() { }\n\n// comment\nfoo()" /home/src/workspaces/project/folder/target.ts SVC-1-0 "" - ../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' a.ts Part of 'files' list in tsconfig.json folder/target.ts @@ -118,7 +136,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -126,12 +144,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* + {"pollingInterval":500} /home/src/workspaces/project/a.ts: *new* {"pollingInterval":500} /home/src/workspaces/project/tsconfig.json: *new* @@ -150,15 +168,15 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json @@ -173,7 +191,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "formatOptions": { @@ -209,12 +227,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 1, + "request_seq": 2, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "file": "/home/src/workspaces/project/folder/target.ts", @@ -255,7 +273,7 @@ Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/workspac Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json projectStateVersion: 2 projectProgramVersion: 1 structureChanged: false structureIsReused:: Completely Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (5) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/a.ts Text-1 "function foo() { }\n\n// comment\nfoo()" @@ -267,7 +285,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "getPasteEdits", - "request_seq": 2, + "request_seq": 3, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -330,15 +348,15 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json diff --git a/tests/baselines/reference/tsserver/fourslashServer/pasteEdits_rangeSelection6.js b/tests/baselines/reference/tsserver/fourslashServer/pasteEdits_rangeSelection6.js index 61ddc00927f02..5f9c82907b3c8 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/pasteEdits_rangeSelection6.js +++ b/tests/baselines/reference/tsserver/fourslashServer/pasteEdits_rangeSelection6.js @@ -1,16 +1,31 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "lib": [ + "es5" + ], + "target": "es5", + "newLine": "crlf", + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/home/src/workspaces/project/a.ts] function foo() { } const x = foo() @@ -24,12 +39,12 @@ x //// [/home/src/workspaces/project/tsconfig.json] -{ "files": ["a.ts", "folder/target.ts"] } +{ "compilerOptions": { "lib": ["es5"] }, "files": ["a.ts", "folder/target.ts"] } Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/home/src/workspaces/project/folder/target.ts" @@ -45,6 +60,9 @@ Info seq [hh:mm:ss:mss] Config: /home/src/workspaces/project/tsconfig.json : { "/home/src/workspaces/project/folder/target.ts" ], "options": { + "lib": [ + "lib.es5.d.ts" + ], "configFilePath": "/home/src/workspaces/project/tsconfig.json" } } @@ -60,7 +78,7 @@ Info seq [hh:mm:ss:mss] event: } Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/a.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots @@ -70,19 +88,19 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (5) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/a.ts Text-1 "function foo() { }\nconst x = foo()\n\n// comment\nfoo()\n/* another comment */\nx" /home/src/workspaces/project/folder/target.ts SVC-1-0 "" - ../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' a.ts Part of 'files' list in tsconfig.json folder/target.ts @@ -121,7 +139,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -129,12 +147,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* + {"pollingInterval":500} /home/src/workspaces/project/a.ts: *new* {"pollingInterval":500} /home/src/workspaces/project/tsconfig.json: *new* @@ -153,15 +171,15 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json @@ -176,7 +194,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "formatOptions": { @@ -212,12 +230,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 1, + "request_seq": 2, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "file": "/home/src/workspaces/project/folder/target.ts", @@ -258,7 +276,7 @@ Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/workspac Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json projectStateVersion: 2 projectProgramVersion: 1 structureChanged: false structureIsReused:: Completely Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (5) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/a.ts Text-1 "function foo() { }\nconst x = foo()\n\n// comment\nfoo()\n/* another comment */\nx" @@ -270,7 +288,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "getPasteEdits", - "request_seq": 2, + "request_seq": 3, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -344,15 +362,15 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json diff --git a/tests/baselines/reference/tsserver/fourslashServer/pasteEdits_rangeSelection7.js b/tests/baselines/reference/tsserver/fourslashServer/pasteEdits_rangeSelection7.js index 2dc5f7a6c9ec5..110b2b2cf8b2a 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/pasteEdits_rangeSelection7.js +++ b/tests/baselines/reference/tsserver/fourslashServer/pasteEdits_rangeSelection7.js @@ -1,16 +1,31 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "lib": [ + "es5" + ], + "target": "es5", + "newLine": "crlf", + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/home/src/workspaces/project/a.ts] function foo() { } const x = foo() @@ -24,12 +39,12 @@ x //// [/home/src/workspaces/project/tsconfig.json] -{ "files": ["a.ts", "folder/target.ts"] } +{ "compilerOptions": { "lib": ["es5"] }, "files": ["a.ts", "folder/target.ts"] } Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/home/src/workspaces/project/folder/target.ts" @@ -45,6 +60,9 @@ Info seq [hh:mm:ss:mss] Config: /home/src/workspaces/project/tsconfig.json : { "/home/src/workspaces/project/folder/target.ts" ], "options": { + "lib": [ + "lib.es5.d.ts" + ], "configFilePath": "/home/src/workspaces/project/tsconfig.json" } } @@ -60,7 +78,7 @@ Info seq [hh:mm:ss:mss] event: } Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/a.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots @@ -70,19 +88,19 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (5) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/a.ts Text-1 "function foo() { }\nconst x = foo()\n\n// comment\nfoo\n/* another comment */\nx" /home/src/workspaces/project/folder/target.ts SVC-1-0 "" - ../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' a.ts Part of 'files' list in tsconfig.json folder/target.ts @@ -121,7 +139,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -129,12 +147,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* + {"pollingInterval":500} /home/src/workspaces/project/a.ts: *new* {"pollingInterval":500} /home/src/workspaces/project/tsconfig.json: *new* @@ -153,15 +171,15 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json @@ -176,7 +194,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "formatOptions": { @@ -212,12 +230,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 1, + "request_seq": 2, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "file": "/home/src/workspaces/project/folder/target.ts", @@ -258,7 +276,7 @@ Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/workspac Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json projectStateVersion: 2 projectProgramVersion: 1 structureChanged: false structureIsReused:: Completely Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (5) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/a.ts Text-1 "function foo() { }\nconst x = foo()\n\n// comment\nfoo\n/* another comment */\nx" @@ -270,7 +288,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "getPasteEdits", - "request_seq": 2, + "request_seq": 3, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -333,15 +351,15 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json diff --git a/tests/baselines/reference/tsserver/fourslashServer/pasteEdits_rangeSelection8.js b/tests/baselines/reference/tsserver/fourslashServer/pasteEdits_rangeSelection8.js index 7032885f50e74..bc31004c2b15b 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/pasteEdits_rangeSelection8.js +++ b/tests/baselines/reference/tsserver/fourslashServer/pasteEdits_rangeSelection8.js @@ -1,16 +1,31 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "lib": [ + "es5" + ], + "target": "es5", + "newLine": "crlf", + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/home/src/workspaces/project/a.ts] function foo() { } const aaaa = foo() @@ -24,12 +39,12 @@ aaaa //// [/home/src/workspaces/project/tsconfig.json] -{ "files": ["a.ts", "folder/target.ts"] } +{ "compilerOptions": { "lib": ["es5"] }, "files": ["a.ts", "folder/target.ts"] } Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/home/src/workspaces/project/folder/target.ts" @@ -45,6 +60,9 @@ Info seq [hh:mm:ss:mss] Config: /home/src/workspaces/project/tsconfig.json : { "/home/src/workspaces/project/folder/target.ts" ], "options": { + "lib": [ + "lib.es5.d.ts" + ], "configFilePath": "/home/src/workspaces/project/tsconfig.json" } } @@ -60,7 +78,7 @@ Info seq [hh:mm:ss:mss] event: } Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/a.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots @@ -70,19 +88,19 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (5) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/a.ts Text-1 "function foo() { }\nconst aaaa = foo()\n\n// comment\nfoo\n/* another comment */\naaaa" /home/src/workspaces/project/folder/target.ts SVC-1-0 "" - ../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' a.ts Part of 'files' list in tsconfig.json folder/target.ts @@ -121,7 +139,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -129,12 +147,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* + {"pollingInterval":500} /home/src/workspaces/project/a.ts: *new* {"pollingInterval":500} /home/src/workspaces/project/tsconfig.json: *new* @@ -153,15 +171,15 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json @@ -176,7 +194,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "formatOptions": { @@ -212,12 +230,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 1, + "request_seq": 2, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "file": "/home/src/workspaces/project/folder/target.ts", @@ -258,7 +276,7 @@ Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/workspac Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json projectStateVersion: 2 projectProgramVersion: 1 structureChanged: false structureIsReused:: Completely Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (5) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/a.ts Text-1 "function foo() { }\nconst aaaa = foo()\n\n// comment\nfoo\n/* another comment */\naaaa" @@ -270,7 +288,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "getPasteEdits", - "request_seq": 2, + "request_seq": 3, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -333,15 +351,15 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json diff --git a/tests/baselines/reference/tsserver/fourslashServer/pasteEdits_rangeSelection9.js b/tests/baselines/reference/tsserver/fourslashServer/pasteEdits_rangeSelection9.js index f769b1e2c9537..8e8531aa8e2ce 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/pasteEdits_rangeSelection9.js +++ b/tests/baselines/reference/tsserver/fourslashServer/pasteEdits_rangeSelection9.js @@ -1,16 +1,31 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "lib": [ + "es5" + ], + "target": "es5", + "newLine": "crlf", + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/home/src/workspaces/project/a.ts] function foo() { } @@ -22,12 +37,12 @@ foo //// [/home/src/workspaces/project/tsconfig.json] -{ "files": ["a.ts", "folder/target.ts"] } +{ "compilerOptions": { "lib": ["es5"] }, "files": ["a.ts", "folder/target.ts"] } Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/home/src/workspaces/project/folder/target.ts" @@ -43,6 +58,9 @@ Info seq [hh:mm:ss:mss] Config: /home/src/workspaces/project/tsconfig.json : { "/home/src/workspaces/project/folder/target.ts" ], "options": { + "lib": [ + "lib.es5.d.ts" + ], "configFilePath": "/home/src/workspaces/project/tsconfig.json" } } @@ -58,7 +76,7 @@ Info seq [hh:mm:ss:mss] event: } Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/a.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots @@ -68,19 +86,19 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (5) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/a.ts Text-1 "function foo() { }\n\n// comment\nfoo\n/* another comment */" /home/src/workspaces/project/folder/target.ts SVC-1-0 "" - ../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' a.ts Part of 'files' list in tsconfig.json folder/target.ts @@ -119,7 +137,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -127,12 +145,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* + {"pollingInterval":500} /home/src/workspaces/project/a.ts: *new* {"pollingInterval":500} /home/src/workspaces/project/tsconfig.json: *new* @@ -151,15 +169,15 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json @@ -174,7 +192,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "formatOptions": { @@ -210,12 +228,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 1, + "request_seq": 2, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "file": "/home/src/workspaces/project/folder/target.ts", @@ -256,7 +274,7 @@ Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/workspac Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json projectStateVersion: 2 projectProgramVersion: 1 structureChanged: false structureIsReused:: Completely Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (5) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/a.ts Text-1 "function foo() { }\n\n// comment\nfoo\n/* another comment */" @@ -268,7 +286,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "getPasteEdits", - "request_seq": 2, + "request_seq": 3, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -331,15 +349,15 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json diff --git a/tests/baselines/reference/tsserver/fourslashServer/pasteEdits_requireImportJsx.js b/tests/baselines/reference/tsserver/fourslashServer/pasteEdits_requireImportJsx.js index 09a372ed9d899..2cd09ff3503bd 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/pasteEdits_requireImportJsx.js +++ b/tests/baselines/reference/tsserver/fourslashServer/pasteEdits_requireImportJsx.js @@ -1,16 +1,31 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "lib": [ + "es5" + ], + "target": "es5", + "newLine": "crlf", + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/home/src/workspaces/project/b.jsx] import React = require("./react"); @@ -31,12 +46,12 @@ declare namespace React { } //// [/home/src/workspaces/project/tsconfig.json] -{ "files": ["folder/c.jsx", "react.d.ts", "b.jsx"] } +{ "compilerOptions": { "lib": ["es5"] }, "files": ["folder/c.jsx", "react.d.ts", "b.jsx"] } Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/home/src/workspaces/project/folder/c.jsx" @@ -53,6 +68,9 @@ Info seq [hh:mm:ss:mss] Config: /home/src/workspaces/project/tsconfig.json : { "/home/src/workspaces/project/b.jsx" ], "options": { + "lib": [ + "lib.es5.d.ts" + ], "configFilePath": "/home/src/workspaces/project/tsconfig.json" } } @@ -71,7 +89,7 @@ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/p Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project 0 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project 0 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots @@ -81,7 +99,7 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (6) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/folder/c.jsx SVC-1-0 "" @@ -89,12 +107,12 @@ Info seq [hh:mm:ss:mss] Files (6) /home/src/workspaces/project/b.jsx Text-1 "import React = require(\"./react\");\n\nclass MyComponent extends React.Component {\n render() {\n return
;\n }\n}" - ../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' folder/c.jsx Part of 'files' list in tsconfig.json react.d.ts @@ -136,7 +154,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -144,12 +162,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* + {"pollingInterval":500} /home/src/workspaces/project/b.jsx: *new* {"pollingInterval":500} /home/src/workspaces/project/react.d.ts: *new* @@ -174,15 +192,15 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json @@ -201,7 +219,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "formatOptions": { @@ -237,12 +255,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 1, + "request_seq": 2, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "file": "/home/src/workspaces/project/folder/c.jsx", @@ -283,7 +301,7 @@ Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/workspac Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json projectStateVersion: 2 projectProgramVersion: 1 structureChanged: false structureIsReused:: Completely Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (6) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/folder/c.jsx SVC-1-1 "class MyComponent extends React.Component {\n render() {\n return
;\n }\n}" @@ -296,7 +314,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "getPasteEdits", - "request_seq": 2, + "request_seq": 3, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -343,15 +361,15 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json diff --git a/tests/baselines/reference/tsserver/fourslashServer/pasteEdits_revertUpdatedFile.js b/tests/baselines/reference/tsserver/fourslashServer/pasteEdits_revertUpdatedFile.js index 05f9b333578ad..96cab361b0763 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/pasteEdits_revertUpdatedFile.js +++ b/tests/baselines/reference/tsserver/fourslashServer/pasteEdits_revertUpdatedFile.js @@ -1,16 +1,31 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "lib": [ + "es5" + ], + "target": "es5", + "newLine": "crlf", + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/home/src/workspaces/project/other.ts] export const t = 1; @@ -26,12 +41,12 @@ var x; var y = x as //// [/home/src/workspaces/project/tsconfig.json] -{ "files": ["target.ts", "other.ts", "other2.ts"] } +{ "compilerOptions": { "lib": ["es5"] }, "files": ["target.ts", "other.ts", "other2.ts"] } Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/home/src/workspaces/project/target.ts" @@ -48,6 +63,9 @@ Info seq [hh:mm:ss:mss] Config: /home/src/workspaces/project/tsconfig.json : { "/home/src/workspaces/project/other2.ts" ], "options": { + "lib": [ + "lib.es5.d.ts" + ], "configFilePath": "/home/src/workspaces/project/tsconfig.json" } } @@ -64,7 +82,7 @@ Info seq [hh:mm:ss:mss] event: Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/other.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/other2.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots @@ -74,7 +92,7 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (6) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/other.ts Text-1 "export const t = 1;" @@ -82,12 +100,12 @@ Info seq [hh:mm:ss:mss] Files (6) /home/src/workspaces/project/other2.ts Text-1 "export const t2 = 1;" - ../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' other.ts Imported via "./other" from file 'target.ts' Part of 'files' list in tsconfig.json @@ -129,7 +147,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -137,12 +155,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* + {"pollingInterval":500} /home/src/workspaces/project/other.ts: *new* {"pollingInterval":500} /home/src/workspaces/project/other2.ts: *new* @@ -163,15 +181,15 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json @@ -190,7 +208,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "formatOptions": { @@ -226,12 +244,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 1, + "request_seq": 2, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "file": "/home/src/workspaces/project/target.ts", @@ -257,7 +275,7 @@ Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/workspac Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json projectStateVersion: 2 projectProgramVersion: 1 structureChanged: false structureIsReused:: Completely Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (6) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/other.ts Text-1 "export const t = 1;" @@ -270,7 +288,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "getPasteEdits", - "request_seq": 2, + "request_seq": 3, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -317,15 +335,15 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json @@ -344,7 +362,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 3, + "seq": 4, "type": "request", "arguments": { "preferences": {} @@ -356,12 +374,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 3, + "request_seq": 4, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 4, + "seq": 5, "type": "request", "arguments": { "file": "/home/src/workspaces/project/target.ts", @@ -374,7 +392,7 @@ Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/workspac Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json projectStateVersion: 3 projectProgramVersion: 1 structureChanged: false structureIsReused:: Completely Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (6) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/other.ts Text-1 "export const t = 1;" @@ -393,7 +411,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "completionInfo", - "request_seq": 4, + "request_seq": 5, "success": true, "performanceData": { "updateGraphDurationMs": * diff --git a/tests/baselines/reference/tsserver/fourslashServer/pasteEdits_unknownSourceFile.js b/tests/baselines/reference/tsserver/fourslashServer/pasteEdits_unknownSourceFile.js index 632c366dafabc..9d10484b34b73 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/pasteEdits_unknownSourceFile.js +++ b/tests/baselines/reference/tsserver/fourslashServer/pasteEdits_unknownSourceFile.js @@ -1,16 +1,31 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "lib": [ + "es5" + ], + "target": "es5", + "newLine": "crlf", + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/home/src/workspaces/project/file1.ts] export interface Test1 {} export interface Test2 {} @@ -23,12 +38,12 @@ const b = 10; const c = 10; //// [/home/src/workspaces/project/tsconfig.json] -{ "files": ["file1.ts", "file2.ts"] } +{ "compilerOptions": { "lib": ["es5"] }, "files": ["file1.ts", "file2.ts"] } Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/home/src/workspaces/project/file2.ts" @@ -44,6 +59,9 @@ Info seq [hh:mm:ss:mss] Config: /home/src/workspaces/project/tsconfig.json : { "/home/src/workspaces/project/file2.ts" ], "options": { + "lib": [ + "lib.es5.d.ts" + ], "configFilePath": "/home/src/workspaces/project/tsconfig.json" } } @@ -59,7 +77,7 @@ Info seq [hh:mm:ss:mss] event: } Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/file1.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots @@ -69,19 +87,19 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (5) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/file1.ts Text-1 "export interface Test1 {}\nexport interface Test2 {}\nexport interface Test3 {}\nexport interface Test4 {}" /home/src/workspaces/project/file2.ts SVC-1-0 "const a = 10;\nconst b = 10;\nconst c = 10;" - ../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' file1.ts Part of 'files' list in tsconfig.json file2.ts @@ -120,7 +138,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -128,12 +146,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* + {"pollingInterval":500} /home/src/workspaces/project/file1.ts: *new* {"pollingInterval":500} /home/src/workspaces/project/tsconfig.json: *new* @@ -152,15 +170,15 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json @@ -175,7 +193,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "formatOptions": { @@ -211,12 +229,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 1, + "request_seq": 2, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "file": "/home/src/workspaces/project/file2.ts", @@ -242,7 +260,7 @@ Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/workspac Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json projectStateVersion: 2 projectProgramVersion: 1 structureChanged: false structureIsReused:: Completely Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (5) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/file1.ts Text-1 "export interface Test1 {}\nexport interface Test2 {}\nexport interface Test3 {}\nexport interface Test4 {}" @@ -254,7 +272,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "getPasteEdits", - "request_seq": 2, + "request_seq": 3, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -301,15 +319,15 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json diff --git a/tests/baselines/reference/tsserver/fourslashServer/pathCompletionsPackageJsonImportsSrcNoDistWildcard1.js b/tests/baselines/reference/tsserver/fourslashServer/pathCompletionsPackageJsonImportsSrcNoDistWildcard1.js index 4ff1886d76c26..4f531e1754335 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/pathCompletionsPackageJsonImportsSrcNoDistWildcard1.js +++ b/tests/baselines/reference/tsserver/fourslashServer/pathCompletionsPackageJsonImportsSrcNoDistWildcard1.js @@ -1,16 +1,34 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "lib": [ + "es5" + ], + "module": "nodenext", + "rootDir": "/home/src/workspaces/project/src", + "outDir": "/home/src/workspaces/project/dist", + "target": "es5", + "newLine": "crlf", + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/home/src/workspaces/project/package.json] { "name": "foo", @@ -46,6 +64,7 @@ import { } from ""; //// [/home/src/workspaces/project/tsconfig.json] { "compilerOptions": { + "lib": ["es5"], "module": "nodenext", "rootDir": "src", "outDir": "dist" @@ -55,7 +74,7 @@ import { } from ""; Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/home/src/workspaces/project/tsconfig.json" @@ -73,6 +92,9 @@ Info seq [hh:mm:ss:mss] Config: /home/src/workspaces/project/tsconfig.json : { "/home/src/workspaces/project/src/arguments/index.ts" ], "options": { + "lib": [ + "lib.es5.d.ts" + ], "module": 199, "rootDir": "/home/src/workspaces/project/src", "outDir": "/home/src/workspaces/project/dist", @@ -96,23 +118,37 @@ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/p Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/src/m.mts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/src/arguments/index.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/src/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/src/arguments/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.esnext.full.d.ts 500 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Missing file Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) -Info seq [hh:mm:ss:mss] Files (4) +Info seq [hh:mm:ss:mss] Files (7) + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text + /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/src/blah.ts Text-1 "export const blah = 0;" /home/src/workspaces/project/src/index.ts Text-1 "export const index = 0;" /home/src/workspaces/project/src/m.mts Text-1 "import { } from \"\";" /home/src/workspaces/project/src/arguments/index.ts Text-1 "export const arguments = 0;" + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions + ../../tslibs/TS/Lib/lib.decorators.d.ts + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' + ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' src/blah.ts Matched by default include pattern '**/*' File is CommonJS module because 'package.json' does not have field "type" @@ -143,62 +179,16 @@ Info seq [hh:mm:ss:mss] event: "body": { "triggerFile": "/home/src/workspaces/project/tsconfig.json", "configFile": "/home/src/workspaces/project/tsconfig.json", - "diagnostics": [ - { - "text": "File '/home/src/tslibs/TS/Lib/lib.esnext.full.d.ts' not found.\n The file is in the program because:\n Default library for target 'esnext'", - "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" - } - ] + "diagnostics": [] } } Info seq [hh:mm:ss:mss] getConfigFileNameForFile:: File: /home/src/workspaces/project/tsconfig.json ProjectRootPath: undefined:: Result: undefined Info seq [hh:mm:ss:mss] Creating InferredProject: /dev/null/inferredProject1*, currentDirectory: /home/src/workspaces/project Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots @@ -206,25 +196,25 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text - /home/src/workspaces/project/tsconfig.json SVC-1-0 "{\n \"compilerOptions\": {\n \"module\": \"nodenext\",\n \"rootDir\": \"src\",\n \"outDir\": \"dist\"\n }\n}" + /home/src/workspaces/project/tsconfig.json SVC-1-0 "{\n \"compilerOptions\": {\n \"lib\": [\"es5\"],\n \"module\": \"nodenext\",\n \"rootDir\": \"src\",\n \"outDir\": \"dist\"\n }\n}" - ../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' tsconfig.json Root file specified for compilation Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/package.json 250 undefined WatchType: package.json file Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) -Info seq [hh:mm:ss:mss] Files (4) +Info seq [hh:mm:ss:mss] Files (7) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) @@ -239,7 +229,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -247,14 +237,21 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} -/home/src/tslibs/TS/Lib/lib.esnext.full.d.ts: *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/package.json: *new* + {"pollingInterval":2000} + {"pollingInterval":2000} +/home/src/tslibs/TS/package.json: *new* + {"pollingInterval":2000} + {"pollingInterval":2000} +/home/src/tslibs/package.json: *new* + {"pollingInterval":2000} + {"pollingInterval":2000} /home/src/workspaces/project/jsconfig.json: *new* {"pollingInterval":2000} /home/src/workspaces/project/package.json: *new* @@ -296,17 +293,20 @@ Projects:: noOpenRef: true ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* - version: Text-1 - containingProjects: 1 - /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/workspaces/project/src/arguments/index.ts *new* version: Text-1 @@ -331,7 +331,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/m.mts" @@ -341,7 +341,7 @@ Info seq [hh:mm:ss:mss] request: Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /home/src/workspaces/project/src/m.mts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] getConfigFileNameForFile:: File: /home/src/workspaces/project/src/m.mts ProjectRootPath: undefined:: Result: /home/src/workspaces/project/tsconfig.json Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) -Info seq [hh:mm:ss:mss] Files (4) +Info seq [hh:mm:ss:mss] Files (7) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) @@ -358,19 +358,26 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 1, + "request_seq": 2, "success": true } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} -/home/src/tslibs/TS/Lib/lib.esnext.full.d.ts: +/home/src/tslibs/TS/Lib/lib.es5.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} +/home/src/tslibs/TS/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} +/home/src/tslibs/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} /home/src/workspaces/project/jsconfig.json: {"pollingInterval":2000} /home/src/workspaces/project/package.json: @@ -414,17 +421,20 @@ Projects:: noOpenRef: false *changed* ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts - version: Text-1 - containingProjects: 1 - /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.es5.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/workspaces/project/src/arguments/index.ts version: Text-1 @@ -450,7 +460,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "preferences": {} @@ -462,12 +472,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 2, + "request_seq": 3, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 3, + "seq": 4, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/m.mts", @@ -481,7 +491,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "completionInfo", - "request_seq": 3, + "request_seq": 4, "success": true, "body": { "isGlobalCompletion": false, diff --git a/tests/baselines/reference/tsserver/fourslashServer/pathCompletionsPackageJsonImportsSrcNoDistWildcard2.js b/tests/baselines/reference/tsserver/fourslashServer/pathCompletionsPackageJsonImportsSrcNoDistWildcard2.js index 153e074a54546..39a8ec8b768ca 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/pathCompletionsPackageJsonImportsSrcNoDistWildcard2.js +++ b/tests/baselines/reference/tsserver/fourslashServer/pathCompletionsPackageJsonImportsSrcNoDistWildcard2.js @@ -1,16 +1,34 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "lib": [ + "es5" + ], + "module": "nodenext", + "rootDir": "/home/src/workspaces/project/src", + "outDir": "/home/src/workspaces/project/dist", + "target": "es5", + "newLine": "crlf", + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/home/src/workspaces/project/package.json] { "name": "salesforce-pageobjects", @@ -33,6 +51,7 @@ import { } from ""; //// [/home/src/workspaces/project/tsconfig.json] { "compilerOptions": { + "lib": ["es5"], "module": "nodenext", "rootDir": "src", "outDir": "dist" @@ -42,7 +61,7 @@ import { } from ""; Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/home/src/workspaces/project/tsconfig.json" @@ -58,6 +77,9 @@ Info seq [hh:mm:ss:mss] Config: /home/src/workspaces/project/tsconfig.json : { "/home/src/workspaces/project/src/action/pageObjects/actionRenderer.ts" ], "options": { + "lib": [ + "lib.es5.d.ts" + ], "module": 199, "rootDir": "/home/src/workspaces/project/src", "outDir": "/home/src/workspaces/project/dist", @@ -79,22 +101,36 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/src/index.mts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/src/action/pageObjects/actionRenderer.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/src/action/pageObjects/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/src/action/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/src/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.esnext.full.d.ts 500 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Missing file Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) -Info seq [hh:mm:ss:mss] Files (2) +Info seq [hh:mm:ss:mss] Files (5) + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text + /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/src/index.mts Text-1 "import { } from \"\";" /home/src/workspaces/project/src/action/pageObjects/actionRenderer.ts Text-1 "export const actionRenderer = 0;" + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions + ../../tslibs/TS/Lib/lib.decorators.d.ts + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' + ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' src/index.mts Matched by default include pattern '**/*' src/action/pageObjects/actionRenderer.ts @@ -119,62 +155,16 @@ Info seq [hh:mm:ss:mss] event: "body": { "triggerFile": "/home/src/workspaces/project/tsconfig.json", "configFile": "/home/src/workspaces/project/tsconfig.json", - "diagnostics": [ - { - "text": "File '/home/src/tslibs/TS/Lib/lib.esnext.full.d.ts' not found.\n The file is in the program because:\n Default library for target 'esnext'", - "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" - } - ] + "diagnostics": [] } } Info seq [hh:mm:ss:mss] getConfigFileNameForFile:: File: /home/src/workspaces/project/tsconfig.json ProjectRootPath: undefined:: Result: undefined Info seq [hh:mm:ss:mss] Creating InferredProject: /dev/null/inferredProject1*, currentDirectory: /home/src/workspaces/project Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots @@ -182,25 +172,25 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text - /home/src/workspaces/project/tsconfig.json SVC-1-0 "{\n \"compilerOptions\": {\n \"module\": \"nodenext\",\n \"rootDir\": \"src\",\n \"outDir\": \"dist\"\n }\n}" + /home/src/workspaces/project/tsconfig.json SVC-1-0 "{\n \"compilerOptions\": {\n \"lib\": [\"es5\"],\n \"module\": \"nodenext\",\n \"rootDir\": \"src\",\n \"outDir\": \"dist\"\n }\n}" - ../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' tsconfig.json Root file specified for compilation Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/package.json 250 undefined WatchType: package.json file Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) -Info seq [hh:mm:ss:mss] Files (2) +Info seq [hh:mm:ss:mss] Files (5) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) @@ -215,7 +205,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -223,14 +213,21 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} -/home/src/tslibs/TS/Lib/lib.esnext.full.d.ts: *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/package.json: *new* + {"pollingInterval":2000} + {"pollingInterval":2000} +/home/src/tslibs/TS/package.json: *new* + {"pollingInterval":2000} + {"pollingInterval":2000} +/home/src/tslibs/package.json: *new* + {"pollingInterval":2000} + {"pollingInterval":2000} /home/src/workspaces/project/jsconfig.json: *new* {"pollingInterval":2000} /home/src/workspaces/project/package.json: *new* @@ -270,17 +267,20 @@ Projects:: noOpenRef: true ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* - version: Text-1 - containingProjects: 1 - /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/workspaces/project/src/action/pageObjects/actionRenderer.ts *new* version: Text-1 @@ -297,7 +297,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/index.mts" @@ -307,7 +307,7 @@ Info seq [hh:mm:ss:mss] request: Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /home/src/workspaces/project/src/index.mts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] getConfigFileNameForFile:: File: /home/src/workspaces/project/src/index.mts ProjectRootPath: undefined:: Result: /home/src/workspaces/project/tsconfig.json Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) -Info seq [hh:mm:ss:mss] Files (2) +Info seq [hh:mm:ss:mss] Files (5) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) @@ -324,19 +324,26 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 1, + "request_seq": 2, "success": true } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} -/home/src/tslibs/TS/Lib/lib.esnext.full.d.ts: +/home/src/tslibs/TS/Lib/lib.es5.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} +/home/src/tslibs/TS/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} +/home/src/tslibs/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} /home/src/workspaces/project/jsconfig.json: {"pollingInterval":2000} /home/src/workspaces/project/package.json: @@ -378,17 +385,20 @@ Projects:: noOpenRef: false *changed* ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts - version: Text-1 - containingProjects: 1 - /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.es5.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/workspaces/project/src/action/pageObjects/actionRenderer.ts version: Text-1 @@ -406,7 +416,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "preferences": {} @@ -418,12 +428,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 2, + "request_seq": 3, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 3, + "seq": 4, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/index.mts", @@ -437,7 +447,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "completionInfo", - "request_seq": 3, + "request_seq": 4, "success": true, "body": { "isGlobalCompletion": false, @@ -456,7 +466,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 4, + "seq": 5, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/index.mts", @@ -473,7 +483,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 4, + "request_seq": 5, "success": true } After Request @@ -488,17 +498,20 @@ Projects:: dirty: true *changed* ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts - version: Text-1 - containingProjects: 1 - /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.es5.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/workspaces/project/src/action/pageObjects/actionRenderer.ts version: Text-1 @@ -515,7 +528,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 5, + "seq": 6, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/index.mts", @@ -532,22 +545,25 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 5, + "request_seq": 6, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts - version: Text-1 - containingProjects: 1 - /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.es5.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/workspaces/project/src/action/pageObjects/actionRenderer.ts version: Text-1 @@ -564,7 +580,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 6, + "seq": 7, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/index.mts", @@ -579,13 +595,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 6, + "request_seq": 7, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 7, + "seq": 8, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/index.mts", @@ -602,22 +618,25 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 7, + "request_seq": 8, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts - version: Text-1 - containingProjects: 1 - /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.es5.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/workspaces/project/src/action/pageObjects/actionRenderer.ts version: Text-1 @@ -634,7 +653,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 8, + "seq": 9, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/index.mts", @@ -649,13 +668,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 8, + "request_seq": 9, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 9, + "seq": 10, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/index.mts", @@ -672,22 +691,25 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 9, + "request_seq": 10, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts - version: Text-1 - containingProjects: 1 - /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.es5.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/workspaces/project/src/action/pageObjects/actionRenderer.ts version: Text-1 @@ -704,7 +726,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 10, + "seq": 11, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/index.mts", @@ -719,13 +741,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 10, + "request_seq": 11, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 11, + "seq": 12, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/index.mts", @@ -742,22 +764,25 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 11, + "request_seq": 12, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts - version: Text-1 - containingProjects: 1 - /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.es5.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/workspaces/project/src/action/pageObjects/actionRenderer.ts version: Text-1 @@ -774,7 +799,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 12, + "seq": 13, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/index.mts", @@ -789,13 +814,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 12, + "request_seq": 13, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 13, + "seq": 14, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/index.mts", @@ -812,22 +837,25 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 13, + "request_seq": 14, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts - version: Text-1 - containingProjects: 1 - /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.es5.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/workspaces/project/src/action/pageObjects/actionRenderer.ts version: Text-1 @@ -844,7 +872,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 14, + "seq": 15, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/index.mts", @@ -859,13 +887,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 14, + "request_seq": 15, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 15, + "seq": 16, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/index.mts", @@ -882,22 +910,25 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 15, + "request_seq": 16, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts - version: Text-1 - containingProjects: 1 - /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.es5.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/workspaces/project/src/action/pageObjects/actionRenderer.ts version: Text-1 @@ -914,7 +945,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 16, + "seq": 17, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/index.mts", @@ -929,13 +960,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 16, + "request_seq": 17, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 17, + "seq": 18, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/index.mts", @@ -952,22 +983,25 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 17, + "request_seq": 18, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts - version: Text-1 - containingProjects: 1 - /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.es5.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/workspaces/project/src/action/pageObjects/actionRenderer.ts version: Text-1 @@ -984,7 +1018,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 18, + "seq": 19, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/index.mts", @@ -999,13 +1033,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 18, + "request_seq": 19, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 19, + "seq": 20, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/index.mts", @@ -1022,22 +1056,25 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 19, + "request_seq": 20, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts - version: Text-1 - containingProjects: 1 - /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.es5.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/workspaces/project/src/action/pageObjects/actionRenderer.ts version: Text-1 @@ -1054,7 +1091,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 20, + "seq": 21, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/index.mts", @@ -1069,13 +1106,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 20, + "request_seq": 21, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 21, + "seq": 22, "type": "request", "arguments": { "preferences": {} @@ -1087,12 +1124,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 21, + "request_seq": 22, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 22, + "seq": 23, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/index.mts", @@ -1112,7 +1149,10 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspa Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/node_modules 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json projectStateVersion: 2 projectProgramVersion: 1 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) -Info seq [hh:mm:ss:mss] Files (2) +Info seq [hh:mm:ss:mss] Files (5) + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text + /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/src/index.mts SVC-2-9 "import { } from \"#action/\";" /home/src/workspaces/project/src/action/pageObjects/actionRenderer.ts Text-1 "export const actionRenderer = 0;" @@ -1122,7 +1162,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "completionInfo", - "request_seq": 22, + "request_seq": 23, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -1144,14 +1184,21 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} -/home/src/tslibs/TS/Lib/lib.esnext.full.d.ts: +/home/src/tslibs/TS/Lib/lib.es5.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} +/home/src/tslibs/TS/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} +/home/src/tslibs/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} /home/src/workspaces/project/jsconfig.json: {"pollingInterval":2000} /home/src/workspaces/project/package.json: @@ -1198,7 +1245,7 @@ Projects:: Info seq [hh:mm:ss:mss] request: { - "seq": 23, + "seq": 24, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/index.mts", @@ -1215,7 +1262,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 23, + "request_seq": 24, "success": true } After Request @@ -1230,17 +1277,20 @@ Projects:: dirty: true *changed* ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts - version: Text-1 - containingProjects: 1 - /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.es5.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/workspaces/project/src/action/pageObjects/actionRenderer.ts version: Text-1 @@ -1257,7 +1307,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 24, + "seq": 25, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/index.mts", @@ -1274,22 +1324,25 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 24, + "request_seq": 25, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts - version: Text-1 - containingProjects: 1 - /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.es5.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/workspaces/project/src/action/pageObjects/actionRenderer.ts version: Text-1 @@ -1306,7 +1359,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 25, + "seq": 26, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/index.mts", @@ -1321,13 +1374,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 25, + "request_seq": 26, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 26, + "seq": 27, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/index.mts", @@ -1344,22 +1397,25 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 26, + "request_seq": 27, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts - version: Text-1 - containingProjects: 1 - /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.es5.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/workspaces/project/src/action/pageObjects/actionRenderer.ts version: Text-1 @@ -1376,7 +1432,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 27, + "seq": 28, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/index.mts", @@ -1391,13 +1447,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 27, + "request_seq": 28, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 28, + "seq": 29, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/index.mts", @@ -1414,22 +1470,25 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 28, + "request_seq": 29, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts - version: Text-1 - containingProjects: 1 - /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.es5.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/workspaces/project/src/action/pageObjects/actionRenderer.ts version: Text-1 @@ -1446,7 +1505,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 29, + "seq": 30, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/index.mts", @@ -1461,13 +1520,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 29, + "request_seq": 30, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 30, + "seq": 31, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/index.mts", @@ -1484,22 +1543,25 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 30, + "request_seq": 31, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts - version: Text-1 - containingProjects: 1 - /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.es5.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/workspaces/project/src/action/pageObjects/actionRenderer.ts version: Text-1 @@ -1516,7 +1578,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 31, + "seq": 32, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/index.mts", @@ -1531,13 +1593,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 31, + "request_seq": 32, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 32, + "seq": 33, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/index.mts", @@ -1554,22 +1616,25 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 32, + "request_seq": 33, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts - version: Text-1 - containingProjects: 1 - /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.es5.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/workspaces/project/src/action/pageObjects/actionRenderer.ts version: Text-1 @@ -1586,7 +1651,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 33, + "seq": 34, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/index.mts", @@ -1601,13 +1666,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 33, + "request_seq": 34, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 34, + "seq": 35, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/index.mts", @@ -1624,22 +1689,25 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 34, + "request_seq": 35, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts - version: Text-1 - containingProjects: 1 - /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.es5.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/workspaces/project/src/action/pageObjects/actionRenderer.ts version: Text-1 @@ -1656,7 +1724,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 35, + "seq": 36, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/index.mts", @@ -1671,13 +1739,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 35, + "request_seq": 36, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 36, + "seq": 37, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/index.mts", @@ -1694,22 +1762,25 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 36, + "request_seq": 37, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts - version: Text-1 - containingProjects: 1 - /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.es5.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/workspaces/project/src/action/pageObjects/actionRenderer.ts version: Text-1 @@ -1726,7 +1797,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 37, + "seq": 38, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/index.mts", @@ -1741,13 +1812,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 37, + "request_seq": 38, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 38, + "seq": 39, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/index.mts", @@ -1764,22 +1835,25 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 38, + "request_seq": 39, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts - version: Text-1 - containingProjects: 1 - /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.es5.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/workspaces/project/src/action/pageObjects/actionRenderer.ts version: Text-1 @@ -1796,7 +1870,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 39, + "seq": 40, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/index.mts", @@ -1811,13 +1885,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 39, + "request_seq": 40, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 40, + "seq": 41, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/index.mts", @@ -1834,22 +1908,25 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 40, + "request_seq": 41, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts - version: Text-1 - containingProjects: 1 - /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.es5.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/workspaces/project/src/action/pageObjects/actionRenderer.ts version: Text-1 @@ -1866,7 +1943,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 41, + "seq": 42, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/index.mts", @@ -1881,13 +1958,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 41, + "request_seq": 42, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 42, + "seq": 43, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/index.mts", @@ -1904,22 +1981,25 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 42, + "request_seq": 43, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts - version: Text-1 - containingProjects: 1 - /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.es5.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/workspaces/project/src/action/pageObjects/actionRenderer.ts version: Text-1 @@ -1936,7 +2016,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 43, + "seq": 44, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/index.mts", @@ -1951,13 +2031,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 43, + "request_seq": 44, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 44, + "seq": 45, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/index.mts", @@ -1974,22 +2054,25 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 44, + "request_seq": 45, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts - version: Text-1 - containingProjects: 1 - /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.es5.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/workspaces/project/src/action/pageObjects/actionRenderer.ts version: Text-1 @@ -2006,7 +2089,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 45, + "seq": 46, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/index.mts", @@ -2021,13 +2104,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 45, + "request_seq": 46, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 46, + "seq": 47, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/index.mts", @@ -2044,22 +2127,25 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 46, + "request_seq": 47, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts - version: Text-1 - containingProjects: 1 - /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.es5.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/workspaces/project/src/action/pageObjects/actionRenderer.ts version: Text-1 @@ -2076,7 +2162,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 47, + "seq": 48, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/index.mts", @@ -2091,13 +2177,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 47, + "request_seq": 48, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 48, + "seq": 49, "type": "request", "arguments": { "preferences": {} @@ -2109,12 +2195,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 48, + "request_seq": 49, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 49, + "seq": 50, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/index.mts", @@ -2126,7 +2212,10 @@ Info seq [hh:mm:ss:mss] request: Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json projectStateVersion: 3 projectProgramVersion: 2 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) -Info seq [hh:mm:ss:mss] Files (2) +Info seq [hh:mm:ss:mss] Files (5) + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text + /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/src/index.mts SVC-2-22 "import { } from \"#action/pageObjects/\";" /home/src/workspaces/project/src/action/pageObjects/actionRenderer.ts Text-1 "export const actionRenderer = 0;" @@ -2136,7 +2225,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "completionInfo", - "request_seq": 49, + "request_seq": 50, "success": true, "performanceData": { "updateGraphDurationMs": * diff --git a/tests/baselines/reference/tsserver/fourslashServer/pathCompletionsPackageJsonImportsSrcNoDistWildcard3.js b/tests/baselines/reference/tsserver/fourslashServer/pathCompletionsPackageJsonImportsSrcNoDistWildcard3.js index d781a9725159a..c21aea873ff8e 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/pathCompletionsPackageJsonImportsSrcNoDistWildcard3.js +++ b/tests/baselines/reference/tsserver/fourslashServer/pathCompletionsPackageJsonImportsSrcNoDistWildcard3.js @@ -1,16 +1,35 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "lib": [ + "es5" + ], + "module": "nodenext", + "rootDir": "/home/src/workspaces/project/src", + "outDir": "/home/src/workspaces/project/dist", + "declarationDir": "/home/src/workspaces/project/types", + "target": "es5", + "newLine": "crlf", + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/home/src/workspaces/project/nope.ts] export const nope = 0; @@ -39,6 +58,7 @@ export const one = 0; //// [/home/src/workspaces/project/tsconfig.json] { "compilerOptions": { + "lib": ["es5"], "module": "nodenext", "rootDir": "src", "outDir": "dist", @@ -49,7 +69,7 @@ export const one = 0; Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/home/src/workspaces/project/tsconfig.json" @@ -68,6 +88,9 @@ Info seq [hh:mm:ss:mss] Config: /home/src/workspaces/project/tsconfig.json : { "/home/src/workspaces/project/src/components/subfolder/one.ts" ], "options": { + "lib": [ + "lib.es5.d.ts" + ], "module": 199, "rootDir": "/home/src/workspaces/project/src", "outDir": "/home/src/workspaces/project/dist", @@ -93,18 +116,26 @@ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/p Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/src/components/index.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/src/components/subfolder/one.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/src/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/src/components/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/src/components/subfolder/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.esnext.full.d.ts 500 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Missing file Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) -Info seq [hh:mm:ss:mss] Files (5) +Info seq [hh:mm:ss:mss] Files (8) + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text + /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/nope.ts Text-1 "export const nope = 0;" /home/src/workspaces/project/src/a.ts Text-1 "import { } from \"\";" /home/src/workspaces/project/src/components/blah.ts Text-1 "export const blah = 0;" @@ -112,6 +143,12 @@ Info seq [hh:mm:ss:mss] Files (5) /home/src/workspaces/project/src/components/subfolder/one.ts Text-1 "export const one = 0;" + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions + ../../tslibs/TS/Lib/lib.decorators.d.ts + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' + ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' nope.ts Matched by default include pattern '**/*' File is CommonJS module because 'package.json' does not have field "type" @@ -147,11 +184,6 @@ Info seq [hh:mm:ss:mss] event: "triggerFile": "/home/src/workspaces/project/tsconfig.json", "configFile": "/home/src/workspaces/project/tsconfig.json", "diagnostics": [ - { - "text": "File '/home/src/tslibs/TS/Lib/lib.esnext.full.d.ts' not found.\n The file is in the program because:\n Default library for target 'esnext'", - "code": 6053, - "category": "error" - }, { "text": "File '/home/src/workspaces/project/nope.ts' is not under 'rootDir' '/home/src/workspaces/project/src'. 'rootDir' is expected to contain all source files.\n The file is in the program because:\n Matched by default include pattern '**/*'\n File is CommonJS module because '/home/src/workspaces/project/package.json' does not have field \"type\"", "code": 6059, @@ -159,57 +191,17 @@ Info seq [hh:mm:ss:mss] event: }, { "start": { - "line": 6, + "line": 7, "offset": 5 }, "end": { - "line": 6, + "line": 7, "offset": 21 }, "text": "Option 'declarationDir' cannot be specified without specifying option 'declaration' or option 'composite'.", "code": 5069, "category": "error", "fileName": "/home/src/workspaces/project/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" } ] } @@ -218,9 +210,9 @@ Info seq [hh:mm:ss:mss] getConfigFileNameForFile:: File: /home/src/workspaces/p Info seq [hh:mm:ss:mss] Creating InferredProject: /dev/null/inferredProject1*, currentDirectory: /home/src/workspaces/project Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots @@ -228,25 +220,25 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text - /home/src/workspaces/project/tsconfig.json SVC-1-0 "{\n \"compilerOptions\": {\n \"module\": \"nodenext\",\n \"rootDir\": \"src\",\n \"outDir\": \"dist\",\n \"declarationDir\": \"types\"\n }\n}" + /home/src/workspaces/project/tsconfig.json SVC-1-0 "{\n \"compilerOptions\": {\n \"lib\": [\"es5\"],\n \"module\": \"nodenext\",\n \"rootDir\": \"src\",\n \"outDir\": \"dist\",\n \"declarationDir\": \"types\"\n }\n}" - ../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' tsconfig.json Root file specified for compilation Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/package.json 250 undefined WatchType: package.json file Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) -Info seq [hh:mm:ss:mss] Files (5) +Info seq [hh:mm:ss:mss] Files (8) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) @@ -261,7 +253,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -269,14 +261,21 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} -/home/src/tslibs/TS/Lib/lib.esnext.full.d.ts: *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/package.json: *new* + {"pollingInterval":2000} + {"pollingInterval":2000} +/home/src/tslibs/TS/package.json: *new* + {"pollingInterval":2000} + {"pollingInterval":2000} +/home/src/tslibs/package.json: *new* + {"pollingInterval":2000} + {"pollingInterval":2000} /home/src/workspaces/project/jsconfig.json: *new* {"pollingInterval":2000} /home/src/workspaces/project/nope.ts: *new* @@ -322,17 +321,20 @@ Projects:: noOpenRef: true ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* - version: Text-1 - containingProjects: 1 - /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/workspaces/project/nope.ts *new* version: Text-1 @@ -361,7 +363,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/a.ts" @@ -371,7 +373,7 @@ Info seq [hh:mm:ss:mss] request: Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /home/src/workspaces/project/src/a.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] getConfigFileNameForFile:: File: /home/src/workspaces/project/src/a.ts ProjectRootPath: undefined:: Result: /home/src/workspaces/project/tsconfig.json Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) -Info seq [hh:mm:ss:mss] Files (5) +Info seq [hh:mm:ss:mss] Files (8) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) @@ -388,19 +390,26 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 1, + "request_seq": 2, "success": true } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} -/home/src/tslibs/TS/Lib/lib.esnext.full.d.ts: +/home/src/tslibs/TS/Lib/lib.es5.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} +/home/src/tslibs/TS/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} +/home/src/tslibs/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} /home/src/workspaces/project/jsconfig.json: {"pollingInterval":2000} /home/src/workspaces/project/nope.ts: @@ -448,17 +457,20 @@ Projects:: noOpenRef: false *changed* ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts - version: Text-1 - containingProjects: 1 - /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.es5.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/workspaces/project/nope.ts version: Text-1 @@ -488,7 +500,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "preferences": {} @@ -500,12 +512,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 2, + "request_seq": 3, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 3, + "seq": 4, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/a.ts", @@ -519,7 +531,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "completionInfo", - "request_seq": 3, + "request_seq": 4, "success": true, "body": { "isGlobalCompletion": false, @@ -550,7 +562,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 4, + "seq": 5, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/a.ts", @@ -567,7 +579,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 4, + "request_seq": 5, "success": true } After Request @@ -582,17 +594,20 @@ Projects:: dirty: true *changed* ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts - version: Text-1 - containingProjects: 1 - /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.es5.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/workspaces/project/nope.ts version: Text-1 @@ -621,7 +636,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 5, + "seq": 6, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/a.ts", @@ -638,22 +653,25 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 5, + "request_seq": 6, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts - version: Text-1 - containingProjects: 1 - /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.es5.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/workspaces/project/nope.ts version: Text-1 @@ -682,7 +700,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 6, + "seq": 7, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/a.ts", @@ -697,13 +715,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 6, + "request_seq": 7, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 7, + "seq": 8, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/a.ts", @@ -720,22 +738,25 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 7, + "request_seq": 8, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts - version: Text-1 - containingProjects: 1 - /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.es5.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/workspaces/project/nope.ts version: Text-1 @@ -764,7 +785,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 8, + "seq": 9, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/a.ts", @@ -779,13 +800,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 8, + "request_seq": 9, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 9, + "seq": 10, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/a.ts", @@ -802,22 +823,25 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 9, + "request_seq": 10, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts - version: Text-1 - containingProjects: 1 - /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.es5.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/workspaces/project/nope.ts version: Text-1 @@ -846,7 +870,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 10, + "seq": 11, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/a.ts", @@ -861,13 +885,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 10, + "request_seq": 11, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 11, + "seq": 12, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/a.ts", @@ -884,22 +908,25 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 11, + "request_seq": 12, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts - version: Text-1 - containingProjects: 1 - /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.es5.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/workspaces/project/nope.ts version: Text-1 @@ -928,7 +955,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 12, + "seq": 13, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/a.ts", @@ -943,13 +970,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 12, + "request_seq": 13, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 13, + "seq": 14, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/a.ts", @@ -966,22 +993,25 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 13, + "request_seq": 14, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts - version: Text-1 - containingProjects: 1 - /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.es5.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/workspaces/project/nope.ts version: Text-1 @@ -1010,7 +1040,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 14, + "seq": 15, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/a.ts", @@ -1025,13 +1055,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 14, + "request_seq": 15, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 15, + "seq": 16, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/a.ts", @@ -1048,22 +1078,25 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 15, + "request_seq": 16, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts - version: Text-1 - containingProjects: 1 - /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.es5.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/workspaces/project/nope.ts version: Text-1 @@ -1092,7 +1125,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 16, + "seq": 17, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/a.ts", @@ -1107,13 +1140,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 16, + "request_seq": 17, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 17, + "seq": 18, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/a.ts", @@ -1130,22 +1163,25 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 17, + "request_seq": 18, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts - version: Text-1 - containingProjects: 1 - /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.es5.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/workspaces/project/nope.ts version: Text-1 @@ -1174,7 +1210,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 18, + "seq": 19, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/a.ts", @@ -1189,13 +1225,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 18, + "request_seq": 19, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 19, + "seq": 20, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/a.ts", @@ -1212,22 +1248,25 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 19, + "request_seq": 20, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts - version: Text-1 - containingProjects: 1 - /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.es5.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/workspaces/project/nope.ts version: Text-1 @@ -1256,7 +1295,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 20, + "seq": 21, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/a.ts", @@ -1271,13 +1310,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 20, + "request_seq": 21, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 21, + "seq": 22, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/a.ts", @@ -1294,22 +1333,25 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 21, + "request_seq": 22, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts - version: Text-1 - containingProjects: 1 - /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.es5.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/workspaces/project/nope.ts version: Text-1 @@ -1338,7 +1380,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 22, + "seq": 23, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/a.ts", @@ -1353,13 +1395,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 22, + "request_seq": 23, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 23, + "seq": 24, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/a.ts", @@ -1376,22 +1418,25 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 23, + "request_seq": 24, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts - version: Text-1 - containingProjects: 1 - /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.es5.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/workspaces/project/nope.ts version: Text-1 @@ -1420,7 +1465,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 24, + "seq": 25, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/a.ts", @@ -1435,13 +1480,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 24, + "request_seq": 25, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 25, + "seq": 26, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/a.ts", @@ -1458,22 +1503,25 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 25, + "request_seq": 26, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts - version: Text-1 - containingProjects: 1 - /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.es5.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/workspaces/project/nope.ts version: Text-1 @@ -1502,7 +1550,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 26, + "seq": 27, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/a.ts", @@ -1517,13 +1565,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 26, + "request_seq": 27, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 27, + "seq": 28, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/a.ts", @@ -1540,22 +1588,25 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 27, + "request_seq": 28, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts - version: Text-1 - containingProjects: 1 - /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.es5.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/workspaces/project/nope.ts version: Text-1 @@ -1584,7 +1635,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 28, + "seq": 29, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/a.ts", @@ -1599,13 +1650,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 28, + "request_seq": 29, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 29, + "seq": 30, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/a.ts", @@ -1622,22 +1673,25 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 29, + "request_seq": 30, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts - version: Text-1 - containingProjects: 1 - /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.es5.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/workspaces/project/nope.ts version: Text-1 @@ -1666,7 +1720,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 30, + "seq": 31, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/a.ts", @@ -1681,13 +1735,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 30, + "request_seq": 31, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 31, + "seq": 32, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/a.ts", @@ -1704,22 +1758,25 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 31, + "request_seq": 32, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts - version: Text-1 - containingProjects: 1 - /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.es5.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/workspaces/project/nope.ts version: Text-1 @@ -1748,7 +1805,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 32, + "seq": 33, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/a.ts", @@ -1763,13 +1820,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 32, + "request_seq": 33, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 33, + "seq": 34, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/a.ts", @@ -1786,22 +1843,25 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 33, + "request_seq": 34, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts - version: Text-1 - containingProjects: 1 - /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.es5.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/workspaces/project/nope.ts version: Text-1 @@ -1830,7 +1890,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 34, + "seq": 35, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/a.ts", @@ -1845,13 +1905,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 34, + "request_seq": 35, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 35, + "seq": 36, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/a.ts", @@ -1868,22 +1928,25 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 35, + "request_seq": 36, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts - version: Text-1 - containingProjects: 1 - /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.es5.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/workspaces/project/nope.ts version: Text-1 @@ -1912,7 +1975,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 36, + "seq": 37, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/a.ts", @@ -1927,13 +1990,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 36, + "request_seq": 37, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 37, + "seq": 38, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/a.ts", @@ -1950,22 +2013,25 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 37, + "request_seq": 38, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts - version: Text-1 - containingProjects: 1 - /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.es5.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/workspaces/project/nope.ts version: Text-1 @@ -1994,7 +2060,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 38, + "seq": 39, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/a.ts", @@ -2009,13 +2075,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 38, + "request_seq": 39, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 39, + "seq": 40, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/a.ts", @@ -2032,22 +2098,25 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 39, + "request_seq": 40, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts - version: Text-1 - containingProjects: 1 - /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.es5.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/workspaces/project/nope.ts version: Text-1 @@ -2076,7 +2145,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 40, + "seq": 41, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/a.ts", @@ -2091,13 +2160,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 40, + "request_seq": 41, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 41, + "seq": 42, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/a.ts", @@ -2114,22 +2183,25 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 41, + "request_seq": 42, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts - version: Text-1 - containingProjects: 1 - /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.es5.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/workspaces/project/nope.ts version: Text-1 @@ -2158,7 +2230,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 42, + "seq": 43, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/a.ts", @@ -2173,13 +2245,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 42, + "request_seq": 43, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 43, + "seq": 44, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/a.ts", @@ -2196,22 +2268,25 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 43, + "request_seq": 44, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts - version: Text-1 - containingProjects: 1 - /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.es5.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/workspaces/project/nope.ts version: Text-1 @@ -2240,7 +2315,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 44, + "seq": 45, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/a.ts", @@ -2255,13 +2330,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 44, + "request_seq": 45, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 45, + "seq": 46, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/a.ts", @@ -2278,22 +2353,25 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 45, + "request_seq": 46, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts - version: Text-1 - containingProjects: 1 - /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.es5.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/workspaces/project/nope.ts version: Text-1 @@ -2322,7 +2400,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 46, + "seq": 47, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/a.ts", @@ -2337,13 +2415,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 46, + "request_seq": 47, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 47, + "seq": 48, "type": "request", "arguments": { "preferences": {} @@ -2355,12 +2433,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 47, + "request_seq": 48, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 48, + "seq": 49, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/a.ts", @@ -2378,7 +2456,10 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspa Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/node_modules 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json projectStateVersion: 2 projectProgramVersion: 1 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) -Info seq [hh:mm:ss:mss] Files (5) +Info seq [hh:mm:ss:mss] Files (8) + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text + /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/nope.ts Text-1 "export const nope = 0;" /home/src/workspaces/project/src/a.ts SVC-2-22 "import { } from \"#component-subfolder/\";" /home/src/workspaces/project/src/components/blah.ts Text-1 "export const blah = 0;" @@ -2391,7 +2472,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "completionInfo", - "request_seq": 48, + "request_seq": 49, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -2413,14 +2494,21 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} -/home/src/tslibs/TS/Lib/lib.esnext.full.d.ts: +/home/src/tslibs/TS/Lib/lib.es5.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} +/home/src/tslibs/TS/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} +/home/src/tslibs/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} /home/src/workspaces/project/jsconfig.json: {"pollingInterval":2000} /home/src/workspaces/project/nope.ts: diff --git a/tests/baselines/reference/tsserver/fourslashServer/pathCompletionsPackageJsonImportsSrcNoDistWildcard4.js b/tests/baselines/reference/tsserver/fourslashServer/pathCompletionsPackageJsonImportsSrcNoDistWildcard4.js index 2d30bc322561e..7b02cbe0aa110 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/pathCompletionsPackageJsonImportsSrcNoDistWildcard4.js +++ b/tests/baselines/reference/tsserver/fourslashServer/pathCompletionsPackageJsonImportsSrcNoDistWildcard4.js @@ -1,16 +1,34 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "lib": [ + "es5" + ], + "module": "nodenext", + "rootDir": "/home/src/workspaces/project/src", + "outDir": "/home/src/workspaces/project/dist", + "target": "es5", + "newLine": "crlf", + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/home/src/workspaces/project/nope.ts] export const nope = 0; @@ -43,6 +61,7 @@ export const one = 0; //// [/home/src/workspaces/project/tsconfig.json] { "compilerOptions": { + "lib": ["es5"], "module": "nodenext", "rootDir": "src", "outDir": "dist" @@ -52,7 +71,7 @@ export const one = 0; Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/home/src/workspaces/project/tsconfig.json" @@ -72,6 +91,9 @@ Info seq [hh:mm:ss:mss] Config: /home/src/workspaces/project/tsconfig.json : { "/home/src/workspaces/project/src/subfolder/one.ts" ], "options": { + "lib": [ + "lib.es5.d.ts" + ], "module": 199, "rootDir": "/home/src/workspaces/project/src", "outDir": "/home/src/workspaces/project/dist", @@ -97,18 +119,26 @@ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/p Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/src/foo/onlyInFooFolder.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/src/subfolder/one.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/src/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/src/foo/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/src/subfolder/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.esnext.full.d.ts 500 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Missing file Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) -Info seq [hh:mm:ss:mss] Files (6) +Info seq [hh:mm:ss:mss] Files (9) + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text + /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/nope.ts Text-1 "export const nope = 0;" /home/src/workspaces/project/src/a.mts Text-1 "import { } from \"\";" /home/src/workspaces/project/src/blah.ts Text-1 "export const blah = 0;" @@ -117,6 +147,12 @@ Info seq [hh:mm:ss:mss] Files (6) /home/src/workspaces/project/src/subfolder/one.ts Text-1 "export const one = 0;" + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions + ../../tslibs/TS/Lib/lib.decorators.d.ts + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' + ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' nope.ts Matched by default include pattern '**/*' File is CommonJS module because 'package.json' does not have field "type" @@ -154,55 +190,10 @@ Info seq [hh:mm:ss:mss] event: "triggerFile": "/home/src/workspaces/project/tsconfig.json", "configFile": "/home/src/workspaces/project/tsconfig.json", "diagnostics": [ - { - "text": "File '/home/src/tslibs/TS/Lib/lib.esnext.full.d.ts' not found.\n The file is in the program because:\n Default library for target 'esnext'", - "code": 6053, - "category": "error" - }, { "text": "File '/home/src/workspaces/project/nope.ts' is not under 'rootDir' '/home/src/workspaces/project/src'. 'rootDir' is expected to contain all source files.\n The file is in the program because:\n Matched by default include pattern '**/*'\n File is CommonJS module because '/home/src/workspaces/project/package.json' does not have field \"type\"", "code": 6059, "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" } ] } @@ -211,9 +202,9 @@ Info seq [hh:mm:ss:mss] getConfigFileNameForFile:: File: /home/src/workspaces/p Info seq [hh:mm:ss:mss] Creating InferredProject: /dev/null/inferredProject1*, currentDirectory: /home/src/workspaces/project Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots @@ -221,25 +212,25 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text - /home/src/workspaces/project/tsconfig.json SVC-1-0 "{\n \"compilerOptions\": {\n \"module\": \"nodenext\",\n \"rootDir\": \"src\",\n \"outDir\": \"dist\"\n }\n}" + /home/src/workspaces/project/tsconfig.json SVC-1-0 "{\n \"compilerOptions\": {\n \"lib\": [\"es5\"],\n \"module\": \"nodenext\",\n \"rootDir\": \"src\",\n \"outDir\": \"dist\"\n }\n}" - ../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' tsconfig.json Root file specified for compilation Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/package.json 250 undefined WatchType: package.json file Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) -Info seq [hh:mm:ss:mss] Files (6) +Info seq [hh:mm:ss:mss] Files (9) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) @@ -254,7 +245,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -262,14 +253,21 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} -/home/src/tslibs/TS/Lib/lib.esnext.full.d.ts: *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/package.json: *new* + {"pollingInterval":2000} + {"pollingInterval":2000} +/home/src/tslibs/TS/package.json: *new* + {"pollingInterval":2000} + {"pollingInterval":2000} +/home/src/tslibs/package.json: *new* + {"pollingInterval":2000} + {"pollingInterval":2000} /home/src/workspaces/project/jsconfig.json: *new* {"pollingInterval":2000} /home/src/workspaces/project/nope.ts: *new* @@ -317,17 +315,20 @@ Projects:: noOpenRef: true ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* - version: Text-1 - containingProjects: 1 - /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/workspaces/project/nope.ts *new* version: Text-1 @@ -360,7 +361,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/a.mts" @@ -370,7 +371,7 @@ Info seq [hh:mm:ss:mss] request: Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /home/src/workspaces/project/src/a.mts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] getConfigFileNameForFile:: File: /home/src/workspaces/project/src/a.mts ProjectRootPath: undefined:: Result: /home/src/workspaces/project/tsconfig.json Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) -Info seq [hh:mm:ss:mss] Files (6) +Info seq [hh:mm:ss:mss] Files (9) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) @@ -387,19 +388,26 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 1, + "request_seq": 2, "success": true } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} -/home/src/tslibs/TS/Lib/lib.esnext.full.d.ts: +/home/src/tslibs/TS/Lib/lib.es5.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} +/home/src/tslibs/TS/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} +/home/src/tslibs/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} /home/src/workspaces/project/jsconfig.json: {"pollingInterval":2000} /home/src/workspaces/project/nope.ts: @@ -449,17 +457,20 @@ Projects:: noOpenRef: false *changed* ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts - version: Text-1 - containingProjects: 1 - /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.es5.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/workspaces/project/nope.ts version: Text-1 @@ -493,7 +504,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "preferences": {} @@ -505,12 +516,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 2, + "request_seq": 3, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 3, + "seq": 4, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/a.mts", @@ -524,7 +535,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "completionInfo", - "request_seq": 3, + "request_seq": 4, "success": true, "body": { "isGlobalCompletion": false, @@ -579,7 +590,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 4, + "seq": 5, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/a.mts", @@ -596,7 +607,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 4, + "request_seq": 5, "success": true } After Request @@ -611,17 +622,20 @@ Projects:: dirty: true *changed* ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts - version: Text-1 - containingProjects: 1 - /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.es5.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/workspaces/project/nope.ts version: Text-1 @@ -654,7 +668,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 5, + "seq": 6, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/a.mts", @@ -671,22 +685,25 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 5, + "request_seq": 6, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts - version: Text-1 - containingProjects: 1 - /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.es5.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/workspaces/project/nope.ts version: Text-1 @@ -719,7 +736,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 6, + "seq": 7, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/a.mts", @@ -734,13 +751,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 6, + "request_seq": 7, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 7, + "seq": 8, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/a.mts", @@ -757,22 +774,25 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 7, + "request_seq": 8, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts - version: Text-1 - containingProjects: 1 - /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.es5.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/workspaces/project/nope.ts version: Text-1 @@ -805,7 +825,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 8, + "seq": 9, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/a.mts", @@ -820,13 +840,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 8, + "request_seq": 9, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 9, + "seq": 10, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/a.mts", @@ -843,22 +863,25 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 9, + "request_seq": 10, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts - version: Text-1 - containingProjects: 1 - /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.es5.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/workspaces/project/nope.ts version: Text-1 @@ -891,7 +914,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 10, + "seq": 11, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/a.mts", @@ -906,13 +929,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 10, + "request_seq": 11, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 11, + "seq": 12, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/a.mts", @@ -929,22 +952,25 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 11, + "request_seq": 12, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts - version: Text-1 - containingProjects: 1 - /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.es5.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/workspaces/project/nope.ts version: Text-1 @@ -977,7 +1003,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 12, + "seq": 13, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/a.mts", @@ -992,13 +1018,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 12, + "request_seq": 13, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 13, + "seq": 14, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/a.mts", @@ -1015,22 +1041,25 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 13, + "request_seq": 14, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts - version: Text-1 - containingProjects: 1 - /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.es5.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/workspaces/project/nope.ts version: Text-1 @@ -1063,7 +1092,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 14, + "seq": 15, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/a.mts", @@ -1078,13 +1107,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 14, + "request_seq": 15, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 15, + "seq": 16, "type": "request", "arguments": { "preferences": {} @@ -1096,12 +1125,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 15, + "request_seq": 16, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 16, + "seq": 17, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/a.mts", @@ -1119,7 +1148,10 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspa Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/node_modules 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json projectStateVersion: 2 projectProgramVersion: 1 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) -Info seq [hh:mm:ss:mss] Files (6) +Info seq [hh:mm:ss:mss] Files (9) + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text + /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/nope.ts Text-1 "export const nope = 0;" /home/src/workspaces/project/src/a.mts SVC-2-6 "import { } from \"#foo/\";" /home/src/workspaces/project/src/blah.ts Text-1 "export const blah = 0;" @@ -1133,7 +1165,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "completionInfo", - "request_seq": 16, + "request_seq": 17, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -1179,14 +1211,21 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} -/home/src/tslibs/TS/Lib/lib.esnext.full.d.ts: +/home/src/tslibs/TS/Lib/lib.es5.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} +/home/src/tslibs/TS/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} +/home/src/tslibs/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} /home/src/workspaces/project/jsconfig.json: {"pollingInterval":2000} /home/src/workspaces/project/nope.ts: @@ -1239,7 +1278,7 @@ Projects:: Info seq [hh:mm:ss:mss] request: { - "seq": 17, + "seq": 18, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/a.mts", @@ -1256,7 +1295,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 17, + "request_seq": 18, "success": true } After Request @@ -1271,17 +1310,20 @@ Projects:: dirty: true *changed* ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts - version: Text-1 - containingProjects: 1 - /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.es5.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/workspaces/project/nope.ts version: Text-1 @@ -1314,7 +1356,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 18, + "seq": 19, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/a.mts", @@ -1331,22 +1373,25 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 18, + "request_seq": 19, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts - version: Text-1 - containingProjects: 1 - /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.es5.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/workspaces/project/nope.ts version: Text-1 @@ -1379,7 +1424,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 19, + "seq": 20, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/a.mts", @@ -1394,13 +1439,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 19, + "request_seq": 20, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 20, + "seq": 21, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/a.mts", @@ -1417,22 +1462,25 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 20, + "request_seq": 21, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts - version: Text-1 - containingProjects: 1 - /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.es5.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/workspaces/project/nope.ts version: Text-1 @@ -1465,7 +1513,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 21, + "seq": 22, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/a.mts", @@ -1480,13 +1528,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 21, + "request_seq": 22, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 22, + "seq": 23, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/a.mts", @@ -1503,22 +1551,25 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 22, + "request_seq": 23, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts - version: Text-1 - containingProjects: 1 - /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.es5.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/workspaces/project/nope.ts version: Text-1 @@ -1551,7 +1602,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 23, + "seq": 24, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/a.mts", @@ -1566,13 +1617,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 23, + "request_seq": 24, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 24, + "seq": 25, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/a.mts", @@ -1589,22 +1640,25 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 24, + "request_seq": 25, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts - version: Text-1 - containingProjects: 1 - /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.es5.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/workspaces/project/nope.ts version: Text-1 @@ -1637,7 +1691,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 25, + "seq": 26, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/a.mts", @@ -1652,13 +1706,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 25, + "request_seq": 26, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 26, + "seq": 27, "type": "request", "arguments": { "preferences": {} @@ -1670,12 +1724,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 26, + "request_seq": 27, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 27, + "seq": 28, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/a.mts", @@ -1687,7 +1741,10 @@ Info seq [hh:mm:ss:mss] request: Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json projectStateVersion: 3 projectProgramVersion: 2 structureChanged: true structureIsReused:: SafeModules Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) -Info seq [hh:mm:ss:mss] Files (6) +Info seq [hh:mm:ss:mss] Files (9) + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text + /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/nope.ts Text-1 "export const nope = 0;" /home/src/workspaces/project/src/a.mts SVC-2-11 "import { } from \"#foo/foo/\";" /home/src/workspaces/project/src/blah.ts Text-1 "export const blah = 0;" @@ -1701,7 +1758,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "completionInfo", - "request_seq": 27, + "request_seq": 28, "success": true, "performanceData": { "updateGraphDurationMs": * diff --git a/tests/baselines/reference/tsserver/fourslashServer/pathCompletionsPackageJsonImportsSrcNoDistWildcard5.js b/tests/baselines/reference/tsserver/fourslashServer/pathCompletionsPackageJsonImportsSrcNoDistWildcard5.js index 3f998d706aa26..8e4a2f7c11596 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/pathCompletionsPackageJsonImportsSrcNoDistWildcard5.js +++ b/tests/baselines/reference/tsserver/fourslashServer/pathCompletionsPackageJsonImportsSrcNoDistWildcard5.js @@ -1,16 +1,35 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "lib": [ + "es5" + ], + "module": "nodenext", + "rootDir": "/home/src/workspaces/project/src", + "outDir": "/home/src/workspaces/project/dist/esm", + "declarationDir": "/home/src/workspaces/project/dist/types", + "target": "es5", + "newLine": "crlf", + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/home/src/workspaces/project/package.json] { "name": "foo", @@ -55,6 +74,7 @@ export const onlyInCjs = 0; //// [/home/src/workspaces/project/tsconfig.json] { "compilerOptions": { + "lib": ["es5"], "module": "nodenext", "rootDir": "src", "outDir": "dist/esm", @@ -65,7 +85,7 @@ export const onlyInCjs = 0; Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/home/src/workspaces/project/tsconfig.json" @@ -84,6 +104,9 @@ Info seq [hh:mm:ss:mss] Config: /home/src/workspaces/project/tsconfig.json : { "/home/src/workspaces/project/src/only-in-cjs/index.ts" ], "options": { + "lib": [ + "lib.es5.d.ts" + ], "module": 199, "rootDir": "/home/src/workspaces/project/src", "outDir": "/home/src/workspaces/project/dist/esm", @@ -109,17 +132,25 @@ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/p Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/src/index.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/src/only-in-cjs/index.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/src/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/src/only-in-cjs/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.esnext.full.d.ts 500 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Missing file Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) -Info seq [hh:mm:ss:mss] Files (5) +Info seq [hh:mm:ss:mss] Files (8) + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text + /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/src/blah.mts Text-1 "export const blah = 0;" /home/src/workspaces/project/src/blah.ts Text-1 "export const blah = 0;" /home/src/workspaces/project/src/index.mts Text-1 "import { } from \"\";" @@ -127,6 +158,12 @@ Info seq [hh:mm:ss:mss] Files (5) /home/src/workspaces/project/src/only-in-cjs/index.ts Text-1 "export const onlyInCjs = 0;" + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions + ../../tslibs/TS/Lib/lib.decorators.d.ts + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' + ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' src/blah.mts Matched by default include pattern '**/*' src/blah.ts @@ -160,64 +197,19 @@ Info seq [hh:mm:ss:mss] event: "triggerFile": "/home/src/workspaces/project/tsconfig.json", "configFile": "/home/src/workspaces/project/tsconfig.json", "diagnostics": [ - { - "text": "File '/home/src/tslibs/TS/Lib/lib.esnext.full.d.ts' not found.\n The file is in the program because:\n Default library for target 'esnext'", - "code": 6053, - "category": "error" - }, { "start": { - "line": 6, + "line": 7, "offset": 5 }, "end": { - "line": 6, + "line": 7, "offset": 21 }, "text": "Option 'declarationDir' cannot be specified without specifying option 'declaration' or option 'composite'.", "code": 5069, "category": "error", "fileName": "/home/src/workspaces/project/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" } ] } @@ -226,9 +218,9 @@ Info seq [hh:mm:ss:mss] getConfigFileNameForFile:: File: /home/src/workspaces/p Info seq [hh:mm:ss:mss] Creating InferredProject: /dev/null/inferredProject1*, currentDirectory: /home/src/workspaces/project Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots @@ -236,25 +228,25 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text - /home/src/workspaces/project/tsconfig.json SVC-1-0 "{\n \"compilerOptions\": {\n \"module\": \"nodenext\",\n \"rootDir\": \"src\",\n \"outDir\": \"dist/esm\",\n \"declarationDir\": \"dist/types\"\n }\n}" + /home/src/workspaces/project/tsconfig.json SVC-1-0 "{\n \"compilerOptions\": {\n \"lib\": [\"es5\"],\n \"module\": \"nodenext\",\n \"rootDir\": \"src\",\n \"outDir\": \"dist/esm\",\n \"declarationDir\": \"dist/types\"\n }\n}" - ../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' tsconfig.json Root file specified for compilation Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/package.json 250 undefined WatchType: package.json file Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) -Info seq [hh:mm:ss:mss] Files (5) +Info seq [hh:mm:ss:mss] Files (8) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) @@ -269,7 +261,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -277,14 +269,21 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} -/home/src/tslibs/TS/Lib/lib.esnext.full.d.ts: *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/package.json: *new* + {"pollingInterval":2000} + {"pollingInterval":2000} +/home/src/tslibs/TS/package.json: *new* + {"pollingInterval":2000} + {"pollingInterval":2000} +/home/src/tslibs/package.json: *new* + {"pollingInterval":2000} + {"pollingInterval":2000} /home/src/workspaces/project/jsconfig.json: *new* {"pollingInterval":2000} /home/src/workspaces/project/package.json: *new* @@ -328,17 +327,20 @@ Projects:: noOpenRef: true ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* - version: Text-1 - containingProjects: 1 - /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/workspaces/project/src/blah.mts *new* version: Text-1 @@ -367,7 +369,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/index.mts" @@ -377,7 +379,7 @@ Info seq [hh:mm:ss:mss] request: Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /home/src/workspaces/project/src/index.mts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] getConfigFileNameForFile:: File: /home/src/workspaces/project/src/index.mts ProjectRootPath: undefined:: Result: /home/src/workspaces/project/tsconfig.json Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) -Info seq [hh:mm:ss:mss] Files (5) +Info seq [hh:mm:ss:mss] Files (8) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) @@ -394,19 +396,26 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 1, + "request_seq": 2, "success": true } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} -/home/src/tslibs/TS/Lib/lib.esnext.full.d.ts: +/home/src/tslibs/TS/Lib/lib.es5.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} +/home/src/tslibs/TS/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} +/home/src/tslibs/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} /home/src/workspaces/project/jsconfig.json: {"pollingInterval":2000} /home/src/workspaces/project/package.json: @@ -452,17 +461,20 @@ Projects:: noOpenRef: false *changed* ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts - version: Text-1 - containingProjects: 1 - /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.es5.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/workspaces/project/src/blah.mts version: Text-1 @@ -492,7 +504,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "preferences": {} @@ -504,12 +516,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 2, + "request_seq": 3, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 3, + "seq": 4, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/index.mts", @@ -523,7 +535,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "completionInfo", - "request_seq": 3, + "request_seq": 4, "success": true, "body": { "isGlobalCompletion": false, diff --git a/tests/baselines/reference/tsserver/fourslashServer/pathCompletionsPackageJsonImportsSrcNoDistWildcard6.js b/tests/baselines/reference/tsserver/fourslashServer/pathCompletionsPackageJsonImportsSrcNoDistWildcard6.js index 0ff27652de5f6..6fc7364c48bbc 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/pathCompletionsPackageJsonImportsSrcNoDistWildcard6.js +++ b/tests/baselines/reference/tsserver/fourslashServer/pathCompletionsPackageJsonImportsSrcNoDistWildcard6.js @@ -1,16 +1,34 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "lib": [ + "es5" + ], + "module": "nodenext", + "rootDir": "/home/src/workspaces/project/src", + "outDir": "/home/src/workspaces/project/dist", + "target": "es5", + "newLine": "crlf", + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/home/src/workspaces/project/package.json] { "name": "foo", @@ -34,6 +52,7 @@ import { } from ""; //// [/home/src/workspaces/project/tsconfig.json] { "compilerOptions": { + "lib": ["es5"], "module": "nodenext", "rootDir": "src", "outDir": "dist" @@ -43,7 +62,7 @@ import { } from ""; Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/home/src/workspaces/project/tsconfig.json" @@ -60,6 +79,9 @@ Info seq [hh:mm:ss:mss] Config: /home/src/workspaces/project/tsconfig.json : { "/home/src/workspaces/project/src/m.mts" ], "options": { + "lib": [ + "lib.es5.d.ts" + ], "module": 199, "rootDir": "/home/src/workspaces/project/src", "outDir": "/home/src/workspaces/project/dist", @@ -82,21 +104,35 @@ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/p Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/src/index.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/src/m.mts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/src/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.esnext.full.d.ts 500 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Missing file Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) -Info seq [hh:mm:ss:mss] Files (3) +Info seq [hh:mm:ss:mss] Files (6) + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text + /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/src/blah?.ts Text-1 "export const blah = 0;" /home/src/workspaces/project/src/index.ts Text-1 "export const index = 0;" /home/src/workspaces/project/src/m.mts Text-1 "import { } from \"\";" + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions + ../../tslibs/TS/Lib/lib.decorators.d.ts + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' + ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' src/blah?.ts Matched by default include pattern '**/*' File is CommonJS module because 'package.json' does not have field "type" @@ -124,62 +160,16 @@ Info seq [hh:mm:ss:mss] event: "body": { "triggerFile": "/home/src/workspaces/project/tsconfig.json", "configFile": "/home/src/workspaces/project/tsconfig.json", - "diagnostics": [ - { - "text": "File '/home/src/tslibs/TS/Lib/lib.esnext.full.d.ts' not found.\n The file is in the program because:\n Default library for target 'esnext'", - "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" - } - ] + "diagnostics": [] } } Info seq [hh:mm:ss:mss] getConfigFileNameForFile:: File: /home/src/workspaces/project/tsconfig.json ProjectRootPath: undefined:: Result: undefined Info seq [hh:mm:ss:mss] Creating InferredProject: /dev/null/inferredProject1*, currentDirectory: /home/src/workspaces/project Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots @@ -187,25 +177,25 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text - /home/src/workspaces/project/tsconfig.json SVC-1-0 "{\n \"compilerOptions\": {\n \"module\": \"nodenext\",\n \"rootDir\": \"src\",\n \"outDir\": \"dist\"\n }\n}" + /home/src/workspaces/project/tsconfig.json SVC-1-0 "{\n \"compilerOptions\": {\n \"lib\": [\"es5\"],\n \"module\": \"nodenext\",\n \"rootDir\": \"src\",\n \"outDir\": \"dist\"\n }\n}" - ../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' tsconfig.json Root file specified for compilation Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/package.json 250 undefined WatchType: package.json file Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) -Info seq [hh:mm:ss:mss] Files (3) +Info seq [hh:mm:ss:mss] Files (6) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) @@ -220,7 +210,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -228,14 +218,21 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} -/home/src/tslibs/TS/Lib/lib.esnext.full.d.ts: *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/package.json: *new* + {"pollingInterval":2000} + {"pollingInterval":2000} +/home/src/tslibs/TS/package.json: *new* + {"pollingInterval":2000} + {"pollingInterval":2000} +/home/src/tslibs/package.json: *new* + {"pollingInterval":2000} + {"pollingInterval":2000} /home/src/workspaces/project/jsconfig.json: *new* {"pollingInterval":2000} /home/src/workspaces/project/package.json: *new* @@ -273,17 +270,20 @@ Projects:: noOpenRef: true ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* - version: Text-1 - containingProjects: 1 - /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/workspaces/project/src/blah?.ts *new* version: Text-1 @@ -304,7 +304,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/m.mts" @@ -314,7 +314,7 @@ Info seq [hh:mm:ss:mss] request: Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /home/src/workspaces/project/src/m.mts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] getConfigFileNameForFile:: File: /home/src/workspaces/project/src/m.mts ProjectRootPath: undefined:: Result: /home/src/workspaces/project/tsconfig.json Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) -Info seq [hh:mm:ss:mss] Files (3) +Info seq [hh:mm:ss:mss] Files (6) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) @@ -331,19 +331,26 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 1, + "request_seq": 2, "success": true } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} -/home/src/tslibs/TS/Lib/lib.esnext.full.d.ts: +/home/src/tslibs/TS/Lib/lib.es5.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} +/home/src/tslibs/TS/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} +/home/src/tslibs/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} /home/src/workspaces/project/jsconfig.json: {"pollingInterval":2000} /home/src/workspaces/project/package.json: @@ -383,17 +390,20 @@ Projects:: noOpenRef: false *changed* ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts - version: Text-1 - containingProjects: 1 - /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.es5.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/workspaces/project/src/blah?.ts version: Text-1 @@ -415,7 +425,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "preferences": {} @@ -427,12 +437,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 2, + "request_seq": 3, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 3, + "seq": 4, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/m.mts", @@ -446,7 +456,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "completionInfo", - "request_seq": 3, + "request_seq": 4, "success": true, "body": { "isGlobalCompletion": false, diff --git a/tests/baselines/reference/tsserver/fourslashServer/pathCompletionsPackageJsonImportsSrcNoDistWildcard7.js b/tests/baselines/reference/tsserver/fourslashServer/pathCompletionsPackageJsonImportsSrcNoDistWildcard7.js index c33d266816c75..68aea684fda12 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/pathCompletionsPackageJsonImportsSrcNoDistWildcard7.js +++ b/tests/baselines/reference/tsserver/fourslashServer/pathCompletionsPackageJsonImportsSrcNoDistWildcard7.js @@ -1,16 +1,34 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "lib": [ + "es5" + ], + "module": "nodenext", + "rootDir": "/home/src/workspaces/project/src", + "outDir": "/home/src/workspaces/project/dist", + "target": "es5", + "newLine": "crlf", + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/home/src/workspaces/project/package.json] { "name": "foo", @@ -28,6 +46,7 @@ import { } from ""; //// [/home/src/workspaces/project/tsconfig.json] { "compilerOptions": { + "lib": ["es5"], "module": "nodenext", "rootDir": "src", "outDir": "dist" @@ -37,7 +56,7 @@ import { } from ""; Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/home/src/workspaces/project/tsconfig.json" @@ -53,6 +72,9 @@ Info seq [hh:mm:ss:mss] Config: /home/src/workspaces/project/tsconfig.json : { "/home/src/workspaces/project/src/index.mts" ], "options": { + "lib": [ + "lib.es5.d.ts" + ], "module": 199, "rootDir": "/home/src/workspaces/project/src", "outDir": "/home/src/workspaces/project/dist", @@ -74,20 +96,34 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/src/blah.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/src/index.mts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/src/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.esnext.full.d.ts 500 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Missing file Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) -Info seq [hh:mm:ss:mss] Files (2) +Info seq [hh:mm:ss:mss] Files (5) + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text + /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/src/blah.ts Text-1 "export const blah = 0;" /home/src/workspaces/project/src/index.mts Text-1 "import { } from \"\";" + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions + ../../tslibs/TS/Lib/lib.decorators.d.ts + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' + ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' src/blah.ts Matched by default include pattern '**/*' File is CommonJS module because 'package.json' does not have field "type" @@ -112,62 +148,16 @@ Info seq [hh:mm:ss:mss] event: "body": { "triggerFile": "/home/src/workspaces/project/tsconfig.json", "configFile": "/home/src/workspaces/project/tsconfig.json", - "diagnostics": [ - { - "text": "File '/home/src/tslibs/TS/Lib/lib.esnext.full.d.ts' not found.\n The file is in the program because:\n Default library for target 'esnext'", - "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" - } - ] + "diagnostics": [] } } Info seq [hh:mm:ss:mss] getConfigFileNameForFile:: File: /home/src/workspaces/project/tsconfig.json ProjectRootPath: undefined:: Result: undefined Info seq [hh:mm:ss:mss] Creating InferredProject: /dev/null/inferredProject1*, currentDirectory: /home/src/workspaces/project Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots @@ -175,25 +165,25 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text - /home/src/workspaces/project/tsconfig.json SVC-1-0 "{\n \"compilerOptions\": {\n \"module\": \"nodenext\",\n \"rootDir\": \"src\",\n \"outDir\": \"dist\"\n }\n}" + /home/src/workspaces/project/tsconfig.json SVC-1-0 "{\n \"compilerOptions\": {\n \"lib\": [\"es5\"],\n \"module\": \"nodenext\",\n \"rootDir\": \"src\",\n \"outDir\": \"dist\"\n }\n}" - ../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' tsconfig.json Root file specified for compilation Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/package.json 250 undefined WatchType: package.json file Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) -Info seq [hh:mm:ss:mss] Files (2) +Info seq [hh:mm:ss:mss] Files (5) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) @@ -208,7 +198,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -216,14 +206,21 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} -/home/src/tslibs/TS/Lib/lib.esnext.full.d.ts: *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/package.json: *new* + {"pollingInterval":2000} + {"pollingInterval":2000} +/home/src/tslibs/TS/package.json: *new* + {"pollingInterval":2000} + {"pollingInterval":2000} +/home/src/tslibs/package.json: *new* + {"pollingInterval":2000} + {"pollingInterval":2000} /home/src/workspaces/project/jsconfig.json: *new* {"pollingInterval":2000} /home/src/workspaces/project/package.json: *new* @@ -259,17 +256,20 @@ Projects:: noOpenRef: true ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* - version: Text-1 - containingProjects: 1 - /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/workspaces/project/src/blah.ts *new* version: Text-1 @@ -286,7 +286,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/index.mts" @@ -296,7 +296,7 @@ Info seq [hh:mm:ss:mss] request: Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /home/src/workspaces/project/src/index.mts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] getConfigFileNameForFile:: File: /home/src/workspaces/project/src/index.mts ProjectRootPath: undefined:: Result: /home/src/workspaces/project/tsconfig.json Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) -Info seq [hh:mm:ss:mss] Files (2) +Info seq [hh:mm:ss:mss] Files (5) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) @@ -313,19 +313,26 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 1, + "request_seq": 2, "success": true } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} -/home/src/tslibs/TS/Lib/lib.esnext.full.d.ts: +/home/src/tslibs/TS/Lib/lib.es5.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} +/home/src/tslibs/TS/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} +/home/src/tslibs/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} /home/src/workspaces/project/jsconfig.json: {"pollingInterval":2000} /home/src/workspaces/project/package.json: @@ -363,17 +370,20 @@ Projects:: noOpenRef: false *changed* ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts - version: Text-1 - containingProjects: 1 - /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.es5.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/workspaces/project/src/blah.ts version: Text-1 @@ -391,7 +401,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "preferences": {} @@ -403,12 +413,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 2, + "request_seq": 3, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 3, + "seq": 4, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/index.mts", @@ -422,7 +432,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "completionInfo", - "request_seq": 3, + "request_seq": 4, "success": true, "body": { "isGlobalCompletion": false, diff --git a/tests/baselines/reference/tsserver/fourslashServer/pathCompletionsPackageJsonImportsSrcNoDistWildcard8.js b/tests/baselines/reference/tsserver/fourslashServer/pathCompletionsPackageJsonImportsSrcNoDistWildcard8.js index c33d266816c75..68aea684fda12 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/pathCompletionsPackageJsonImportsSrcNoDistWildcard8.js +++ b/tests/baselines/reference/tsserver/fourslashServer/pathCompletionsPackageJsonImportsSrcNoDistWildcard8.js @@ -1,16 +1,34 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "lib": [ + "es5" + ], + "module": "nodenext", + "rootDir": "/home/src/workspaces/project/src", + "outDir": "/home/src/workspaces/project/dist", + "target": "es5", + "newLine": "crlf", + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/home/src/workspaces/project/package.json] { "name": "foo", @@ -28,6 +46,7 @@ import { } from ""; //// [/home/src/workspaces/project/tsconfig.json] { "compilerOptions": { + "lib": ["es5"], "module": "nodenext", "rootDir": "src", "outDir": "dist" @@ -37,7 +56,7 @@ import { } from ""; Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/home/src/workspaces/project/tsconfig.json" @@ -53,6 +72,9 @@ Info seq [hh:mm:ss:mss] Config: /home/src/workspaces/project/tsconfig.json : { "/home/src/workspaces/project/src/index.mts" ], "options": { + "lib": [ + "lib.es5.d.ts" + ], "module": 199, "rootDir": "/home/src/workspaces/project/src", "outDir": "/home/src/workspaces/project/dist", @@ -74,20 +96,34 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/src/blah.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/src/index.mts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/src/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.esnext.full.d.ts 500 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Missing file Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) -Info seq [hh:mm:ss:mss] Files (2) +Info seq [hh:mm:ss:mss] Files (5) + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text + /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/src/blah.ts Text-1 "export const blah = 0;" /home/src/workspaces/project/src/index.mts Text-1 "import { } from \"\";" + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions + ../../tslibs/TS/Lib/lib.decorators.d.ts + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' + ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' src/blah.ts Matched by default include pattern '**/*' File is CommonJS module because 'package.json' does not have field "type" @@ -112,62 +148,16 @@ Info seq [hh:mm:ss:mss] event: "body": { "triggerFile": "/home/src/workspaces/project/tsconfig.json", "configFile": "/home/src/workspaces/project/tsconfig.json", - "diagnostics": [ - { - "text": "File '/home/src/tslibs/TS/Lib/lib.esnext.full.d.ts' not found.\n The file is in the program because:\n Default library for target 'esnext'", - "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" - } - ] + "diagnostics": [] } } Info seq [hh:mm:ss:mss] getConfigFileNameForFile:: File: /home/src/workspaces/project/tsconfig.json ProjectRootPath: undefined:: Result: undefined Info seq [hh:mm:ss:mss] Creating InferredProject: /dev/null/inferredProject1*, currentDirectory: /home/src/workspaces/project Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots @@ -175,25 +165,25 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text - /home/src/workspaces/project/tsconfig.json SVC-1-0 "{\n \"compilerOptions\": {\n \"module\": \"nodenext\",\n \"rootDir\": \"src\",\n \"outDir\": \"dist\"\n }\n}" + /home/src/workspaces/project/tsconfig.json SVC-1-0 "{\n \"compilerOptions\": {\n \"lib\": [\"es5\"],\n \"module\": \"nodenext\",\n \"rootDir\": \"src\",\n \"outDir\": \"dist\"\n }\n}" - ../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' tsconfig.json Root file specified for compilation Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/package.json 250 undefined WatchType: package.json file Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) -Info seq [hh:mm:ss:mss] Files (2) +Info seq [hh:mm:ss:mss] Files (5) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) @@ -208,7 +198,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -216,14 +206,21 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} -/home/src/tslibs/TS/Lib/lib.esnext.full.d.ts: *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/package.json: *new* + {"pollingInterval":2000} + {"pollingInterval":2000} +/home/src/tslibs/TS/package.json: *new* + {"pollingInterval":2000} + {"pollingInterval":2000} +/home/src/tslibs/package.json: *new* + {"pollingInterval":2000} + {"pollingInterval":2000} /home/src/workspaces/project/jsconfig.json: *new* {"pollingInterval":2000} /home/src/workspaces/project/package.json: *new* @@ -259,17 +256,20 @@ Projects:: noOpenRef: true ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* - version: Text-1 - containingProjects: 1 - /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/workspaces/project/src/blah.ts *new* version: Text-1 @@ -286,7 +286,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/index.mts" @@ -296,7 +296,7 @@ Info seq [hh:mm:ss:mss] request: Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /home/src/workspaces/project/src/index.mts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] getConfigFileNameForFile:: File: /home/src/workspaces/project/src/index.mts ProjectRootPath: undefined:: Result: /home/src/workspaces/project/tsconfig.json Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) -Info seq [hh:mm:ss:mss] Files (2) +Info seq [hh:mm:ss:mss] Files (5) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) @@ -313,19 +313,26 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 1, + "request_seq": 2, "success": true } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} -/home/src/tslibs/TS/Lib/lib.esnext.full.d.ts: +/home/src/tslibs/TS/Lib/lib.es5.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} +/home/src/tslibs/TS/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} +/home/src/tslibs/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} /home/src/workspaces/project/jsconfig.json: {"pollingInterval":2000} /home/src/workspaces/project/package.json: @@ -363,17 +370,20 @@ Projects:: noOpenRef: false *changed* ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts - version: Text-1 - containingProjects: 1 - /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.es5.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/workspaces/project/src/blah.ts version: Text-1 @@ -391,7 +401,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "preferences": {} @@ -403,12 +413,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 2, + "request_seq": 3, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 3, + "seq": 4, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/index.mts", @@ -422,7 +432,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "completionInfo", - "request_seq": 3, + "request_seq": 4, "success": true, "body": { "isGlobalCompletion": false, diff --git a/tests/baselines/reference/tsserver/fourslashServer/pathCompletionsPackageJsonImportsSrcNoDistWildcard9.js b/tests/baselines/reference/tsserver/fourslashServer/pathCompletionsPackageJsonImportsSrcNoDistWildcard9.js index 805cc35df12c6..3d55cf7c1a658 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/pathCompletionsPackageJsonImportsSrcNoDistWildcard9.js +++ b/tests/baselines/reference/tsserver/fourslashServer/pathCompletionsPackageJsonImportsSrcNoDistWildcard9.js @@ -1,16 +1,35 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "lib": [ + "es5" + ], + "module": "nodenext", + "rootDir": "/home/src/workspaces/project/src", + "outDir": "/home/src/workspaces/project/dist", + "allowJs": true, + "target": "es5", + "newLine": "crlf", + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/home/src/workspaces/project/package.json] { "name": "foo", @@ -28,6 +47,7 @@ import { } from ""; //// [/home/src/workspaces/project/tsconfig.json] { "compilerOptions": { + "lib": ["es5"], "module": "nodenext", "rootDir": "src", "outDir": "dist", @@ -38,7 +58,7 @@ import { } from ""; Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/home/src/workspaces/project/tsconfig.json" @@ -54,6 +74,9 @@ Info seq [hh:mm:ss:mss] Config: /home/src/workspaces/project/tsconfig.json : { "/home/src/workspaces/project/src/index.mts" ], "options": { + "lib": [ + "lib.es5.d.ts" + ], "module": 199, "rootDir": "/home/src/workspaces/project/src", "outDir": "/home/src/workspaces/project/dist", @@ -76,20 +99,34 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/src/blah.js 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/src/index.mts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/src/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.esnext.full.d.ts 500 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Missing file Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) -Info seq [hh:mm:ss:mss] Files (2) +Info seq [hh:mm:ss:mss] Files (5) + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text + /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/src/blah.js Text-1 "export const blah = 0;" /home/src/workspaces/project/src/index.mts Text-1 "import { } from \"\";" + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions + ../../tslibs/TS/Lib/lib.decorators.d.ts + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' + ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' src/blah.js Matched by default include pattern '**/*' File is CommonJS module because 'package.json' does not have field "type" @@ -114,62 +151,16 @@ Info seq [hh:mm:ss:mss] event: "body": { "triggerFile": "/home/src/workspaces/project/tsconfig.json", "configFile": "/home/src/workspaces/project/tsconfig.json", - "diagnostics": [ - { - "text": "File '/home/src/tslibs/TS/Lib/lib.esnext.full.d.ts' not found.\n The file is in the program because:\n Default library for target 'esnext'", - "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" - } - ] + "diagnostics": [] } } Info seq [hh:mm:ss:mss] getConfigFileNameForFile:: File: /home/src/workspaces/project/tsconfig.json ProjectRootPath: undefined:: Result: undefined Info seq [hh:mm:ss:mss] Creating InferredProject: /dev/null/inferredProject1*, currentDirectory: /home/src/workspaces/project Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots @@ -177,25 +168,25 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text - /home/src/workspaces/project/tsconfig.json SVC-1-0 "{\n \"compilerOptions\": {\n \"module\": \"nodenext\",\n \"rootDir\": \"src\",\n \"outDir\": \"dist\",\n \"allowJs\": true\n }\n}" + /home/src/workspaces/project/tsconfig.json SVC-1-0 "{\n \"compilerOptions\": {\n \"lib\": [\"es5\"],\n \"module\": \"nodenext\",\n \"rootDir\": \"src\",\n \"outDir\": \"dist\",\n \"allowJs\": true\n }\n}" - ../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' tsconfig.json Root file specified for compilation Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/package.json 250 undefined WatchType: package.json file Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) -Info seq [hh:mm:ss:mss] Files (2) +Info seq [hh:mm:ss:mss] Files (5) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) @@ -210,7 +201,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -218,14 +209,21 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} -/home/src/tslibs/TS/Lib/lib.esnext.full.d.ts: *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/package.json: *new* + {"pollingInterval":2000} + {"pollingInterval":2000} +/home/src/tslibs/TS/package.json: *new* + {"pollingInterval":2000} + {"pollingInterval":2000} +/home/src/tslibs/package.json: *new* + {"pollingInterval":2000} + {"pollingInterval":2000} /home/src/workspaces/project/jsconfig.json: *new* {"pollingInterval":2000} /home/src/workspaces/project/package.json: *new* @@ -261,17 +259,20 @@ Projects:: noOpenRef: true ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* - version: Text-1 - containingProjects: 1 - /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/workspaces/project/src/blah.js *new* version: Text-1 @@ -288,7 +289,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/index.mts" @@ -298,7 +299,7 @@ Info seq [hh:mm:ss:mss] request: Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /home/src/workspaces/project/src/index.mts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] getConfigFileNameForFile:: File: /home/src/workspaces/project/src/index.mts ProjectRootPath: undefined:: Result: /home/src/workspaces/project/tsconfig.json Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) -Info seq [hh:mm:ss:mss] Files (2) +Info seq [hh:mm:ss:mss] Files (5) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) @@ -315,19 +316,26 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 1, + "request_seq": 2, "success": true } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} -/home/src/tslibs/TS/Lib/lib.esnext.full.d.ts: +/home/src/tslibs/TS/Lib/lib.es5.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} +/home/src/tslibs/TS/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} +/home/src/tslibs/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} /home/src/workspaces/project/jsconfig.json: {"pollingInterval":2000} /home/src/workspaces/project/package.json: @@ -365,17 +373,20 @@ Projects:: noOpenRef: false *changed* ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts - version: Text-1 - containingProjects: 1 - /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.es5.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/workspaces/project/src/blah.js version: Text-1 @@ -393,7 +404,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "preferences": {} @@ -405,12 +416,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 2, + "request_seq": 3, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 3, + "seq": 4, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/index.mts", @@ -424,7 +435,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "completionInfo", - "request_seq": 3, + "request_seq": 4, "success": true, "body": { "isGlobalCompletion": false, diff --git a/tests/baselines/reference/tsserver/fourslashServer/projectInfo01.js b/tests/baselines/reference/tsserver/fourslashServer/projectInfo01.js index c5fc5fac75cd5..0c45a4c544d28 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/projectInfo01.js +++ b/tests/baselines/reference/tsserver/fourslashServer/projectInfo01.js @@ -1,16 +1,31 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "target": "es5", + "newLine": "crlf", + "lib": [ + "es5" + ], + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/tests/cases/fourslash/server/a.ts] export var test = "test String" @@ -27,7 +42,7 @@ console.log("nothing"); Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/a.ts" @@ -39,7 +54,7 @@ Info seq [hh:mm:ss:mss] Creating InferredProject: /dev/null/inferredProject1*, Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots @@ -49,18 +64,18 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /te Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /tests/cases/fourslash/server/a.ts SVC-1-0 "export var test = \"test String\"" - ../../../../home/src/tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../../../home/src/tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../../../home/src/tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' ../../../../home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../../../home/src/tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' a.ts Root file specified for compilation @@ -77,7 +92,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -85,12 +100,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* + {"pollingInterval":500} /tests/cases/fourslash/server/jsconfig.json: *new* {"pollingInterval":2000} /tests/cases/fourslash/server/tsconfig.json: *new* @@ -109,15 +124,15 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* @@ -128,7 +143,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/a.ts" @@ -147,12 +162,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 1, + "request_seq": 2, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/a.ts", @@ -165,13 +180,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "projectInfo", - "request_seq": 2, + "request_seq": 3, "success": true, "body": { "configFileName": "/dev/null/inferredProject1*", "languageServiceDisabled": false, "fileNames": [ - "/home/src/tslibs/TS/Lib/lib.d.ts", + "/home/src/tslibs/TS/Lib/lib.es5.d.ts", "/home/src/tslibs/TS/Lib/lib.decorators.d.ts", "/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts", "/tests/cases/fourslash/server/a.ts" @@ -180,7 +195,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 3, + "seq": 4, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/b.ts" @@ -197,19 +212,19 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /te Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject2* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject2*' (Inferred) Info seq [hh:mm:ss:mss] Files (5) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /tests/cases/fourslash/server/a.ts SVC-1-0 "export var test = \"test String\"" /tests/cases/fourslash/server/b.ts SVC-1-0 "import test from \"./a\"" - ../../../../home/src/tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../../../home/src/tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../../../home/src/tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' ../../../../home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../../../home/src/tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' a.ts Imported via "./a" from file 'b.ts' b.ts @@ -219,18 +234,18 @@ Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] `remove Project:: Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts + /home/src/tslibs/TS/Lib/lib.es5.d.ts /home/src/tslibs/TS/Lib/lib.decorators.d.ts /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts /tests/cases/fourslash/server/a.ts - ../../../../home/src/tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../../../home/src/tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../../../home/src/tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' ../../../../home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../../../home/src/tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' a.ts Root file specified for compilation @@ -253,7 +268,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 3, + "request_seq": 4, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -261,12 +276,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: + {"pollingInterval":500} /tests/cases/fourslash/server/jsconfig.json: {"pollingInterval":2000} /tests/cases/fourslash/server/tsconfig.json: @@ -298,17 +313,17 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *changed* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *changed* version: Text-1 containingProjects: 1 *changed* /dev/null/inferredProject2* *new* /dev/null/inferredProject1* *deleted* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *changed* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *changed* version: Text-1 containingProjects: 1 *changed* /dev/null/inferredProject2* *new* /dev/null/inferredProject1* *deleted* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *changed* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *changed* version: Text-1 containingProjects: 1 *changed* /dev/null/inferredProject2* *new* @@ -325,7 +340,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 4, + "seq": 5, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/b.ts", @@ -338,13 +353,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "projectInfo", - "request_seq": 4, + "request_seq": 5, "success": true, "body": { "configFileName": "/dev/null/inferredProject2*", "languageServiceDisabled": false, "fileNames": [ - "/home/src/tslibs/TS/Lib/lib.d.ts", + "/home/src/tslibs/TS/Lib/lib.es5.d.ts", "/home/src/tslibs/TS/Lib/lib.decorators.d.ts", "/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts", "/tests/cases/fourslash/server/a.ts", @@ -354,7 +369,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 5, + "seq": 6, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/c.ts" @@ -371,7 +386,7 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /te Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject3* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject3*' (Inferred) Info seq [hh:mm:ss:mss] Files (6) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /tests/cases/fourslash/server/a.ts SVC-1-0 "export var test = \"test String\"" @@ -379,12 +394,12 @@ Info seq [hh:mm:ss:mss] Files (6) /tests/cases/fourslash/server/c.ts SVC-1-0 "/// \n/// " - ../../../../home/src/tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../../../home/src/tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../../../home/src/tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' ../../../../home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../../../home/src/tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' a.ts Referenced via 'a.ts' from file 'c.ts' Imported via "./a" from file 'b.ts' @@ -397,19 +412,19 @@ Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] `remove Project:: Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject2*' (Inferred) Info seq [hh:mm:ss:mss] Files (5) - /home/src/tslibs/TS/Lib/lib.d.ts + /home/src/tslibs/TS/Lib/lib.es5.d.ts /home/src/tslibs/TS/Lib/lib.decorators.d.ts /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts /tests/cases/fourslash/server/a.ts /tests/cases/fourslash/server/b.ts - ../../../../home/src/tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../../../home/src/tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../../../home/src/tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' ../../../../home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../../../home/src/tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' a.ts Imported via "./a" from file 'b.ts' b.ts @@ -436,7 +451,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 5, + "request_seq": 6, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -444,12 +459,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: + {"pollingInterval":500} /tests/cases/fourslash/server/jsconfig.json: {"pollingInterval":2000} /tests/cases/fourslash/server/tsconfig.json: @@ -481,17 +496,17 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *changed* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *changed* version: Text-1 containingProjects: 1 *changed* /dev/null/inferredProject3* *new* /dev/null/inferredProject2* *deleted* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *changed* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *changed* version: Text-1 containingProjects: 1 *changed* /dev/null/inferredProject3* *new* /dev/null/inferredProject2* *deleted* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *changed* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *changed* version: Text-1 containingProjects: 1 *changed* /dev/null/inferredProject3* *new* @@ -513,7 +528,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 6, + "seq": 7, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/c.ts", @@ -526,13 +541,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "projectInfo", - "request_seq": 6, + "request_seq": 7, "success": true, "body": { "configFileName": "/dev/null/inferredProject3*", "languageServiceDisabled": false, "fileNames": [ - "/home/src/tslibs/TS/Lib/lib.d.ts", + "/home/src/tslibs/TS/Lib/lib.es5.d.ts", "/home/src/tslibs/TS/Lib/lib.decorators.d.ts", "/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts", "/tests/cases/fourslash/server/a.ts", @@ -543,7 +558,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 7, + "seq": 8, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/d.ts" @@ -560,18 +575,18 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /te Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject4* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject4*' (Inferred) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /tests/cases/fourslash/server/d.ts SVC-1-0 "console.log(\"nothing\");" - ../../../../home/src/tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../../../home/src/tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../../../home/src/tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' ../../../../home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../../../home/src/tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' d.ts Root file specified for compilation @@ -598,7 +613,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 7, + "request_seq": 8, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -606,12 +621,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: + {"pollingInterval":500} /tests/cases/fourslash/server/jsconfig.json: {"pollingInterval":2000} /tests/cases/fourslash/server/tsconfig.json: @@ -636,17 +651,17 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *changed* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *changed* version: Text-1 containingProjects: 2 *changed* /dev/null/inferredProject3* /dev/null/inferredProject4* *new* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *changed* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *changed* version: Text-1 containingProjects: 2 *changed* /dev/null/inferredProject3* /dev/null/inferredProject4* *new* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *changed* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *changed* version: Text-1 containingProjects: 2 *changed* /dev/null/inferredProject3* @@ -670,7 +685,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 8, + "seq": 9, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/d.ts", @@ -683,13 +698,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "projectInfo", - "request_seq": 8, + "request_seq": 9, "success": true, "body": { "configFileName": "/dev/null/inferredProject4*", "languageServiceDisabled": false, "fileNames": [ - "/home/src/tslibs/TS/Lib/lib.d.ts", + "/home/src/tslibs/TS/Lib/lib.es5.d.ts", "/home/src/tslibs/TS/Lib/lib.decorators.d.ts", "/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts", "/tests/cases/fourslash/server/d.ts" diff --git a/tests/baselines/reference/tsserver/fourslashServer/projectInfo02.js b/tests/baselines/reference/tsserver/fourslashServer/projectInfo02.js index 3fd9190378cf7..6615d7c124990 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/projectInfo02.js +++ b/tests/baselines/reference/tsserver/fourslashServer/projectInfo02.js @@ -1,16 +1,31 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "lib": [ + "es5" + ], + "target": "es5", + "newLine": "crlf", + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/tests/cases/fourslash/server/a.ts] export var test = "test String" @@ -18,12 +33,12 @@ export var test = "test String" export var test2 = "test String" //// [/tests/cases/fourslash/server/tsconfig.json] -{ "files": ["a.ts", "b.ts"] } +{ "files": ["a.ts", "b.ts"], "compilerOptions": { "lib": ["es5"] } } Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/a.ts" @@ -39,6 +54,9 @@ Info seq [hh:mm:ss:mss] Config: /tests/cases/fourslash/server/tsconfig.json : { "/tests/cases/fourslash/server/b.ts" ], "options": { + "lib": [ + "lib.es5.d.ts" + ], "configFilePath": "/tests/cases/fourslash/server/tsconfig.json" } } @@ -54,7 +72,7 @@ Info seq [hh:mm:ss:mss] event: } Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/b.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /tests/cases/fourslash/server/tsconfig.json -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /tests/cases/fourslash/server/tsconfig.json WatchType: Type roots @@ -64,19 +82,19 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /te Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /tests/cases/fourslash/server/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/tests/cases/fourslash/server/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (5) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /tests/cases/fourslash/server/a.ts SVC-1-0 "export var test = \"test String\"" /tests/cases/fourslash/server/b.ts Text-1 "export var test2 = \"test String\"" - ../../../../home/src/tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../../../home/src/tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../../../home/src/tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' ../../../../home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../../../home/src/tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' a.ts Part of 'files' list in tsconfig.json b.ts @@ -115,7 +133,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -123,12 +141,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* + {"pollingInterval":500} /tests/cases/fourslash/server/b.ts: *new* {"pollingInterval":500} /tests/cases/fourslash/server/tsconfig.json: *new* @@ -147,15 +165,15 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 containingProjects: 1 /tests/cases/fourslash/server/tsconfig.json -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 containingProjects: 1 /tests/cases/fourslash/server/tsconfig.json -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* version: Text-1 containingProjects: 1 /tests/cases/fourslash/server/tsconfig.json @@ -170,7 +188,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/a.ts" @@ -189,12 +207,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 1, + "request_seq": 2, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/a.ts", @@ -207,13 +225,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "projectInfo", - "request_seq": 2, + "request_seq": 3, "success": true, "body": { "configFileName": "/tests/cases/fourslash/server/tsconfig.json", "languageServiceDisabled": false, "fileNames": [ - "/home/src/tslibs/TS/Lib/lib.d.ts", + "/home/src/tslibs/TS/Lib/lib.es5.d.ts", "/home/src/tslibs/TS/Lib/lib.decorators.d.ts", "/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts", "/tests/cases/fourslash/server/a.ts", diff --git a/tests/baselines/reference/tsserver/fourslashServer/projectWithNonExistentFiles.js b/tests/baselines/reference/tsserver/fourslashServer/projectWithNonExistentFiles.js index cb0dc9490e2d9..c6c46a54ed37c 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/projectWithNonExistentFiles.js +++ b/tests/baselines/reference/tsserver/fourslashServer/projectWithNonExistentFiles.js @@ -1,16 +1,31 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "lib": [ + "es5" + ], + "target": "es5", + "newLine": "crlf", + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/tests/cases/fourslash/server/a.ts] export var test = "test String" @@ -18,12 +33,12 @@ export var test = "test String" export var test2 = "test String" //// [/tests/cases/fourslash/server/tsconfig.json] -{ "files": ["a.ts", "c.ts", "b.ts"] } +{ "files": ["a.ts", "c.ts", "b.ts"], "compilerOptions": { "lib": ["es5"] } } Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/a.ts" @@ -40,6 +55,9 @@ Info seq [hh:mm:ss:mss] Config: /tests/cases/fourslash/server/tsconfig.json : { "/tests/cases/fourslash/server/b.ts" ], "options": { + "lib": [ + "lib.es5.d.ts" + ], "configFilePath": "/tests/cases/fourslash/server/tsconfig.json" } } @@ -55,7 +73,7 @@ Info seq [hh:mm:ss:mss] event: } Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/b.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /tests/cases/fourslash/server/tsconfig.json -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/c.ts 500 undefined Project: /tests/cases/fourslash/server/tsconfig.json WatchType: Missing file @@ -66,19 +84,19 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /te Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /tests/cases/fourslash/server/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/tests/cases/fourslash/server/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (5) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /tests/cases/fourslash/server/a.ts SVC-1-0 "export var test = \"test String\"" /tests/cases/fourslash/server/b.ts Text-1 "export var test2 = \"test String\"" - ../../../../home/src/tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../../../home/src/tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../../../home/src/tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' ../../../../home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../../../home/src/tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' a.ts Part of 'files' list in tsconfig.json b.ts @@ -141,7 +159,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -149,12 +167,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* + {"pollingInterval":500} /tests/cases/fourslash/server/b.ts: *new* {"pollingInterval":500} /tests/cases/fourslash/server/c.ts: *new* @@ -175,15 +193,15 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 containingProjects: 1 /tests/cases/fourslash/server/tsconfig.json -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 containingProjects: 1 /tests/cases/fourslash/server/tsconfig.json -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* version: Text-1 containingProjects: 1 /tests/cases/fourslash/server/tsconfig.json @@ -198,7 +216,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/a.ts" @@ -217,12 +235,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 1, + "request_seq": 2, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/a.ts", @@ -235,13 +253,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "projectInfo", - "request_seq": 2, + "request_seq": 3, "success": true, "body": { "configFileName": "/tests/cases/fourslash/server/tsconfig.json", "languageServiceDisabled": false, "fileNames": [ - "/home/src/tslibs/TS/Lib/lib.d.ts", + "/home/src/tslibs/TS/Lib/lib.es5.d.ts", "/home/src/tslibs/TS/Lib/lib.decorators.d.ts", "/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts", "/tests/cases/fourslash/server/a.ts", diff --git a/tests/baselines/reference/tsserver/fourslashServer/quickinfo01.js b/tests/baselines/reference/tsserver/fourslashServer/quickinfo01.js index e3aaefde8944d..f606c3a22ae4e 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/quickinfo01.js +++ b/tests/baselines/reference/tsserver/fourslashServer/quickinfo01.js @@ -1,16 +1,31 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "target": "es5", + "newLine": "crlf", + "lib": [ + "es5" + ], + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/tests/cases/fourslash/server/quickinfo01.ts] interface One { commonProperty: number; @@ -30,7 +45,7 @@ x.commonFunction; Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/quickinfo01.ts" @@ -42,7 +57,7 @@ Info seq [hh:mm:ss:mss] Creating InferredProject: /dev/null/inferredProject1*, Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots @@ -52,18 +67,18 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /te Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /tests/cases/fourslash/server/quickinfo01.ts SVC-1-0 "interface One {\n commonProperty: number;\n commonFunction(): number;\n}\n\ninterface Two {\n commonProperty: string\n commonFunction(): number;\n}\n\nvar x : One | Two;\n\nx.commonProperty;\nx.commonFunction;" - ../../../../home/src/tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../../../home/src/tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../../../home/src/tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' ../../../../home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../../../home/src/tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' quickinfo01.ts Root file specified for compilation @@ -80,7 +95,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -88,12 +103,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* + {"pollingInterval":500} /tests/cases/fourslash/server/jsconfig.json: *new* {"pollingInterval":2000} /tests/cases/fourslash/server/tsconfig.json: *new* @@ -112,15 +127,15 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* @@ -131,7 +146,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/quickinfo01.ts", @@ -145,7 +160,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "quickinfo", - "request_seq": 1, + "request_seq": 2, "success": true, "body": { "kind": "var", @@ -165,7 +180,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/quickinfo01.ts", @@ -179,7 +194,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "quickinfo", - "request_seq": 2, + "request_seq": 3, "success": true, "body": { "kind": "property", @@ -199,7 +214,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 3, + "seq": 4, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/quickinfo01.ts", @@ -213,7 +228,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "quickinfo", - "request_seq": 3, + "request_seq": 4, "success": true, "body": { "kind": "method", diff --git a/tests/baselines/reference/tsserver/fourslashServer/quickinfoVerbosityServer.js b/tests/baselines/reference/tsserver/fourslashServer/quickinfoVerbosityServer.js index 0c9ff4dd1514b..83ccb793837d4 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/quickinfoVerbosityServer.js +++ b/tests/baselines/reference/tsserver/fourslashServer/quickinfoVerbosityServer.js @@ -1,16 +1,31 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "target": "es5", + "newLine": "crlf", + "lib": [ + "es5" + ], + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/tests/cases/fourslash/server/quickinfoVerbosityServer.ts] type FooType = string | number const foo: FooType = 1 @@ -18,7 +33,7 @@ const foo: FooType = 1 Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/quickinfoVerbosityServer.ts" @@ -30,7 +45,7 @@ Info seq [hh:mm:ss:mss] Creating InferredProject: /dev/null/inferredProject1*, Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots @@ -40,18 +55,18 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /te Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /tests/cases/fourslash/server/quickinfoVerbosityServer.ts SVC-1-0 "type FooType = string | number\nconst foo: FooType = 1" - ../../../../home/src/tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../../../home/src/tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../../../home/src/tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' ../../../../home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../../../home/src/tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' quickinfoVerbosityServer.ts Root file specified for compilation @@ -68,7 +83,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -76,12 +91,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* + {"pollingInterval":500} /tests/cases/fourslash/server/jsconfig.json: *new* {"pollingInterval":2000} /tests/cases/fourslash/server/tsconfig.json: *new* @@ -100,15 +115,15 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* @@ -119,7 +134,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/quickinfoVerbosityServer.ts", @@ -134,7 +149,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "quickinfo", - "request_seq": 1, + "request_seq": 2, "success": true, "body": { "kind": "const", @@ -155,7 +170,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/quickinfoVerbosityServer.ts", @@ -170,7 +185,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "quickinfo", - "request_seq": 2, + "request_seq": 3, "success": true, "body": { "kind": "const", diff --git a/tests/baselines/reference/tsserver/fourslashServer/quickinfoWrongComment.js b/tests/baselines/reference/tsserver/fourslashServer/quickinfoWrongComment.js index 5f812edb64f71..f99f414deb1b4 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/quickinfoWrongComment.js +++ b/tests/baselines/reference/tsserver/fourslashServer/quickinfoWrongComment.js @@ -1,16 +1,31 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "target": "es5", + "newLine": "crlf", + "lib": [ + "es5" + ], + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/tests/cases/fourslash/server/quickinfoWrongComment.ts] interface I { /** The colour */ @@ -29,7 +44,7 @@ f.colour Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/quickinfoWrongComment.ts" @@ -41,7 +56,7 @@ Info seq [hh:mm:ss:mss] Creating InferredProject: /dev/null/inferredProject1*, Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots @@ -51,18 +66,18 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /te Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /tests/cases/fourslash/server/quickinfoWrongComment.ts SVC-1-0 "interface I {\n /** The colour */\n readonly colour: string\n}\ninterface A extends I {\n readonly colour: \"red\" | \"green\";\n}\ninterface B extends I {\n readonly colour: \"yellow\" | \"green\";\n}\ntype F = A | B\nconst f: F = { colour: \"green\" }\nf.colour" - ../../../../home/src/tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../../../home/src/tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../../../home/src/tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' ../../../../home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../../../home/src/tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' quickinfoWrongComment.ts Root file specified for compilation @@ -79,7 +94,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -87,12 +102,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* + {"pollingInterval":500} /tests/cases/fourslash/server/jsconfig.json: *new* {"pollingInterval":2000} /tests/cases/fourslash/server/tsconfig.json: *new* @@ -111,15 +126,15 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* @@ -130,7 +145,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/quickinfoWrongComment.ts", @@ -144,7 +159,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "quickinfo", - "request_seq": 1, + "request_seq": 2, "success": true, "body": { "kind": "property", diff --git a/tests/baselines/reference/tsserver/fourslashServer/referenceToEmptyObject.js b/tests/baselines/reference/tsserver/fourslashServer/referenceToEmptyObject.js index 83aac9d6ff92c..25736f0a59cce 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/referenceToEmptyObject.js +++ b/tests/baselines/reference/tsserver/fourslashServer/referenceToEmptyObject.js @@ -1,23 +1,38 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "target": "es5", + "newLine": "crlf", + "lib": [ + "es5" + ], + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/tests/cases/fourslash/server/referenceToEmptyObject.ts] const obj = {}; Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/referenceToEmptyObject.ts" @@ -29,7 +44,7 @@ Info seq [hh:mm:ss:mss] Creating InferredProject: /dev/null/inferredProject1*, Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots @@ -39,18 +54,18 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /te Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /tests/cases/fourslash/server/referenceToEmptyObject.ts SVC-1-0 "const obj = {};" - ../../../../home/src/tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../../../home/src/tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../../../home/src/tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' ../../../../home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../../../home/src/tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' referenceToEmptyObject.ts Root file specified for compilation @@ -67,7 +82,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -75,12 +90,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* + {"pollingInterval":500} /tests/cases/fourslash/server/jsconfig.json: *new* {"pollingInterval":2000} /tests/cases/fourslash/server/tsconfig.json: *new* @@ -99,15 +114,15 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* @@ -118,7 +133,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/referenceToEmptyObject.ts", @@ -133,7 +148,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "references-full", - "request_seq": 1, + "request_seq": 2, "success": true, "body": [] } \ No newline at end of file diff --git a/tests/baselines/reference/tsserver/fourslashServer/references01.js b/tests/baselines/reference/tsserver/fourslashServer/references01.js index 5978cf2832f0b..6c5af381569da 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/references01.js +++ b/tests/baselines/reference/tsserver/fourslashServer/references01.js @@ -1,16 +1,31 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "target": "es5", + "newLine": "crlf", + "lib": [ + "es5" + ], + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/home/src/workspaces/project/referencesForGlobals_1.ts] class globalClass { public f() { } @@ -23,7 +38,7 @@ var c = globalClass(); Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/home/src/workspaces/project/referencesForGlobals_1.ts" @@ -35,7 +50,7 @@ Info seq [hh:mm:ss:mss] Creating InferredProject: /dev/null/inferredProject1*, Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots @@ -45,18 +60,18 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/referencesForGlobals_1.ts SVC-1-0 "class globalClass {\n public f() { }\n}" - ../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' referencesForGlobals_1.ts Root file specified for compilation @@ -73,7 +88,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -81,12 +96,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* + {"pollingInterval":500} /home/src/workspaces/project/jsconfig.json: *new* {"pollingInterval":2000} /home/src/workspaces/project/tsconfig.json: *new* @@ -105,15 +120,15 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* @@ -124,7 +139,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "file": "/home/src/workspaces/project/referencesForGlobals_2.ts" @@ -141,19 +156,19 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject2* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject2*' (Inferred) Info seq [hh:mm:ss:mss] Files (5) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/referencesForGlobals_1.ts SVC-1-0 "class globalClass {\n public f() { }\n}" /home/src/workspaces/project/referencesForGlobals_2.ts SVC-1-0 "///\nvar c = globalClass();" - ../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' referencesForGlobals_1.ts Referenced via 'referencesForGlobals_1.ts' from file 'referencesForGlobals_2.ts' referencesForGlobals_2.ts @@ -163,18 +178,18 @@ Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] `remove Project:: Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts + /home/src/tslibs/TS/Lib/lib.es5.d.ts /home/src/tslibs/TS/Lib/lib.decorators.d.ts /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts /home/src/workspaces/project/referencesForGlobals_1.ts - ../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' referencesForGlobals_1.ts Root file specified for compilation @@ -197,7 +212,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 1, + "request_seq": 2, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -205,12 +220,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: + {"pollingInterval":500} /home/src/workspaces/project/jsconfig.json: {"pollingInterval":2000} /home/src/workspaces/project/tsconfig.json: @@ -242,17 +257,17 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *changed* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *changed* version: Text-1 containingProjects: 1 *changed* /dev/null/inferredProject2* *new* /dev/null/inferredProject1* *deleted* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *changed* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *changed* version: Text-1 containingProjects: 1 *changed* /dev/null/inferredProject2* *new* /dev/null/inferredProject1* *deleted* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *changed* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *changed* version: Text-1 containingProjects: 1 *changed* /dev/null/inferredProject2* *new* @@ -269,7 +284,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "file": "/home/src/workspaces/project/referencesForGlobals_2.ts", @@ -284,7 +299,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "references-full", - "request_seq": 2, + "request_seq": 3, "success": true, "body": [ { diff --git a/tests/baselines/reference/tsserver/fourslashServer/referencesInConfiguredProject.js b/tests/baselines/reference/tsserver/fourslashServer/referencesInConfiguredProject.js index 69c7be669be69..f38b84f83ff90 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/referencesInConfiguredProject.js +++ b/tests/baselines/reference/tsserver/fourslashServer/referencesInConfiguredProject.js @@ -1,16 +1,31 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "lib": [ + "es5" + ], + "target": "es5", + "newLine": "crlf", + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/home/src/workspaces/project/referencesForGlobals_1.ts] class globalClass { public f() { } @@ -20,12 +35,12 @@ class globalClass { var c = globalClass(); //// [/home/src/workspaces/project/tsconfig.json] -{ "files": ["referencesForGlobals_1.ts", "referencesForGlobals_2.ts"] } +{ "files": ["referencesForGlobals_1.ts", "referencesForGlobals_2.ts"], "compilerOptions": { "lib": ["es5"] } } Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/home/src/workspaces/project/referencesForGlobals_1.ts" @@ -41,6 +56,9 @@ Info seq [hh:mm:ss:mss] Config: /home/src/workspaces/project/tsconfig.json : { "/home/src/workspaces/project/referencesForGlobals_2.ts" ], "options": { + "lib": [ + "lib.es5.d.ts" + ], "configFilePath": "/home/src/workspaces/project/tsconfig.json" } } @@ -56,7 +74,7 @@ Info seq [hh:mm:ss:mss] event: } Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/referencesForGlobals_2.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots @@ -66,19 +84,19 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (5) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/referencesForGlobals_1.ts SVC-1-0 "class globalClass {\n public f() { }\n}" /home/src/workspaces/project/referencesForGlobals_2.ts Text-1 "var c = globalClass();" - ../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' referencesForGlobals_1.ts Part of 'files' list in tsconfig.json referencesForGlobals_2.ts @@ -117,7 +135,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -125,12 +143,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* + {"pollingInterval":500} /home/src/workspaces/project/referencesForGlobals_2.ts: *new* {"pollingInterval":500} /home/src/workspaces/project/tsconfig.json: *new* @@ -149,15 +167,15 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json @@ -172,7 +190,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "file": "/home/src/workspaces/project/referencesForGlobals_2.ts" @@ -195,17 +213,17 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 1, + "request_seq": 2, "success": true } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: + {"pollingInterval":500} /home/src/workspaces/project/tsconfig.json: {"pollingInterval":2000} @@ -220,15 +238,15 @@ watchedDirectoriesRecursive:: {} ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 1 /home/src/workspaces/project/tsconfig.json @@ -244,7 +262,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "file": "/home/src/workspaces/project/referencesForGlobals_2.ts", @@ -259,7 +277,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "references-full", - "request_seq": 2, + "request_seq": 3, "success": true, "body": [ { diff --git a/tests/baselines/reference/tsserver/fourslashServer/referencesInEmptyFile.js b/tests/baselines/reference/tsserver/fourslashServer/referencesInEmptyFile.js index 7df39d76651f4..b6b7f2ffb4b08 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/referencesInEmptyFile.js +++ b/tests/baselines/reference/tsserver/fourslashServer/referencesInEmptyFile.js @@ -1,23 +1,38 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "target": "es5", + "newLine": "crlf", + "lib": [ + "es5" + ], + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/tests/cases/fourslash/server/referencesInEmptyFile.ts] Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/referencesInEmptyFile.ts" @@ -29,7 +44,7 @@ Info seq [hh:mm:ss:mss] Creating InferredProject: /dev/null/inferredProject1*, Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots @@ -39,18 +54,18 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /te Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /tests/cases/fourslash/server/referencesInEmptyFile.ts SVC-1-0 "" - ../../../../home/src/tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../../../home/src/tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../../../home/src/tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' ../../../../home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../../../home/src/tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' referencesInEmptyFile.ts Root file specified for compilation @@ -67,7 +82,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -75,12 +90,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* + {"pollingInterval":500} /tests/cases/fourslash/server/jsconfig.json: *new* {"pollingInterval":2000} /tests/cases/fourslash/server/tsconfig.json: *new* @@ -99,15 +114,15 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* @@ -118,7 +133,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/referencesInEmptyFile.ts", @@ -133,7 +148,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "references-full", - "request_seq": 1, + "request_seq": 2, "success": true, "body": [] } \ No newline at end of file diff --git a/tests/baselines/reference/tsserver/fourslashServer/referencesInEmptyFileWithMultipleProjects.js b/tests/baselines/reference/tsserver/fourslashServer/referencesInEmptyFileWithMultipleProjects.js index e0845121c3ef5..eb3eaf1abb5ea 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/referencesInEmptyFileWithMultipleProjects.js +++ b/tests/baselines/reference/tsserver/fourslashServer/referencesInEmptyFileWithMultipleProjects.js @@ -1,33 +1,48 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "lib": [ + "es5" + ], + "target": "es5", + "newLine": "crlf", + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/home/src/workspaces/project/a/a.ts] /// ; //// [/home/src/workspaces/project/a/tsconfig.json] -{ "files": ["a.ts"] } +{ "files": ["a.ts"], "compilerOptions": { "lib": ["es5"] } } //// [/home/src/workspaces/project/b/b.ts] ; //// [/home/src/workspaces/project/b/tsconfig.json] -{ "files": ["b.ts"] } +{ "files": ["b.ts"], "compilerOptions": { "lib": ["es5"] } } Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/home/src/workspaces/project/a/tsconfig.json" @@ -42,6 +57,9 @@ Info seq [hh:mm:ss:mss] Config: /home/src/workspaces/project/a/tsconfig.json : "/home/src/workspaces/project/a/a.ts" ], "options": { + "lib": [ + "lib.es5.d.ts" + ], "configFilePath": "/home/src/workspaces/project/a/tsconfig.json" } } @@ -58,7 +76,7 @@ Info seq [hh:mm:ss:mss] event: Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/a/a.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/workspaces/project/a/tsconfig.json Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/b/b.ts 500 undefined WatchType: Closed Script info -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/a/node_modules/@types 1 undefined Project: /home/src/workspaces/project/a/tsconfig.json WatchType: Type roots @@ -70,19 +88,19 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/a/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/a/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (5) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/b/b.ts Text-1 ";" /home/src/workspaces/project/a/a.ts Text-1 "/// \n;" - ../../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../../tslibs/TS/Lib/lib.es5.d.ts' ../../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../../tslibs/TS/Lib/lib.es5.d.ts' ../b/b.ts Referenced via '../b/b.ts' from file 'a.ts' a.ts @@ -124,18 +142,18 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text - /home/src/workspaces/project/a/tsconfig.json SVC-1-0 "{ \"files\": [\"a.ts\"] }" + /home/src/workspaces/project/a/tsconfig.json SVC-1-0 "{ \"files\": [\"a.ts\"], \"compilerOptions\": { \"lib\": [\"es5\"] } }" - ../../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../../tslibs/TS/Lib/lib.es5.d.ts' ../../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../../tslibs/TS/Lib/lib.es5.d.ts' tsconfig.json Root file specified for compilation @@ -156,7 +174,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -164,12 +182,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* + {"pollingInterval":500} /home/src/workspaces/project/a/a.ts: *new* {"pollingInterval":500} /home/src/workspaces/project/a/jsconfig.json: *new* @@ -205,17 +223,17 @@ Projects:: noOpenRef: true ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 containingProjects: 2 /home/src/workspaces/project/a/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 containingProjects: 2 /home/src/workspaces/project/a/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* version: Text-1 containingProjects: 2 /home/src/workspaces/project/a/tsconfig.json @@ -235,7 +253,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "file": "/home/src/workspaces/project/a/a.ts" @@ -262,17 +280,17 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 1, + "request_seq": 2, "success": true } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: + {"pollingInterval":500} /home/src/workspaces/project/a/jsconfig.json: {"pollingInterval":2000} /home/src/workspaces/project/a/tsconfig.json: @@ -310,17 +328,17 @@ Projects:: noOpenRef: false *changed* ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/a/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/a/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/a/tsconfig.json @@ -341,7 +359,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "file": "/home/src/workspaces/project/a/a.ts", @@ -356,13 +374,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "references-full", - "request_seq": 2, + "request_seq": 3, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 3, + "seq": 4, "type": "request", "arguments": { "file": "/home/src/workspaces/project/b/b.ts" @@ -378,6 +396,9 @@ Info seq [hh:mm:ss:mss] Config: /home/src/workspaces/project/b/tsconfig.json : "/home/src/workspaces/project/b/b.ts" ], "options": { + "lib": [ + "lib.es5.d.ts" + ], "configFilePath": "/home/src/workspaces/project/b/tsconfig.json" } } @@ -401,18 +422,18 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/b/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/b/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/b/b.ts Text-1 ";" - ../../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../../tslibs/TS/Lib/lib.es5.d.ts' ../../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../../tslibs/TS/Lib/lib.es5.d.ts' b.ts Part of 'files' list in tsconfig.json @@ -461,7 +482,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 3, + "request_seq": 4, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -469,12 +490,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: + {"pollingInterval":500} /home/src/workspaces/project/a/jsconfig.json: {"pollingInterval":2000} /home/src/workspaces/project/a/tsconfig.json: @@ -519,19 +540,19 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *changed* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *changed* version: Text-1 containingProjects: 3 *changed* /home/src/workspaces/project/a/tsconfig.json /dev/null/inferredProject1* /home/src/workspaces/project/b/tsconfig.json *new* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *changed* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *changed* version: Text-1 containingProjects: 3 *changed* /home/src/workspaces/project/a/tsconfig.json /dev/null/inferredProject1* /home/src/workspaces/project/b/tsconfig.json *new* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *changed* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *changed* version: Text-1 containingProjects: 3 *changed* /home/src/workspaces/project/a/tsconfig.json @@ -554,7 +575,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 4, + "seq": 5, "type": "request", "arguments": { "file": "/home/src/workspaces/project/b/b.ts", @@ -570,7 +591,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "references-full", - "request_seq": 4, + "request_seq": 5, "success": true, "body": [] } \ No newline at end of file diff --git a/tests/baselines/reference/tsserver/fourslashServer/referencesInStringLiteralValueWithMultipleProjects.js b/tests/baselines/reference/tsserver/fourslashServer/referencesInStringLiteralValueWithMultipleProjects.js index 18f08e4aedd22..f3ac8e5c07561 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/referencesInStringLiteralValueWithMultipleProjects.js +++ b/tests/baselines/reference/tsserver/fourslashServer/referencesInStringLiteralValueWithMultipleProjects.js @@ -1,33 +1,48 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "lib": [ + "es5" + ], + "target": "es5", + "newLine": "crlf", + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/home/src/workspaces/project/a/a.ts] /// const str: string = "hello"; //// [/home/src/workspaces/project/a/tsconfig.json] -{ "files": ["a.ts"] } +{ "files": ["a.ts"], "compilerOptions": { "lib": ["es5"] } } //// [/home/src/workspaces/project/b/b.ts] const str2: string = "hello"; //// [/home/src/workspaces/project/b/tsconfig.json] -{ "files": ["b.ts"] } +{ "files": ["b.ts"], "compilerOptions": { "lib": ["es5"] } } Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/home/src/workspaces/project/a/tsconfig.json" @@ -42,6 +57,9 @@ Info seq [hh:mm:ss:mss] Config: /home/src/workspaces/project/a/tsconfig.json : "/home/src/workspaces/project/a/a.ts" ], "options": { + "lib": [ + "lib.es5.d.ts" + ], "configFilePath": "/home/src/workspaces/project/a/tsconfig.json" } } @@ -58,7 +76,7 @@ Info seq [hh:mm:ss:mss] event: Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/a/a.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/workspaces/project/a/tsconfig.json Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/b/b.ts 500 undefined WatchType: Closed Script info -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/a/node_modules/@types 1 undefined Project: /home/src/workspaces/project/a/tsconfig.json WatchType: Type roots @@ -70,19 +88,19 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/a/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/a/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (5) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/b/b.ts Text-1 "const str2: string = \"hello\";" /home/src/workspaces/project/a/a.ts Text-1 "/// \nconst str: string = \"hello\";" - ../../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../../tslibs/TS/Lib/lib.es5.d.ts' ../../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../../tslibs/TS/Lib/lib.es5.d.ts' ../b/b.ts Referenced via '../b/b.ts' from file 'a.ts' a.ts @@ -124,18 +142,18 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text - /home/src/workspaces/project/a/tsconfig.json SVC-1-0 "{ \"files\": [\"a.ts\"] }" + /home/src/workspaces/project/a/tsconfig.json SVC-1-0 "{ \"files\": [\"a.ts\"], \"compilerOptions\": { \"lib\": [\"es5\"] } }" - ../../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../../tslibs/TS/Lib/lib.es5.d.ts' ../../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../../tslibs/TS/Lib/lib.es5.d.ts' tsconfig.json Root file specified for compilation @@ -156,7 +174,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -164,12 +182,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* + {"pollingInterval":500} /home/src/workspaces/project/a/a.ts: *new* {"pollingInterval":500} /home/src/workspaces/project/a/jsconfig.json: *new* @@ -205,17 +223,17 @@ Projects:: noOpenRef: true ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 containingProjects: 2 /home/src/workspaces/project/a/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 containingProjects: 2 /home/src/workspaces/project/a/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* version: Text-1 containingProjects: 2 /home/src/workspaces/project/a/tsconfig.json @@ -235,7 +253,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "file": "/home/src/workspaces/project/a/a.ts" @@ -262,17 +280,17 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 1, + "request_seq": 2, "success": true } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: + {"pollingInterval":500} /home/src/workspaces/project/a/jsconfig.json: {"pollingInterval":2000} /home/src/workspaces/project/a/tsconfig.json: @@ -310,17 +328,17 @@ Projects:: noOpenRef: false *changed* ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/a/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/a/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 2 /home/src/workspaces/project/a/tsconfig.json @@ -341,7 +359,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "file": "/home/src/workspaces/project/a/a.ts", @@ -356,7 +374,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "references-full", - "request_seq": 2, + "request_seq": 3, "success": true, "body": [ { @@ -383,7 +401,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 3, + "seq": 4, "type": "request", "arguments": { "file": "/home/src/workspaces/project/b/b.ts" @@ -399,6 +417,9 @@ Info seq [hh:mm:ss:mss] Config: /home/src/workspaces/project/b/tsconfig.json : "/home/src/workspaces/project/b/b.ts" ], "options": { + "lib": [ + "lib.es5.d.ts" + ], "configFilePath": "/home/src/workspaces/project/b/tsconfig.json" } } @@ -422,18 +443,18 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/b/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/b/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/b/b.ts Text-1 "const str2: string = \"hello\";" - ../../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../../tslibs/TS/Lib/lib.es5.d.ts' ../../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../../tslibs/TS/Lib/lib.es5.d.ts' b.ts Part of 'files' list in tsconfig.json @@ -482,7 +503,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 3, + "request_seq": 4, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -490,12 +511,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: + {"pollingInterval":500} /home/src/workspaces/project/a/jsconfig.json: {"pollingInterval":2000} /home/src/workspaces/project/a/tsconfig.json: @@ -540,19 +561,19 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *changed* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *changed* version: Text-1 containingProjects: 3 *changed* /home/src/workspaces/project/a/tsconfig.json /dev/null/inferredProject1* /home/src/workspaces/project/b/tsconfig.json *new* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *changed* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *changed* version: Text-1 containingProjects: 3 *changed* /home/src/workspaces/project/a/tsconfig.json /dev/null/inferredProject1* /home/src/workspaces/project/b/tsconfig.json *new* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *changed* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *changed* version: Text-1 containingProjects: 3 *changed* /home/src/workspaces/project/a/tsconfig.json @@ -575,7 +596,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 4, + "seq": 5, "type": "request", "arguments": { "file": "/home/src/workspaces/project/b/b.ts", @@ -591,7 +612,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "references-full", - "request_seq": 4, + "request_seq": 5, "success": true, "body": [] } \ No newline at end of file diff --git a/tests/baselines/reference/tsserver/fourslashServer/referencesToNonPropertyNameStringLiteral.js b/tests/baselines/reference/tsserver/fourslashServer/referencesToNonPropertyNameStringLiteral.js index 3899c3750611c..636efc3b69d43 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/referencesToNonPropertyNameStringLiteral.js +++ b/tests/baselines/reference/tsserver/fourslashServer/referencesToNonPropertyNameStringLiteral.js @@ -1,23 +1,38 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "target": "es5", + "newLine": "crlf", + "lib": [ + "es5" + ], + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/tests/cases/fourslash/server/referencesToNonPropertyNameStringLiteral.ts] const str: string = "hello"; Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/referencesToNonPropertyNameStringLiteral.ts" @@ -29,7 +44,7 @@ Info seq [hh:mm:ss:mss] Creating InferredProject: /dev/null/inferredProject1*, Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots @@ -39,18 +54,18 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /te Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /tests/cases/fourslash/server/referencesToNonPropertyNameStringLiteral.ts SVC-1-0 "const str: string = \"hello\";" - ../../../../home/src/tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../../../home/src/tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../../../home/src/tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' ../../../../home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../../../home/src/tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' referencesToNonPropertyNameStringLiteral.ts Root file specified for compilation @@ -67,7 +82,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -75,12 +90,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* + {"pollingInterval":500} /tests/cases/fourslash/server/jsconfig.json: *new* {"pollingInterval":2000} /tests/cases/fourslash/server/tsconfig.json: *new* @@ -99,15 +114,15 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* @@ -118,7 +133,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/referencesToNonPropertyNameStringLiteral.ts", @@ -133,7 +148,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "references-full", - "request_seq": 1, + "request_seq": 2, "success": true, "body": [ { diff --git a/tests/baselines/reference/tsserver/fourslashServer/referencesToStringLiteralValue.js b/tests/baselines/reference/tsserver/fourslashServer/referencesToStringLiteralValue.js index c75411f38a4f6..58982442603ef 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/referencesToStringLiteralValue.js +++ b/tests/baselines/reference/tsserver/fourslashServer/referencesToStringLiteralValue.js @@ -1,23 +1,38 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "target": "es5", + "newLine": "crlf", + "lib": [ + "es5" + ], + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/tests/cases/fourslash/server/referencesToStringLiteralValue.ts] const s: string = "some string"; Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/referencesToStringLiteralValue.ts" @@ -29,7 +44,7 @@ Info seq [hh:mm:ss:mss] Creating InferredProject: /dev/null/inferredProject1*, Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots @@ -39,18 +54,18 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /te Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /tests/cases/fourslash/server/referencesToStringLiteralValue.ts SVC-1-0 "const s: string = \"some string\";" - ../../../../home/src/tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../../../home/src/tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../../../home/src/tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' ../../../../home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../../../home/src/tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' referencesToStringLiteralValue.ts Root file specified for compilation @@ -67,7 +82,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -75,12 +90,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* + {"pollingInterval":500} /tests/cases/fourslash/server/jsconfig.json: *new* {"pollingInterval":2000} /tests/cases/fourslash/server/tsconfig.json: *new* @@ -99,15 +114,15 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* @@ -118,7 +133,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/referencesToStringLiteralValue.ts", @@ -133,7 +148,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "references-full", - "request_seq": 1, + "request_seq": 2, "success": true, "body": [ { diff --git a/tests/baselines/reference/tsserver/fourslashServer/rename01.js b/tests/baselines/reference/tsserver/fourslashServer/rename01.js index 6694b777dedce..40d824cf7047f 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/rename01.js +++ b/tests/baselines/reference/tsserver/fourslashServer/rename01.js @@ -1,16 +1,31 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "target": "es5", + "newLine": "crlf", + "lib": [ + "es5" + ], + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/tests/cases/fourslash/server/rename01.ts] /// function Bar() { @@ -21,7 +36,7 @@ function Bar() { Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/rename01.ts" @@ -33,7 +48,7 @@ Info seq [hh:mm:ss:mss] Creating InferredProject: /dev/null/inferredProject1*, Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/Bar.ts 500 undefined Project: /dev/null/inferredProject1* WatchType: Missing file @@ -44,18 +59,18 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /te Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /tests/cases/fourslash/server/rename01.ts SVC-1-0 "///\nfunction Bar() {\n // This is a reference to Bar in a comment.\n \"this is a reference to Bar in a string\"\n}" - ../../../../home/src/tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../../../home/src/tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../../../home/src/tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' ../../../../home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../../../home/src/tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' rename01.ts Root file specified for compilation @@ -72,7 +87,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -80,12 +95,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* + {"pollingInterval":500} /tests/cases/fourslash/server/Bar.ts: *new* {"pollingInterval":500} /tests/cases/fourslash/server/jsconfig.json: *new* @@ -106,15 +121,15 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* @@ -125,7 +140,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "preferences": { @@ -140,12 +155,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 1, + "request_seq": 2, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/rename01.ts", @@ -161,7 +176,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "rename", - "request_seq": 2, + "request_seq": 3, "success": true, "body": { "info": { @@ -230,7 +245,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 3, + "seq": 4, "type": "request", "arguments": { "preferences": {} @@ -242,6 +257,6 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 3, + "request_seq": 4, "success": true } \ No newline at end of file diff --git a/tests/baselines/reference/tsserver/fourslashServer/renameInConfiguredProject.js b/tests/baselines/reference/tsserver/fourslashServer/renameInConfiguredProject.js index 85c4ebef5aaaf..dd663f33d4a8c 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/renameInConfiguredProject.js +++ b/tests/baselines/reference/tsserver/fourslashServer/renameInConfiguredProject.js @@ -1,16 +1,31 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "lib": [ + "es5" + ], + "target": "es5", + "newLine": "crlf", + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/tests/cases/fourslash/server/referencesForGlobals_1.ts] var globalName = 0; @@ -18,12 +33,12 @@ var globalName = 0; var y = globalName; //// [/tests/cases/fourslash/server/tsconfig.json] -{ "files": ["referencesForGlobals_1.ts", "referencesForGlobals_2.ts"] } +{ "files": ["referencesForGlobals_1.ts", "referencesForGlobals_2.ts"], "compilerOptions": { "lib": ["es5"] } } Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/referencesForGlobals_1.ts" @@ -39,6 +54,9 @@ Info seq [hh:mm:ss:mss] Config: /tests/cases/fourslash/server/tsconfig.json : { "/tests/cases/fourslash/server/referencesForGlobals_2.ts" ], "options": { + "lib": [ + "lib.es5.d.ts" + ], "configFilePath": "/tests/cases/fourslash/server/tsconfig.json" } } @@ -54,7 +72,7 @@ Info seq [hh:mm:ss:mss] event: } Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/referencesForGlobals_2.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /tests/cases/fourslash/server/tsconfig.json -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /tests/cases/fourslash/server/tsconfig.json WatchType: Type roots @@ -64,19 +82,19 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /te Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /tests/cases/fourslash/server/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/tests/cases/fourslash/server/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (5) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /tests/cases/fourslash/server/referencesForGlobals_1.ts SVC-1-0 "var globalName = 0;" /tests/cases/fourslash/server/referencesForGlobals_2.ts Text-1 "var y = globalName;" - ../../../../home/src/tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../../../home/src/tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../../../home/src/tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' ../../../../home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../../../home/src/tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' referencesForGlobals_1.ts Part of 'files' list in tsconfig.json referencesForGlobals_2.ts @@ -115,7 +133,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -123,12 +141,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* + {"pollingInterval":500} /tests/cases/fourslash/server/referencesForGlobals_2.ts: *new* {"pollingInterval":500} /tests/cases/fourslash/server/tsconfig.json: *new* @@ -147,15 +165,15 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 containingProjects: 1 /tests/cases/fourslash/server/tsconfig.json -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 containingProjects: 1 /tests/cases/fourslash/server/tsconfig.json -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* version: Text-1 containingProjects: 1 /tests/cases/fourslash/server/tsconfig.json @@ -170,7 +188,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "preferences": { @@ -185,12 +203,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 1, + "request_seq": 2, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/referencesForGlobals_1.ts", @@ -206,7 +224,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "rename", - "request_seq": 2, + "request_seq": 3, "success": true, "body": { "info": { @@ -270,7 +288,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 3, + "seq": 4, "type": "request", "arguments": { "preferences": {} @@ -282,12 +300,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 3, + "request_seq": 4, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 4, + "seq": 5, "type": "request", "arguments": { "preferences": { @@ -302,12 +320,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 4, + "request_seq": 5, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 5, + "seq": 6, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/referencesForGlobals_2.ts", @@ -323,7 +341,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "rename", - "request_seq": 5, + "request_seq": 6, "success": true, "body": { "info": { @@ -387,7 +405,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 6, + "seq": 7, "type": "request", "arguments": { "preferences": {} @@ -399,6 +417,6 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 6, + "request_seq": 7, "success": true } \ No newline at end of file diff --git a/tests/baselines/reference/tsserver/fourslashServer/renameNamedImport.js b/tests/baselines/reference/tsserver/fourslashServer/renameNamedImport.js index 1ce2f820d6daf..8a2860a5e817d 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/renameNamedImport.js +++ b/tests/baselines/reference/tsserver/fourslashServer/renameNamedImport.js @@ -1,37 +1,52 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "lib": [ + "es5" + ], + "target": "es5", + "newLine": "crlf", + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/home/src/workspaces/project/lib/index.ts] const unrelatedLocalVariable = 123; export const someExportedVariable = unrelatedLocalVariable; //// [/home/src/workspaces/project/lib/tsconfig.json] -{} +{ "compilerOptions": { "lib": ["es5"] } } //// [/home/src/workspaces/project/src/index.ts] import { someExportedVariable } from '../lib/index'; someExportedVariable; //// [/home/src/workspaces/project/src/tsconfig.json] -{} +{ "compilerOptions": { "lib": ["es5"] } } //// [/home/src/workspaces/project/tsconfig.json] -{} +{ "compilerOptions": { "lib": ["es5"] } } Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/home/src/workspaces/project/lib/tsconfig.json" @@ -46,6 +61,9 @@ Info seq [hh:mm:ss:mss] Config: /home/src/workspaces/project/lib/tsconfig.json "/home/src/workspaces/project/lib/index.ts" ], "options": { + "lib": [ + "lib.es5.d.ts" + ], "configFilePath": "/home/src/workspaces/project/lib/tsconfig.json" } } @@ -63,7 +81,7 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspa Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/lib 1 undefined Config: /home/src/workspaces/project/lib/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/lib/index.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/workspaces/project/lib/tsconfig.json -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/lib/node_modules/@types 1 undefined Project: /home/src/workspaces/project/lib/tsconfig.json WatchType: Type roots @@ -75,18 +93,18 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/lib/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/lib/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/lib/index.ts Text-1 "const unrelatedLocalVariable = 123;\nexport const someExportedVariable = unrelatedLocalVariable;" - ../../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../../tslibs/TS/Lib/lib.es5.d.ts' ../../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../../tslibs/TS/Lib/lib.es5.d.ts' index.ts Matched by default include pattern '**/*' @@ -120,6 +138,9 @@ Info seq [hh:mm:ss:mss] Config: /home/src/workspaces/project/tsconfig.json : { "/home/src/workspaces/project/src/index.ts" ], "options": { + "lib": [ + "lib.es5.d.ts" + ], "configFilePath": "/home/src/workspaces/project/tsconfig.json" } } @@ -144,19 +165,19 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (5) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/lib/index.ts Text-1 "const unrelatedLocalVariable = 123;\nexport const someExportedVariable = unrelatedLocalVariable;" /home/src/workspaces/project/src/index.ts Text-1 "import { someExportedVariable } from '../lib/index';\nsomeExportedVariable;" - ../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' lib/index.ts Matched by default include pattern '**/*' Imported via '../lib/index' from file 'src/index.ts' @@ -198,18 +219,18 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text - /home/src/workspaces/project/lib/tsconfig.json SVC-1-0 "{}" + /home/src/workspaces/project/lib/tsconfig.json SVC-1-0 "{ \"compilerOptions\": { \"lib\": [\"es5\"] } }" - ../../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../../tslibs/TS/Lib/lib.es5.d.ts' ../../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../../tslibs/TS/Lib/lib.es5.d.ts' tsconfig.json Root file specified for compilation @@ -234,7 +255,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -242,12 +263,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* + {"pollingInterval":500} /home/src/workspaces/project/jsconfig.json: *new* {"pollingInterval":2000} /home/src/workspaces/project/lib/index.ts: *new* @@ -293,19 +314,19 @@ Projects:: noOpenRef: true ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 containingProjects: 3 /home/src/workspaces/project/lib/tsconfig.json /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 containingProjects: 3 /home/src/workspaces/project/lib/tsconfig.json /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* version: Text-1 containingProjects: 3 /home/src/workspaces/project/lib/tsconfig.json @@ -327,7 +348,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "file": "/home/src/workspaces/project/lib/index.ts" @@ -339,19 +360,19 @@ Info seq [hh:mm:ss:mss] getConfigFileNameForFile:: File: /home/src/workspaces/p Info seq [hh:mm:ss:mss] `remove Project:: Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (5) - /home/src/tslibs/TS/Lib/lib.d.ts + /home/src/tslibs/TS/Lib/lib.es5.d.ts /home/src/tslibs/TS/Lib/lib.decorators.d.ts /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts /home/src/workspaces/project/lib/index.ts /home/src/workspaces/project/src/index.ts - ../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' lib/index.ts Matched by default include pattern '**/*' Imported via '../lib/index' from file 'src/index.ts' @@ -384,17 +405,17 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 1, + "request_seq": 2, "success": true } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: + {"pollingInterval":500} /home/src/workspaces/project/jsconfig.json: {"pollingInterval":2000} /home/src/workspaces/project/lib/jsconfig.json: @@ -447,19 +468,19 @@ Projects:: noOpenRef: true ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *changed* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *changed* version: Text-1 containingProjects: 2 *changed* /home/src/workspaces/project/lib/tsconfig.json /dev/null/inferredProject1* /home/src/workspaces/project/tsconfig.json *deleted* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *changed* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *changed* version: Text-1 containingProjects: 2 *changed* /home/src/workspaces/project/lib/tsconfig.json /dev/null/inferredProject1* /home/src/workspaces/project/tsconfig.json *deleted* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *changed* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *changed* version: Text-1 containingProjects: 2 *changed* /home/src/workspaces/project/lib/tsconfig.json @@ -482,7 +503,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/index.ts" @@ -497,6 +518,9 @@ Info seq [hh:mm:ss:mss] Config: /home/src/workspaces/project/src/tsconfig.json "/home/src/workspaces/project/src/index.ts" ], "options": { + "lib": [ + "lib.es5.d.ts" + ], "configFilePath": "/home/src/workspaces/project/src/tsconfig.json" } } @@ -522,19 +546,19 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/src/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/src/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (5) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/lib/index.ts Text-1 "const unrelatedLocalVariable = 123;\nexport const someExportedVariable = unrelatedLocalVariable;" /home/src/workspaces/project/src/index.ts SVC-2-0 "import { someExportedVariable } from '../lib/index';\nsomeExportedVariable;" - ../../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../../tslibs/TS/Lib/lib.es5.d.ts' ../../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../../tslibs/TS/Lib/lib.es5.d.ts' ../lib/index.ts Imported via '../lib/index' from file 'index.ts' index.ts @@ -585,7 +609,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 2, + "request_seq": 3, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -593,12 +617,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: + {"pollingInterval":500} /home/src/workspaces/project/jsconfig.json: {"pollingInterval":2000} /home/src/workspaces/project/lib/jsconfig.json: @@ -643,19 +667,19 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *changed* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *changed* version: Text-1 containingProjects: 3 *changed* /home/src/workspaces/project/lib/tsconfig.json /dev/null/inferredProject1* /home/src/workspaces/project/src/tsconfig.json *new* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *changed* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *changed* version: Text-1 containingProjects: 3 *changed* /home/src/workspaces/project/lib/tsconfig.json /dev/null/inferredProject1* /home/src/workspaces/project/src/tsconfig.json *new* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *changed* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *changed* version: Text-1 containingProjects: 3 *changed* /home/src/workspaces/project/lib/tsconfig.json @@ -677,7 +701,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 3, + "seq": 4, "type": "request", "arguments": { "preferences": { @@ -692,12 +716,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 3, + "request_seq": 4, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 4, + "seq": 5, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/index.ts", @@ -713,7 +737,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "rename", - "request_seq": 4, + "request_seq": 5, "success": true, "body": { "info": { @@ -773,7 +797,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 5, + "seq": 6, "type": "request", "arguments": { "preferences": {} @@ -785,6 +809,6 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 5, + "request_seq": 6, "success": true } \ No newline at end of file diff --git a/tests/baselines/reference/tsserver/fourslashServer/renameNamespaceImport.js b/tests/baselines/reference/tsserver/fourslashServer/renameNamespaceImport.js index 7aff94b5bf9e8..a970fee343a7a 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/renameNamespaceImport.js +++ b/tests/baselines/reference/tsserver/fourslashServer/renameNamespaceImport.js @@ -1,37 +1,52 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "lib": [ + "es5" + ], + "target": "es5", + "newLine": "crlf", + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/home/src/workspaces/project/lib/index.ts] const unrelatedLocalVariable = 123; export const someExportedVariable = unrelatedLocalVariable; //// [/home/src/workspaces/project/lib/tsconfig.json] -{} +{ "compilerOptions": { "lib": ["es5"] } } //// [/home/src/workspaces/project/src/index.ts] import * as lib from '../lib/index'; lib.someExportedVariable; //// [/home/src/workspaces/project/src/tsconfig.json] -{} +{ "compilerOptions": { "lib": ["es5"] } } //// [/home/src/workspaces/project/tsconfig.json] -{} +{ "compilerOptions": { "lib": ["es5"] } } Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/home/src/workspaces/project/lib/tsconfig.json" @@ -46,6 +61,9 @@ Info seq [hh:mm:ss:mss] Config: /home/src/workspaces/project/lib/tsconfig.json "/home/src/workspaces/project/lib/index.ts" ], "options": { + "lib": [ + "lib.es5.d.ts" + ], "configFilePath": "/home/src/workspaces/project/lib/tsconfig.json" } } @@ -63,7 +81,7 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspa Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/lib 1 undefined Config: /home/src/workspaces/project/lib/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/lib/index.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /home/src/workspaces/project/lib/tsconfig.json -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/lib/node_modules/@types 1 undefined Project: /home/src/workspaces/project/lib/tsconfig.json WatchType: Type roots @@ -75,18 +93,18 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/lib/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/lib/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/lib/index.ts Text-1 "const unrelatedLocalVariable = 123;\nexport const someExportedVariable = unrelatedLocalVariable;" - ../../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../../tslibs/TS/Lib/lib.es5.d.ts' ../../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../../tslibs/TS/Lib/lib.es5.d.ts' index.ts Matched by default include pattern '**/*' @@ -120,6 +138,9 @@ Info seq [hh:mm:ss:mss] Config: /home/src/workspaces/project/tsconfig.json : { "/home/src/workspaces/project/src/index.ts" ], "options": { + "lib": [ + "lib.es5.d.ts" + ], "configFilePath": "/home/src/workspaces/project/tsconfig.json" } } @@ -144,19 +165,19 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (5) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/lib/index.ts Text-1 "const unrelatedLocalVariable = 123;\nexport const someExportedVariable = unrelatedLocalVariable;" /home/src/workspaces/project/src/index.ts Text-1 "import * as lib from '../lib/index';\nlib.someExportedVariable;" - ../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' lib/index.ts Matched by default include pattern '**/*' Imported via '../lib/index' from file 'src/index.ts' @@ -198,18 +219,18 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text - /home/src/workspaces/project/lib/tsconfig.json SVC-1-0 "{}" + /home/src/workspaces/project/lib/tsconfig.json SVC-1-0 "{ \"compilerOptions\": { \"lib\": [\"es5\"] } }" - ../../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../../tslibs/TS/Lib/lib.es5.d.ts' ../../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../../tslibs/TS/Lib/lib.es5.d.ts' tsconfig.json Root file specified for compilation @@ -234,7 +255,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -242,12 +263,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* + {"pollingInterval":500} /home/src/workspaces/project/jsconfig.json: *new* {"pollingInterval":2000} /home/src/workspaces/project/lib/index.ts: *new* @@ -293,19 +314,19 @@ Projects:: noOpenRef: true ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 containingProjects: 3 /home/src/workspaces/project/lib/tsconfig.json /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 containingProjects: 3 /home/src/workspaces/project/lib/tsconfig.json /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* version: Text-1 containingProjects: 3 /home/src/workspaces/project/lib/tsconfig.json @@ -327,7 +348,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "file": "/home/src/workspaces/project/lib/index.ts" @@ -339,19 +360,19 @@ Info seq [hh:mm:ss:mss] getConfigFileNameForFile:: File: /home/src/workspaces/p Info seq [hh:mm:ss:mss] `remove Project:: Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (5) - /home/src/tslibs/TS/Lib/lib.d.ts + /home/src/tslibs/TS/Lib/lib.es5.d.ts /home/src/tslibs/TS/Lib/lib.decorators.d.ts /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts /home/src/workspaces/project/lib/index.ts /home/src/workspaces/project/src/index.ts - ../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' lib/index.ts Matched by default include pattern '**/*' Imported via '../lib/index' from file 'src/index.ts' @@ -384,17 +405,17 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 1, + "request_seq": 2, "success": true } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: + {"pollingInterval":500} /home/src/workspaces/project/jsconfig.json: {"pollingInterval":2000} /home/src/workspaces/project/lib/jsconfig.json: @@ -447,19 +468,19 @@ Projects:: noOpenRef: true ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *changed* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *changed* version: Text-1 containingProjects: 2 *changed* /home/src/workspaces/project/lib/tsconfig.json /dev/null/inferredProject1* /home/src/workspaces/project/tsconfig.json *deleted* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *changed* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *changed* version: Text-1 containingProjects: 2 *changed* /home/src/workspaces/project/lib/tsconfig.json /dev/null/inferredProject1* /home/src/workspaces/project/tsconfig.json *deleted* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *changed* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *changed* version: Text-1 containingProjects: 2 *changed* /home/src/workspaces/project/lib/tsconfig.json @@ -482,7 +503,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/index.ts" @@ -497,6 +518,9 @@ Info seq [hh:mm:ss:mss] Config: /home/src/workspaces/project/src/tsconfig.json "/home/src/workspaces/project/src/index.ts" ], "options": { + "lib": [ + "lib.es5.d.ts" + ], "configFilePath": "/home/src/workspaces/project/src/tsconfig.json" } } @@ -522,19 +546,19 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/src/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/src/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (5) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/lib/index.ts Text-1 "const unrelatedLocalVariable = 123;\nexport const someExportedVariable = unrelatedLocalVariable;" /home/src/workspaces/project/src/index.ts SVC-2-0 "import * as lib from '../lib/index';\nlib.someExportedVariable;" - ../../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../../tslibs/TS/Lib/lib.es5.d.ts' ../../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../../tslibs/TS/Lib/lib.es5.d.ts' ../lib/index.ts Imported via '../lib/index' from file 'index.ts' index.ts @@ -585,7 +609,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 2, + "request_seq": 3, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -593,12 +617,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: + {"pollingInterval":500} /home/src/workspaces/project/jsconfig.json: {"pollingInterval":2000} /home/src/workspaces/project/lib/jsconfig.json: @@ -643,19 +667,19 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *changed* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *changed* version: Text-1 containingProjects: 3 *changed* /home/src/workspaces/project/lib/tsconfig.json /dev/null/inferredProject1* /home/src/workspaces/project/src/tsconfig.json *new* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *changed* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *changed* version: Text-1 containingProjects: 3 *changed* /home/src/workspaces/project/lib/tsconfig.json /dev/null/inferredProject1* /home/src/workspaces/project/src/tsconfig.json *new* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *changed* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *changed* version: Text-1 containingProjects: 3 *changed* /home/src/workspaces/project/lib/tsconfig.json @@ -677,7 +701,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 3, + "seq": 4, "type": "request", "arguments": { "preferences": { @@ -692,12 +716,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 3, + "request_seq": 4, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 4, + "seq": 5, "type": "request", "arguments": { "file": "/home/src/workspaces/project/src/index.ts", @@ -713,7 +737,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "rename", - "request_seq": 4, + "request_seq": 5, "success": true, "body": { "info": { @@ -772,7 +796,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 5, + "seq": 6, "type": "request", "arguments": { "preferences": {} @@ -784,6 +808,6 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 5, + "request_seq": 6, "success": true } \ No newline at end of file diff --git a/tests/baselines/reference/tsserver/fourslashServer/rewriteRelativeImportExtensionsProjectReferences1.js b/tests/baselines/reference/tsserver/fourslashServer/rewriteRelativeImportExtensionsProjectReferences1.js index 9dd6f3787cba0..b5ab5fab5ae28 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/rewriteRelativeImportExtensionsProjectReferences1.js +++ b/tests/baselines/reference/tsserver/fourslashServer/rewriteRelativeImportExtensionsProjectReferences1.js @@ -1,16 +1,37 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "module": "nodenext", + "rewriteRelativeImportExtensions": true, + "lib": [ + "es5" + ], + "rootDir": "/tests/cases/fourslash/server/packages/main/src", + "outDir": "/tests/cases/fourslash/server/packages/main/dist", + "resolveJsonModule": false, + "target": "es5", + "newLine": "crlf", + "skipDefaultLibCheck": true, + "composite": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/tests/cases/fourslash/server/packages/common/package.json] { "name": "common", @@ -30,6 +51,7 @@ export {}; //// [/tests/cases/fourslash/server/packages/common/tsconfig.json] { "compilerOptions": { + "lib": ["es5"], "composite": true, "rootDir": "src", "outDir": "dist", @@ -49,6 +71,7 @@ import {} from "../../common/src/index.ts"; "compilerOptions": { "module": "nodenext", "rewriteRelativeImportExtensions": true, + "lib": ["es5"], "rootDir": "src", "outDir": "dist", "resolveJsonModule": false, @@ -61,7 +84,7 @@ import {} from "../../common/src/index.ts"; Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/packages/common/tsconfig.json" @@ -76,6 +99,9 @@ Info seq [hh:mm:ss:mss] Config: /tests/cases/fourslash/server/packages/common/t "/tests/cases/fourslash/server/packages/common/src/index.ts" ], "options": { + "lib": [ + "lib.es5.d.ts" + ], "composite": true, "rootDir": "/tests/cases/fourslash/server/packages/common/src", "outDir": "/tests/cases/fourslash/server/packages/common/dist", @@ -98,9 +124,14 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/four Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/packages/common 1 undefined Config: /tests/cases/fourslash/server/packages/common/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/packages/common/src/index.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /tests/cases/fourslash/server/packages/common/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/package.json 2000 undefined Project: /tests/cases/fourslash/server/packages/common/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/package.json 2000 undefined Project: /tests/cases/fourslash/server/packages/common/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/package.json 2000 undefined Project: /tests/cases/fourslash/server/packages/common/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/packages/common/src/package.json 2000 undefined Project: /tests/cases/fourslash/server/packages/common/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/packages/common/package.json 2000 undefined Project: /tests/cases/fourslash/server/packages/common/tsconfig.json WatchType: File location affecting resolution -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.esnext.full.d.ts 500 undefined Project: /tests/cases/fourslash/server/packages/common/tsconfig.json WatchType: Missing file Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/packages/common/node_modules/@types 1 undefined Project: /tests/cases/fourslash/server/packages/common/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/packages/common/node_modules/@types 1 undefined Project: /tests/cases/fourslash/server/packages/common/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/packages/node_modules/@types 1 undefined Project: /tests/cases/fourslash/server/packages/common/tsconfig.json WatchType: Type roots @@ -111,10 +142,19 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/four Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /tests/cases/fourslash/server/packages/common/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /tests/cases/fourslash/server/packages/common/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/tests/cases/fourslash/server/packages/common/tsconfig.json' (Configured) -Info seq [hh:mm:ss:mss] Files (1) +Info seq [hh:mm:ss:mss] Files (4) + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text + /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /tests/cases/fourslash/server/packages/common/src/index.ts Text-1 "export {};" + ../../../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions + ../../../../../../home/src/tslibs/TS/Lib/lib.decorators.d.ts + Library referenced via 'decorators' from file '../../../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' + ../../../../../../home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../../../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' src/index.ts Matched by default include pattern '**/*' File is ECMAScript module because 'package.json' has field "type" with value "module" @@ -137,53 +177,7 @@ Info seq [hh:mm:ss:mss] event: "body": { "triggerFile": "/tests/cases/fourslash/server/packages/common/tsconfig.json", "configFile": "/tests/cases/fourslash/server/packages/common/tsconfig.json", - "diagnostics": [ - { - "text": "File '/home/src/tslibs/TS/Lib/lib.esnext.full.d.ts' not found.\n The file is in the program because:\n Default library for target 'esnext'", - "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" - } - ] + "diagnostics": [] } } Info seq [hh:mm:ss:mss] getConfigFileNameForFile:: File: /tests/cases/fourslash/server/packages/common/tsconfig.json ProjectRootPath: undefined:: Result: undefined @@ -194,9 +188,9 @@ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/packages/common/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/packages/common/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/packages/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots @@ -208,25 +202,25 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /te Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text - /tests/cases/fourslash/server/packages/common/tsconfig.json SVC-1-0 "{\n \"compilerOptions\": {\n \"composite\": true,\n \"rootDir\": \"src\",\n \"outDir\": \"dist\",\n \"module\": \"nodenext\",\n \"resolveJsonModule\": false,\n }\n}" + /tests/cases/fourslash/server/packages/common/tsconfig.json SVC-1-0 "{\n \"compilerOptions\": {\n \"lib\": [\"es5\"],\n \"composite\": true,\n \"rootDir\": \"src\",\n \"outDir\": \"dist\",\n \"module\": \"nodenext\",\n \"resolveJsonModule\": false,\n }\n}" - ../../../../../../home/src/tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../../../../../home/src/tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../../../../../home/src/tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' ../../../../../../home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../../../../../home/src/tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' tsconfig.json Root file specified for compilation Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/packages/common/package.json 250 undefined WatchType: package.json file Info seq [hh:mm:ss:mss] Project '/tests/cases/fourslash/server/packages/common/tsconfig.json' (Configured) -Info seq [hh:mm:ss:mss] Files (1) +Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) @@ -241,7 +235,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -249,14 +243,21 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} -/home/src/tslibs/TS/Lib/lib.esnext.full.d.ts: *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/package.json: *new* + {"pollingInterval":2000} + {"pollingInterval":2000} +/home/src/tslibs/TS/package.json: *new* + {"pollingInterval":2000} + {"pollingInterval":2000} +/home/src/tslibs/package.json: *new* + {"pollingInterval":2000} + {"pollingInterval":2000} /tests/cases/fourslash/server/jsconfig.json: *new* {"pollingInterval":2000} /tests/cases/fourslash/server/packages/common/jsconfig.json: *new* @@ -304,17 +305,20 @@ Projects:: noOpenRef: true ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* - version: Text-1 - containingProjects: 1 - /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 - containingProjects: 1 + containingProjects: 2 + /tests/cases/fourslash/server/packages/common/tsconfig.json /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 - containingProjects: 1 + containingProjects: 2 + /tests/cases/fourslash/server/packages/common/tsconfig.json + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* + version: Text-1 + containingProjects: 2 + /tests/cases/fourslash/server/packages/common/tsconfig.json /dev/null/inferredProject1* /tests/cases/fourslash/server/packages/common/src/index.ts *new* version: Text-1 @@ -327,7 +331,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/packages/main/src/index.ts" @@ -344,6 +348,9 @@ Info seq [hh:mm:ss:mss] Config: /tests/cases/fourslash/server/packages/main/tsc "options": { "module": 199, "rewriteRelativeImportExtensions": true, + "lib": [ + "lib.es5.d.ts" + ], "rootDir": "/tests/cases/fourslash/server/packages/main/src", "outDir": "/tests/cases/fourslash/server/packages/main/dist", "resolveJsonModule": false, @@ -369,11 +376,13 @@ Info seq [hh:mm:ss:mss] event: Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/packages/main 1 undefined Config: /tests/cases/fourslash/server/packages/main/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/packages/main 1 undefined Config: /tests/cases/fourslash/server/packages/main/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /tests/cases/fourslash/server/packages/main/tsconfig.json +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/package.json 2000 undefined Project: /tests/cases/fourslash/server/packages/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/package.json 2000 undefined Project: /tests/cases/fourslash/server/packages/main/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/package.json 2000 undefined Project: /tests/cases/fourslash/server/packages/main/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/packages/common/src/package.json 2000 undefined Project: /tests/cases/fourslash/server/packages/main/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/packages/common/package.json 2000 undefined Project: /tests/cases/fourslash/server/packages/main/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/packages/main/src/package.json 2000 undefined Project: /tests/cases/fourslash/server/packages/main/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/packages/main/package.json 2000 undefined Project: /tests/cases/fourslash/server/packages/main/tsconfig.json WatchType: File location affecting resolution -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.esnext.full.d.ts 500 undefined Project: /tests/cases/fourslash/server/packages/main/tsconfig.json WatchType: Missing file Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/packages/main/node_modules/@types 1 undefined Project: /tests/cases/fourslash/server/packages/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/packages/main/node_modules/@types 1 undefined Project: /tests/cases/fourslash/server/packages/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/packages/node_modules/@types 1 undefined Project: /tests/cases/fourslash/server/packages/main/tsconfig.json WatchType: Type roots @@ -384,11 +393,20 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/four Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /tests/cases/fourslash/server/packages/main/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /tests/cases/fourslash/server/packages/main/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/tests/cases/fourslash/server/packages/main/tsconfig.json' (Configured) -Info seq [hh:mm:ss:mss] Files (2) +Info seq [hh:mm:ss:mss] Files (5) + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text + /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /tests/cases/fourslash/server/packages/common/src/index.ts Text-1 "export {};" /tests/cases/fourslash/server/packages/main/src/index.ts SVC-1-0 "import {} from \"../../common/src/index.ts\";" + ../../../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions + ../../../../../../home/src/tslibs/TS/Lib/lib.decorators.d.ts + Library referenced via 'decorators' from file '../../../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' + ../../../../../../home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../../../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' ../common/src/index.ts Imported via "../../common/src/index.ts" from file 'src/index.ts' File is ECMAScript module because '../common/package.json' has field "type" with value "module" @@ -415,61 +433,15 @@ Info seq [hh:mm:ss:mss] event: "body": { "triggerFile": "/tests/cases/fourslash/server/packages/main/src/index.ts", "configFile": "/tests/cases/fourslash/server/packages/main/tsconfig.json", - "diagnostics": [ - { - "text": "File '/home/src/tslibs/TS/Lib/lib.esnext.full.d.ts' not found.\n The file is in the program because:\n Default library for target 'esnext'", - "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" - } - ] + "diagnostics": [] } } Info seq [hh:mm:ss:mss] Project '/tests/cases/fourslash/server/packages/common/tsconfig.json' (Configured) -Info seq [hh:mm:ss:mss] Files (1) +Info seq [hh:mm:ss:mss] Files (4) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Project '/tests/cases/fourslash/server/packages/main/tsconfig.json' (Configured) -Info seq [hh:mm:ss:mss] Files (2) +Info seq [hh:mm:ss:mss] Files (5) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) @@ -486,7 +458,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 1, + "request_seq": 2, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -494,15 +466,24 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} -/home/src/tslibs/TS/Lib/lib.esnext.full.d.ts: +/home/src/tslibs/TS/Lib/lib.es5.d.ts: {"pollingInterval":500} - {"pollingInterval":500} *new* +/home/src/tslibs/TS/Lib/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} + {"pollingInterval":2000} *new* +/home/src/tslibs/TS/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} + {"pollingInterval":2000} *new* +/home/src/tslibs/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} + {"pollingInterval":2000} *new* /tests/cases/fourslash/server/jsconfig.json: {"pollingInterval":2000} /tests/cases/fourslash/server/packages/common/jsconfig.json: @@ -570,18 +551,24 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *changed* version: Text-1 - containingProjects: 1 + containingProjects: 3 *changed* + /tests/cases/fourslash/server/packages/common/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts + /tests/cases/fourslash/server/packages/main/tsconfig.json *new* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *changed* version: Text-1 - containingProjects: 1 + containingProjects: 3 *changed* + /tests/cases/fourslash/server/packages/common/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts + /tests/cases/fourslash/server/packages/main/tsconfig.json *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *changed* version: Text-1 - containingProjects: 1 + containingProjects: 3 *changed* + /tests/cases/fourslash/server/packages/common/tsconfig.json /dev/null/inferredProject1* + /tests/cases/fourslash/server/packages/main/tsconfig.json *new* /tests/cases/fourslash/server/packages/common/src/index.ts *changed* version: Text-1 containingProjects: 2 *changed* @@ -598,7 +585,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/packages/common/src/index.ts", @@ -611,13 +598,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "syntacticDiagnosticsSync", - "request_seq": 2, + "request_seq": 3, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 3, + "seq": 4, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/packages/main/src/index.ts", @@ -630,13 +617,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "syntacticDiagnosticsSync", - "request_seq": 3, + "request_seq": 4, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 4, + "seq": 5, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/packages/common/src/index.ts", @@ -649,13 +636,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "semanticDiagnosticsSync", - "request_seq": 4, + "request_seq": 5, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 5, + "seq": 6, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/packages/main/src/index.ts", @@ -668,7 +655,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "semanticDiagnosticsSync", - "request_seq": 5, + "request_seq": 6, "success": true, "body": [ { diff --git a/tests/baselines/reference/tsserver/fourslashServer/rewriteRelativeImportExtensionsProjectReferences2.js b/tests/baselines/reference/tsserver/fourslashServer/rewriteRelativeImportExtensionsProjectReferences2.js index 84183dc9bc1c2..5c9d0783dc9ba 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/rewriteRelativeImportExtensionsProjectReferences2.js +++ b/tests/baselines/reference/tsserver/fourslashServer/rewriteRelativeImportExtensionsProjectReferences2.js @@ -1,23 +1,43 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "lib": [ + "es5" + ], + "module": "nodenext", + "composite": true, + "rootDir": "/tests/cases/fourslash/server/src", + "outDir": "/tests/cases/fourslash/server/dist", + "rewriteRelativeImportExtensions": true, + "target": "es5", + "newLine": "crlf", + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/tests/cases/fourslash/server/src/compiler/parser.ts] export {}; //// [/tests/cases/fourslash/server/src/compiler/tsconfig.json] { "extends": "../tsconfig-base.json", - "compilerOptions": {} + "compilerOptions": { "lib": ["es5"] } } //// [/tests/cases/fourslash/server/src/services/services.ts] @@ -26,7 +46,7 @@ import {} from "../compiler/parser.ts"; //// [/tests/cases/fourslash/server/src/services/tsconfig.json] { "extends": "../tsconfig-base.json", - "compilerOptions": {}, + "compilerOptions": { "lib": ["es5"] }, "references": [ { "path": "../compiler" } ] @@ -35,6 +55,7 @@ import {} from "../compiler/parser.ts"; //// [/tests/cases/fourslash/server/src/tsconfig-base.json] { "compilerOptions": { + "lib": ["es5"], "module": "nodenext", "composite": true, "rootDir": ".", @@ -46,7 +67,7 @@ import {} from "../compiler/parser.ts"; Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/src/tsconfig-base.json" @@ -60,9 +81,12 @@ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/src/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/src/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots @@ -72,18 +96,18 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /te Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text - /tests/cases/fourslash/server/src/tsconfig-base.json SVC-1-0 "{\n \"compilerOptions\": {\n \"module\": \"nodenext\",\n \"composite\": true,\n \"rootDir\": \".\",\n \"outDir\": \"../dist\",\n \"rewriteRelativeImportExtensions\": true,\n }\n}" + /tests/cases/fourslash/server/src/tsconfig-base.json SVC-1-0 "{\n \"compilerOptions\": {\n \"lib\": [\"es5\"],\n \"module\": \"nodenext\",\n \"composite\": true,\n \"rootDir\": \".\",\n \"outDir\": \"../dist\",\n \"rewriteRelativeImportExtensions\": true,\n }\n}" - ../../../../../home/src/tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../../../../home/src/tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../../../../home/src/tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' ../../../../../home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../../../../home/src/tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' tsconfig-base.json Root file specified for compilation @@ -100,7 +124,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -108,12 +132,18 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* + {"pollingInterval":500} +/home/src/tslibs/TS/Lib/package.json: *new* + {"pollingInterval":2000} +/home/src/tslibs/TS/package.json: *new* + {"pollingInterval":2000} +/home/src/tslibs/package.json: *new* + {"pollingInterval":2000} /tests/cases/fourslash/server/jsconfig.json: *new* {"pollingInterval":2000} /tests/cases/fourslash/server/src/jsconfig.json: *new* @@ -138,15 +168,15 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* @@ -157,7 +187,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/src/services/services.ts" @@ -172,6 +202,9 @@ Info seq [hh:mm:ss:mss] Config: /tests/cases/fourslash/server/src/services/tsco "/tests/cases/fourslash/server/src/services/services.ts" ], "options": { + "lib": [ + "lib.es5.d.ts" + ], "module": 199, "composite": true, "rootDir": "/tests/cases/fourslash/server/src", @@ -205,6 +238,9 @@ Info seq [hh:mm:ss:mss] Config: /tests/cases/fourslash/server/src/compiler/tsco "/tests/cases/fourslash/server/src/compiler/parser.ts" ], "options": { + "lib": [ + "lib.es5.d.ts" + ], "module": 199, "composite": true, "rootDir": "/tests/cases/fourslash/server/src", @@ -217,12 +253,14 @@ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/src/compiler 1 undefined Config: /tests/cases/fourslash/server/src/compiler/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/src/compiler 1 undefined Config: /tests/cases/fourslash/server/src/compiler/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/src/compiler/parser.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/package.json 2000 undefined Project: /tests/cases/fourslash/server/src/services/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/package.json 2000 undefined Project: /tests/cases/fourslash/server/src/services/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/package.json 2000 undefined Project: /tests/cases/fourslash/server/src/services/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/src/compiler/package.json 2000 undefined Project: /tests/cases/fourslash/server/src/services/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/src/package.json 2000 undefined Project: /tests/cases/fourslash/server/src/services/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/package.json 2000 undefined Project: /tests/cases/fourslash/server/src/services/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/package.json 2000 undefined Project: /tests/cases/fourslash/server/src/services/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/src/services/package.json 2000 undefined Project: /tests/cases/fourslash/server/src/services/tsconfig.json WatchType: File location affecting resolution -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.esnext.full.d.ts 500 undefined Project: /tests/cases/fourslash/server/src/services/tsconfig.json WatchType: Missing file Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/src/services/node_modules/@types 1 undefined Project: /tests/cases/fourslash/server/src/services/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/src/services/node_modules/@types 1 undefined Project: /tests/cases/fourslash/server/src/services/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/src/node_modules/@types 1 undefined Project: /tests/cases/fourslash/server/src/services/tsconfig.json WatchType: Type roots @@ -233,11 +271,20 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/four Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /tests/cases/fourslash/server/src/services/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /tests/cases/fourslash/server/src/services/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/tests/cases/fourslash/server/src/services/tsconfig.json' (Configured) -Info seq [hh:mm:ss:mss] Files (2) +Info seq [hh:mm:ss:mss] Files (5) + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text + /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /tests/cases/fourslash/server/src/compiler/parser.ts Text-1 "export {};" /tests/cases/fourslash/server/src/services/services.ts SVC-1-0 "import {} from \"../compiler/parser.ts\";" + ../../../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions + ../../../../../../home/src/tslibs/TS/Lib/lib.decorators.d.ts + Library referenced via 'decorators' from file '../../../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' + ../../../../../../home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../../../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' ../compiler/parser.ts Imported via "../compiler/parser.ts" from file 'services.ts' File is CommonJS module because 'package.json' was not found @@ -263,58 +310,12 @@ Info seq [hh:mm:ss:mss] event: "body": { "triggerFile": "/tests/cases/fourslash/server/src/services/services.ts", "configFile": "/tests/cases/fourslash/server/src/services/tsconfig.json", - "diagnostics": [ - { - "text": "File '/home/src/tslibs/TS/Lib/lib.esnext.full.d.ts' not found.\n The file is in the program because:\n Default library for target 'esnext'", - "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" - } - ] + "diagnostics": [] } } Info seq [hh:mm:ss:mss] getConfigFileNameForFile:: File: /tests/cases/fourslash/server/src/services/tsconfig.json ProjectRootPath: undefined:: Result: undefined Info seq [hh:mm:ss:mss] Project '/tests/cases/fourslash/server/src/services/tsconfig.json' (Configured) -Info seq [hh:mm:ss:mss] Files (2) +Info seq [hh:mm:ss:mss] Files (5) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) @@ -331,7 +332,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 1, + "request_seq": 2, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -339,14 +340,21 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} -/home/src/tslibs/TS/Lib/lib.esnext.full.d.ts: *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} *new* +/home/src/tslibs/TS/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} *new* +/home/src/tslibs/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} *new* /tests/cases/fourslash/package.json: *new* {"pollingInterval":2000} /tests/cases/fourslash/server/jsconfig.json: @@ -402,18 +410,21 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *changed* version: Text-1 - containingProjects: 1 + containingProjects: 2 *changed* /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts + /tests/cases/fourslash/server/src/services/tsconfig.json *new* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *changed* version: Text-1 - containingProjects: 1 + containingProjects: 2 *changed* /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts + /tests/cases/fourslash/server/src/services/tsconfig.json *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *changed* version: Text-1 - containingProjects: 1 + containingProjects: 2 *changed* /dev/null/inferredProject1* + /tests/cases/fourslash/server/src/services/tsconfig.json *new* /tests/cases/fourslash/server/src/compiler/parser.ts *new* version: Text-1 containingProjects: 1 @@ -429,7 +440,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/src/compiler/parser.ts", @@ -442,13 +453,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "syntacticDiagnosticsSync", - "request_seq": 2, + "request_seq": 3, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 3, + "seq": 4, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/src/services/services.ts", @@ -461,13 +472,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "syntacticDiagnosticsSync", - "request_seq": 3, + "request_seq": 4, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 4, + "seq": 5, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/src/compiler/parser.ts", @@ -480,13 +491,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "semanticDiagnosticsSync", - "request_seq": 4, + "request_seq": 5, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 5, + "seq": 6, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/src/services/services.ts", @@ -499,7 +510,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "semanticDiagnosticsSync", - "request_seq": 5, + "request_seq": 6, "success": true, "body": [] } \ No newline at end of file diff --git a/tests/baselines/reference/tsserver/fourslashServer/rewriteRelativeImportExtensionsProjectReferences3.js b/tests/baselines/reference/tsserver/fourslashServer/rewriteRelativeImportExtensionsProjectReferences3.js index 7febd75bed163..680858f1ff576 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/rewriteRelativeImportExtensionsProjectReferences3.js +++ b/tests/baselines/reference/tsserver/fourslashServer/rewriteRelativeImportExtensionsProjectReferences3.js @@ -1,16 +1,36 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "lib": [ + "es5" + ], + "module": "nodenext", + "composite": true, + "rewriteRelativeImportExtensions": true, + "rootDir": "/tests/cases/fourslash/server/src/services", + "outDir": "/tests/cases/fourslash/server/dist/services", + "target": "es5", + "newLine": "crlf", + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/tests/cases/fourslash/server/src/compiler/parser.ts] export {}; @@ -18,6 +38,7 @@ export {}; { "extends": "../tsconfig-base.json", "compilerOptions": { + "lib": ["es5"], "rootDir": ".", "outDir": "../../dist/compiler", } @@ -29,6 +50,7 @@ import {} from "../compiler/parser.ts"; { "extends": "../tsconfig-base.json", "compilerOptions": { + "lib": ["es5"], "rootDir": ".", "outDir": "../../dist/services", }, @@ -40,6 +62,7 @@ import {} from "../compiler/parser.ts"; //// [/tests/cases/fourslash/server/src/tsconfig-base.json] { "compilerOptions": { + "lib": ["es5"], "module": "nodenext", "composite": true, "rewriteRelativeImportExtensions": true, @@ -49,7 +72,7 @@ import {} from "../compiler/parser.ts"; Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/src/tsconfig-base.json" @@ -63,9 +86,12 @@ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/src/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/src/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots @@ -75,18 +101,18 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /te Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text - /tests/cases/fourslash/server/src/tsconfig-base.json SVC-1-0 "{\n \"compilerOptions\": {\n \"module\": \"nodenext\",\n \"composite\": true,\n \"rewriteRelativeImportExtensions\": true,\n }\n}" + /tests/cases/fourslash/server/src/tsconfig-base.json SVC-1-0 "{\n \"compilerOptions\": {\n \"lib\": [\"es5\"],\n \"module\": \"nodenext\",\n \"composite\": true,\n \"rewriteRelativeImportExtensions\": true,\n }\n}" - ../../../../../home/src/tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../../../../home/src/tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../../../../home/src/tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' ../../../../../home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../../../../home/src/tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' tsconfig-base.json Root file specified for compilation @@ -103,7 +129,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -111,12 +137,18 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* + {"pollingInterval":500} +/home/src/tslibs/TS/Lib/package.json: *new* + {"pollingInterval":2000} +/home/src/tslibs/TS/package.json: *new* + {"pollingInterval":2000} +/home/src/tslibs/package.json: *new* + {"pollingInterval":2000} /tests/cases/fourslash/server/jsconfig.json: *new* {"pollingInterval":2000} /tests/cases/fourslash/server/src/jsconfig.json: *new* @@ -141,15 +173,15 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* @@ -160,7 +192,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/src/services/services.ts" @@ -175,6 +207,9 @@ Info seq [hh:mm:ss:mss] Config: /tests/cases/fourslash/server/src/services/tsco "/tests/cases/fourslash/server/src/services/services.ts" ], "options": { + "lib": [ + "lib.es5.d.ts" + ], "module": 199, "composite": true, "rewriteRelativeImportExtensions": true, @@ -208,6 +243,9 @@ Info seq [hh:mm:ss:mss] Config: /tests/cases/fourslash/server/src/compiler/tsco "/tests/cases/fourslash/server/src/compiler/parser.ts" ], "options": { + "lib": [ + "lib.es5.d.ts" + ], "module": 199, "composite": true, "rewriteRelativeImportExtensions": true, @@ -220,12 +258,14 @@ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/src/compiler 1 undefined Config: /tests/cases/fourslash/server/src/compiler/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/src/compiler 1 undefined Config: /tests/cases/fourslash/server/src/compiler/tsconfig.json WatchType: Wild card directory Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/src/compiler/parser.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/package.json 2000 undefined Project: /tests/cases/fourslash/server/src/services/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/package.json 2000 undefined Project: /tests/cases/fourslash/server/src/services/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/package.json 2000 undefined Project: /tests/cases/fourslash/server/src/services/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/src/compiler/package.json 2000 undefined Project: /tests/cases/fourslash/server/src/services/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/src/package.json 2000 undefined Project: /tests/cases/fourslash/server/src/services/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/package.json 2000 undefined Project: /tests/cases/fourslash/server/src/services/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/package.json 2000 undefined Project: /tests/cases/fourslash/server/src/services/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/src/services/package.json 2000 undefined Project: /tests/cases/fourslash/server/src/services/tsconfig.json WatchType: File location affecting resolution -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.esnext.full.d.ts 500 undefined Project: /tests/cases/fourslash/server/src/services/tsconfig.json WatchType: Missing file Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/src/services/node_modules/@types 1 undefined Project: /tests/cases/fourslash/server/src/services/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/src/services/node_modules/@types 1 undefined Project: /tests/cases/fourslash/server/src/services/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/src/node_modules/@types 1 undefined Project: /tests/cases/fourslash/server/src/services/tsconfig.json WatchType: Type roots @@ -236,11 +276,20 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/four Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /tests/cases/fourslash/server/src/services/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /tests/cases/fourslash/server/src/services/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/tests/cases/fourslash/server/src/services/tsconfig.json' (Configured) -Info seq [hh:mm:ss:mss] Files (2) +Info seq [hh:mm:ss:mss] Files (5) + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text + /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /tests/cases/fourslash/server/src/compiler/parser.ts Text-1 "export {};" /tests/cases/fourslash/server/src/services/services.ts SVC-1-0 "import {} from \"../compiler/parser.ts\";" + ../../../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions + ../../../../../../home/src/tslibs/TS/Lib/lib.decorators.d.ts + Library referenced via 'decorators' from file '../../../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' + ../../../../../../home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../../../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' ../compiler/parser.ts Imported via "../compiler/parser.ts" from file 'services.ts' File is CommonJS module because 'package.json' was not found @@ -266,58 +315,12 @@ Info seq [hh:mm:ss:mss] event: "body": { "triggerFile": "/tests/cases/fourslash/server/src/services/services.ts", "configFile": "/tests/cases/fourslash/server/src/services/tsconfig.json", - "diagnostics": [ - { - "text": "File '/home/src/tslibs/TS/Lib/lib.esnext.full.d.ts' not found.\n The file is in the program because:\n Default library for target 'esnext'", - "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" - } - ] + "diagnostics": [] } } Info seq [hh:mm:ss:mss] getConfigFileNameForFile:: File: /tests/cases/fourslash/server/src/services/tsconfig.json ProjectRootPath: undefined:: Result: undefined Info seq [hh:mm:ss:mss] Project '/tests/cases/fourslash/server/src/services/tsconfig.json' (Configured) -Info seq [hh:mm:ss:mss] Files (2) +Info seq [hh:mm:ss:mss] Files (5) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) @@ -334,7 +337,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 1, + "request_seq": 2, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -342,14 +345,21 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} -/home/src/tslibs/TS/Lib/lib.esnext.full.d.ts: *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} *new* +/home/src/tslibs/TS/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} *new* +/home/src/tslibs/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} *new* /tests/cases/fourslash/package.json: *new* {"pollingInterval":2000} /tests/cases/fourslash/server/jsconfig.json: @@ -405,18 +415,21 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *changed* version: Text-1 - containingProjects: 1 + containingProjects: 2 *changed* /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts + /tests/cases/fourslash/server/src/services/tsconfig.json *new* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *changed* version: Text-1 - containingProjects: 1 + containingProjects: 2 *changed* /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts + /tests/cases/fourslash/server/src/services/tsconfig.json *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *changed* version: Text-1 - containingProjects: 1 + containingProjects: 2 *changed* /dev/null/inferredProject1* + /tests/cases/fourslash/server/src/services/tsconfig.json *new* /tests/cases/fourslash/server/src/compiler/parser.ts *new* version: Text-1 containingProjects: 1 @@ -432,7 +445,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/src/compiler/parser.ts", @@ -445,13 +458,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "syntacticDiagnosticsSync", - "request_seq": 2, + "request_seq": 3, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 3, + "seq": 4, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/src/services/services.ts", @@ -464,13 +477,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "syntacticDiagnosticsSync", - "request_seq": 3, + "request_seq": 4, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 4, + "seq": 5, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/src/compiler/parser.ts", @@ -483,13 +496,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "semanticDiagnosticsSync", - "request_seq": 4, + "request_seq": 5, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 5, + "seq": 6, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/src/services/services.ts", @@ -502,7 +515,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "semanticDiagnosticsSync", - "request_seq": 5, + "request_seq": 6, "success": true, "body": [] } \ No newline at end of file diff --git a/tests/baselines/reference/tsserver/fourslashServer/semanticClassificationJs1.js b/tests/baselines/reference/tsserver/fourslashServer/semanticClassificationJs1.js index abf6b242689a8..3173c77fa5aa0 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/semanticClassificationJs1.js +++ b/tests/baselines/reference/tsserver/fourslashServer/semanticClassificationJs1.js @@ -1,16 +1,31 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "target": "es5", + "newLine": "crlf", + "lib": [ + "es5" + ], + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/tests/cases/fourslash/server/semanticClassificationJs1.ts] @Filename: index.js @@ -20,7 +35,7 @@ Thing.toExponential(); Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/semanticClassificationJs1.ts" @@ -32,7 +47,7 @@ Info seq [hh:mm:ss:mss] Creating InferredProject: /dev/null/inferredProject1*, Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots @@ -42,18 +57,18 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /te Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /tests/cases/fourslash/server/semanticClassificationJs1.ts SVC-1-0 "@Filename: index.js\n\nvar Thing = 0;\nThing.toExponential();" - ../../../../home/src/tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../../../home/src/tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../../../home/src/tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' ../../../../home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../../../home/src/tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' semanticClassificationJs1.ts Root file specified for compilation @@ -70,7 +85,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -78,12 +93,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* + {"pollingInterval":500} /tests/cases/fourslash/server/jsconfig.json: *new* {"pollingInterval":2000} /tests/cases/fourslash/server/tsconfig.json: *new* @@ -102,15 +117,15 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* @@ -121,7 +136,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/semanticClassificationJs1.ts", @@ -136,7 +151,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "encodedSemanticClassifications-full", - "request_seq": 1, + "request_seq": 2, "success": true, "body": { "spans": [ diff --git a/tests/baselines/reference/tsserver/fourslashServer/signatureHelp01.js b/tests/baselines/reference/tsserver/fourslashServer/signatureHelp01.js index af75ed8879cbb..f33e71c9dceb6 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/signatureHelp01.js +++ b/tests/baselines/reference/tsserver/fourslashServer/signatureHelp01.js @@ -1,16 +1,31 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "target": "es5", + "newLine": "crlf", + "lib": [ + "es5" + ], + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/tests/cases/fourslash/server/signatureHelp01.ts] function foo(data: number) { } @@ -22,7 +37,7 @@ function bar { Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/signatureHelp01.ts" @@ -34,7 +49,7 @@ Info seq [hh:mm:ss:mss] Creating InferredProject: /dev/null/inferredProject1*, Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots @@ -44,18 +59,18 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /te Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /tests/cases/fourslash/server/signatureHelp01.ts SVC-1-0 "function foo(data: number) {\n}\n\nfunction bar {\n foo()\n}" - ../../../../home/src/tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../../../home/src/tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../../../home/src/tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' ../../../../home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../../../home/src/tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' signatureHelp01.ts Root file specified for compilation @@ -72,7 +87,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -80,12 +95,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* + {"pollingInterval":500} /tests/cases/fourslash/server/jsconfig.json: *new* {"pollingInterval":2000} /tests/cases/fourslash/server/tsconfig.json: *new* @@ -104,15 +119,15 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* @@ -123,7 +138,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/signatureHelp01.ts", @@ -137,7 +152,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "signatureHelp", - "request_seq": 1, + "request_seq": 2, "success": true, "body": { "items": [ diff --git a/tests/baselines/reference/tsserver/fourslashServer/signatureHelpJSDocCallbackTag.js b/tests/baselines/reference/tsserver/fourslashServer/signatureHelpJSDocCallbackTag.js index 6764cdff30d38..2bea8077916c4 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/signatureHelpJSDocCallbackTag.js +++ b/tests/baselines/reference/tsserver/fourslashServer/signatureHelpJSDocCallbackTag.js @@ -1,16 +1,31 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "target": "es5", + "newLine": "crlf", + "lib": [ + "es5" + ], + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/tests/cases/fourslash/server/jsdocCallbackTag.js] /** * @callback FooHandler - A kind of magic @@ -38,7 +53,7 @@ t("!", 12, false); Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/jsdocCallbackTag.js" @@ -50,7 +65,7 @@ Info seq [hh:mm:ss:mss] Creating InferredProject: /dev/null/inferredProject1*, Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots @@ -60,18 +75,18 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /te Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /tests/cases/fourslash/server/jsdocCallbackTag.js SVC-1-0 "/**\n * @callback FooHandler - A kind of magic\n * @param {string} eventName - So many words\n * @param eventName2 {number | string} - Silence is golden\n * @param eventName3 - Osterreich mos def\n * @return {number} - DIVEKICK\n */\n/**\n * @type {FooHandler} callback\n */\nvar t;\n\n/**\n * @callback FooHandler2 - What, another one?\n * @param {string=} eventName - it keeps happening\n * @param {string} [eventName2] - i WARNED you dog\n */\n/**\n * @type {FooHandler2} callback\n */\nvar t2;\nt(\"!\", 12, false);" - ../../../../home/src/tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../../../home/src/tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../../../home/src/tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' ../../../../home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../../../home/src/tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' jsdocCallbackTag.js Root file specified for compilation @@ -88,7 +103,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -96,12 +111,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* + {"pollingInterval":500} /tests/cases/fourslash/server/jsconfig.json: *new* {"pollingInterval":2000} /tests/cases/fourslash/server/tsconfig.json: *new* @@ -120,15 +135,15 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* @@ -139,7 +154,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/jsdocCallbackTag.js", @@ -153,7 +168,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "signatureHelp", - "request_seq": 1, + "request_seq": 2, "success": true, "body": { "items": [ @@ -328,7 +343,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/jsdocCallbackTag.js", @@ -342,7 +357,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "signatureHelp", - "request_seq": 2, + "request_seq": 3, "success": true, "body": { "items": [ @@ -517,7 +532,7 @@ Info seq [hh:mm:ss:mss] response: } Info seq [hh:mm:ss:mss] request: { - "seq": 3, + "seq": 4, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/jsdocCallbackTag.js", @@ -531,7 +546,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "signatureHelp", - "request_seq": 3, + "request_seq": 4, "success": true, "body": { "items": [ diff --git a/tests/baselines/reference/tsserver/fourslashServer/tripleSlashReferenceResolutionMode.js b/tests/baselines/reference/tsserver/fourslashServer/tripleSlashReferenceResolutionMode.js index 20984633ca8a1..e5cd01413e1d4 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/tripleSlashReferenceResolutionMode.js +++ b/tests/baselines/reference/tsserver/fourslashServer/tripleSlashReferenceResolutionMode.js @@ -1,16 +1,35 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "lib": [ + "es5" + ], + "module": "nodenext", + "declaration": true, + "strict": true, + "outDir": "/home/src/workspaces/project/out", + "target": "es5", + "newLine": "crlf", + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/home/src/workspaces/project/index.ts] /// pkgImportGlobal; @@ -33,12 +52,12 @@ declare global { const pkgRequireGlobal: PkgRequireInterface; } { "private": true, "type": "commonjs" } //// [/home/src/workspaces/project/tsconfig.json] -{ "compilerOptions": { "module": "nodenext", "declaration": true, "strict": true, "outDir": "out" }, "files": ["./index.ts"] } +{ "compilerOptions": { "lib": ["es5"], "module": "nodenext", "declaration": true, "strict": true, "outDir": "out" }, "files": ["./index.ts"] } Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/home/src/workspaces/project/tsconfig.json" @@ -53,6 +72,9 @@ Info seq [hh:mm:ss:mss] Config: /home/src/workspaces/project/tsconfig.json : { "/home/src/workspaces/project/index.ts" ], "options": { + "lib": [ + "lib.es5.d.ts" + ], "module": 199, "declaration": true, "strict": true, @@ -78,19 +100,33 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspa Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/node_modules 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/pkg/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/pkg/import.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/package.json 2000 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: File location affecting resolution -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.esnext.full.d.ts 500 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Missing file Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/node_modules/@types 1 undefined Project: /home/src/workspaces/project/tsconfig.json WatchType: Type roots Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /home/src/workspaces/project/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) -Info seq [hh:mm:ss:mss] Files (2) +Info seq [hh:mm:ss:mss] Files (5) + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text + /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /home/src/workspaces/project/node_modules/pkg/import.d.ts Text-1 "export {};\nexport interface PkgImportInterface { field: any; }\ndeclare global { const pkgImportGlobal: PkgImportInterface; }" /home/src/workspaces/project/index.ts Text-1 "/// \npkgImportGlobal;\nexport {};" + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions + ../../tslibs/TS/Lib/lib.decorators.d.ts + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' + ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' node_modules/pkg/import.d.ts Type library referenced via 'pkg' from file 'index.ts' with packageId 'pkg/import.d.ts@0.0.1' File is ECMAScript module because 'node_modules/pkg/package.json' has field "type" with value "module" @@ -116,72 +152,16 @@ Info seq [hh:mm:ss:mss] event: "body": { "triggerFile": "/home/src/workspaces/project/tsconfig.json", "configFile": "/home/src/workspaces/project/tsconfig.json", - "diagnostics": [ - { - "text": "File '/home/src/tslibs/TS/Lib/lib.esnext.full.d.ts' not found.\n The file is in the program because:\n Default library for target 'esnext'", - "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 'CallableFunction'.", - "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 'NewableFunction'.", - "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" - } - ] + "diagnostics": [] } } Info seq [hh:mm:ss:mss] getConfigFileNameForFile:: File: /home/src/workspaces/project/tsconfig.json ProjectRootPath: undefined:: Result: undefined Info seq [hh:mm:ss:mss] Creating InferredProject: /dev/null/inferredProject1*, currentDirectory: /home/src/workspaces/project Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/package.json 2000 undefined Project: /dev/null/inferredProject1* WatchType: File location affecting resolution Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/project/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /home/src/workspaces/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots @@ -189,25 +169,25 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /ho Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text - /home/src/workspaces/project/tsconfig.json SVC-1-0 "{ \"compilerOptions\": { \"module\": \"nodenext\", \"declaration\": true, \"strict\": true, \"outDir\": \"out\" }, \"files\": [\"./index.ts\"] }" + /home/src/workspaces/project/tsconfig.json SVC-1-0 "{ \"compilerOptions\": { \"lib\": [\"es5\"], \"module\": \"nodenext\", \"declaration\": true, \"strict\": true, \"outDir\": \"out\" }, \"files\": [\"./index.ts\"] }" - ../../tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../tslibs/TS/Lib/lib.es5.d.ts' ../../tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../tslibs/TS/Lib/lib.es5.d.ts' tsconfig.json Root file specified for compilation Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/workspaces/project/package.json 250 undefined WatchType: package.json file Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) -Info seq [hh:mm:ss:mss] Files (2) +Info seq [hh:mm:ss:mss] Files (5) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) @@ -222,7 +202,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -230,14 +210,21 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} -/home/src/tslibs/TS/Lib/lib.esnext.full.d.ts: *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/package.json: *new* + {"pollingInterval":2000} + {"pollingInterval":2000} +/home/src/tslibs/TS/package.json: *new* + {"pollingInterval":2000} + {"pollingInterval":2000} +/home/src/tslibs/package.json: *new* + {"pollingInterval":2000} + {"pollingInterval":2000} /home/src/workspaces/project/index.ts: *new* {"pollingInterval":500} /home/src/workspaces/project/jsconfig.json: *new* @@ -275,17 +262,20 @@ Projects:: noOpenRef: true ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* - version: Text-1 - containingProjects: 1 - /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/workspaces/project/index.ts *new* version: Text-1 @@ -302,7 +292,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts" @@ -312,7 +302,7 @@ Info seq [hh:mm:ss:mss] request: Info seq [hh:mm:ss:mss] FileWatcher:: Close:: WatchInfo: /home/src/workspaces/project/index.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] getConfigFileNameForFile:: File: /home/src/workspaces/project/index.ts ProjectRootPath: undefined:: Result: /home/src/workspaces/project/tsconfig.json Info seq [hh:mm:ss:mss] Project '/home/src/workspaces/project/tsconfig.json' (Configured) -Info seq [hh:mm:ss:mss] Files (2) +Info seq [hh:mm:ss:mss] Files (5) Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) @@ -329,19 +319,26 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 1, + "request_seq": 2, "success": true } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: {"pollingInterval":500} -/home/src/tslibs/TS/Lib/lib.esnext.full.d.ts: +/home/src/tslibs/TS/Lib/lib.es5.d.ts: {"pollingInterval":500} +/home/src/tslibs/TS/Lib/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} +/home/src/tslibs/TS/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} +/home/src/tslibs/package.json: + {"pollingInterval":2000} + {"pollingInterval":2000} /home/src/workspaces/project/jsconfig.json: {"pollingInterval":2000} /home/src/workspaces/project/node_modules/pkg/import.d.ts: @@ -381,17 +378,20 @@ Projects:: noOpenRef: false *changed* ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts - version: Text-1 - containingProjects: 1 - /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 - containingProjects: 1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.es5.d.ts + version: Text-1 + containingProjects: 2 + /home/src/workspaces/project/tsconfig.json /dev/null/inferredProject1* /home/src/workspaces/project/index.ts (Open) *changed* open: true *changed* @@ -409,7 +409,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -422,13 +422,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "syntacticDiagnosticsSync", - "request_seq": 2, + "request_seq": 3, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 3, + "seq": 4, "type": "request", "arguments": { "file": "/home/src/workspaces/project/index.ts", @@ -441,7 +441,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "semanticDiagnosticsSync", - "request_seq": 3, + "request_seq": 4, "success": true, "body": [] } \ No newline at end of file diff --git a/tests/baselines/reference/tsserver/fourslashServer/tsconfigComputedPropertyError.js b/tests/baselines/reference/tsserver/fourslashServer/tsconfigComputedPropertyError.js index 606d7a24a9b66..ae2bb33cc53b1 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/tsconfigComputedPropertyError.js +++ b/tests/baselines/reference/tsserver/fourslashServer/tsconfigComputedPropertyError.js @@ -1,19 +1,35 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "lib": [ + "es5" + ], + "target": "es5", + "newLine": "crlf", + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/tests/cases/fourslash/server/tsconfig.json] { ["oops!" + 42]: "true", + "compilerOptions": { "lib": ["es5"] }, "files": [ "nonexistentfile.ts" ], @@ -23,7 +39,7 @@ lib.decorators.legacy.d.ts-Text Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/tsconfig.json" @@ -38,6 +54,9 @@ Info seq [hh:mm:ss:mss] Config: /tests/cases/fourslash/server/tsconfig.json : { "/tests/cases/fourslash/server/nonexistentfile.ts" ], "options": { + "lib": [ + "lib.es5.d.ts" + ], "configFilePath": "/tests/cases/fourslash/server/tsconfig.json" } } @@ -52,7 +71,7 @@ Info seq [hh:mm:ss:mss] event: } } Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /tests/cases/fourslash/server/tsconfig.json -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/nonexistentfile.ts 500 undefined Project: /tests/cases/fourslash/server/tsconfig.json WatchType: Missing file @@ -63,17 +82,17 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /te Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /tests/cases/fourslash/server/tsconfig.json projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/tests/cases/fourslash/server/tsconfig.json' (Configured) Info seq [hh:mm:ss:mss] Files (3) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text - ../../../../home/src/tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../../../home/src/tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../../../home/src/tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' ../../../../home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../../../home/src/tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' Info seq [hh:mm:ss:mss] ----------------------------------------------- Info seq [hh:mm:ss:mss] event: @@ -102,11 +121,11 @@ Info seq [hh:mm:ss:mss] event: { "span": { "start": { - "line": 4, + "line": 5, "offset": 9 }, "end": { - "line": 4, + "line": 5, "offset": 29 }, "file": "/tests/cases/fourslash/server/tsconfig.json" @@ -145,18 +164,18 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /te Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text - /tests/cases/fourslash/server/tsconfig.json SVC-1-0 "{\n [\"oops!\" + 42]: \"true\",\n \"files\": [\n \"nonexistentfile.ts\"\n ],\n \"compileOnSave\": true\n}" + /tests/cases/fourslash/server/tsconfig.json SVC-1-0 "{\n [\"oops!\" + 42]: \"true\",\n \"compilerOptions\": { \"lib\": [\"es5\"] },\n \"files\": [\n \"nonexistentfile.ts\"\n ],\n \"compileOnSave\": true\n}" - ../../../../home/src/tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../../../home/src/tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../../../home/src/tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' ../../../../home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../../../home/src/tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' tsconfig.json Root file specified for compilation @@ -177,7 +196,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -185,12 +204,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* + {"pollingInterval":500} /tests/cases/fourslash/server/jsconfig.json: *new* {"pollingInterval":2000} /tests/cases/fourslash/server/nonexistentfile.ts: *new* @@ -217,17 +236,17 @@ Projects:: noOpenRef: true ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 containingProjects: 2 /tests/cases/fourslash/server/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 containingProjects: 2 /tests/cases/fourslash/server/tsconfig.json /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* version: Text-1 containingProjects: 2 /tests/cases/fourslash/server/tsconfig.json @@ -239,7 +258,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/tsconfig.json", @@ -252,7 +271,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "semanticDiagnosticsSync", - "request_seq": 1, + "request_seq": 2, "success": true, "body": [] } \ No newline at end of file diff --git a/tests/baselines/reference/tsserver/fourslashServer/tsxIncrementalServer.js b/tests/baselines/reference/tsserver/fourslashServer/tsxIncrementalServer.js index 037ded42c7408..708f354378e9c 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/tsxIncrementalServer.js +++ b/tests/baselines/reference/tsserver/fourslashServer/tsxIncrementalServer.js @@ -1,23 +1,38 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "target": "es5", + "newLine": "crlf", + "lib": [ + "es5" + ], + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/tests/cases/fourslash/server/tsxIncrementalServer.ts] Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/tsxIncrementalServer.ts" @@ -29,7 +44,7 @@ Info seq [hh:mm:ss:mss] Creating InferredProject: /dev/null/inferredProject1*, Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots @@ -39,18 +54,18 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /te Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /tests/cases/fourslash/server/tsxIncrementalServer.ts SVC-1-0 "" - ../../../../home/src/tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../../../home/src/tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../../../home/src/tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' ../../../../home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../../../home/src/tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' tsxIncrementalServer.ts Root file specified for compilation @@ -67,7 +82,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -75,12 +90,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* + {"pollingInterval":500} /tests/cases/fourslash/server/jsconfig.json: *new* {"pollingInterval":2000} /tests/cases/fourslash/server/tsconfig.json: *new* @@ -99,15 +114,15 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* @@ -118,7 +133,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/tsxIncrementalServer.ts", @@ -135,7 +150,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 1, + "request_seq": 2, "success": true } After Request @@ -147,15 +162,15 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* @@ -166,7 +181,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/tsxIncrementalServer.ts", @@ -183,20 +198,20 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 2, + "request_seq": 3, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* @@ -207,7 +222,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 3, + "seq": 4, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/tsxIncrementalServer.ts", @@ -222,13 +237,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 3, + "request_seq": 4, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 4, + "seq": 5, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/tsxIncrementalServer.ts", @@ -245,20 +260,20 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 4, + "request_seq": 5, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* @@ -269,7 +284,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 5, + "seq": 6, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/tsxIncrementalServer.ts", @@ -286,20 +301,20 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 5, + "request_seq": 6, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* @@ -310,7 +325,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 6, + "seq": 7, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/tsxIncrementalServer.ts", @@ -325,13 +340,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 6, + "request_seq": 7, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 7, + "seq": 8, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/tsxIncrementalServer.ts", @@ -348,20 +363,20 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 7, + "request_seq": 8, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* @@ -372,7 +387,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 8, + "seq": 9, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/tsxIncrementalServer.ts", @@ -387,13 +402,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 8, + "request_seq": 9, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 9, + "seq": 10, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/tsxIncrementalServer.ts", @@ -410,20 +425,20 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 9, + "request_seq": 10, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* @@ -434,7 +449,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 10, + "seq": 11, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/tsxIncrementalServer.ts", @@ -449,13 +464,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 10, + "request_seq": 11, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 11, + "seq": 12, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/tsxIncrementalServer.ts", @@ -472,20 +487,20 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 11, + "request_seq": 12, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* @@ -496,7 +511,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 12, + "seq": 13, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/tsxIncrementalServer.ts", @@ -513,20 +528,20 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 12, + "request_seq": 13, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* @@ -537,7 +552,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 13, + "seq": 14, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/tsxIncrementalServer.ts", @@ -552,13 +567,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 13, + "request_seq": 14, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 14, + "seq": 15, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/tsxIncrementalServer.ts", @@ -575,20 +590,20 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 14, + "request_seq": 15, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* @@ -599,7 +614,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 15, + "seq": 16, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/tsxIncrementalServer.ts", @@ -616,20 +631,20 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 15, + "request_seq": 16, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* @@ -640,7 +655,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 16, + "seq": 17, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/tsxIncrementalServer.ts", @@ -655,13 +670,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 16, + "request_seq": 17, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 17, + "seq": 18, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/tsxIncrementalServer.ts", @@ -678,20 +693,20 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 17, + "request_seq": 18, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* @@ -702,7 +717,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 18, + "seq": 19, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/tsxIncrementalServer.ts", @@ -717,13 +732,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 18, + "request_seq": 19, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 19, + "seq": 20, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/tsxIncrementalServer.ts", @@ -740,20 +755,20 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 19, + "request_seq": 20, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* @@ -764,7 +779,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 20, + "seq": 21, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/tsxIncrementalServer.ts", @@ -779,13 +794,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 20, + "request_seq": 21, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 21, + "seq": 22, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/tsxIncrementalServer.ts", @@ -802,20 +817,20 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 21, + "request_seq": 22, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* @@ -826,7 +841,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 22, + "seq": 23, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/tsxIncrementalServer.ts", @@ -843,20 +858,20 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 22, + "request_seq": 23, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* @@ -867,7 +882,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 23, + "seq": 24, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/tsxIncrementalServer.ts", @@ -882,13 +897,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 23, + "request_seq": 24, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 24, + "seq": 25, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/tsxIncrementalServer.ts", @@ -905,20 +920,20 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 24, + "request_seq": 25, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* @@ -929,7 +944,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 25, + "seq": 26, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/tsxIncrementalServer.ts", @@ -946,20 +961,20 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 25, + "request_seq": 26, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* @@ -970,7 +985,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 26, + "seq": 27, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/tsxIncrementalServer.ts", @@ -985,13 +1000,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 26, + "request_seq": 27, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 27, + "seq": 28, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/tsxIncrementalServer.ts", @@ -1008,20 +1023,20 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 27, + "request_seq": 28, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* @@ -1032,7 +1047,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 28, + "seq": 29, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/tsxIncrementalServer.ts", @@ -1047,13 +1062,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 28, + "request_seq": 29, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 29, + "seq": 30, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/tsxIncrementalServer.ts", @@ -1070,20 +1085,20 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 29, + "request_seq": 30, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* @@ -1094,7 +1109,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 30, + "seq": 31, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/tsxIncrementalServer.ts", @@ -1109,13 +1124,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 30, + "request_seq": 31, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 31, + "seq": 32, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/tsxIncrementalServer.ts", @@ -1132,20 +1147,20 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 31, + "request_seq": 32, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* @@ -1156,7 +1171,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 32, + "seq": 33, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/tsxIncrementalServer.ts", @@ -1171,13 +1186,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 32, + "request_seq": 33, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 33, + "seq": 34, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/tsxIncrementalServer.ts", @@ -1194,20 +1209,20 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 33, + "request_seq": 34, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* @@ -1218,7 +1233,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 34, + "seq": 35, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/tsxIncrementalServer.ts", @@ -1235,20 +1250,20 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 34, + "request_seq": 35, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* @@ -1259,7 +1274,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 35, + "seq": 36, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/tsxIncrementalServer.ts", @@ -1274,13 +1289,13 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 35, + "request_seq": 36, "success": true, "body": [] } Info seq [hh:mm:ss:mss] request: { - "seq": 36, + "seq": 37, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/tsxIncrementalServer.ts", @@ -1297,20 +1312,20 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 36, + "request_seq": 37, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* @@ -1321,7 +1336,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 37, + "seq": 38, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/tsxIncrementalServer.ts", @@ -1338,20 +1353,20 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "change", - "request_seq": 37, + "request_seq": 38, "success": true } After Request ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts +/home/src/tslibs/TS/Lib/lib.es5.d.ts version: Text-1 containingProjects: 1 /dev/null/inferredProject1* @@ -1362,7 +1377,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 38, + "seq": 39, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/tsxIncrementalServer.ts", @@ -1377,7 +1392,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "formatonkey", - "request_seq": 38, + "request_seq": 39, "success": true, "body": [] } \ No newline at end of file diff --git a/tests/baselines/reference/tsserver/fourslashServer/typeReferenceOnServer.js b/tests/baselines/reference/tsserver/fourslashServer/typeReferenceOnServer.js index 8732c82a37018..31a7f12498df5 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/typeReferenceOnServer.js +++ b/tests/baselines/reference/tsserver/fourslashServer/typeReferenceOnServer.js @@ -1,16 +1,31 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "target": "es5", + "newLine": "crlf", + "lib": [ + "es5" + ], + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/tests/cases/fourslash/server/typeReferenceOnServer.ts] /// var x: number; @@ -19,7 +34,7 @@ x. Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/typeReferenceOnServer.ts" @@ -35,7 +50,7 @@ Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/four Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules 1 undefined Project: /dev/null/inferredProject1* WatchType: Failed Lookup Locations -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots @@ -45,18 +60,18 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /te Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (4) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /tests/cases/fourslash/server/typeReferenceOnServer.ts SVC-1-0 "/// \nvar x: number;\nx." - ../../../../home/src/tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../../../home/src/tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../../../home/src/tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' ../../../../home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../../../home/src/tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' typeReferenceOnServer.ts Root file specified for compilation @@ -73,7 +88,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -81,12 +96,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* + {"pollingInterval":500} /tests/cases/fourslash/server/jsconfig.json: *new* {"pollingInterval":2000} /tests/cases/fourslash/server/tsconfig.json: *new* @@ -109,15 +124,15 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* @@ -128,7 +143,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "preferences": {} @@ -140,12 +155,12 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "configure", - "request_seq": 1, + "request_seq": 2, "success": true } Info seq [hh:mm:ss:mss] request: { - "seq": 2, + "seq": 3, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/typeReferenceOnServer.ts", @@ -165,7 +180,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "completionInfo", - "request_seq": 2, + "request_seq": 3, "success": true, "body": { "flags": 0, diff --git a/tests/baselines/reference/tsserver/fourslashServer/typedefinition01.js b/tests/baselines/reference/tsserver/fourslashServer/typedefinition01.js index 4384e8d39e7b7..e0c330f013e11 100644 --- a/tests/baselines/reference/tsserver/fourslashServer/typedefinition01.js +++ b/tests/baselines/reference/tsserver/fourslashServer/typedefinition01.js @@ -1,16 +1,31 @@ Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript -Info seq [hh:mm:ss:mss] Provided types map file "/home/src/tslibs/TS/Lib/typesMap.json" doesn't exist -//// [/home/src/tslibs/TS/Lib/lib.d.ts] -lib.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.d.ts] -lib.decorators.d.ts-Text - -//// [/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts] -lib.decorators.legacy.d.ts-Text - +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "target": "es5", + "newLine": "crlf", + "lib": [ + "es5" + ], + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } //// [/tests/cases/fourslash/server/a.ts] export class Foo {} @@ -21,7 +36,7 @@ var x = new n.Foo(); Info seq [hh:mm:ss:mss] request: { - "seq": 0, + "seq": 1, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/b.ts" @@ -34,7 +49,7 @@ Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/a.ts 500 undefined WatchType: Closed Script info -Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots @@ -44,19 +59,19 @@ Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /te Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) Info seq [hh:mm:ss:mss] Files (5) - /home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text /tests/cases/fourslash/server/a.ts Text-1 "export class Foo {}" /tests/cases/fourslash/server/b.ts SVC-1-0 "import n = require('./a');\nvar x = new n.Foo();" - ../../../../home/src/tslibs/TS/Lib/lib.d.ts - Default library for target 'es5' + ../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions ../../../../home/src/tslibs/TS/Lib/lib.decorators.d.ts - Library referenced via 'decorators' from file '../../../../home/src/tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators' from file '../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' ../../../../home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts - Library referenced via 'decorators.legacy' from file '../../../../home/src/tslibs/TS/Lib/lib.d.ts' + Library referenced via 'decorators.legacy' from file '../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' a.ts Imported via './a' from file 'b.ts' b.ts @@ -75,7 +90,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "open", - "request_seq": 0, + "request_seq": 1, "success": true, "performanceData": { "updateGraphDurationMs": * @@ -83,12 +98,12 @@ Info seq [hh:mm:ss:mss] response: } After Request watchedFiles:: -/home/src/tslibs/TS/Lib/lib.d.ts: *new* - {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* {"pollingInterval":500} /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* + {"pollingInterval":500} /tests/cases/fourslash/server/a.ts: *new* {"pollingInterval":500} /tests/cases/fourslash/server/jsconfig.json: *new* @@ -109,15 +124,15 @@ Projects:: autoImportProviderHost: false ScriptInfos:: -/home/src/tslibs/TS/Lib/lib.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* -/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* version: Text-1 containingProjects: 1 /dev/null/inferredProject1* @@ -132,7 +147,7 @@ ScriptInfos:: Info seq [hh:mm:ss:mss] request: { - "seq": 1, + "seq": 2, "type": "request", "arguments": { "file": "/tests/cases/fourslash/server/b.ts", @@ -146,7 +161,7 @@ Info seq [hh:mm:ss:mss] response: "seq": 0, "type": "response", "command": "typeDefinition", - "request_seq": 1, + "request_seq": 2, "success": true, "body": [ { diff --git a/tests/cases/fourslash/fourslash.ts b/tests/cases/fourslash/fourslash.ts index 9ec091fe67004..c53af3e78a24e 100644 --- a/tests/cases/fourslash/fourslash.ts +++ b/tests/cases/fourslash/fourslash.ts @@ -128,7 +128,8 @@ declare namespace ts { allowSyntheticDefaultImports?: boolean; allowNonTsExtensions?: boolean; resolveJsonModule?: boolean; - [key: string]: string | number | boolean | undefined; + lib?: string[]; + [key: string]: string | number | boolean | string[] | undefined; } function flatMap(array: ReadonlyArray, mapfn: (x: T, i: number) => U | ReadonlyArray | undefined): U[]; diff --git a/tests/cases/fourslash/server/autoImportCrossPackage_pathsAndSymlink.ts b/tests/cases/fourslash/server/autoImportCrossPackage_pathsAndSymlink.ts index 0b6f618d761ae..e88b2452dd6e3 100644 --- a/tests/cases/fourslash/server/autoImportCrossPackage_pathsAndSymlink.ts +++ b/tests/cases/fourslash/server/autoImportCrossPackage_pathsAndSymlink.ts @@ -23,6 +23,7 @@ //// { //// "compilerOptions": { //// "composite": true, +//// "lib": ["es5"], //// "module": "esnext", //// "moduleResolution": "bundler", //// "paths": { diff --git a/tests/cases/fourslash/server/autoImportCrossProject_baseUrl_toDist.ts b/tests/cases/fourslash/server/autoImportCrossProject_baseUrl_toDist.ts index 9aa44a10bf65b..9d8e9fcf1976e 100644 --- a/tests/cases/fourslash/server/autoImportCrossProject_baseUrl_toDist.ts +++ b/tests/cases/fourslash/server/autoImportCrossProject_baseUrl_toDist.ts @@ -3,6 +3,7 @@ // @Filename: /home/src/workspaces/project/common/tsconfig.json //// { //// "compilerOptions": { +//// "lib": ["es5"], //// "module": "commonjs", //// "outDir": "dist", //// "composite": true @@ -18,6 +19,7 @@ // @Filename: /home/src/workspaces/project/web/tsconfig.json //// { //// "compilerOptions": { +//// "lib": ["es5"], //// "module": "esnext", //// "moduleResolution": "node", //// "noEmit": true, diff --git a/tests/cases/fourslash/server/autoImportCrossProject_paths_sharedOutDir.ts b/tests/cases/fourslash/server/autoImportCrossProject_paths_sharedOutDir.ts index b177f044c6a2a..4f07749e43268 100644 --- a/tests/cases/fourslash/server/autoImportCrossProject_paths_sharedOutDir.ts +++ b/tests/cases/fourslash/server/autoImportCrossProject_paths_sharedOutDir.ts @@ -3,6 +3,7 @@ // @Filename: /home/src/workspaces/project/tsconfig.base.json //// { //// "compilerOptions": { +//// "lib": ["es5"], //// "module": "commonjs", //// "baseUrl": ".", //// "paths": { diff --git a/tests/cases/fourslash/server/autoImportCrossProject_paths_stripSrc.ts b/tests/cases/fourslash/server/autoImportCrossProject_paths_stripSrc.ts index 3c533cd9436c6..1b35620d0b16f 100644 --- a/tests/cases/fourslash/server/autoImportCrossProject_paths_stripSrc.ts +++ b/tests/cases/fourslash/server/autoImportCrossProject_paths_stripSrc.ts @@ -6,6 +6,7 @@ // @Filename: /home/src/workspaces/project/packages/app/tsconfig.json //// { //// "compilerOptions": { +//// "lib": ["es5"], //// "module": "commonjs", //// "outDir": "dist", //// "rootDir": "src", @@ -33,7 +34,7 @@ // @Filename: /home/src/workspaces/project/packages/dep/tsconfig.json //// { -//// "compilerOptions": { "outDir": "dist", "rootDir": "src", "module": "commonjs" } +//// "compilerOptions": { "lib": ["es5"], "outDir": "dist", "rootDir": "src", "module": "commonjs" } //// } // @Filename: /home/src/workspaces/project/packages/dep/src/main.ts diff --git a/tests/cases/fourslash/server/autoImportCrossProject_paths_toDist.ts b/tests/cases/fourslash/server/autoImportCrossProject_paths_toDist.ts index 88705acd973a8..00e43f3d08c63 100644 --- a/tests/cases/fourslash/server/autoImportCrossProject_paths_toDist.ts +++ b/tests/cases/fourslash/server/autoImportCrossProject_paths_toDist.ts @@ -6,6 +6,7 @@ // @Filename: /home/src/workspaces/project/packages/app/tsconfig.json //// { //// "compilerOptions": { +//// "lib": ["es5"], //// "module": "commonjs", //// "outDir": "dist", //// "rootDir": "src", @@ -33,7 +34,7 @@ // @Filename: /home/src/workspaces/project/packages/dep/tsconfig.json //// { -//// "compilerOptions": { "outDir": "dist", "rootDir": "src", "module": "commonjs" } +//// "compilerOptions": { "lib": ["es5"], "outDir": "dist", "rootDir": "src", "module": "commonjs" } //// } // @Filename: /home/src/workspaces/project/packages/dep/src/main.ts diff --git a/tests/cases/fourslash/server/autoImportCrossProject_paths_toDist2.ts b/tests/cases/fourslash/server/autoImportCrossProject_paths_toDist2.ts index 66bff52ffbc04..515fa5eb34f44 100644 --- a/tests/cases/fourslash/server/autoImportCrossProject_paths_toDist2.ts +++ b/tests/cases/fourslash/server/autoImportCrossProject_paths_toDist2.ts @@ -3,6 +3,7 @@ // @Filename: /home/src/workspaces/project/common/tsconfig.json //// { //// "compilerOptions": { +//// "lib": ["es5"], //// "module": "commonjs", //// "outDir": "dist", //// "composite": true @@ -18,6 +19,7 @@ // @Filename: /home/src/workspaces/project/web/tsconfig.json //// { //// "compilerOptions": { +//// "lib": ["es5"], //// "module": "esnext", //// "moduleResolution": "node", //// "noEmit": true, diff --git a/tests/cases/fourslash/server/autoImportCrossProject_paths_toSrc.ts b/tests/cases/fourslash/server/autoImportCrossProject_paths_toSrc.ts index 230b6c7817808..ddddd413dda83 100644 --- a/tests/cases/fourslash/server/autoImportCrossProject_paths_toSrc.ts +++ b/tests/cases/fourslash/server/autoImportCrossProject_paths_toSrc.ts @@ -6,6 +6,7 @@ // @Filename: /home/src/workspaces/project/packages/app/tsconfig.json //// { //// "compilerOptions": { +//// "lib": ["es5"], //// "module": "commonjs", //// "outDir": "dist", //// "rootDir": "src", @@ -33,7 +34,7 @@ // @Filename: /home/src/workspaces/project/packages/dep/tsconfig.json //// { -//// "compilerOptions": { "outDir": "dist", "rootDir": "src", "module": "commonjs" } +//// "compilerOptions": { "lib": ["es5"], "outDir": "dist", "rootDir": "src", "module": "commonjs" } //// } // @Filename: /home/src/workspaces/project/packages/dep/src/main.ts diff --git a/tests/cases/fourslash/server/autoImportCrossProject_symlinks_stripSrc.ts b/tests/cases/fourslash/server/autoImportCrossProject_symlinks_stripSrc.ts index febf4f2f948d2..e2466102cb14a 100644 --- a/tests/cases/fourslash/server/autoImportCrossProject_symlinks_stripSrc.ts +++ b/tests/cases/fourslash/server/autoImportCrossProject_symlinks_stripSrc.ts @@ -6,6 +6,7 @@ // @Filename: /home/src/workspaces/project/packages/app/tsconfig.json //// { //// "compilerOptions": { +//// "lib": ["es5"], //// "module": "commonjs", //// "outDir": "dist", //// "rootDir": "src", @@ -26,7 +27,7 @@ // @Filename: /home/src/workspaces/project/packages/dep/tsconfig.json //// { -//// "compilerOptions": { "outDir": "dist", "rootDir": "src", "module": "commonjs" } +//// "compilerOptions": { "lib": ["es5"], "outDir": "dist", "rootDir": "src", "module": "commonjs" } //// } // @Filename: /home/src/workspaces/project/packages/dep/src/index.ts diff --git a/tests/cases/fourslash/server/autoImportCrossProject_symlinks_toDist.ts b/tests/cases/fourslash/server/autoImportCrossProject_symlinks_toDist.ts index cc3d6fbe1aee3..74666bfc1a3e5 100644 --- a/tests/cases/fourslash/server/autoImportCrossProject_symlinks_toDist.ts +++ b/tests/cases/fourslash/server/autoImportCrossProject_symlinks_toDist.ts @@ -6,6 +6,7 @@ // @Filename: /home/src/workspaces/project/packages/app/tsconfig.json //// { //// "compilerOptions": { +//// "lib": ["es5"], //// "module": "commonjs", //// "outDir": "dist", //// "rootDir": "src", @@ -26,7 +27,7 @@ // @Filename: /home/src/workspaces/project/packages/dep/tsconfig.json //// { -//// "compilerOptions": { "outDir": "dist", "rootDir": "src", "module": "commonjs" } +//// "compilerOptions": { "lib": ["es5"], "outDir": "dist", "rootDir": "src", "module": "commonjs" } //// } // @Filename: /home/src/workspaces/project/packages/dep/src/index.ts diff --git a/tests/cases/fourslash/server/autoImportCrossProject_symlinks_toSrc.ts b/tests/cases/fourslash/server/autoImportCrossProject_symlinks_toSrc.ts index 70fe851e9b774..8248f56c22eb5 100644 --- a/tests/cases/fourslash/server/autoImportCrossProject_symlinks_toSrc.ts +++ b/tests/cases/fourslash/server/autoImportCrossProject_symlinks_toSrc.ts @@ -6,6 +6,7 @@ // @Filename: /home/src/workspaces/project/packages/app/tsconfig.json //// { //// "compilerOptions": { +//// "lib": ["es5"], //// "module": "commonjs", //// "outDir": "dist", //// "rootDir": "src", @@ -23,7 +24,7 @@ // @Filename: /home/src/workspaces/project/packages/dep/tsconfig.json //// { -//// "compilerOptions": { "outDir": "dist", "rootDir": "src", "module": "commonjs" } +//// "compilerOptions": { "lib": ["es5"], "outDir": "dist", "rootDir": "src", "module": "commonjs" } //// } // @Filename: /home/src/workspaces/project/packages/dep/src/index.ts diff --git a/tests/cases/fourslash/server/autoImportFileExcludePatterns1.ts b/tests/cases/fourslash/server/autoImportFileExcludePatterns1.ts index 095a9be5cbf21..225f8d4b82f8d 100644 --- a/tests/cases/fourslash/server/autoImportFileExcludePatterns1.ts +++ b/tests/cases/fourslash/server/autoImportFileExcludePatterns1.ts @@ -1,6 +1,7 @@ /// // @module: commonjs +// @lib: es5 // @Filename: /home/src/workspaces/project/node_modules/aws-sdk/package.json //// { "name": "aws-sdk", "version": "2.0.0", "main": "index.js" } diff --git a/tests/cases/fourslash/server/autoImportFileExcludePatterns2.ts b/tests/cases/fourslash/server/autoImportFileExcludePatterns2.ts index 05e353f6fb3e6..02c7ea0d014ba 100644 --- a/tests/cases/fourslash/server/autoImportFileExcludePatterns2.ts +++ b/tests/cases/fourslash/server/autoImportFileExcludePatterns2.ts @@ -1,5 +1,6 @@ /// +// @lib: es5 // @module: commonjs // @Filename: /home/src/workspaces/project/node_modules/aws-sdk/package.json diff --git a/tests/cases/fourslash/server/autoImportFileExcludePatterns_networkPaths.ts b/tests/cases/fourslash/server/autoImportFileExcludePatterns_networkPaths.ts index fe19e79213e68..8bfe9fa381578 100644 --- a/tests/cases/fourslash/server/autoImportFileExcludePatterns_networkPaths.ts +++ b/tests/cases/fourslash/server/autoImportFileExcludePatterns_networkPaths.ts @@ -1,5 +1,6 @@ /// +// @lib: es5 // @module: commonjs // @Filename: //tsclient/home/src/solution/project/node_modules/aws-sdk/package.json diff --git a/tests/cases/fourslash/server/autoImportFileExcludePatterns_symlinks.ts b/tests/cases/fourslash/server/autoImportFileExcludePatterns_symlinks.ts index 5d28e20d7cbfc..2c68d5219b294 100644 --- a/tests/cases/fourslash/server/autoImportFileExcludePatterns_symlinks.ts +++ b/tests/cases/fourslash/server/autoImportFileExcludePatterns_symlinks.ts @@ -1,5 +1,6 @@ /// +// @lib: es5 // @module: commonjs // @Filename: /home/src/workspaces/project/node_modules/.store/@remix-run-server-runtime-virtual-c72daf0d/package/package.json diff --git a/tests/cases/fourslash/server/autoImportFileExcludePatterns_symlinks2.ts b/tests/cases/fourslash/server/autoImportFileExcludePatterns_symlinks2.ts index aae7e01096fb5..d6a9bde726925 100644 --- a/tests/cases/fourslash/server/autoImportFileExcludePatterns_symlinks2.ts +++ b/tests/cases/fourslash/server/autoImportFileExcludePatterns_symlinks2.ts @@ -1,5 +1,6 @@ /// +// @lib: es5 // @module: commonjs // @Filename: c:/workspaces/project/node_modules/.store/aws-sdk-virtual-adfe098/package/package.json diff --git a/tests/cases/fourslash/server/autoImportFileExcludePatterns_windowsPaths.ts b/tests/cases/fourslash/server/autoImportFileExcludePatterns_windowsPaths.ts index c506a625bc9b2..6746a0460acc6 100644 --- a/tests/cases/fourslash/server/autoImportFileExcludePatterns_windowsPaths.ts +++ b/tests/cases/fourslash/server/autoImportFileExcludePatterns_windowsPaths.ts @@ -1,5 +1,6 @@ /// +// @lib: es5 // @module: commonjs // @Filename: c:/workspaces/project/node_modules/aws-sdk/package.json diff --git a/tests/cases/fourslash/server/autoImportNodeModuleSymlinkRenamed.ts b/tests/cases/fourslash/server/autoImportNodeModuleSymlinkRenamed.ts index 633eb86323b06..0940052276faf 100644 --- a/tests/cases/fourslash/server/autoImportNodeModuleSymlinkRenamed.ts +++ b/tests/cases/fourslash/server/autoImportNodeModuleSymlinkRenamed.ts @@ -16,6 +16,7 @@ // @Filename: /home/src/workspaces/solution/packages/utils/tsconfig.json //// { //// "compilerOptions": { +//// "lib": ["es5"], //// "composite": true, //// "module": "nodenext", //// "rootDir": "src", @@ -39,6 +40,7 @@ // @Filename: /home/src/workspaces/solution/packages/web/tsconfig.json //// { //// "compilerOptions": { +//// "lib": ["es5"], //// "composite": true, //// "module": "esnext", //// "moduleResolution": "bundler", diff --git a/tests/cases/fourslash/server/autoImportPackageJsonFilterExistingImport1.ts b/tests/cases/fourslash/server/autoImportPackageJsonFilterExistingImport1.ts index 2a17d942a51cc..b8d7b1d9acdf1 100644 --- a/tests/cases/fourslash/server/autoImportPackageJsonFilterExistingImport1.ts +++ b/tests/cases/fourslash/server/autoImportPackageJsonFilterExistingImport1.ts @@ -1,5 +1,6 @@ /// +// @lib: es5 // @module: preserve // @Filename: /home/src/workspaces/project/node_modules/@types/react/index.d.ts diff --git a/tests/cases/fourslash/server/autoImportPackageJsonFilterExistingImport2.ts b/tests/cases/fourslash/server/autoImportPackageJsonFilterExistingImport2.ts index 386bd0bd7d295..f617054ef61b1 100644 --- a/tests/cases/fourslash/server/autoImportPackageJsonFilterExistingImport2.ts +++ b/tests/cases/fourslash/server/autoImportPackageJsonFilterExistingImport2.ts @@ -1,5 +1,6 @@ /// +// @lib: es5 // @module: preserve // @Filename: /home/src/workspaces/project/node_modules/@types/react/index.d.ts diff --git a/tests/cases/fourslash/server/autoImportPackageJsonFilterExistingImport3.ts b/tests/cases/fourslash/server/autoImportPackageJsonFilterExistingImport3.ts index 5b71a495d5196..4387219157598 100644 --- a/tests/cases/fourslash/server/autoImportPackageJsonFilterExistingImport3.ts +++ b/tests/cases/fourslash/server/autoImportPackageJsonFilterExistingImport3.ts @@ -1,5 +1,6 @@ /// +// @lib: es5 // @module: preserve // @Filename: /home/src/workspaces/project/node_modules/@types/node/index.d.ts diff --git a/tests/cases/fourslash/server/autoImportProvider1.ts b/tests/cases/fourslash/server/autoImportProvider1.ts index 78e7bdda8b9d5..90037e7af85bf 100644 --- a/tests/cases/fourslash/server/autoImportProvider1.ts +++ b/tests/cases/fourslash/server/autoImportProvider1.ts @@ -7,7 +7,7 @@ //// export class PatternValidator {} // @Filename: /home/src/workspaces/project/tsconfig.json -//// {} +//// { "compilerOptions": { "lib": ["es5"] } } // @Filename: /home/src/workspaces/project/package.json //// { "dependencies": { "@angular/forms": "*" } } diff --git a/tests/cases/fourslash/server/autoImportProvider2.ts b/tests/cases/fourslash/server/autoImportProvider2.ts index 61d10383a6f6e..3f3a9653f95ef 100644 --- a/tests/cases/fourslash/server/autoImportProvider2.ts +++ b/tests/cases/fourslash/server/autoImportProvider2.ts @@ -14,7 +14,7 @@ //// export declare class IndirectDependency // @Filename: /home/src/workspaces/project/tsconfig.json -//// {} +//// { "compilerOptions": { "lib": ["es5"] } } // @Filename: /home/src/workspaces/project/package.json //// { "dependencies": { "direct-dependency": "*" } } diff --git a/tests/cases/fourslash/server/autoImportProvider3.ts b/tests/cases/fourslash/server/autoImportProvider3.ts index 1f6024116c24a..2e1fd2c18b059 100644 --- a/tests/cases/fourslash/server/autoImportProvider3.ts +++ b/tests/cases/fourslash/server/autoImportProvider3.ts @@ -16,10 +16,10 @@ //// { "private": true, "dependencies": { "common-dependency": "*" } } // @Filename: /home/src/workspaces/project/tsconfig.json -//// { "files": [], "references": [{ "path": "packages/a" }] } +//// { "compilerOptions": { "lib": ["es5"] }, "files": [], "references": [{ "path": "packages/a" }] } // @Filename: /home/src/workspaces/project/packages/a/tsconfig.json -//// { "compilerOptions": { "target": "esnext", "composite": true } } +//// { "compilerOptions": { "lib": ["es5"], "target": "esnext", "composite": true } } // @Filename: /home/src/workspaces/project/packages/a/package.json //// { "peerDependencies": { "package-dependency": "*" } } diff --git a/tests/cases/fourslash/server/autoImportProvider4.ts b/tests/cases/fourslash/server/autoImportProvider4.ts index b90b87ccd8c35..d5f04a31fc177 100644 --- a/tests/cases/fourslash/server/autoImportProvider4.ts +++ b/tests/cases/fourslash/server/autoImportProvider4.ts @@ -4,7 +4,7 @@ //// { "dependencies": { "b": "*" } } // @Filename: /home/src/workspaces/project/a/tsconfig.json -//// { "compilerOptions": { "module": "commonjs", "target": "esnext" }, "references": [{ "path": "../b" }] } +//// { "compilerOptions": { "lib": ["es5"], "module": "commonjs", "target": "esnext" }, "references": [{ "path": "../b" }] } // @Filename: /home/src/workspaces/project/a/index.ts //// new Shape/**/ @@ -13,7 +13,7 @@ //// { "types": "out/index.d.ts" } // @Filename: /home/src/workspaces/project/b/tsconfig.json -//// { "compilerOptions": { "outDir": "out", "composite": true } } +//// { "compilerOptions": { "lib": ["es5"], "outDir": "out", "composite": true } } // @Filename: /home/src/workspaces/project/b/index.ts //// export class Shape {} diff --git a/tests/cases/fourslash/server/autoImportProvider5.ts b/tests/cases/fourslash/server/autoImportProvider5.ts index 5e2c151b741c4..8efa7cd36caed 100644 --- a/tests/cases/fourslash/server/autoImportProvider5.ts +++ b/tests/cases/fourslash/server/autoImportProvider5.ts @@ -1,5 +1,7 @@ /// +// @lib: es5 + // @Filename: /home/src/workspaces/project/package.json //// { "dependencies": { "react-hook-form": "*" } } diff --git a/tests/cases/fourslash/server/autoImportProvider7.ts b/tests/cases/fourslash/server/autoImportProvider7.ts index 75ccc671f02af..0050136762569 100644 --- a/tests/cases/fourslash/server/autoImportProvider7.ts +++ b/tests/cases/fourslash/server/autoImportProvider7.ts @@ -1,7 +1,7 @@ /// // @Filename: /home/src/workspaces/project/tsconfig.json -//// { "compilerOptions": { "module": "commonjs" } } +//// { "compilerOptions": { "lib": ["es5"], "module": "commonjs" } } // @Filename: /home/src/workspaces/project/package.json //// { "dependencies": { "mylib": "file:packages/mylib" } } diff --git a/tests/cases/fourslash/server/autoImportProvider8.ts b/tests/cases/fourslash/server/autoImportProvider8.ts index 34b52b91c7370..4448cd4d18a1c 100644 --- a/tests/cases/fourslash/server/autoImportProvider8.ts +++ b/tests/cases/fourslash/server/autoImportProvider8.ts @@ -1,7 +1,7 @@ /// // @Filename: /home/src/workspaces/project/tsconfig.json -//// { "compilerOptions": { "module": "commonjs" } } +//// { "compilerOptions": { "lib": ["es5"], "module": "commonjs" } } // @Filename: /home/src/workspaces/project/package.json //// { "dependencies": { "mylib": "file:packages/mylib" } } diff --git a/tests/cases/fourslash/server/autoImportProvider9.ts b/tests/cases/fourslash/server/autoImportProvider9.ts index 135f230b15759..2f96c25cc0700 100644 --- a/tests/cases/fourslash/server/autoImportProvider9.ts +++ b/tests/cases/fourslash/server/autoImportProvider9.ts @@ -1,5 +1,6 @@ /// +// @lib: es5 // @module: preserve // @Filename: /home/src/workspaces/project/index.ts diff --git a/tests/cases/fourslash/server/autoImportProvider_exportMap1.ts b/tests/cases/fourslash/server/autoImportProvider_exportMap1.ts index 1914393ed301c..0574517ac5589 100644 --- a/tests/cases/fourslash/server/autoImportProvider_exportMap1.ts +++ b/tests/cases/fourslash/server/autoImportProvider_exportMap1.ts @@ -3,6 +3,7 @@ // @Filename: /home/src/workspaces/project/tsconfig.json //// { //// "compilerOptions": { +//// "lib": ["es5"], //// "module": "nodenext" //// } //// } diff --git a/tests/cases/fourslash/server/autoImportProvider_exportMap2.ts b/tests/cases/fourslash/server/autoImportProvider_exportMap2.ts index be0dfda31eed0..37ac12f25b079 100644 --- a/tests/cases/fourslash/server/autoImportProvider_exportMap2.ts +++ b/tests/cases/fourslash/server/autoImportProvider_exportMap2.ts @@ -5,8 +5,9 @@ // @Filename: /home/src/workspaces/project/tsconfig.json //// { //// "compilerOptions": { -//// "module": "commonjs" -//// "moduleResolution": "node10", +//// "lib": ["es5"], +//// "module": "commonjs", +//// "moduleResolution": "node10" //// } //// } diff --git a/tests/cases/fourslash/server/autoImportProvider_exportMap3.ts b/tests/cases/fourslash/server/autoImportProvider_exportMap3.ts index 8f1c8080188f0..efdd59bc54975 100644 --- a/tests/cases/fourslash/server/autoImportProvider_exportMap3.ts +++ b/tests/cases/fourslash/server/autoImportProvider_exportMap3.ts @@ -5,7 +5,8 @@ // @Filename: /home/src/workspaces/project/tsconfig.json //// { //// "compilerOptions": { -//// "module": "nodenext" +//// "module": "nodenext", +//// "lib": ["es5"] //// } //// } diff --git a/tests/cases/fourslash/server/autoImportProvider_exportMap4.ts b/tests/cases/fourslash/server/autoImportProvider_exportMap4.ts index 454ab0cdc5787..950e86dfa2880 100644 --- a/tests/cases/fourslash/server/autoImportProvider_exportMap4.ts +++ b/tests/cases/fourslash/server/autoImportProvider_exportMap4.ts @@ -5,7 +5,8 @@ // @Filename: /home/src/workspaces/project/tsconfig.json //// { //// "compilerOptions": { -//// "module": "nodenext" +//// "module": "nodenext", +//// "lib": ["es5"] //// } //// } diff --git a/tests/cases/fourslash/server/autoImportProvider_exportMap5.ts b/tests/cases/fourslash/server/autoImportProvider_exportMap5.ts index eb7de32f08c54..ec70e18465f2c 100644 --- a/tests/cases/fourslash/server/autoImportProvider_exportMap5.ts +++ b/tests/cases/fourslash/server/autoImportProvider_exportMap5.ts @@ -5,7 +5,8 @@ // @Filename: /home/src/workspaces/project/tsconfig.json //// { //// "compilerOptions": { -//// "module": "nodenext" +//// "module": "nodenext", +//// "lib": ["es5"] //// } //// } diff --git a/tests/cases/fourslash/server/autoImportProvider_exportMap6.ts b/tests/cases/fourslash/server/autoImportProvider_exportMap6.ts index 07fe4977928dc..45e507428f9cb 100644 --- a/tests/cases/fourslash/server/autoImportProvider_exportMap6.ts +++ b/tests/cases/fourslash/server/autoImportProvider_exportMap6.ts @@ -5,7 +5,8 @@ // @Filename: /home/src/workspaces/project/tsconfig.json //// { //// "compilerOptions": { -//// "module": "nodenext" +//// "module": "nodenext", +//// "lib": ["es5"] //// } //// } diff --git a/tests/cases/fourslash/server/autoImportProvider_exportMap7.ts b/tests/cases/fourslash/server/autoImportProvider_exportMap7.ts index 6eb4af0addb92..f2494248df8c0 100644 --- a/tests/cases/fourslash/server/autoImportProvider_exportMap7.ts +++ b/tests/cases/fourslash/server/autoImportProvider_exportMap7.ts @@ -5,7 +5,8 @@ // @Filename: /home/src/workspaces/project/tsconfig.json //// { //// "compilerOptions": { -//// "module": "nodenext" +//// "module": "nodenext", +//// "lib": ["es5"] //// } //// } diff --git a/tests/cases/fourslash/server/autoImportProvider_exportMap8.ts b/tests/cases/fourslash/server/autoImportProvider_exportMap8.ts index 83e8994ba7f4f..73102eb4e1d24 100644 --- a/tests/cases/fourslash/server/autoImportProvider_exportMap8.ts +++ b/tests/cases/fourslash/server/autoImportProvider_exportMap8.ts @@ -5,7 +5,8 @@ // @Filename: /home/src/workspaces/project/tsconfig.json //// { //// "compilerOptions": { -//// "module": "nodenext" +//// "module": "nodenext", +//// "lib": ["es5"] //// } //// } diff --git a/tests/cases/fourslash/server/autoImportProvider_exportMap9.ts b/tests/cases/fourslash/server/autoImportProvider_exportMap9.ts index 984bafa5776e5..c1b497652ff83 100644 --- a/tests/cases/fourslash/server/autoImportProvider_exportMap9.ts +++ b/tests/cases/fourslash/server/autoImportProvider_exportMap9.ts @@ -5,7 +5,8 @@ // @Filename: /home/src/workspaces/project/tsconfig.json //// { //// "compilerOptions": { -//// "module": "nodenext" +//// "module": "nodenext", +//// "lib": ["es5"] //// } //// } diff --git a/tests/cases/fourslash/server/autoImportProvider_globalTypingsCache.ts b/tests/cases/fourslash/server/autoImportProvider_globalTypingsCache.ts index 98ea1cebed4b8..e0eafb22970f0 100644 --- a/tests/cases/fourslash/server/autoImportProvider_globalTypingsCache.ts +++ b/tests/cases/fourslash/server/autoImportProvider_globalTypingsCache.ts @@ -10,7 +10,7 @@ //// { "dependencies": { "react-router-dom": "*" } } // @Filename: /home/src/workspaces/project/tsconfig.json -//// { "compilerOptions": { "module": "commonjs", "allowJs": true, "checkJs": true, "maxNodeModuleJsDepth": 2 }, "typeAcquisition": { "enable": true } } +//// { "compilerOptions": { "module": "commonjs", "lib": ["es5"], "allowJs": true, "checkJs": true, "maxNodeModuleJsDepth": 2 }, "typeAcquisition": { "enable": true } } // @Filename: /home/src/workspaces/project/node_modules/react-router-dom/package.json //// { "name": "react-router-dom", "version": "16.8.4", "main": "index.js" } diff --git a/tests/cases/fourslash/server/autoImportProvider_importsMap1.ts b/tests/cases/fourslash/server/autoImportProvider_importsMap1.ts index 27b279c4999f0..d8eb2bd0d560d 100644 --- a/tests/cases/fourslash/server/autoImportProvider_importsMap1.ts +++ b/tests/cases/fourslash/server/autoImportProvider_importsMap1.ts @@ -4,6 +4,7 @@ //// { //// "compilerOptions": { //// "module": "nodenext", +//// "lib": ["es5"], //// "rootDir": "src", //// "outDir": "dist" //// } diff --git a/tests/cases/fourslash/server/autoImportProvider_importsMap2.ts b/tests/cases/fourslash/server/autoImportProvider_importsMap2.ts index a65a0a1c5b28a..d6ac0d7d5b696 100644 --- a/tests/cases/fourslash/server/autoImportProvider_importsMap2.ts +++ b/tests/cases/fourslash/server/autoImportProvider_importsMap2.ts @@ -4,6 +4,7 @@ //// { //// "compilerOptions": { //// "module": "nodenext", +//// "lib": ["es5"], //// "rootDir": "src", //// "outDir": "dist" //// } diff --git a/tests/cases/fourslash/server/autoImportProvider_importsMap3.ts b/tests/cases/fourslash/server/autoImportProvider_importsMap3.ts index d388d073df6c1..26973286129cf 100644 --- a/tests/cases/fourslash/server/autoImportProvider_importsMap3.ts +++ b/tests/cases/fourslash/server/autoImportProvider_importsMap3.ts @@ -4,6 +4,7 @@ //// { //// "compilerOptions": { //// "module": "nodenext", +//// "lib": ["es5"], //// "rootDir": "src", //// "outDir": "dist" //// } diff --git a/tests/cases/fourslash/server/autoImportProvider_importsMap4.ts b/tests/cases/fourslash/server/autoImportProvider_importsMap4.ts index 18835ce4012c8..b5d4e40bae82c 100644 --- a/tests/cases/fourslash/server/autoImportProvider_importsMap4.ts +++ b/tests/cases/fourslash/server/autoImportProvider_importsMap4.ts @@ -4,6 +4,7 @@ //// { //// "compilerOptions": { //// "module": "nodenext", +//// "lib": ["es5"], //// "rootDir": "src", //// "outDir": "dist" //// } diff --git a/tests/cases/fourslash/server/autoImportProvider_importsMap5.ts b/tests/cases/fourslash/server/autoImportProvider_importsMap5.ts index 7fab15502abe7..ad1cbf499a8a6 100644 --- a/tests/cases/fourslash/server/autoImportProvider_importsMap5.ts +++ b/tests/cases/fourslash/server/autoImportProvider_importsMap5.ts @@ -4,6 +4,7 @@ //// { //// "compilerOptions": { //// "module": "nodenext", +//// "lib": ["es5"], //// "rootDir": "src", //// "outDir": "dist", //// "declarationDir": "types", diff --git a/tests/cases/fourslash/server/autoImportProvider_namespaceSameNameAsIntrinsic.ts b/tests/cases/fourslash/server/autoImportProvider_namespaceSameNameAsIntrinsic.ts index 52cc56ffd2f45..b5d75df367a24 100644 --- a/tests/cases/fourslash/server/autoImportProvider_namespaceSameNameAsIntrinsic.ts +++ b/tests/cases/fourslash/server/autoImportProvider_namespaceSameNameAsIntrinsic.ts @@ -14,7 +14,7 @@ //// { "dependencies": { "fp-ts": "^0.10.4" } } // @Filename: /home/src/workspaces/project/tsconfig.json -//// { "compilerOptions": { "module": "commonjs" } } +//// { "compilerOptions": { "module": "commonjs", "lib": ["es5"] } } // @Filename: /home/src/workspaces/project/index.ts //// type A = { name: string/**/ } diff --git a/tests/cases/fourslash/server/autoImportProvider_pnpm.ts b/tests/cases/fourslash/server/autoImportProvider_pnpm.ts index 3676e696759fc..cc8bfc0b81728 100644 --- a/tests/cases/fourslash/server/autoImportProvider_pnpm.ts +++ b/tests/cases/fourslash/server/autoImportProvider_pnpm.ts @@ -1,7 +1,7 @@ /// // @Filename: /home/src/workspaces/project/tsconfig.json -//// { "compilerOptions": { "module": "commonjs" } } +//// { "compilerOptions": { "module": "commonjs", "lib": ["es5"] } } // @Filename: /home/src/workspaces/project/package.json //// { "dependencies": { "mobx": "*" } } diff --git a/tests/cases/fourslash/server/autoImportProvider_referencesCrash.ts b/tests/cases/fourslash/server/autoImportProvider_referencesCrash.ts index 09efaa4c9e3b4..97d1ab10efc64 100644 --- a/tests/cases/fourslash/server/autoImportProvider_referencesCrash.ts +++ b/tests/cases/fourslash/server/autoImportProvider_referencesCrash.ts @@ -4,7 +4,7 @@ //// {} // @Filename: /home/src/workspaces/project/a/tsconfig.json -//// {} +//// { "compilerOptions": { "lib": ["es5"] } } // @Filename: /home/src/workspaces/project/a/index.ts //// class A {} @@ -19,7 +19,7 @@ // @Filename: /home/src/workspaces/project/b/tsconfig.json //// { -//// "compilerOptions": { "disableSourceOfProjectReferenceRedirect": true }, +//// "compilerOptions": { "disableSourceOfProjectReferenceRedirect": true, "lib": ["es5"] }, //// "references": [{ "path": "../a" }] //// } @@ -31,7 +31,7 @@ //// { "dependencies": { "a": "*" } } // @Filename: /home/src/workspaces/project/c/tsconfig.json -//// { "references" [{ "path": "../a" }] } +//// { "compilerOptions": { "lib": ["es5"] }, "references" [{ "path": "../a" }] } // @Filename: /home/src/workspaces/project/c/index.ts //// export {}; diff --git a/tests/cases/fourslash/server/autoImportProvider_wildcardExports1.ts b/tests/cases/fourslash/server/autoImportProvider_wildcardExports1.ts index e4bcf3dec237e..1be87c02cc105 100644 --- a/tests/cases/fourslash/server/autoImportProvider_wildcardExports1.ts +++ b/tests/cases/fourslash/server/autoImportProvider_wildcardExports1.ts @@ -43,7 +43,8 @@ // @Filename: /home/src/workspaces/project/tsconfig.json //// { //// "compilerOptions": { -//// "module": "nodenext" +//// "module": "nodenext", +//// "lib": ["es5"] //// } //// } diff --git a/tests/cases/fourslash/server/autoImportProvider_wildcardExports2.ts b/tests/cases/fourslash/server/autoImportProvider_wildcardExports2.ts index 3f2076df3186f..2ec153b107cc1 100644 --- a/tests/cases/fourslash/server/autoImportProvider_wildcardExports2.ts +++ b/tests/cases/fourslash/server/autoImportProvider_wildcardExports2.ts @@ -26,7 +26,8 @@ // @Filename: /home/src/workspaces/project/tsconfig.json //// { //// "compilerOptions": { -//// "module": "nodenext" +//// "module": "nodenext", +//// "lib": ["es5"] //// } //// } diff --git a/tests/cases/fourslash/server/autoImportProvider_wildcardExports3.ts b/tests/cases/fourslash/server/autoImportProvider_wildcardExports3.ts index c0bfc82408e81..e60a796d7e132 100644 --- a/tests/cases/fourslash/server/autoImportProvider_wildcardExports3.ts +++ b/tests/cases/fourslash/server/autoImportProvider_wildcardExports3.ts @@ -27,7 +27,8 @@ //// "module": "esnext", //// "moduleResolution": "bundler", //// "noEmit": true, -//// "jsx": "preserve" +//// "jsx": "preserve", +//// "lib": ["es5"] //// }, //// "include": ["app"] //// } diff --git a/tests/cases/fourslash/server/autoImportReExportFromAmbientModule.ts b/tests/cases/fourslash/server/autoImportReExportFromAmbientModule.ts index 281f4eb8d33a3..e96b11e8247ec 100644 --- a/tests/cases/fourslash/server/autoImportReExportFromAmbientModule.ts +++ b/tests/cases/fourslash/server/autoImportReExportFromAmbientModule.ts @@ -3,7 +3,8 @@ // @Filename: /home/src/workspaces/project/tsconfig.json //// { //// "compilerOptions": { -//// "module": "commonjs" +//// "module": "commonjs", +//// "lib": ["es5"] //// } //// } diff --git a/tests/cases/fourslash/server/autoImportRelativePathToMonorepoPackage.ts b/tests/cases/fourslash/server/autoImportRelativePathToMonorepoPackage.ts index 42037dbdf795d..104c6280db02c 100644 --- a/tests/cases/fourslash/server/autoImportRelativePathToMonorepoPackage.ts +++ b/tests/cases/fourslash/server/autoImportRelativePathToMonorepoPackage.ts @@ -3,7 +3,8 @@ // @Filename: /home/src/workspaces/project/tsconfig.json //// { //// "compilerOptions": { -//// "module": "nodenext" +//// "module": "nodenext", +//// "lib": ["es5"] //// } //// } diff --git a/tests/cases/fourslash/server/autoImportSymlinkedJsPackages.ts b/tests/cases/fourslash/server/autoImportSymlinkedJsPackages.ts index ba36703168634..ac41a6393f32d 100644 --- a/tests/cases/fourslash/server/autoImportSymlinkedJsPackages.ts +++ b/tests/cases/fourslash/server/autoImportSymlinkedJsPackages.ts @@ -1,5 +1,7 @@ /// +// @lib: es5 + // @Filename: /home/src/workspaces/project/packages/a/package.json //// { //// "name": "package-a", @@ -19,7 +21,7 @@ // @link: /home/src/workspaces/project/packages/b -> /home/src/workspaces/project/packages/a/node_modules/package-b -config.setCompilerOptionsForInferredProjects({ module: "commonjs", allowJs: true, maxNodeModulesJsDepth: 2 }); +config.setCompilerOptionsForInferredProjects({ module: "commonjs", lib: ["es5"], allowJs: true, maxNodeModulesJsDepth: 2 }); goTo.marker(""); verify.completions({ marker: "", diff --git a/tests/cases/fourslash/server/brace01.ts b/tests/cases/fourslash/server/brace01.ts index 845f96ac9a346..14ca5d2f9e1d2 100644 --- a/tests/cases/fourslash/server/brace01.ts +++ b/tests/cases/fourslash/server/brace01.ts @@ -1,5 +1,7 @@ /// +// @lib: es5 + //////curly braces ////module Foo [|{ //// class Bar [|{ diff --git a/tests/cases/fourslash/server/callHierarchyContainerNameServer.ts b/tests/cases/fourslash/server/callHierarchyContainerNameServer.ts index db1ec66d944e7..2a7f7f1f512cd 100644 --- a/tests/cases/fourslash/server/callHierarchyContainerNameServer.ts +++ b/tests/cases/fourslash/server/callHierarchyContainerNameServer.ts @@ -1,5 +1,7 @@ /// +// @lib: es5 + ////function /**/f() {} //// ////class A { diff --git a/tests/cases/fourslash/server/completionEntryDetailAcrossFiles01.ts b/tests/cases/fourslash/server/completionEntryDetailAcrossFiles01.ts index 6d4324adb8877..0732111168185 100644 --- a/tests/cases/fourslash/server/completionEntryDetailAcrossFiles01.ts +++ b/tests/cases/fourslash/server/completionEntryDetailAcrossFiles01.ts @@ -1,6 +1,8 @@ /// +// @lib: es5 // @allowNonTsExtensions: true +// @allowJs: true // @Filename: a.js //// /** //// * Modify the parameter diff --git a/tests/cases/fourslash/server/completionEntryDetailAcrossFiles02.ts b/tests/cases/fourslash/server/completionEntryDetailAcrossFiles02.ts index fb131ce5d7ace..13a7751bf7068 100644 --- a/tests/cases/fourslash/server/completionEntryDetailAcrossFiles02.ts +++ b/tests/cases/fourslash/server/completionEntryDetailAcrossFiles02.ts @@ -1,6 +1,8 @@ /// +// @lib: es5 // @allowNonTsExtensions: true +// @allowJs: true // @Filename: a.js //// /** //// * Modify the parameter diff --git a/tests/cases/fourslash/server/completions01.ts b/tests/cases/fourslash/server/completions01.ts index 21fb7145ebbad..150507e1d349a 100644 --- a/tests/cases/fourslash/server/completions01.ts +++ b/tests/cases/fourslash/server/completions01.ts @@ -1,5 +1,7 @@ /// +// @lib: es5 + ////var x: string[] = []; ////x.forEach(function (y) { y/*1*/ ////x.forEach(y => y/*2*/ diff --git a/tests/cases/fourslash/server/completions02.ts b/tests/cases/fourslash/server/completions02.ts index 240c19412ab7b..3f035d4ebc65e 100644 --- a/tests/cases/fourslash/server/completions02.ts +++ b/tests/cases/fourslash/server/completions02.ts @@ -1,5 +1,7 @@ /// +// @lib: es5 + ////class Foo { ////} ////namespace Foo { diff --git a/tests/cases/fourslash/server/completions03.ts b/tests/cases/fourslash/server/completions03.ts index ad8aeff2b77ae..33d03f37c19b3 100644 --- a/tests/cases/fourslash/server/completions03.ts +++ b/tests/cases/fourslash/server/completions03.ts @@ -1,5 +1,7 @@ /// +// @lib: es5 + // issue: https://github.com/Microsoft/TypeScript/issues/10108 //// interface Foo { diff --git a/tests/cases/fourslash/server/completionsImport_addToNamedWithDifferentCacheValue.ts b/tests/cases/fourslash/server/completionsImport_addToNamedWithDifferentCacheValue.ts index a97e078202be1..2bc2952dd1908 100644 --- a/tests/cases/fourslash/server/completionsImport_addToNamedWithDifferentCacheValue.ts +++ b/tests/cases/fourslash/server/completionsImport_addToNamedWithDifferentCacheValue.ts @@ -5,7 +5,7 @@ // bug, which, if fixed, would prevent the later crash. // @Filename: /home/src/workspaces/project/tsconfig.json -//// { "compilerOptions": { "module": "commonjs" } } +//// { "compilerOptions": { "module": "commonjs", "lib": ["es5"] } } // @Filename: /home/src/workspaces/project/packages/mylib/package.json //// { "name": "mylib", "version": "1.0.0", "main": "index.js" } diff --git a/tests/cases/fourslash/server/completionsImport_computedSymbolName.ts b/tests/cases/fourslash/server/completionsImport_computedSymbolName.ts index a7eded32cf5a4..abf3b6eca5a31 100644 --- a/tests/cases/fourslash/server/completionsImport_computedSymbolName.ts +++ b/tests/cases/fourslash/server/completionsImport_computedSymbolName.ts @@ -1,7 +1,7 @@ /// // @Filename: /home/src/workspaces/project/tsconfig.json -//// { "compilerOptions": { "module": "commonjs" } } +//// { "compilerOptions": { "module": "commonjs", "lib": ["es5"] } } // @Filename: /home/src/workspaces/project/node_modules/@types/ts-node/index.d.ts //// export {}; diff --git a/tests/cases/fourslash/server/completionsImport_defaultAndNamedConflict_server.ts b/tests/cases/fourslash/server/completionsImport_defaultAndNamedConflict_server.ts index c09444c8cf72d..90bc4698d9549 100644 --- a/tests/cases/fourslash/server/completionsImport_defaultAndNamedConflict_server.ts +++ b/tests/cases/fourslash/server/completionsImport_defaultAndNamedConflict_server.ts @@ -1,7 +1,7 @@ /// // @Filename: /home/src/workspaces/project/tsconfig.json -//// { "compilerOptions": { "noLib": true } } +//// { "compilerOptions": { "noLib": true, "lib": ["es5"] } } // @Filename: /home/src/workspaces/project/someModule.ts //// export const someModule = 0; diff --git a/tests/cases/fourslash/server/completionsImport_jsModuleExportsAssignment.ts b/tests/cases/fourslash/server/completionsImport_jsModuleExportsAssignment.ts index f2f0e98dcc9a7..cb7a459da791d 100644 --- a/tests/cases/fourslash/server/completionsImport_jsModuleExportsAssignment.ts +++ b/tests/cases/fourslash/server/completionsImport_jsModuleExportsAssignment.ts @@ -1,7 +1,7 @@ /// // @Filename: /home/src/workspaces/project/tsconfig.json -//// { "compilerOptions": { "module": "commonjs", "allowJs": true } } +//// { "compilerOptions": { "module": "commonjs", "allowJs": true, "lib": ["es5"] } } // @Filename: /home/src/workspaces/project/third_party/marked/src/defaults.js //// function getDefaults() { diff --git a/tests/cases/fourslash/server/completionsImport_mergedReExport.ts b/tests/cases/fourslash/server/completionsImport_mergedReExport.ts index 8a0b7ad0a861d..dc3c31bc78d27 100644 --- a/tests/cases/fourslash/server/completionsImport_mergedReExport.ts +++ b/tests/cases/fourslash/server/completionsImport_mergedReExport.ts @@ -1,7 +1,7 @@ /// // @Filename: /home/src/workspaces/project/tsconfig.json -//// { "compilerOptions": { "module": "commonjs" } } +//// { "compilerOptions": { "module": "commonjs", "lib": ["es5"] } } // @Filename: /home/src/workspaces/project/package.json //// { "dependencies": { "@jest/types": "*", "ts-jest": "*" } } diff --git a/tests/cases/fourslash/server/completionsImport_sortingModuleSpecifiers.ts b/tests/cases/fourslash/server/completionsImport_sortingModuleSpecifiers.ts index 07fddf4c8177a..1977a4e3ea092 100644 --- a/tests/cases/fourslash/server/completionsImport_sortingModuleSpecifiers.ts +++ b/tests/cases/fourslash/server/completionsImport_sortingModuleSpecifiers.ts @@ -1,7 +1,7 @@ /// // @Filename: tsconfig.json -//// { "compilerOptions": { "module": "commonjs" } } +//// { "compilerOptions": { "module": "commonjs", "lib": ["es5"] } } // @Filename: path.d.ts //// declare module "path/posix" { diff --git a/tests/cases/fourslash/server/completionsOverridingMethodCrash2.ts b/tests/cases/fourslash/server/completionsOverridingMethodCrash2.ts index e1fab3fe2f119..f2b38c47462d1 100644 --- a/tests/cases/fourslash/server/completionsOverridingMethodCrash2.ts +++ b/tests/cases/fourslash/server/completionsOverridingMethodCrash2.ts @@ -3,7 +3,8 @@ // @Filename: /home/src/workspaces/project/tsconfig.json //// { //// "compilerOptions": { -//// "module": "nodenext" +//// "module": "nodenext", +//// "lib": ["es5"] //// } //// } diff --git a/tests/cases/fourslash/server/completionsServerCommitCharacters.ts b/tests/cases/fourslash/server/completionsServerCommitCharacters.ts index 6873b4b40eb84..cd8c882594f98 100644 --- a/tests/cases/fourslash/server/completionsServerCommitCharacters.ts +++ b/tests/cases/fourslash/server/completionsServerCommitCharacters.ts @@ -1,5 +1,7 @@ /// +// @lib: es5 + // @Filename: /home/src/workspaces/project/src/index.ts //// const a: "aa" | "bb" = "/**/"; diff --git a/tests/cases/fourslash/server/configurePlugin.ts b/tests/cases/fourslash/server/configurePlugin.ts index 251a343217125..79ea89e4ec150 100644 --- a/tests/cases/fourslash/server/configurePlugin.ts +++ b/tests/cases/fourslash/server/configurePlugin.ts @@ -3,6 +3,7 @@ // @Filename: tsconfig.json //// { //// "compilerOptions": { +//// "lib": ["es5"], //// "plugins": [ //// { "name": "configurable-diagnostic-adder" , "message": "configured error" } //// ] diff --git a/tests/cases/fourslash/server/convertFunctionToEs6Class-server1.ts b/tests/cases/fourslash/server/convertFunctionToEs6Class-server1.ts index 7e34b109f5ccc..bcc9edfe18439 100644 --- a/tests/cases/fourslash/server/convertFunctionToEs6Class-server1.ts +++ b/tests/cases/fourslash/server/convertFunctionToEs6Class-server1.ts @@ -1,8 +1,9 @@ -// @allowNonTsExtensions: true -// @Filename: test123.js - /// +// @lib: es5 +// @allowNonTsExtensions: true + +// @Filename: test123.js //// // Comment //// function fn() { //// this.baz = 10; diff --git a/tests/cases/fourslash/server/convertFunctionToEs6Class-server2.ts b/tests/cases/fourslash/server/convertFunctionToEs6Class-server2.ts index 470325c5ae7c7..a3d18973f3e38 100644 --- a/tests/cases/fourslash/server/convertFunctionToEs6Class-server2.ts +++ b/tests/cases/fourslash/server/convertFunctionToEs6Class-server2.ts @@ -1,3 +1,4 @@ +// @lib: es5 // @allowNonTsExtensions: true // @Filename: test123.js diff --git a/tests/cases/fourslash/server/declarationMapGoToDefinition.ts b/tests/cases/fourslash/server/declarationMapGoToDefinition.ts index f051ffed97fdd..ab3cb046604f8 100644 --- a/tests/cases/fourslash/server/declarationMapGoToDefinition.ts +++ b/tests/cases/fourslash/server/declarationMapGoToDefinition.ts @@ -1,4 +1,5 @@ /// +// @lib: es5 // @Filename: index.ts ////export class Foo { //// member: string; diff --git a/tests/cases/fourslash/server/declarationMapsEnableMapping_NoInline.ts b/tests/cases/fourslash/server/declarationMapsEnableMapping_NoInline.ts index c791d76a00060..752993e70aff6 100644 --- a/tests/cases/fourslash/server/declarationMapsEnableMapping_NoInline.ts +++ b/tests/cases/fourslash/server/declarationMapsEnableMapping_NoInline.ts @@ -3,6 +3,7 @@ // @Filename: /home/src/workspaces/project/tsconfig.json ////{ //// "compilerOptions": { +//// "lib": ["es5"], //// "strict": false, //// "outDir": "./dist", //// "inlineSourceMap": true, diff --git a/tests/cases/fourslash/server/declarationMapsEnableMapping_NoInlineSources.ts b/tests/cases/fourslash/server/declarationMapsEnableMapping_NoInlineSources.ts index 4b74b1fe3c53b..3c6cf114c69b5 100644 --- a/tests/cases/fourslash/server/declarationMapsEnableMapping_NoInlineSources.ts +++ b/tests/cases/fourslash/server/declarationMapsEnableMapping_NoInlineSources.ts @@ -3,6 +3,7 @@ // @Filename: /home/src/workspaces/project/tsconfig.json ////{ //// "compilerOptions": { +//// "lib": ["es5"], //// "strict": false, //// "outDir": "./dist", //// "inlineSourceMap": true, diff --git a/tests/cases/fourslash/server/declarationMapsGeneratedMapsEnableMapping.ts b/tests/cases/fourslash/server/declarationMapsGeneratedMapsEnableMapping.ts index e1a012fa4b701..a22b21dac6839 100644 --- a/tests/cases/fourslash/server/declarationMapsGeneratedMapsEnableMapping.ts +++ b/tests/cases/fourslash/server/declarationMapsGeneratedMapsEnableMapping.ts @@ -3,6 +3,7 @@ // @Filename: /home/src/workspaces/project/tsconfig.json ////{ //// "compilerOptions": { +//// "lib": ["es5"], //// "strict": false, //// "outDir": "./dist", //// "declaration": true, diff --git a/tests/cases/fourslash/server/declarationMapsGeneratedMapsEnableMapping2.ts b/tests/cases/fourslash/server/declarationMapsGeneratedMapsEnableMapping2.ts index 466c64ea0d437..5111f36139879 100644 --- a/tests/cases/fourslash/server/declarationMapsGeneratedMapsEnableMapping2.ts +++ b/tests/cases/fourslash/server/declarationMapsGeneratedMapsEnableMapping2.ts @@ -3,6 +3,7 @@ // @Filename: /home/src/workspaces/project/tsconfig.json ////{ //// "compilerOptions": { +//// "lib": ["es5"], //// "strict": false, //// "outDir": "./dist", //// "sourceMap": true, diff --git a/tests/cases/fourslash/server/declarationMapsGeneratedMapsEnableMapping3.ts b/tests/cases/fourslash/server/declarationMapsGeneratedMapsEnableMapping3.ts index f9cdea1c1f5e1..b9adc8fd269fc 100644 --- a/tests/cases/fourslash/server/declarationMapsGeneratedMapsEnableMapping3.ts +++ b/tests/cases/fourslash/server/declarationMapsGeneratedMapsEnableMapping3.ts @@ -3,6 +3,7 @@ // @Filename: /home/src/workspaces/project/tsconfig.json ////{ //// "compilerOptions": { +//// "lib": ["es5"], //// "strict": false, //// "outDir": "./dist", //// "sourceRoot": "/home/src/workspaces/project/", diff --git a/tests/cases/fourslash/server/declarationMapsGoToDefinitionRelativeSourceRoot.ts b/tests/cases/fourslash/server/declarationMapsGoToDefinitionRelativeSourceRoot.ts index ba3447a28c4ff..2f6e52d01fb08 100644 --- a/tests/cases/fourslash/server/declarationMapsGoToDefinitionRelativeSourceRoot.ts +++ b/tests/cases/fourslash/server/declarationMapsGoToDefinitionRelativeSourceRoot.ts @@ -1,4 +1,5 @@ /// +// @lib: es5 // @Filename: index.ts ////export class Foo { //// member: string; diff --git a/tests/cases/fourslash/server/declarationMapsGoToDefinitionSameNameDifferentDirectory.ts b/tests/cases/fourslash/server/declarationMapsGoToDefinitionSameNameDifferentDirectory.ts index f6f9b9d31d371..6c029e9d29d79 100644 --- a/tests/cases/fourslash/server/declarationMapsGoToDefinitionSameNameDifferentDirectory.ts +++ b/tests/cases/fourslash/server/declarationMapsGoToDefinitionSameNameDifferentDirectory.ts @@ -21,6 +21,7 @@ //// "$schema": "http://json.schemastore.org/tsconfig", //// "compileOnSave": true, //// "compilerOptions": { +//// "lib": ["es5"], //// "strict": false, //// "sourceMap": true, //// "declaration": true, diff --git a/tests/cases/fourslash/server/declarationMapsOutOfDateMapping.ts b/tests/cases/fourslash/server/declarationMapsOutOfDateMapping.ts index 89345b2316a5b..1bf0e76a41d4c 100644 --- a/tests/cases/fourslash/server/declarationMapsOutOfDateMapping.ts +++ b/tests/cases/fourslash/server/declarationMapsOutOfDateMapping.ts @@ -1,5 +1,7 @@ /// +// @lib: es5 + // @Filename: /home/src/workspaces/project/node_modules/a/dist/index.d.ts ////export declare class Foo { //// bar: any; diff --git a/tests/cases/fourslash/server/definition01.ts b/tests/cases/fourslash/server/definition01.ts index 2760a38d0a6e1..69f27e8a2dbf1 100644 --- a/tests/cases/fourslash/server/definition01.ts +++ b/tests/cases/fourslash/server/definition01.ts @@ -1,5 +1,7 @@ /// +// @lib: es5 + // @Filename: b.ts ////import n = require([|'./a/*1*/'|]); ////var x = new n.Foo(); diff --git a/tests/cases/fourslash/server/documentHighlights01.ts b/tests/cases/fourslash/server/documentHighlights01.ts index 235f8af5e679e..524a223d9d9d4 100644 --- a/tests/cases/fourslash/server/documentHighlights01.ts +++ b/tests/cases/fourslash/server/documentHighlights01.ts @@ -1,5 +1,7 @@ /// +// @lib: es5 + // @Filename: a.ts ////function [|f|](x: typeof [|f|]) { //// [|f|]([|f|]); diff --git a/tests/cases/fourslash/server/documentHighlights02.ts b/tests/cases/fourslash/server/documentHighlights02.ts index a5f06ddd5c2d4..4af12c01062ff 100644 --- a/tests/cases/fourslash/server/documentHighlights02.ts +++ b/tests/cases/fourslash/server/documentHighlights02.ts @@ -1,5 +1,7 @@ /// +// @lib: es5 + // @Filename: a.ts ////function [|foo|] () { //// return 1; diff --git a/tests/cases/fourslash/server/documentHighlightsTypeParameterInHeritageClause01.ts b/tests/cases/fourslash/server/documentHighlightsTypeParameterInHeritageClause01.ts index 1829ce91f0379..90906b7f4d84f 100644 --- a/tests/cases/fourslash/server/documentHighlightsTypeParameterInHeritageClause01.ts +++ b/tests/cases/fourslash/server/documentHighlightsTypeParameterInHeritageClause01.ts @@ -1,5 +1,7 @@ /// +// @lib: es5 + ////interface I<[|T|]> extends I<[|T|]>, [|T|] { ////} diff --git a/tests/cases/fourslash/server/fixExtractToInnerFunctionDuplicaton.ts b/tests/cases/fourslash/server/fixExtractToInnerFunctionDuplicaton.ts index e782b26388f72..e77d189ae790c 100644 --- a/tests/cases/fourslash/server/fixExtractToInnerFunctionDuplicaton.ts +++ b/tests/cases/fourslash/server/fixExtractToInnerFunctionDuplicaton.ts @@ -1,5 +1,7 @@ /// +// @lib: es5 + //// function foo(): void { /*x*/console.log('a');/*y*/ } goTo.select("x","y"); diff --git a/tests/cases/fourslash/server/format01.ts b/tests/cases/fourslash/server/format01.ts index d103a607df151..ad5dfafbf2ecf 100644 --- a/tests/cases/fourslash/server/format01.ts +++ b/tests/cases/fourslash/server/format01.ts @@ -1,5 +1,7 @@ /// +// @lib: es5 + /////**/namespace Default{var x= ( { } ) ;} diff --git a/tests/cases/fourslash/server/formatBracketInSwitchCase.ts b/tests/cases/fourslash/server/formatBracketInSwitchCase.ts index 116138f9743bc..db290fb0e83be 100644 --- a/tests/cases/fourslash/server/formatBracketInSwitchCase.ts +++ b/tests/cases/fourslash/server/formatBracketInSwitchCase.ts @@ -1,5 +1,7 @@ /// +// @lib: es5 + ////switch (x) { //// case[]: ////} diff --git a/tests/cases/fourslash/server/formatOnEnter.ts b/tests/cases/fourslash/server/formatOnEnter.ts index 29ac3ed6adb08..11338a975e8e8 100644 --- a/tests/cases/fourslash/server/formatOnEnter.ts +++ b/tests/cases/fourslash/server/formatOnEnter.ts @@ -1,5 +1,7 @@ /// +// @lib: es5 + /////*3*/function listAPIFiles (path : string): string[] { //// /*1*/ //// /*2*/ diff --git a/tests/cases/fourslash/server/formatSpaceBetweenFunctionAndArrayIndex.ts b/tests/cases/fourslash/server/formatSpaceBetweenFunctionAndArrayIndex.ts index 7f2cbb8148faf..67b9bba7dd90d 100644 --- a/tests/cases/fourslash/server/formatSpaceBetweenFunctionAndArrayIndex.ts +++ b/tests/cases/fourslash/server/formatSpaceBetweenFunctionAndArrayIndex.ts @@ -1,5 +1,7 @@ /// +// @lib: es5 + //// ////function test() { //// return []; diff --git a/tests/cases/fourslash/server/formatonkey01.ts b/tests/cases/fourslash/server/formatonkey01.ts index 73e817ce3b3bf..f7dd9e4e62af5 100644 --- a/tests/cases/fourslash/server/formatonkey01.ts +++ b/tests/cases/fourslash/server/formatonkey01.ts @@ -1,5 +1,7 @@ /// +// @lib: es5 + ////switch (1) { //// case 1: //// { diff --git a/tests/cases/fourslash/server/getFileReferences_deduplicate.ts b/tests/cases/fourslash/server/getFileReferences_deduplicate.ts index 1e7aacbf25679..f1b568db54420 100644 --- a/tests/cases/fourslash/server/getFileReferences_deduplicate.ts +++ b/tests/cases/fourslash/server/getFileReferences_deduplicate.ts @@ -1,19 +1,21 @@ /// +// @lib: es5 + // @Filename: /home/src/workspaces/project/tsconfig.json //// { "files": [], "references": [{ "path": "tsconfig.build.json" }, { "path": "tsconfig.test.json" }] } // @Filename: /home/src/workspaces/project/tsconfig.utils.json -//// { "compilerOptions": { "rootDir": "src", "outDir": "dist/utils", "composite": true }, "files": ["util.ts"] } +//// { "compilerOptions": { "lib": ["es5"], "rootDir": "src", "outDir": "dist/utils", "composite": true }, "files": ["util.ts"] } // @Filename: /home/src/workspaces/project/tsconfig.build.json -//// { "compilerOptions": { "rootDir": "src", "outDir": "dist/build", "composite": true }, "files": ["index.ts"], "references": [{ "path": "tsconfig.utils.json" }] } +//// { "compilerOptions": { "lib": ["es5"], "rootDir": "src", "outDir": "dist/build", "composite": true }, "files": ["index.ts"], "references": [{ "path": "tsconfig.utils.json" }] } // @Filename: /home/src/workspaces/project/index.ts //// export * from "./util"; // @Filename: /home/src/workspaces/project/tsconfig.test.json -//// { "compilerOptions": { "rootDir": "src", "outDir": "dist/test", "composite": true }, "files": ["test.ts", "index.ts"], "references": [{ "path": "tsconfig.utils.json" }] } +//// { "compilerOptions": { "lib": ["es5"], "rootDir": "src", "outDir": "dist/test", "composite": true }, "files": ["test.ts", "index.ts"], "references": [{ "path": "tsconfig.utils.json" }] } // @Filename: /home/src/workspaces/project/test.ts //// import "./util"; diff --git a/tests/cases/fourslash/server/getFileReferences_server1.ts b/tests/cases/fourslash/server/getFileReferences_server1.ts index 80a8eb77f7ae9..df21e91c89ffa 100644 --- a/tests/cases/fourslash/server/getFileReferences_server1.ts +++ b/tests/cases/fourslash/server/getFileReferences_server1.ts @@ -1,7 +1,7 @@ /// // @Filename: /home/src/workspaces/project/tsconfig.json -//// {} +//// { "compilerOptions": { "lib": ["es5"] } } // @Filename: /home/src/workspaces/project/a.ts //// export const a = 0; diff --git a/tests/cases/fourslash/server/getFileReferences_server2.ts b/tests/cases/fourslash/server/getFileReferences_server2.ts index 784545f3018e9..39ce6853970db 100644 --- a/tests/cases/fourslash/server/getFileReferences_server2.ts +++ b/tests/cases/fourslash/server/getFileReferences_server2.ts @@ -4,13 +4,13 @@ //// { "files": [], "references": [{ "path": "packages/server" }, { "path": "packages/client" }] } // @Filename: /home/src/workspaces/project/packages/shared/tsconfig.json -//// { "compilerOptions": { "rootDir": "src", "outDir": "dist", "composite": true } } +//// { "compilerOptions": { "lib": ["es5"], "rootDir": "src", "outDir": "dist", "composite": true } } // @Filename: /home/src/workspaces/project/packages/shared/src/referenced.ts //// export {}; // @Filename: /home/src/workspaces/project/packages/server/tsconfig.json -//// { "compilerOptions": { "checkJs": true }, "references": [{ "path": "../shared" }] } +//// { "compilerOptions": { "lib": ["es5"], "checkJs": true }, "references": [{ "path": "../shared" }] } // @Filename: /home/src/workspaces/project/packages/server/index.js //// const mod = require("../shared/src/referenced"); @@ -19,7 +19,7 @@ //// const blah = require("../shared/dist/referenced"); // @Filename: /home/src/workspaces/project/packages/client/tsconfig.json -//// { "compilerOptions": { "paths": { "@shared/*": ["../shared/src/*"] } }, "references": [{ "path": "../shared" }] } +//// { "compilerOptions": { "lib": ["es5"], "paths": { "@shared/*": ["../shared/src/*"] } }, "references": [{ "path": "../shared" }] } // @Filename: /home/src/workspaces/project/packages/client/index.ts //// import "@shared/referenced"; diff --git a/tests/cases/fourslash/server/getJavaScriptSyntacticDiagnostics01.ts b/tests/cases/fourslash/server/getJavaScriptSyntacticDiagnostics01.ts index 1a888cb8b8f19..b5662177bb41f 100644 --- a/tests/cases/fourslash/server/getJavaScriptSyntacticDiagnostics01.ts +++ b/tests/cases/fourslash/server/getJavaScriptSyntacticDiagnostics01.ts @@ -1,5 +1,6 @@ /// +// @lib: es5 // @allowJs: true // @Filename: a.js ////var ===; diff --git a/tests/cases/fourslash/server/getJavaScriptSyntacticDiagnostics02.ts b/tests/cases/fourslash/server/getJavaScriptSyntacticDiagnostics02.ts index 8b182bd98eb31..8b34790473d1e 100644 --- a/tests/cases/fourslash/server/getJavaScriptSyntacticDiagnostics02.ts +++ b/tests/cases/fourslash/server/getJavaScriptSyntacticDiagnostics02.ts @@ -1,5 +1,6 @@ /// +// @lib: es5 // @allowJs: true // @Filename: b.js ////var a = "a"; diff --git a/tests/cases/fourslash/server/getOutliningSpansForComments.ts b/tests/cases/fourslash/server/getOutliningSpansForComments.ts index 1c1d38454e7a6..11108484565c0 100644 --- a/tests/cases/fourslash/server/getOutliningSpansForComments.ts +++ b/tests/cases/fourslash/server/getOutliningSpansForComments.ts @@ -1,5 +1,7 @@ /// +// @lib: es5 + ////[|/* //// Block comment at the beginning of the file before module: //// line one of the comment diff --git a/tests/cases/fourslash/server/getOutliningSpansForRegions.ts b/tests/cases/fourslash/server/getOutliningSpansForRegions.ts index dbfe68204dc75..cf36bdcbe856c 100644 --- a/tests/cases/fourslash/server/getOutliningSpansForRegions.ts +++ b/tests/cases/fourslash/server/getOutliningSpansForRegions.ts @@ -1,5 +1,7 @@ /// +// @lib: es5 + ////// region without label ////[|// #region //// diff --git a/tests/cases/fourslash/server/getOutliningSpansForRegionsNoSingleLineFolds.ts b/tests/cases/fourslash/server/getOutliningSpansForRegionsNoSingleLineFolds.ts index c2ee165e91907..ad1ef29c15d66 100644 --- a/tests/cases/fourslash/server/getOutliningSpansForRegionsNoSingleLineFolds.ts +++ b/tests/cases/fourslash/server/getOutliningSpansForRegionsNoSingleLineFolds.ts @@ -1,3 +1,5 @@ +// @lib: es5 + ////[|//#region ////function foo()[| { //// diff --git a/tests/cases/fourslash/server/goToDefinitionScriptImportServer.ts b/tests/cases/fourslash/server/goToDefinitionScriptImportServer.ts index 22ec6d07ae3ac..d7ac97ee5d810 100644 --- a/tests/cases/fourslash/server/goToDefinitionScriptImportServer.ts +++ b/tests/cases/fourslash/server/goToDefinitionScriptImportServer.ts @@ -1,5 +1,7 @@ /// +// @lib: es5 + // @Filename: /home/src/workspaces/project/scriptThing.ts //// /*1d*/console.log("woooo side effects") diff --git a/tests/cases/fourslash/server/goToImplementation_inDifferentFiles.ts b/tests/cases/fourslash/server/goToImplementation_inDifferentFiles.ts index 1ce4a65f170dd..e6f2a3d55b619 100644 --- a/tests/cases/fourslash/server/goToImplementation_inDifferentFiles.ts +++ b/tests/cases/fourslash/server/goToImplementation_inDifferentFiles.ts @@ -1,5 +1,7 @@ /// +// @lib: es5 + // @Filename: /home/src/workspaces/project/bar.ts ////import {Foo} from './foo' //// diff --git a/tests/cases/fourslash/server/goToSource10_mapFromAtTypes3.ts b/tests/cases/fourslash/server/goToSource10_mapFromAtTypes3.ts index b9478ab28ca48..da9c00c72718a 100644 --- a/tests/cases/fourslash/server/goToSource10_mapFromAtTypes3.ts +++ b/tests/cases/fourslash/server/goToSource10_mapFromAtTypes3.ts @@ -1,5 +1,6 @@ /// +// @lib: es5 // @moduleResolution: bundler // @Filename: /home/src/workspaces/project/node_modules/lodash/package.json //// { "name": "lodash", "version": "4.17.15", "main": "./lodash.js" } diff --git a/tests/cases/fourslash/server/goToSource11_propertyOfAlias.ts b/tests/cases/fourslash/server/goToSource11_propertyOfAlias.ts index 5cf50bc173314..ed18c300d3ac8 100644 --- a/tests/cases/fourslash/server/goToSource11_propertyOfAlias.ts +++ b/tests/cases/fourslash/server/goToSource11_propertyOfAlias.ts @@ -1,5 +1,6 @@ /// +// @lib: es5 // @moduleResolution: bundler // @Filename: /home/src/workspaces/project/a.js //// export const a = { /*end*/a: 'a' }; diff --git a/tests/cases/fourslash/server/goToSource12_callbackParam.ts b/tests/cases/fourslash/server/goToSource12_callbackParam.ts index e2a2cb0ba30d1..a91285567fbdf 100644 --- a/tests/cases/fourslash/server/goToSource12_callbackParam.ts +++ b/tests/cases/fourslash/server/goToSource12_callbackParam.ts @@ -1,5 +1,6 @@ /// +// @lib: es5 // @moduleResolution: bundler // Actual yargs doesn't work like this because the implementation package's // main entry exports a small function wrapper function whose return value diff --git a/tests/cases/fourslash/server/goToSource13_nodenext.ts b/tests/cases/fourslash/server/goToSource13_nodenext.ts index a1c3bfa4121d5..a5f112a3dae4f 100644 --- a/tests/cases/fourslash/server/goToSource13_nodenext.ts +++ b/tests/cases/fourslash/server/goToSource13_nodenext.ts @@ -22,6 +22,7 @@ //// { //// "compilerOptions": { //// "module": "node16", +//// "lib": ["es5"], //// "strict": true, //// "outDir": "./out", //// diff --git a/tests/cases/fourslash/server/goToSource14_unresolvedRequireDestructuring.ts b/tests/cases/fourslash/server/goToSource14_unresolvedRequireDestructuring.ts index 1009ca4f65f50..cc2f9dd286668 100644 --- a/tests/cases/fourslash/server/goToSource14_unresolvedRequireDestructuring.ts +++ b/tests/cases/fourslash/server/goToSource14_unresolvedRequireDestructuring.ts @@ -1,5 +1,6 @@ /// +// @lib: es5 // @allowJs: true // @Filename: /home/src/workspaces/project/index.js diff --git a/tests/cases/fourslash/server/goToSource15_bundler.ts b/tests/cases/fourslash/server/goToSource15_bundler.ts index 65978f3b9bb21..0a5f592b47030 100644 --- a/tests/cases/fourslash/server/goToSource15_bundler.ts +++ b/tests/cases/fourslash/server/goToSource15_bundler.ts @@ -1,7 +1,7 @@ /// // @Filename: /home/src/workspaces/project/tsconfig.json -//// { "compilerOptions": { "module": "esnext", "moduleResolution": "bundler" } } +//// { "compilerOptions": { "module": "esnext", "moduleResolution": "bundler", "lib": ["es5"] } } // @Filename: /home/src/workspaces/project/node_modules/react/package.json //// { "name": "react", "version": "16.8.6", "main": "index.js" } diff --git a/tests/cases/fourslash/server/goToSource16_callbackParamDifferentFile.ts b/tests/cases/fourslash/server/goToSource16_callbackParamDifferentFile.ts index f6bb51667a533..d52fb40c442a7 100644 --- a/tests/cases/fourslash/server/goToSource16_callbackParamDifferentFile.ts +++ b/tests/cases/fourslash/server/goToSource16_callbackParamDifferentFile.ts @@ -1,5 +1,6 @@ /// +// @lib: es5 // @moduleResolution: bundler // This is just modified repro to ensure we are resolving module specifier thats not already present in the file diff --git a/tests/cases/fourslash/server/goToSource17_AddsFileToProject.ts b/tests/cases/fourslash/server/goToSource17_AddsFileToProject.ts index 0f0bec0c89a70..8e4ddefd5f639 100644 --- a/tests/cases/fourslash/server/goToSource17_AddsFileToProject.ts +++ b/tests/cases/fourslash/server/goToSource17_AddsFileToProject.ts @@ -1,5 +1,6 @@ /// +// @lib: es5 // @moduleResolution: bundler // This is just made up repro where the js file will be added to auxillary project because its not already part of the project // Where in js file doesnt already have import to the corresponding js file hence will be added to project at later on stage diff --git a/tests/cases/fourslash/server/goToSource18_reusedFromDifferentFolder.ts b/tests/cases/fourslash/server/goToSource18_reusedFromDifferentFolder.ts index 44acf89343bdf..b086c5340b1e3 100644 --- a/tests/cases/fourslash/server/goToSource18_reusedFromDifferentFolder.ts +++ b/tests/cases/fourslash/server/goToSource18_reusedFromDifferentFolder.ts @@ -1,5 +1,6 @@ /// +// @lib: es5 // @moduleResolution: bundler // This is just made up repro where the js file will be added to auxillary project because its not already part of the project // Where in js file doesnt already have import to the corresponding js file hence will be added to project at later on stage diff --git a/tests/cases/fourslash/server/goToSource1_localJsBesideDts.ts b/tests/cases/fourslash/server/goToSource1_localJsBesideDts.ts index ad955b9355f4e..33f882eb31d9f 100644 --- a/tests/cases/fourslash/server/goToSource1_localJsBesideDts.ts +++ b/tests/cases/fourslash/server/goToSource1_localJsBesideDts.ts @@ -1,5 +1,7 @@ /// +// @lib: es5 + // @Filename: /home/src/workspaces/project/a.js //// export const /*end*/a = "a"; diff --git a/tests/cases/fourslash/server/goToSource2_nodeModulesWithTypes.ts b/tests/cases/fourslash/server/goToSource2_nodeModulesWithTypes.ts index 024df9bcadda6..252358e6598bf 100644 --- a/tests/cases/fourslash/server/goToSource2_nodeModulesWithTypes.ts +++ b/tests/cases/fourslash/server/goToSource2_nodeModulesWithTypes.ts @@ -1,5 +1,6 @@ /// +// @lib: es5 // @moduleResolution: bundler // @Filename: /home/src/workspaces/project/node_modules/foo/package.json //// { "name": "foo", "version": "1.0.0", "main": "./lib/main.js", "types": "./types/main.d.ts" } diff --git a/tests/cases/fourslash/server/goToSource3_nodeModulesAtTypes.ts b/tests/cases/fourslash/server/goToSource3_nodeModulesAtTypes.ts index c0715e545e80e..995a43bf7c065 100644 --- a/tests/cases/fourslash/server/goToSource3_nodeModulesAtTypes.ts +++ b/tests/cases/fourslash/server/goToSource3_nodeModulesAtTypes.ts @@ -1,5 +1,6 @@ /// +// @lib: es5 // @moduleResolution: bundler // @Filename: /home/src/workspaces/project/node_modules/foo/package.json //// { "name": "foo", "version": "1.0.0", "main": "./lib/main.js" } diff --git a/tests/cases/fourslash/server/goToSource5_sameAsGoToDef1.ts b/tests/cases/fourslash/server/goToSource5_sameAsGoToDef1.ts index b5080f2f198cb..edc5f1a087446 100644 --- a/tests/cases/fourslash/server/goToSource5_sameAsGoToDef1.ts +++ b/tests/cases/fourslash/server/goToSource5_sameAsGoToDef1.ts @@ -1,5 +1,7 @@ /// +// @lib: es5 + // @Filename: /home/src/workspaces/project/a.ts //// export const /*end*/a = 'a'; diff --git a/tests/cases/fourslash/server/goToSource6_sameAsGoToDef2.ts b/tests/cases/fourslash/server/goToSource6_sameAsGoToDef2.ts index e89468d441101..9ee65362e4cdc 100644 --- a/tests/cases/fourslash/server/goToSource6_sameAsGoToDef2.ts +++ b/tests/cases/fourslash/server/goToSource6_sameAsGoToDef2.ts @@ -1,5 +1,7 @@ /// +// @lib: es5 + // @Filename: /home/src/workspaces/project/node_modules/foo/package.json //// { "name": "foo", "version": "1.2.3", "typesVersions": { "*": { "*": ["./types/*"] } } } diff --git a/tests/cases/fourslash/server/goToSource7_conditionallyMinified.ts b/tests/cases/fourslash/server/goToSource7_conditionallyMinified.ts index 2ff5c94c0b59b..9d7b2b11fc8b9 100644 --- a/tests/cases/fourslash/server/goToSource7_conditionallyMinified.ts +++ b/tests/cases/fourslash/server/goToSource7_conditionallyMinified.ts @@ -1,5 +1,6 @@ /// +// @lib: es5 // @moduleResolution: bundler // @Filename: /home/src/workspaces/project/node_modules/react/package.json //// { "name": "react", "version": "16.8.6", "main": "index.js" } diff --git a/tests/cases/fourslash/server/goToSource8_mapFromAtTypes.ts b/tests/cases/fourslash/server/goToSource8_mapFromAtTypes.ts index 5a8daaa985f64..6eebee1c1bc3f 100644 --- a/tests/cases/fourslash/server/goToSource8_mapFromAtTypes.ts +++ b/tests/cases/fourslash/server/goToSource8_mapFromAtTypes.ts @@ -1,5 +1,6 @@ /// +// @lib: es5 // @moduleResolution: bundler // @Filename: /home/src/workspaces/project/node_modules/lodash/package.json //// { "name": "lodash", "version": "4.17.15", "main": "./lodash.js" } diff --git a/tests/cases/fourslash/server/goToSource9_mapFromAtTypes2.ts b/tests/cases/fourslash/server/goToSource9_mapFromAtTypes2.ts index 4a776772da3bb..0cb45a7bd6740 100644 --- a/tests/cases/fourslash/server/goToSource9_mapFromAtTypes2.ts +++ b/tests/cases/fourslash/server/goToSource9_mapFromAtTypes2.ts @@ -1,5 +1,6 @@ /// +// @lib: es5 // @moduleResolution: bundler // @Filename: /home/src/workspaces/project/node_modules/lodash/package.json //// { "name": "lodash", "version": "4.17.15", "main": "./lodash.js" } diff --git a/tests/cases/fourslash/server/implementation01.ts b/tests/cases/fourslash/server/implementation01.ts index 553b9e800621e..bac08a229c49b 100644 --- a/tests/cases/fourslash/server/implementation01.ts +++ b/tests/cases/fourslash/server/implementation01.ts @@ -1,5 +1,7 @@ /// +// @lib: es5 + ////interface Fo/*1*/o {} ////class /*2*/Bar implements Foo {} diff --git a/tests/cases/fourslash/server/impliedNodeFormat.ts b/tests/cases/fourslash/server/impliedNodeFormat.ts index e12c3d9b7f27b..05d0b4e3a7017 100644 --- a/tests/cases/fourslash/server/impliedNodeFormat.ts +++ b/tests/cases/fourslash/server/impliedNodeFormat.ts @@ -1,7 +1,7 @@ /// // @Filename: /home/src/workspaces/project/tsconfig.json -//// { "compilerOptions": { "module": "nodenext" } } +//// { "compilerOptions": { "module": "nodenext", "lib": ["es5"] } } // @Filename: /home/src/workspaces/project/package.json //// { "name": "foo", "type": "module", "exports": { ".": "./main.js" } } diff --git a/tests/cases/fourslash/server/importCompletions_importsMap1.ts b/tests/cases/fourslash/server/importCompletions_importsMap1.ts index 530704bfb5d74..38ebe148f19d6 100644 --- a/tests/cases/fourslash/server/importCompletions_importsMap1.ts +++ b/tests/cases/fourslash/server/importCompletions_importsMap1.ts @@ -4,6 +4,7 @@ //// { //// "compilerOptions": { //// "module": "nodenext", +//// "lib": ["es5"], //// "rootDir": "src", //// "outDir": "dist" //// } diff --git a/tests/cases/fourslash/server/importCompletions_importsMap2.ts b/tests/cases/fourslash/server/importCompletions_importsMap2.ts index 10ea87f0aca2d..1d68884b21901 100644 --- a/tests/cases/fourslash/server/importCompletions_importsMap2.ts +++ b/tests/cases/fourslash/server/importCompletions_importsMap2.ts @@ -4,6 +4,7 @@ //// { //// "compilerOptions": { //// "module": "nodenext", +//// "lib": ["es5"], //// "rootDir": "src", //// "outDir": "dist" //// } diff --git a/tests/cases/fourslash/server/importCompletions_importsMap3.ts b/tests/cases/fourslash/server/importCompletions_importsMap3.ts index 01776d771a3db..380b5fb1dc64a 100644 --- a/tests/cases/fourslash/server/importCompletions_importsMap3.ts +++ b/tests/cases/fourslash/server/importCompletions_importsMap3.ts @@ -4,6 +4,7 @@ //// { //// "compilerOptions": { //// "module": "nodenext", +//// "lib": ["es5"], //// "rootDir": "src", //// "outDir": "dist" //// } diff --git a/tests/cases/fourslash/server/importCompletions_importsMap4.ts b/tests/cases/fourslash/server/importCompletions_importsMap4.ts index 3e15b253f4710..dc769f91d4aa1 100644 --- a/tests/cases/fourslash/server/importCompletions_importsMap4.ts +++ b/tests/cases/fourslash/server/importCompletions_importsMap4.ts @@ -4,6 +4,7 @@ //// { //// "compilerOptions": { //// "module": "nodenext", +//// "lib": ["es5"], //// "rootDir": "src", //// "outDir": "dist" //// } diff --git a/tests/cases/fourslash/server/importCompletions_importsMap5.ts b/tests/cases/fourslash/server/importCompletions_importsMap5.ts index 0b240075a1e66..d790ae0ecbb6a 100644 --- a/tests/cases/fourslash/server/importCompletions_importsMap5.ts +++ b/tests/cases/fourslash/server/importCompletions_importsMap5.ts @@ -4,6 +4,7 @@ //// { //// "compilerOptions": { //// "module": "nodenext", +//// "lib": ["es5"], //// "rootDir": "src", //// "outDir": "dist", //// "declarationDir": "types", diff --git a/tests/cases/fourslash/server/importFixes_ambientCircularDefaultCrash.ts b/tests/cases/fourslash/server/importFixes_ambientCircularDefaultCrash.ts index 63def17939b88..028d700fd82cf 100644 --- a/tests/cases/fourslash/server/importFixes_ambientCircularDefaultCrash.ts +++ b/tests/cases/fourslash/server/importFixes_ambientCircularDefaultCrash.ts @@ -3,7 +3,8 @@ // @Filename: /home/src/workspaces/project/tsconfig.json //// { //// "compilerOptions": { -//// "module": "preserve" +//// "module": "preserve", +//// "lib": ["es5"] //// } //// } diff --git a/tests/cases/fourslash/server/importNameCodeFix_externalNonRelateive2.ts b/tests/cases/fourslash/server/importNameCodeFix_externalNonRelateive2.ts index 8231ff48a805f..f1c3ec1fa4a73 100644 --- a/tests/cases/fourslash/server/importNameCodeFix_externalNonRelateive2.ts +++ b/tests/cases/fourslash/server/importNameCodeFix_externalNonRelateive2.ts @@ -4,6 +4,7 @@ //// { //// "compilerOptions": { //// "module": "commonjs", +//// "lib": ["es5"], //// "paths": { //// "shared/*": ["../../shared/*"] //// } diff --git a/tests/cases/fourslash/server/importNameCodeFix_externalNonRelative1.ts b/tests/cases/fourslash/server/importNameCodeFix_externalNonRelative1.ts index bfd5396fd1e64..a4b39c5687268 100644 --- a/tests/cases/fourslash/server/importNameCodeFix_externalNonRelative1.ts +++ b/tests/cases/fourslash/server/importNameCodeFix_externalNonRelative1.ts @@ -4,6 +4,7 @@ //// { //// "compilerOptions": { //// "module": "commonjs", +//// "lib": ["es5"], //// "paths": { //// "pkg-1/*": ["./packages/pkg-1/src/*"], //// "pkg-2/*": ["./packages/pkg-2/src/*"] @@ -31,7 +32,7 @@ // @Filename: /home/src/workspaces/project/packages/pkg-2/tsconfig.json //// { //// "extends": "../../tsconfig.base.json", -//// "compilerOptions": { "outDir": "dist", "rootDir": "src", "composite": true } +//// "compilerOptions": { "outDir": "dist", "rootDir": "src", "composite": true, "lib": ["es5"] } //// } // @Filename: /home/src/workspaces/project/packages/pkg-2/src/index.ts diff --git a/tests/cases/fourslash/server/importNameCodeFix_pnpm1.ts b/tests/cases/fourslash/server/importNameCodeFix_pnpm1.ts index a412649767e16..b28172efa2175 100644 --- a/tests/cases/fourslash/server/importNameCodeFix_pnpm1.ts +++ b/tests/cases/fourslash/server/importNameCodeFix_pnpm1.ts @@ -1,7 +1,7 @@ /// // @Filename: /home/src/workspaces/project/tsconfig.json -//// { "compilerOptions": { "module": "commonjs" } } +//// { "compilerOptions": { "module": "commonjs", "lib": ["es5"] } } // @Filename: /home/src/workspaces/project/node_modules/.pnpm/@types+react@17.0.7/node_modules/@types/react/index.d.ts //// export declare function Component(): void; diff --git a/tests/cases/fourslash/server/importStatementCompletions_pnpm1.ts b/tests/cases/fourslash/server/importStatementCompletions_pnpm1.ts index 7e6a498959509..1df6761ecea2f 100644 --- a/tests/cases/fourslash/server/importStatementCompletions_pnpm1.ts +++ b/tests/cases/fourslash/server/importStatementCompletions_pnpm1.ts @@ -1,7 +1,7 @@ /// // @Filename: /home/src/workspaces/project/tsconfig.json -//// { "compilerOptions": { "module": "commonjs" } } +//// { "compilerOptions": { "module": "commonjs", "lib": ["es5"] } } // @Filename: /home/src/workspaces/project/node_modules/.pnpm/@types+react@17.0.7/node_modules/@types/react/index.d.ts //// export declare function Component(): void; diff --git a/tests/cases/fourslash/server/importStatementCompletions_pnpmTransitive.ts b/tests/cases/fourslash/server/importStatementCompletions_pnpmTransitive.ts index e05e2e266b607..c1a92aec3804f 100644 --- a/tests/cases/fourslash/server/importStatementCompletions_pnpmTransitive.ts +++ b/tests/cases/fourslash/server/importStatementCompletions_pnpmTransitive.ts @@ -1,7 +1,7 @@ /// // @Filename: /home/src/workspaces/project/tsconfig.json -//// { "compilerOptions": { "module": "commonjs" } } +//// { "compilerOptions": { "module": "commonjs", "lib": ["es5"] } } // @Filename: /home/src/workspaces/project/node_modules/.pnpm/@types+react@17.0.7/node_modules/@types/react/index.d.ts //// import "csstype"; diff --git a/tests/cases/fourslash/server/importSuggestionsCache_ambient.ts b/tests/cases/fourslash/server/importSuggestionsCache_ambient.ts index 1e18873c07d4b..d44dabafcdbaa 100644 --- a/tests/cases/fourslash/server/importSuggestionsCache_ambient.ts +++ b/tests/cases/fourslash/server/importSuggestionsCache_ambient.ts @@ -1,7 +1,7 @@ /// // @Filename: /home/src/workspaces/project/tsconfig.json -////{ "compilerOptions": { "module": "esnext" } } +////{ "compilerOptions": { "module": "esnext", "lib": ["es5"] } } // @Filename: /home/src/workspaces/project/ambient.d.ts ////declare module 'ambient' { diff --git a/tests/cases/fourslash/server/importSuggestionsCache_coreNodeModules.ts b/tests/cases/fourslash/server/importSuggestionsCache_coreNodeModules.ts index a636e93f0e89c..3a1503cbb107f 100644 --- a/tests/cases/fourslash/server/importSuggestionsCache_coreNodeModules.ts +++ b/tests/cases/fourslash/server/importSuggestionsCache_coreNodeModules.ts @@ -4,6 +4,7 @@ ////{ //// "compilerOptions": { //// "module": "esnext", +//// "lib": ["es5"], //// "allowJs": true, //// "checkJs": true, //// "typeRoots": [ diff --git a/tests/cases/fourslash/server/importSuggestionsCache_exportUndefined.ts b/tests/cases/fourslash/server/importSuggestionsCache_exportUndefined.ts index 83938188ccb4f..6114901634655 100644 --- a/tests/cases/fourslash/server/importSuggestionsCache_exportUndefined.ts +++ b/tests/cases/fourslash/server/importSuggestionsCache_exportUndefined.ts @@ -1,7 +1,7 @@ /// // @Filename: /home/src/workspaces/project/tsconfig.json -////{ "compilerOptions": { "module": "esnext" } } +////{ "compilerOptions": { "module": "esnext", "lib": ["es5"] } } // @Filename: /home/src/workspaces/project/undefined.ts ////export = undefined; diff --git a/tests/cases/fourslash/server/importSuggestionsCache_invalidPackageJson.ts b/tests/cases/fourslash/server/importSuggestionsCache_invalidPackageJson.ts index 0f313a071ff87..a1ca0c11aaff8 100644 --- a/tests/cases/fourslash/server/importSuggestionsCache_invalidPackageJson.ts +++ b/tests/cases/fourslash/server/importSuggestionsCache_invalidPackageJson.ts @@ -1,8 +1,11 @@ /// +// @lib: es5 + // @Filename: /home/src/workspaces/project/jsconfig.json ////{ //// "compilerOptions": { +//// "lib": ["es5"], //// "module": "commonjs", //// }, ////} diff --git a/tests/cases/fourslash/server/importSuggestionsCache_moduleAugmentation.ts b/tests/cases/fourslash/server/importSuggestionsCache_moduleAugmentation.ts index 4241243654821..84b207caa8054 100644 --- a/tests/cases/fourslash/server/importSuggestionsCache_moduleAugmentation.ts +++ b/tests/cases/fourslash/server/importSuggestionsCache_moduleAugmentation.ts @@ -1,7 +1,7 @@ /// // @Filename: /home/src/workspaces/project/tsconfig.json -////{ "compilerOptions": { "module": "esnext" } } +////{ "compilerOptions": { "module": "esnext", "lib": ["es5"] } } // @Filename: /home/src/workspaces/project/node_modules/@types/react/index.d.ts ////export function useState(): void; diff --git a/tests/cases/fourslash/server/isDefinitionAcrossGlobalProjects.ts b/tests/cases/fourslash/server/isDefinitionAcrossGlobalProjects.ts index 1d219e7c3e018..b4fdaeb8e6b46 100644 --- a/tests/cases/fourslash/server/isDefinitionAcrossGlobalProjects.ts +++ b/tests/cases/fourslash/server/isDefinitionAcrossGlobalProjects.ts @@ -71,6 +71,7 @@ ////{ //// "compilerOptions": { //// "composite": true, +//// "lib": ["es5"], //// }, //// "references": [ //// { "path": "a" }, @@ -86,6 +87,7 @@ //// "declarationMap": true, //// "module": "none", //// "emitDeclarationOnly": true, +//// "lib": ["es5"], //// } ////} diff --git a/tests/cases/fourslash/server/isDefinitionAcrossModuleProjects.ts b/tests/cases/fourslash/server/isDefinitionAcrossModuleProjects.ts index c81ec01209b8a..60a4557f9f4f8 100644 --- a/tests/cases/fourslash/server/isDefinitionAcrossModuleProjects.ts +++ b/tests/cases/fourslash/server/isDefinitionAcrossModuleProjects.ts @@ -112,6 +112,7 @@ ////{ //// "compilerOptions": { //// "composite": true, +//// "lib": ["es5"], //// }, //// "references": [ //// { "path": "a" }, @@ -128,6 +129,7 @@ //// "declarationMap": true, //// "module": "CommonJS", //// "emitDeclarationOnly": true, +//// "lib": ["es5"], //// } ////} diff --git a/tests/cases/fourslash/server/jsdocCallbackTag.ts b/tests/cases/fourslash/server/jsdocCallbackTag.ts index c924d3fccef19..e9c24a1bcb778 100644 --- a/tests/cases/fourslash/server/jsdocCallbackTag.ts +++ b/tests/cases/fourslash/server/jsdocCallbackTag.ts @@ -1,5 +1,6 @@ /// +// @lib: es5 // @strict: false // @allowNonTsExtensions: true // @Filename: jsdocCallbackTag.js diff --git a/tests/cases/fourslash/server/jsdocCallbackTagNavigateTo.ts b/tests/cases/fourslash/server/jsdocCallbackTagNavigateTo.ts index 2beaf99ed7073..c13c2b57b8b53 100644 --- a/tests/cases/fourslash/server/jsdocCallbackTagNavigateTo.ts +++ b/tests/cases/fourslash/server/jsdocCallbackTagNavigateTo.ts @@ -1,5 +1,6 @@ /// +// @lib: es5 // @allowNonTsExtensions: true // @Filename: jsDocCallback.js diff --git a/tests/cases/fourslash/server/jsdocCallbackTagRename01.ts b/tests/cases/fourslash/server/jsdocCallbackTagRename01.ts index b733c909cc5d2..4f1fec2956804 100644 --- a/tests/cases/fourslash/server/jsdocCallbackTagRename01.ts +++ b/tests/cases/fourslash/server/jsdocCallbackTagRename01.ts @@ -1,5 +1,6 @@ /// +// @lib: es5 // @allowNonTsExtensions: true // @Filename: jsDocCallback.js //// diff --git a/tests/cases/fourslash/server/jsdocParamTagSpecialKeywords.ts b/tests/cases/fourslash/server/jsdocParamTagSpecialKeywords.ts index 2d7606ccbebc0..0989969bf3b9d 100644 --- a/tests/cases/fourslash/server/jsdocParamTagSpecialKeywords.ts +++ b/tests/cases/fourslash/server/jsdocParamTagSpecialKeywords.ts @@ -1,5 +1,6 @@ /// +// @lib: es5 // @allowNonTsExtensions: true // @Filename: test.js //// /** diff --git a/tests/cases/fourslash/server/jsdocTypedefTag.ts b/tests/cases/fourslash/server/jsdocTypedefTag.ts index ed27e6e29ef49..ae653fc7b5967 100644 --- a/tests/cases/fourslash/server/jsdocTypedefTag.ts +++ b/tests/cases/fourslash/server/jsdocTypedefTag.ts @@ -1,5 +1,6 @@ /// +// @lib: es5 // @allowNonTsExtensions: true // @Filename: jsdocCompletion_typedef.js diff --git a/tests/cases/fourslash/server/jsdocTypedefTag2.ts b/tests/cases/fourslash/server/jsdocTypedefTag2.ts index 601db94513045..7c96537f2b573 100644 --- a/tests/cases/fourslash/server/jsdocTypedefTag2.ts +++ b/tests/cases/fourslash/server/jsdocTypedefTag2.ts @@ -1,5 +1,6 @@ /// +// @lib: es5 // @allowNonTsExtensions: true // @Filename: jsdocCompletion_typedef.js diff --git a/tests/cases/fourslash/server/jsdocTypedefTagGoToDefinition.ts b/tests/cases/fourslash/server/jsdocTypedefTagGoToDefinition.ts index 8a60a0e3e2955..9388feb208a04 100644 --- a/tests/cases/fourslash/server/jsdocTypedefTagGoToDefinition.ts +++ b/tests/cases/fourslash/server/jsdocTypedefTagGoToDefinition.ts @@ -1,5 +1,6 @@ /// +// @lib: es5 // @allowNonTsExtensions: true // @Filename: jsdocCompletion_typedef.js diff --git a/tests/cases/fourslash/server/jsdocTypedefTagNamespace.ts b/tests/cases/fourslash/server/jsdocTypedefTagNamespace.ts index 297238530f07b..8f446bfb6e5d0 100644 --- a/tests/cases/fourslash/server/jsdocTypedefTagNamespace.ts +++ b/tests/cases/fourslash/server/jsdocTypedefTagNamespace.ts @@ -1,5 +1,6 @@ /// +// @lib: es5 // @allowNonTsExtensions: true // @Filename: jsdocCompletion_typedef.js diff --git a/tests/cases/fourslash/server/jsdocTypedefTagNavigateTo.ts b/tests/cases/fourslash/server/jsdocTypedefTagNavigateTo.ts index 212394159a8b0..a3e03728e32fe 100644 --- a/tests/cases/fourslash/server/jsdocTypedefTagNavigateTo.ts +++ b/tests/cases/fourslash/server/jsdocTypedefTagNavigateTo.ts @@ -1,5 +1,6 @@ /// +// @lib: es5 // @allowNonTsExtensions: true // @Filename: jsDocTypedef_form2.js //// diff --git a/tests/cases/fourslash/server/jsdocTypedefTagRename01.ts b/tests/cases/fourslash/server/jsdocTypedefTagRename01.ts index 5634dd1e5c2c2..ba7a3716caec3 100644 --- a/tests/cases/fourslash/server/jsdocTypedefTagRename01.ts +++ b/tests/cases/fourslash/server/jsdocTypedefTagRename01.ts @@ -1,5 +1,6 @@ /// +// @lib: es5 // @allowNonTsExtensions: true // @Filename: jsDocTypedef_form1.js //// diff --git a/tests/cases/fourslash/server/jsdocTypedefTagRename02.ts b/tests/cases/fourslash/server/jsdocTypedefTagRename02.ts index 38f6c0645cc03..bbf62bc5adaae 100644 --- a/tests/cases/fourslash/server/jsdocTypedefTagRename02.ts +++ b/tests/cases/fourslash/server/jsdocTypedefTagRename02.ts @@ -1,5 +1,6 @@ /// +// @lib: es5 // @allowNonTsExtensions: true // @Filename: jsDocTypedef_form2.js //// diff --git a/tests/cases/fourslash/server/jsdocTypedefTagRename03.ts b/tests/cases/fourslash/server/jsdocTypedefTagRename03.ts index e3512b49c5421..de1ad5ee82989 100644 --- a/tests/cases/fourslash/server/jsdocTypedefTagRename03.ts +++ b/tests/cases/fourslash/server/jsdocTypedefTagRename03.ts @@ -1,5 +1,6 @@ /// +// @lib: es5 // @allowNonTsExtensions: true // @Filename: jsDocTypedef_form3.js //// diff --git a/tests/cases/fourslash/server/jsdocTypedefTagRename04.ts b/tests/cases/fourslash/server/jsdocTypedefTagRename04.ts index b7bf220512a5d..5ffe88166f78c 100644 --- a/tests/cases/fourslash/server/jsdocTypedefTagRename04.ts +++ b/tests/cases/fourslash/server/jsdocTypedefTagRename04.ts @@ -1,5 +1,6 @@ /// +// @lib: es5 // @allowNonTsExtensions: true // @Filename: jsDocTypedef_form2.js //// diff --git a/tests/cases/fourslash/server/moveToFile_emptyTargetFile.ts b/tests/cases/fourslash/server/moveToFile_emptyTargetFile.ts index 1daaf8c0d66eb..1aee75ab76712 100644 --- a/tests/cases/fourslash/server/moveToFile_emptyTargetFile.ts +++ b/tests/cases/fourslash/server/moveToFile_emptyTargetFile.ts @@ -9,7 +9,7 @@ /////** empty */ // @Filename: /home/src/workspaces/project/tsconfig.json -///// { "compilerOptions": { "newLine": "lf" } } +///// { "compilerOptions": { "newLine": "lf", "lib": ["es5"] } } verify.moveToFile({ newFileContents: { diff --git a/tests/cases/fourslash/server/navbar01.ts b/tests/cases/fourslash/server/navbar01.ts index 6ce89312ddd1e..c03d916d8ba20 100644 --- a/tests/cases/fourslash/server/navbar01.ts +++ b/tests/cases/fourslash/server/navbar01.ts @@ -1,5 +1,7 @@ /// +// @lib: es5 + ////// Interface ////interface IPoint { //// getDist(): number; diff --git a/tests/cases/fourslash/server/navto01.ts b/tests/cases/fourslash/server/navto01.ts index 0faf7fbf403ae..37912c9648358 100644 --- a/tests/cases/fourslash/server/navto01.ts +++ b/tests/cases/fourslash/server/navto01.ts @@ -1,5 +1,7 @@ /// +// @lib: es5 + /////// Module ////[|{| "name": "MyShapes", "kind": "module" |}namespace MyShapes { //// diff --git a/tests/cases/fourslash/server/navto_serverExcludeLib.ts b/tests/cases/fourslash/server/navto_serverExcludeLib.ts index 26e256d6f6dbb..b0b4528221729 100644 --- a/tests/cases/fourslash/server/navto_serverExcludeLib.ts +++ b/tests/cases/fourslash/server/navto_serverExcludeLib.ts @@ -5,7 +5,7 @@ //// const [|weirdName: number = 1|]; // @Filename: /home/src/workspaces/project/tsconfig.json -//// {} +//// { "compilerOptions": { "lib": ["es5"] } } // @Filename: /home/src/workspaces/project/node_modules/bar/index.d.ts //// export const [|weirdName: number|]; diff --git a/tests/cases/fourslash/server/ngProxy1.ts b/tests/cases/fourslash/server/ngProxy1.ts index 9c75a21e83861..7a67a614d0fd4 100644 --- a/tests/cases/fourslash/server/ngProxy1.ts +++ b/tests/cases/fourslash/server/ngProxy1.ts @@ -3,6 +3,7 @@ // @Filename: tsconfig.json //// { //// "compilerOptions": { +//// "lib": ["es5"], //// "plugins": [ //// { "name": "quickinfo-augmeneter", "message": "hello world" } //// ] diff --git a/tests/cases/fourslash/server/ngProxy2.ts b/tests/cases/fourslash/server/ngProxy2.ts index 33f28eb31d53c..b4fa4179c3ac5 100644 --- a/tests/cases/fourslash/server/ngProxy2.ts +++ b/tests/cases/fourslash/server/ngProxy2.ts @@ -3,6 +3,7 @@ // @Filename: tsconfig.json //// { //// "compilerOptions": { +//// "lib": ["es5"], //// "plugins": [ //// { "name": "invalidmodulename" } //// ] diff --git a/tests/cases/fourslash/server/ngProxy3.ts b/tests/cases/fourslash/server/ngProxy3.ts index 5b9ea26d1dd88..70f00721db4d6 100644 --- a/tests/cases/fourslash/server/ngProxy3.ts +++ b/tests/cases/fourslash/server/ngProxy3.ts @@ -3,6 +3,7 @@ // @Filename: tsconfig.json //// { //// "compilerOptions": { +//// "lib": ["es5"], //// "plugins": [ //// { "name": "create-thrower" } //// ] diff --git a/tests/cases/fourslash/server/ngProxy4.ts b/tests/cases/fourslash/server/ngProxy4.ts index 69455903dfbc9..6c71a3f6b5634 100644 --- a/tests/cases/fourslash/server/ngProxy4.ts +++ b/tests/cases/fourslash/server/ngProxy4.ts @@ -3,6 +3,7 @@ // @Filename: tsconfig.json //// { //// "compilerOptions": { +//// "lib": ["es5"], //// "plugins": [ //// { "name": "diagnostic-adder" } //// ] diff --git a/tests/cases/fourslash/server/nodeNextModuleKindCaching1.ts b/tests/cases/fourslash/server/nodeNextModuleKindCaching1.ts index c68123b7d07b5..d5dce315ecd7f 100644 --- a/tests/cases/fourslash/server/nodeNextModuleKindCaching1.ts +++ b/tests/cases/fourslash/server/nodeNextModuleKindCaching1.ts @@ -3,6 +3,7 @@ // @Filename: tsconfig.json ////{ //// "compilerOptions": { +//// "lib": ["es5"], //// "rootDir": "src", //// "outDir": "dist", //// "target": "ES2020", diff --git a/tests/cases/fourslash/server/nodeNextPathCompletions.ts b/tests/cases/fourslash/server/nodeNextPathCompletions.ts index 7d637abb8df3a..1875523ca39e0 100644 --- a/tests/cases/fourslash/server/nodeNextPathCompletions.ts +++ b/tests/cases/fourslash/server/nodeNextPathCompletions.ts @@ -31,7 +31,7 @@ //// } // @Filename: /home/src/workspaces/project/tsconfig.json -//// { "compilerOptions": { "module": "nodenext" }, "files": ["./src/foo.ts"] } +//// { "compilerOptions": { "lib": ["es5"], "module": "nodenext" }, "files": ["./src/foo.ts"] } // @Filename: /home/src/workspaces/project/src/foo.ts //// import { fooFromIndex } from "/**/"; diff --git a/tests/cases/fourslash/server/nonJsDeclarationFilePathCompletions.ts b/tests/cases/fourslash/server/nonJsDeclarationFilePathCompletions.ts index 6c46981d1c9e7..2f00a0fdd7288 100644 --- a/tests/cases/fourslash/server/nonJsDeclarationFilePathCompletions.ts +++ b/tests/cases/fourslash/server/nonJsDeclarationFilePathCompletions.ts @@ -1,5 +1,6 @@ /// +// @lib: es5 // @allowArbitraryExtensions: true // @Filename: /home/src/workspaces/project/mod.d.html.ts ////export declare class HtmlModuleThing {} diff --git a/tests/cases/fourslash/server/occurrences01.ts b/tests/cases/fourslash/server/occurrences01.ts index 7d59d132df8a5..741112008f7b6 100644 --- a/tests/cases/fourslash/server/occurrences01.ts +++ b/tests/cases/fourslash/server/occurrences01.ts @@ -1,5 +1,7 @@ /// +// @lib: es5 + ////foo: [|switch|] (10) { //// [|case|] 1: //// [|case|] 2: diff --git a/tests/cases/fourslash/server/occurrences02.ts b/tests/cases/fourslash/server/occurrences02.ts index af5c478891fc9..8a826ec49c146 100644 --- a/tests/cases/fourslash/server/occurrences02.ts +++ b/tests/cases/fourslash/server/occurrences02.ts @@ -1,5 +1,7 @@ /// +// @lib: es5 + ////function [|f|](x: typeof [|f|]) { //// [|f|]([|f|]); ////} diff --git a/tests/cases/fourslash/server/openFile.ts b/tests/cases/fourslash/server/openFile.ts index e30bccc488a19..f700815f7054e 100644 --- a/tests/cases/fourslash/server/openFile.ts +++ b/tests/cases/fourslash/server/openFile.ts @@ -7,7 +7,7 @@ ////var t = '10'; // @Filename: tsconfig.json -////{ "files": ["test.ts", "test1.ts"] } +////{ "compilerOptions": { "lib": ["es5"] }, "files": ["test.ts", "test1.ts"] } var overridingContent = "var t = 10; t."; goTo.file("test.ts", overridingContent); diff --git a/tests/cases/fourslash/server/openFileWithSyntaxKind.ts b/tests/cases/fourslash/server/openFileWithSyntaxKind.ts index 16e05cf408092..973dd981689a2 100644 --- a/tests/cases/fourslash/server/openFileWithSyntaxKind.ts +++ b/tests/cases/fourslash/server/openFileWithSyntaxKind.ts @@ -1,5 +1,7 @@ /// +// @lib: es5 + // Because the fourslash runner automatically opens the first file with the default setting, // to test the openFile function, the targeted file cannot be the first one. diff --git a/tests/cases/fourslash/server/packageJsonImportsFailedLookups.ts b/tests/cases/fourslash/server/packageJsonImportsFailedLookups.ts index 0f497d240e9fc..c6583c508098c 100644 --- a/tests/cases/fourslash/server/packageJsonImportsFailedLookups.ts +++ b/tests/cases/fourslash/server/packageJsonImportsFailedLookups.ts @@ -1,7 +1,7 @@ /// // @Filename: /a/b/c/d/e/tsconfig.json -//// { "compilerOptions": { "module": "nodenext" } } +//// { "compilerOptions": { "lib": ["es5"], "module": "nodenext" } } // @Filename: /a/b/c/d/e/package.json //// { diff --git a/tests/cases/fourslash/server/pasteEdits_addInNextLine.ts b/tests/cases/fourslash/server/pasteEdits_addInNextLine.ts index d04d0d2736a67..ba9f8ff76e16a 100644 --- a/tests/cases/fourslash/server/pasteEdits_addInNextLine.ts +++ b/tests/cases/fourslash/server/pasteEdits_addInNextLine.ts @@ -16,7 +16,7 @@ //// [|export const k = a+ t;|] // @Filename: /home/src/workspaces/project/tsconfig.json -////{ "files": ["a.ts", "b.ts"] } +////{ "compilerOptions": { "lib": ["es5"] }, "files": ["a.ts", "b.ts"] } const ranges = test.ranges(); verify.pasteEdits({ diff --git a/tests/cases/fourslash/server/pasteEdits_blankTargetFile.ts b/tests/cases/fourslash/server/pasteEdits_blankTargetFile.ts index 711f50eaed1b8..7ec394a9fc1ad 100644 --- a/tests/cases/fourslash/server/pasteEdits_blankTargetFile.ts +++ b/tests/cases/fourslash/server/pasteEdits_blankTargetFile.ts @@ -15,7 +15,7 @@ //// console.log("abc"); // @Filename: /home/src/workspaces/project/tsconfig.json -////{ "files": ["folder/c.ts", "a.ts", "b.ts"] } +////{ "compilerOptions": { "lib": ["es5"] }, "files": ["folder/c.ts", "a.ts", "b.ts"] } const ranges = test.ranges(); verify.pasteEdits({ diff --git a/tests/cases/fourslash/server/pasteEdits_defaultExport1.ts b/tests/cases/fourslash/server/pasteEdits_defaultExport1.ts index c04342ef37ab4..8d636818a102f 100644 --- a/tests/cases/fourslash/server/pasteEdits_defaultExport1.ts +++ b/tests/cases/fourslash/server/pasteEdits_defaultExport1.ts @@ -13,7 +13,7 @@ //// } // @Filename: /home/src/workspaces/project/tsconfig.json -////{ "files": ["folder/c.ts", "a.ts", "b.ts"] } +////{ "compilerOptions": { "lib": ["es5"] }, "files": ["folder/c.ts", "a.ts", "b.ts"] } const range = test.ranges(); verify.pasteEdits({ diff --git a/tests/cases/fourslash/server/pasteEdits_defaultExport2.ts b/tests/cases/fourslash/server/pasteEdits_defaultExport2.ts index bb8adbc78a522..5f9a5b1fe6a2a 100644 --- a/tests/cases/fourslash/server/pasteEdits_defaultExport2.ts +++ b/tests/cases/fourslash/server/pasteEdits_defaultExport2.ts @@ -10,7 +10,7 @@ //// } // @Filename: /home/src/workspaces/project/tsconfig.json -////{ "files": ["folder/c.ts", "a.ts"] } +////{ "compilerOptions": { "lib": ["es5"] }, "files": ["folder/c.ts", "a.ts"] } const range = test.ranges(); verify.pasteEdits({ diff --git a/tests/cases/fourslash/server/pasteEdits_defaultImport.ts b/tests/cases/fourslash/server/pasteEdits_defaultImport.ts index d2eafb4291c45..3b6d38bcf82e8 100644 --- a/tests/cases/fourslash/server/pasteEdits_defaultImport.ts +++ b/tests/cases/fourslash/server/pasteEdits_defaultImport.ts @@ -21,7 +21,7 @@ //// } // @Filename: /home/src/workspaces/project/folder/tsconfig.json -////{ "compilerOptions": { "module": "nodenext" }, "files": ["folder/c.ts", "a.ts", "b.mts"] } +////{ "compilerOptions": { "lib": ["es5"], "module": "nodenext" }, "files": ["folder/c.ts", "a.ts", "b.mts"] } const range = test.ranges(); verify.pasteEdits({ diff --git a/tests/cases/fourslash/server/pasteEdits_existingImports1.ts b/tests/cases/fourslash/server/pasteEdits_existingImports1.ts index aab1d27689a52..3fdc3884de463 100644 --- a/tests/cases/fourslash/server/pasteEdits_existingImports1.ts +++ b/tests/cases/fourslash/server/pasteEdits_existingImports1.ts @@ -17,7 +17,7 @@ //// export const t3 = 1; // @Filename: /home/src/workspaces/project/tsconfig.json -////{ "files": ["target.ts", "other.ts", "other2.ts", "other3.ts"] } +////{ "compilerOptions": { "lib": ["es5"] }, "files": ["target.ts", "other.ts", "other2.ts", "other3.ts"] } verify.pasteEdits({ args: { diff --git a/tests/cases/fourslash/server/pasteEdits_existingImports2.ts b/tests/cases/fourslash/server/pasteEdits_existingImports2.ts index 009d83bbeb43d..98a59d68d6e86 100644 --- a/tests/cases/fourslash/server/pasteEdits_existingImports2.ts +++ b/tests/cases/fourslash/server/pasteEdits_existingImports2.ts @@ -23,7 +23,7 @@ //// [|export const m = t3 + t2 + n;|] // @Filename: /home/src/workspaces/project/tsconfig.json -////{ "files": ["target.ts", "originalFile.ts", "other.ts", "other2.ts", "other3.ts"] } +////{ "compilerOptions": { "lib": ["es5"] }, "files": ["target.ts", "originalFile.ts", "other.ts", "other2.ts", "other3.ts"] } const ranges = test.ranges(); verify.pasteEdits({ diff --git a/tests/cases/fourslash/server/pasteEdits_globalAndLocal1.ts b/tests/cases/fourslash/server/pasteEdits_globalAndLocal1.ts index 492cdd90ef4bb..683b093e1c1bf 100644 --- a/tests/cases/fourslash/server/pasteEdits_globalAndLocal1.ts +++ b/tests/cases/fourslash/server/pasteEdits_globalAndLocal1.ts @@ -19,7 +19,7 @@ // @Filename: /home/src/workspaces/project/tsconfig.json -////{ "files": ["target.ts", "globals.d.ts", "test.ts"] } +////{ "compilerOptions": { "lib": ["es5"] }, "files": ["target.ts", "globals.d.ts", "test.ts"] } const ranges = test.ranges(); verify.pasteEdits({ diff --git a/tests/cases/fourslash/server/pasteEdits_globalAndLocal2.ts b/tests/cases/fourslash/server/pasteEdits_globalAndLocal2.ts index 6e0ec85ee2427..af027cfca7bc9 100644 --- a/tests/cases/fourslash/server/pasteEdits_globalAndLocal2.ts +++ b/tests/cases/fourslash/server/pasteEdits_globalAndLocal2.ts @@ -21,7 +21,7 @@ //// } // @Filename: /home/src/workspaces/project/tsconfig.json -////{ "files": ["target.ts", "globals.d.ts", "test.ts", "lifecycle.ts"] } +////{ "compilerOptions": { "lib": ["es5"] }, "files": ["target.ts", "globals.d.ts", "test.ts", "lifecycle.ts"] } const ranges = test.ranges(); verify.pasteEdits({ diff --git a/tests/cases/fourslash/server/pasteEdits_knownSourceFile.ts b/tests/cases/fourslash/server/pasteEdits_knownSourceFile.ts index c0ed4eae407c4..724cdea9352d1 100644 --- a/tests/cases/fourslash/server/pasteEdits_knownSourceFile.ts +++ b/tests/cases/fourslash/server/pasteEdits_knownSourceFile.ts @@ -15,7 +15,7 @@ ////const t = 9;|] // @Filename: /home/src/workspaces/project/tsconfig.json -////{ "files": ["file1.ts", "file2.ts", "target.ts"] } +////{ "compilerOptions": { "lib": ["es5"] }, "files": ["file1.ts", "file2.ts", "target.ts"] } const ranges = test.ranges(); verify.pasteEdits({ diff --git a/tests/cases/fourslash/server/pasteEdits_multiplePastes1.ts b/tests/cases/fourslash/server/pasteEdits_multiplePastes1.ts index 3570d889133ef..72cc05f16a092 100644 --- a/tests/cases/fourslash/server/pasteEdits_multiplePastes1.ts +++ b/tests/cases/fourslash/server/pasteEdits_multiplePastes1.ts @@ -17,7 +17,7 @@ //// export const s = 12; // @Filename: /home/src/workspaces/project/tsconfig.json -////{ "files": ["file1.ts", "target.ts", "file3.ts"] } +////{ "compilerOptions": { "lib": ["es5"] }, "files": ["file1.ts", "target.ts", "file3.ts"] } const ranges = test.ranges(); verify.pasteEdits({ diff --git a/tests/cases/fourslash/server/pasteEdits_multiplePastes2.ts b/tests/cases/fourslash/server/pasteEdits_multiplePastes2.ts index 3f8a8024e09a4..e17b41c78a5ad 100644 --- a/tests/cases/fourslash/server/pasteEdits_multiplePastes2.ts +++ b/tests/cases/fourslash/server/pasteEdits_multiplePastes2.ts @@ -19,7 +19,7 @@ //// export const bb = 2; // @Filename: /home/src/workspaces/project/tsconfig.json -////{ "files": ["file1.ts", "target.ts", "other.ts"] } +////{ "compilerOptions": { "lib": ["es5"] }, "files": ["file1.ts", "target.ts", "other.ts"] } const ranges = test.ranges(); verify.pasteEdits({ diff --git a/tests/cases/fourslash/server/pasteEdits_multiplePastes3.ts b/tests/cases/fourslash/server/pasteEdits_multiplePastes3.ts index 6ea80efe7b810..1c80347cd2115 100644 --- a/tests/cases/fourslash/server/pasteEdits_multiplePastes3.ts +++ b/tests/cases/fourslash/server/pasteEdits_multiplePastes3.ts @@ -22,7 +22,7 @@ //// export const bb = 2; // @Filename: /home/src/workspaces/project/tsconfig.json -////{ "files": ["file1.ts", "target.ts", "other.ts"] } +////{ "compilerOptions": { "lib": ["es5"] }, "files": ["file1.ts", "target.ts", "other.ts"] } const ranges = test.ranges(); verify.pasteEdits({ diff --git a/tests/cases/fourslash/server/pasteEdits_multiplePastes4.ts b/tests/cases/fourslash/server/pasteEdits_multiplePastes4.ts index eb0cc989805e3..6690b2bede9b8 100644 --- a/tests/cases/fourslash/server/pasteEdits_multiplePastes4.ts +++ b/tests/cases/fourslash/server/pasteEdits_multiplePastes4.ts @@ -17,7 +17,7 @@ //// export const s = 12; // @Filename: /home/src/workspaces/project/tsconfig.json -////{ "files": ["file1.ts", "target.ts", "file3.ts"] } +////{ "compilerOptions": { "lib": ["es5"] }, "files": ["file1.ts", "target.ts", "file3.ts"] } const ranges = test.ranges(); verify.pasteEdits({ diff --git a/tests/cases/fourslash/server/pasteEdits_multiplePastesConsistentlyLargerInSize.ts b/tests/cases/fourslash/server/pasteEdits_multiplePastesConsistentlyLargerInSize.ts index 72d6efd719106..8995f6e6d6fae 100644 --- a/tests/cases/fourslash/server/pasteEdits_multiplePastesConsistentlyLargerInSize.ts +++ b/tests/cases/fourslash/server/pasteEdits_multiplePastesConsistentlyLargerInSize.ts @@ -33,7 +33,7 @@ //// export const tomato = 4; // @Filename: /home/src/workspaces/project/tsconfig.json -////{ "files": ["a.ts", "b.ts"] } +////{ "compilerOptions": { "lib": ["es5"] }, "files": ["a.ts", "b.ts"] } verify.pasteEdits({ args: { diff --git a/tests/cases/fourslash/server/pasteEdits_multiplePastesConsistentlySmallerInSize.ts b/tests/cases/fourslash/server/pasteEdits_multiplePastesConsistentlySmallerInSize.ts index 82f07cd952e3f..de308fa42743e 100644 --- a/tests/cases/fourslash/server/pasteEdits_multiplePastesConsistentlySmallerInSize.ts +++ b/tests/cases/fourslash/server/pasteEdits_multiplePastesConsistentlySmallerInSize.ts @@ -40,7 +40,7 @@ //// export const tomato = 4; // @Filename: /home/src/workspaces/project/tsconfig.json -////{ "files": ["a.ts", "b.ts"] } +////{ "compilerOptions": { "lib": ["es5"] }, "files": ["a.ts", "b.ts"] } verify.pasteEdits({ args: { diff --git a/tests/cases/fourslash/server/pasteEdits_multiplePastesEqualInSize.ts b/tests/cases/fourslash/server/pasteEdits_multiplePastesEqualInSize.ts index cf98564e6c246..8b967f093d17b 100644 --- a/tests/cases/fourslash/server/pasteEdits_multiplePastesEqualInSize.ts +++ b/tests/cases/fourslash/server/pasteEdits_multiplePastesEqualInSize.ts @@ -32,7 +32,7 @@ //// export const tomato = 4; // @Filename: /home/src/workspaces/project/tsconfig.json -////{ "files": ["a.ts", "b.ts"] } +////{ "compilerOptions": { "lib": ["es5"] }, "files": ["a.ts", "b.ts"] } verify.pasteEdits({ args: { diff --git a/tests/cases/fourslash/server/pasteEdits_multiplePastesGrowingAndShrinkingInSize.ts b/tests/cases/fourslash/server/pasteEdits_multiplePastesGrowingAndShrinkingInSize.ts index 5948632da0f7c..c977cabbb05d4 100644 --- a/tests/cases/fourslash/server/pasteEdits_multiplePastesGrowingAndShrinkingInSize.ts +++ b/tests/cases/fourslash/server/pasteEdits_multiplePastesGrowingAndShrinkingInSize.ts @@ -29,7 +29,7 @@ //// export const tomato = 3; // @Filename: /home/src/workspaces/project/tsconfig.json -////{ "files": ["a.ts", "b.ts"] } +////{ "compilerOptions": { "lib": ["es5"] }, "files": ["a.ts", "b.ts"] } verify.pasteEdits({ args: { diff --git a/tests/cases/fourslash/server/pasteEdits_multiplePastesGrowingInSize.ts b/tests/cases/fourslash/server/pasteEdits_multiplePastesGrowingInSize.ts index 8d43cc4fcceb0..5e0e0c196844c 100644 --- a/tests/cases/fourslash/server/pasteEdits_multiplePastesGrowingInSize.ts +++ b/tests/cases/fourslash/server/pasteEdits_multiplePastesGrowingInSize.ts @@ -33,7 +33,7 @@ //// export const tomato = 4; // @Filename: /home/src/workspaces/project/tsconfig.json -////{ "files": ["a.ts", "b.ts", "c.ts"] } +////{ "compilerOptions": { "lib": ["es5"] }, "files": ["a.ts", "b.ts", "c.ts"] } verify.pasteEdits({ args: { diff --git a/tests/cases/fourslash/server/pasteEdits_multiplePastesShrinkingInSize.ts b/tests/cases/fourslash/server/pasteEdits_multiplePastesShrinkingInSize.ts index 034a4544e6e57..3674c0418847a 100644 --- a/tests/cases/fourslash/server/pasteEdits_multiplePastesShrinkingInSize.ts +++ b/tests/cases/fourslash/server/pasteEdits_multiplePastesShrinkingInSize.ts @@ -33,7 +33,7 @@ //// export const tomato = 4; // @Filename: /home/src/workspaces/project/tsconfig.json -////{ "files": ["a.ts", "b.ts", "c.ts"] } +////{ "compilerOptions": { "lib": ["es5"] }, "files": ["a.ts", "b.ts", "c.ts"] } verify.pasteEdits({ args: { diff --git a/tests/cases/fourslash/server/pasteEdits_namespaceImport.ts b/tests/cases/fourslash/server/pasteEdits_namespaceImport.ts index ded500926fa96..b5e644e14df31 100644 --- a/tests/cases/fourslash/server/pasteEdits_namespaceImport.ts +++ b/tests/cases/fourslash/server/pasteEdits_namespaceImport.ts @@ -22,7 +22,7 @@ //// // @Filename: /home/src/workspaces/project/tsconfig.json -////{ "files": ["folder/c.ts", "a.ts", "b.ts"] } +////{ "compilerOptions": { "lib": ["es5"] }, "files": ["folder/c.ts", "a.ts", "b.ts"] } const range = test.ranges(); verify.pasteEdits({ diff --git a/tests/cases/fourslash/server/pasteEdits_noImportNeeded.ts b/tests/cases/fourslash/server/pasteEdits_noImportNeeded.ts index d65cbdf62601b..353205b1623b3 100644 --- a/tests/cases/fourslash/server/pasteEdits_noImportNeeded.ts +++ b/tests/cases/fourslash/server/pasteEdits_noImportNeeded.ts @@ -9,7 +9,7 @@ //// [|export|] const foo: Foo = {} // @Filename: /home/src/workspaces/project/tsconfig.json -////{ "files": ["a.ts", "b.ts"] } +////{ "compilerOptions": { "lib": ["es5"] }, "files": ["a.ts", "b.ts"] } const ranges = test.ranges(); verify.pasteEdits({ diff --git a/tests/cases/fourslash/server/pasteEdits_noImportNeededInUpdatedProgram.ts b/tests/cases/fourslash/server/pasteEdits_noImportNeededInUpdatedProgram.ts index b07709a5b639e..c29d5d99b502c 100644 --- a/tests/cases/fourslash/server/pasteEdits_noImportNeededInUpdatedProgram.ts +++ b/tests/cases/fourslash/server/pasteEdits_noImportNeededInUpdatedProgram.ts @@ -7,7 +7,7 @@ //// export const b = 10; // @Filename: /home/src/workspaces/project/tsconfig.json -////{ "files": ["a.ts", "b.ts"] } +////{ "compilerOptions": { "lib": ["es5"] }, "files": ["a.ts", "b.ts"] } verify.pasteEdits({ args: { diff --git a/tests/cases/fourslash/server/pasteEdits_pasteComments.ts b/tests/cases/fourslash/server/pasteEdits_pasteComments.ts index c950f0ebf2f02..bdd0e5dfc86bb 100644 --- a/tests/cases/fourslash/server/pasteEdits_pasteComments.ts +++ b/tests/cases/fourslash/server/pasteEdits_pasteComments.ts @@ -6,7 +6,7 @@ //// const c = 10; // @Filename: /home/src/workspaces/project/tsconfig.json -////{ "files": ["target.ts"] } +////{ "compilerOptions": { "lib": ["es5"] }, "files": ["target.ts"] } verify.pasteEdits({ args: { diff --git a/tests/cases/fourslash/server/pasteEdits_pasteIntoSameFile.ts b/tests/cases/fourslash/server/pasteEdits_pasteIntoSameFile.ts index e264dfd0000ba..67a45ce348c1c 100644 --- a/tests/cases/fourslash/server/pasteEdits_pasteIntoSameFile.ts +++ b/tests/cases/fourslash/server/pasteEdits_pasteIntoSameFile.ts @@ -8,7 +8,7 @@ //// console.log("test"); // @Filename: /home/src/workspaces/project/tsconfig.json -////{ "files": ["target.ts"] } +////{ "compilerOptions": { "lib": ["es5"] }, "files": ["target.ts"] } const ranges = test.ranges(); verify.pasteEdits({ diff --git a/tests/cases/fourslash/server/pasteEdits_rangeSelection0.ts b/tests/cases/fourslash/server/pasteEdits_rangeSelection0.ts index 5ab90a9b480d2..bd55f52012656 100644 --- a/tests/cases/fourslash/server/pasteEdits_rangeSelection0.ts +++ b/tests/cases/fourslash/server/pasteEdits_rangeSelection0.ts @@ -10,7 +10,7 @@ //// x // @Filename: /home/src/workspaces/project/tsconfig.json -////{ "files": ["a.ts", "folder/target.ts"] } +////{ "compilerOptions": { "lib": ["es5"] }, "files": ["a.ts", "folder/target.ts"] } const ranges = test.ranges(); verify.pasteEdits({ diff --git a/tests/cases/fourslash/server/pasteEdits_rangeSelection1.ts b/tests/cases/fourslash/server/pasteEdits_rangeSelection1.ts index f9276c236dadb..45d415f720f81 100644 --- a/tests/cases/fourslash/server/pasteEdits_rangeSelection1.ts +++ b/tests/cases/fourslash/server/pasteEdits_rangeSelection1.ts @@ -10,7 +10,7 @@ //// x // @Filename: /home/src/workspaces/project/tsconfig.json -////{ "files": ["a.ts", "folder/target.ts"] } +////{ "compilerOptions": { "lib": ["es5"] }, "files": ["a.ts", "folder/target.ts"] } const ranges = test.ranges(); verify.pasteEdits({ diff --git a/tests/cases/fourslash/server/pasteEdits_rangeSelection2.ts b/tests/cases/fourslash/server/pasteEdits_rangeSelection2.ts index 4f6992b1f1868..75e6daea5a769 100644 --- a/tests/cases/fourslash/server/pasteEdits_rangeSelection2.ts +++ b/tests/cases/fourslash/server/pasteEdits_rangeSelection2.ts @@ -9,7 +9,7 @@ //// [|foo()|] // @Filename: /home/src/workspaces/project/tsconfig.json -////{ "files": ["a.ts", "folder/target.ts"] } +////{ "compilerOptions": { "lib": ["es5"] }, "files": ["a.ts", "folder/target.ts"] } const ranges = test.ranges(); verify.pasteEdits({ diff --git a/tests/cases/fourslash/server/pasteEdits_rangeSelection3.ts b/tests/cases/fourslash/server/pasteEdits_rangeSelection3.ts index d9cd323acdab1..9d875abf2fc74 100644 --- a/tests/cases/fourslash/server/pasteEdits_rangeSelection3.ts +++ b/tests/cases/fourslash/server/pasteEdits_rangeSelection3.ts @@ -9,7 +9,7 @@ //// [|foo()|] // @Filename: /home/src/workspaces/project/tsconfig.json -////{ "files": ["a.ts", "folder/target.ts"] } +////{ "compilerOptions": { "lib": ["es5"] }, "files": ["a.ts", "folder/target.ts"] } const ranges = test.ranges(); verify.pasteEdits({ diff --git a/tests/cases/fourslash/server/pasteEdits_rangeSelection4.ts b/tests/cases/fourslash/server/pasteEdits_rangeSelection4.ts index 56c6d6ce60c0c..81f3eea239e37 100644 --- a/tests/cases/fourslash/server/pasteEdits_rangeSelection4.ts +++ b/tests/cases/fourslash/server/pasteEdits_rangeSelection4.ts @@ -12,7 +12,7 @@ //// foo()|] // @Filename: /home/src/workspaces/project/tsconfig.json -////{ "files": ["a.ts", "folder/target.ts"] } +////{ "compilerOptions": { "lib": ["es5"] }, "files": ["a.ts", "folder/target.ts"] } const ranges = test.ranges(); verify.pasteEdits({ diff --git a/tests/cases/fourslash/server/pasteEdits_rangeSelection5.ts b/tests/cases/fourslash/server/pasteEdits_rangeSelection5.ts index df881e68744c8..d666a321cfad9 100644 --- a/tests/cases/fourslash/server/pasteEdits_rangeSelection5.ts +++ b/tests/cases/fourslash/server/pasteEdits_rangeSelection5.ts @@ -9,7 +9,7 @@ //// foo()|] // @Filename: /home/src/workspaces/project/tsconfig.json -////{ "files": ["a.ts", "folder/target.ts"] } +////{ "compilerOptions": { "lib": ["es5"] }, "files": ["a.ts", "folder/target.ts"] } const ranges = test.ranges(); verify.pasteEdits({ diff --git a/tests/cases/fourslash/server/pasteEdits_rangeSelection6.ts b/tests/cases/fourslash/server/pasteEdits_rangeSelection6.ts index 607e98f052ff6..6f19af4e54b71 100644 --- a/tests/cases/fourslash/server/pasteEdits_rangeSelection6.ts +++ b/tests/cases/fourslash/server/pasteEdits_rangeSelection6.ts @@ -12,7 +12,7 @@ //// x|] // @Filename: /home/src/workspaces/project/tsconfig.json -////{ "files": ["a.ts", "folder/target.ts"] } +////{ "compilerOptions": { "lib": ["es5"] }, "files": ["a.ts", "folder/target.ts"] } const ranges = test.ranges(); verify.pasteEdits({ diff --git a/tests/cases/fourslash/server/pasteEdits_rangeSelection7.ts b/tests/cases/fourslash/server/pasteEdits_rangeSelection7.ts index cf8deea6bcc22..68fd008ea4051 100644 --- a/tests/cases/fourslash/server/pasteEdits_rangeSelection7.ts +++ b/tests/cases/fourslash/server/pasteEdits_rangeSelection7.ts @@ -12,7 +12,7 @@ //// x // @Filename: /home/src/workspaces/project/tsconfig.json -////{ "files": ["a.ts", "folder/target.ts"] } +////{ "compilerOptions": { "lib": ["es5"] }, "files": ["a.ts", "folder/target.ts"] } const ranges = test.ranges(); verify.pasteEdits({ diff --git a/tests/cases/fourslash/server/pasteEdits_rangeSelection8.ts b/tests/cases/fourslash/server/pasteEdits_rangeSelection8.ts index 13a54c2f854f7..b014b85f2674b 100644 --- a/tests/cases/fourslash/server/pasteEdits_rangeSelection8.ts +++ b/tests/cases/fourslash/server/pasteEdits_rangeSelection8.ts @@ -12,7 +12,7 @@ //// a|]aaa // @Filename: /home/src/workspaces/project/tsconfig.json -////{ "files": ["a.ts", "folder/target.ts"] } +////{ "compilerOptions": { "lib": ["es5"] }, "files": ["a.ts", "folder/target.ts"] } const ranges = test.ranges(); verify.pasteEdits({ diff --git a/tests/cases/fourslash/server/pasteEdits_rangeSelection9.ts b/tests/cases/fourslash/server/pasteEdits_rangeSelection9.ts index 872746f4ba141..ba623642db1b4 100644 --- a/tests/cases/fourslash/server/pasteEdits_rangeSelection9.ts +++ b/tests/cases/fourslash/server/pasteEdits_rangeSelection9.ts @@ -10,7 +10,7 @@ //// /* another comment */ // @Filename: /home/src/workspaces/project/tsconfig.json -////{ "files": ["a.ts", "folder/target.ts"] } +////{ "compilerOptions": { "lib": ["es5"] }, "files": ["a.ts", "folder/target.ts"] } const ranges = test.ranges(); verify.pasteEdits({ diff --git a/tests/cases/fourslash/server/pasteEdits_requireImportJsx.ts b/tests/cases/fourslash/server/pasteEdits_requireImportJsx.ts index f7be3b8f61c4a..d60d7c5ddb8d4 100644 --- a/tests/cases/fourslash/server/pasteEdits_requireImportJsx.ts +++ b/tests/cases/fourslash/server/pasteEdits_requireImportJsx.ts @@ -20,7 +20,7 @@ ////} // @Filename: /home/src/workspaces/project/tsconfig.json -////{ "files": ["folder/c.jsx", "react.d.ts", "b.jsx"] } +////{ "compilerOptions": { "lib": ["es5"] }, "files": ["folder/c.jsx", "react.d.ts", "b.jsx"] } const range = test.ranges(); verify.pasteEdits({ diff --git a/tests/cases/fourslash/server/pasteEdits_revertUpdatedFile.ts b/tests/cases/fourslash/server/pasteEdits_revertUpdatedFile.ts index c5d5d9c6c7bcd..8424ca464432d 100644 --- a/tests/cases/fourslash/server/pasteEdits_revertUpdatedFile.ts +++ b/tests/cases/fourslash/server/pasteEdits_revertUpdatedFile.ts @@ -15,7 +15,7 @@ //// export const t2 = 1; // @Filename: /home/src/workspaces/project/tsconfig.json -////{ "files": ["target.ts", "other.ts", "other2.ts"] } +////{ "compilerOptions": { "lib": ["es5"] }, "files": ["target.ts", "other.ts", "other2.ts"] } verify.pasteEdits({ args: { diff --git a/tests/cases/fourslash/server/pasteEdits_unknownSourceFile.ts b/tests/cases/fourslash/server/pasteEdits_unknownSourceFile.ts index fb49a61ab94bb..9fabac1c82f69 100644 --- a/tests/cases/fourslash/server/pasteEdits_unknownSourceFile.ts +++ b/tests/cases/fourslash/server/pasteEdits_unknownSourceFile.ts @@ -12,7 +12,7 @@ //// export interface Test4 {} // @Filename: /home/src/workspaces/project/tsconfig.json -////{ "files": ["file1.ts", "file2.ts"] } +////{ "compilerOptions": { "lib": ["es5"] }, "files": ["file1.ts", "file2.ts"] } verify.pasteEdits({ args: { diff --git a/tests/cases/fourslash/server/pathCompletionsPackageJsonImportsSrcNoDistWildcard1.ts b/tests/cases/fourslash/server/pathCompletionsPackageJsonImportsSrcNoDistWildcard1.ts index 0bc1ad2dbdacc..076f2d1920f35 100644 --- a/tests/cases/fourslash/server/pathCompletionsPackageJsonImportsSrcNoDistWildcard1.ts +++ b/tests/cases/fourslash/server/pathCompletionsPackageJsonImportsSrcNoDistWildcard1.ts @@ -3,6 +3,7 @@ // @Filename: /home/src/workspaces/project/tsconfig.json //// { //// "compilerOptions": { +//// "lib": ["es5"], //// "module": "nodenext", //// "rootDir": "src", //// "outDir": "dist" diff --git a/tests/cases/fourslash/server/pathCompletionsPackageJsonImportsSrcNoDistWildcard2.ts b/tests/cases/fourslash/server/pathCompletionsPackageJsonImportsSrcNoDistWildcard2.ts index 5dbbeba52d78c..1d125258a382b 100644 --- a/tests/cases/fourslash/server/pathCompletionsPackageJsonImportsSrcNoDistWildcard2.ts +++ b/tests/cases/fourslash/server/pathCompletionsPackageJsonImportsSrcNoDistWildcard2.ts @@ -3,6 +3,7 @@ // @Filename: /home/src/workspaces/project/tsconfig.json //// { //// "compilerOptions": { +//// "lib": ["es5"], //// "module": "nodenext", //// "rootDir": "src", //// "outDir": "dist" diff --git a/tests/cases/fourslash/server/pathCompletionsPackageJsonImportsSrcNoDistWildcard3.ts b/tests/cases/fourslash/server/pathCompletionsPackageJsonImportsSrcNoDistWildcard3.ts index 443382bdf4811..f30a542581596 100644 --- a/tests/cases/fourslash/server/pathCompletionsPackageJsonImportsSrcNoDistWildcard3.ts +++ b/tests/cases/fourslash/server/pathCompletionsPackageJsonImportsSrcNoDistWildcard3.ts @@ -3,6 +3,7 @@ // @Filename: /home/src/workspaces/project/tsconfig.json //// { //// "compilerOptions": { +//// "lib": ["es5"], //// "module": "nodenext", //// "rootDir": "src", //// "outDir": "dist", diff --git a/tests/cases/fourslash/server/pathCompletionsPackageJsonImportsSrcNoDistWildcard4.ts b/tests/cases/fourslash/server/pathCompletionsPackageJsonImportsSrcNoDistWildcard4.ts index ae393be7ce4d6..d293f551136a6 100644 --- a/tests/cases/fourslash/server/pathCompletionsPackageJsonImportsSrcNoDistWildcard4.ts +++ b/tests/cases/fourslash/server/pathCompletionsPackageJsonImportsSrcNoDistWildcard4.ts @@ -3,6 +3,7 @@ // @Filename: /home/src/workspaces/project/tsconfig.json //// { //// "compilerOptions": { +//// "lib": ["es5"], //// "module": "nodenext", //// "rootDir": "src", //// "outDir": "dist" diff --git a/tests/cases/fourslash/server/pathCompletionsPackageJsonImportsSrcNoDistWildcard5.ts b/tests/cases/fourslash/server/pathCompletionsPackageJsonImportsSrcNoDistWildcard5.ts index d63f313c1773e..23864b789d5a5 100644 --- a/tests/cases/fourslash/server/pathCompletionsPackageJsonImportsSrcNoDistWildcard5.ts +++ b/tests/cases/fourslash/server/pathCompletionsPackageJsonImportsSrcNoDistWildcard5.ts @@ -3,6 +3,7 @@ // @Filename: /home/src/workspaces/project/tsconfig.json //// { //// "compilerOptions": { +//// "lib": ["es5"], //// "module": "nodenext", //// "rootDir": "src", //// "outDir": "dist/esm", diff --git a/tests/cases/fourslash/server/pathCompletionsPackageJsonImportsSrcNoDistWildcard6.ts b/tests/cases/fourslash/server/pathCompletionsPackageJsonImportsSrcNoDistWildcard6.ts index 79026a3f7c2b3..8224a10bd56e3 100644 --- a/tests/cases/fourslash/server/pathCompletionsPackageJsonImportsSrcNoDistWildcard6.ts +++ b/tests/cases/fourslash/server/pathCompletionsPackageJsonImportsSrcNoDistWildcard6.ts @@ -3,6 +3,7 @@ // @Filename: /home/src/workspaces/project/tsconfig.json //// { //// "compilerOptions": { +//// "lib": ["es5"], //// "module": "nodenext", //// "rootDir": "src", //// "outDir": "dist" diff --git a/tests/cases/fourslash/server/pathCompletionsPackageJsonImportsSrcNoDistWildcard7.ts b/tests/cases/fourslash/server/pathCompletionsPackageJsonImportsSrcNoDistWildcard7.ts index c26da613c1304..bb00367b3df12 100644 --- a/tests/cases/fourslash/server/pathCompletionsPackageJsonImportsSrcNoDistWildcard7.ts +++ b/tests/cases/fourslash/server/pathCompletionsPackageJsonImportsSrcNoDistWildcard7.ts @@ -3,6 +3,7 @@ // @Filename: /home/src/workspaces/project/tsconfig.json //// { //// "compilerOptions": { +//// "lib": ["es5"], //// "module": "nodenext", //// "rootDir": "src", //// "outDir": "dist" diff --git a/tests/cases/fourslash/server/pathCompletionsPackageJsonImportsSrcNoDistWildcard8.ts b/tests/cases/fourslash/server/pathCompletionsPackageJsonImportsSrcNoDistWildcard8.ts index c26da613c1304..bb00367b3df12 100644 --- a/tests/cases/fourslash/server/pathCompletionsPackageJsonImportsSrcNoDistWildcard8.ts +++ b/tests/cases/fourslash/server/pathCompletionsPackageJsonImportsSrcNoDistWildcard8.ts @@ -3,6 +3,7 @@ // @Filename: /home/src/workspaces/project/tsconfig.json //// { //// "compilerOptions": { +//// "lib": ["es5"], //// "module": "nodenext", //// "rootDir": "src", //// "outDir": "dist" diff --git a/tests/cases/fourslash/server/pathCompletionsPackageJsonImportsSrcNoDistWildcard9.ts b/tests/cases/fourslash/server/pathCompletionsPackageJsonImportsSrcNoDistWildcard9.ts index fdbe7436f4d96..be96d317e95b4 100644 --- a/tests/cases/fourslash/server/pathCompletionsPackageJsonImportsSrcNoDistWildcard9.ts +++ b/tests/cases/fourslash/server/pathCompletionsPackageJsonImportsSrcNoDistWildcard9.ts @@ -3,6 +3,7 @@ // @Filename: /home/src/workspaces/project/tsconfig.json //// { //// "compilerOptions": { +//// "lib": ["es5"], //// "module": "nodenext", //// "rootDir": "src", //// "outDir": "dist", diff --git a/tests/cases/fourslash/server/projectInfo01.ts b/tests/cases/fourslash/server/projectInfo01.ts index ff89af47d4bb3..ff5680b04f60f 100644 --- a/tests/cases/fourslash/server/projectInfo01.ts +++ b/tests/cases/fourslash/server/projectInfo01.ts @@ -1,5 +1,7 @@ /// +// @lib: es5 + // @Filename: a.ts ////export var test = "test String" @@ -14,11 +16,11 @@ ////console.log("nothing"); goTo.file("a.ts") -verify.ProjectInfo(["/home/src/tslibs/TS/Lib/lib.d.ts", "/home/src/tslibs/TS/Lib/lib.decorators.d.ts", "/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts", "a.ts"]) +verify.ProjectInfo(["/home/src/tslibs/TS/Lib/lib.es5.d.ts", "/home/src/tslibs/TS/Lib/lib.decorators.d.ts", "/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts", "a.ts"]) goTo.file("b.ts") -verify.ProjectInfo(["/home/src/tslibs/TS/Lib/lib.d.ts", "/home/src/tslibs/TS/Lib/lib.decorators.d.ts", "/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts", "a.ts", "b.ts"]) +verify.ProjectInfo(["/home/src/tslibs/TS/Lib/lib.es5.d.ts", "/home/src/tslibs/TS/Lib/lib.decorators.d.ts", "/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts", "a.ts", "b.ts"]) goTo.file("c.ts") -verify.ProjectInfo(["/home/src/tslibs/TS/Lib/lib.d.ts", "/home/src/tslibs/TS/Lib/lib.decorators.d.ts", "/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts", "a.ts", "b.ts", "c.ts"]) +verify.ProjectInfo(["/home/src/tslibs/TS/Lib/lib.es5.d.ts", "/home/src/tslibs/TS/Lib/lib.decorators.d.ts", "/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts", "a.ts", "b.ts", "c.ts"]) goTo.file("d.ts") -verify.ProjectInfo(["/home/src/tslibs/TS/Lib/lib.d.ts", "/home/src/tslibs/TS/Lib/lib.decorators.d.ts", "/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts", "d.ts"]) +verify.ProjectInfo(["/home/src/tslibs/TS/Lib/lib.es5.d.ts", "/home/src/tslibs/TS/Lib/lib.decorators.d.ts", "/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts", "d.ts"]) diff --git a/tests/cases/fourslash/server/projectInfo02.ts b/tests/cases/fourslash/server/projectInfo02.ts index d4c39e6bdac45..d90078e337128 100644 --- a/tests/cases/fourslash/server/projectInfo02.ts +++ b/tests/cases/fourslash/server/projectInfo02.ts @@ -7,7 +7,7 @@ ////export var test2 = "test String" // @Filename: tsconfig.json -////{ "files": ["a.ts", "b.ts"] } +////{ "files": ["a.ts", "b.ts"], "compilerOptions": { "lib": ["es5"] } } goTo.file("a.ts") -verify.ProjectInfo(["/home/src/tslibs/TS/Lib/lib.d.ts", "/home/src/tslibs/TS/Lib/lib.decorators.d.ts", "/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts", "a.ts", "b.ts", "tsconfig.json"]) +verify.ProjectInfo(["/home/src/tslibs/TS/Lib/lib.es5.d.ts", "/home/src/tslibs/TS/Lib/lib.decorators.d.ts", "/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts", "a.ts", "b.ts", "tsconfig.json"]) diff --git a/tests/cases/fourslash/server/projectWithNonExistentFiles.ts b/tests/cases/fourslash/server/projectWithNonExistentFiles.ts index 282119ac10b90..76eea5255ded7 100644 --- a/tests/cases/fourslash/server/projectWithNonExistentFiles.ts +++ b/tests/cases/fourslash/server/projectWithNonExistentFiles.ts @@ -7,7 +7,7 @@ ////export var test2 = "test String" // @Filename: tsconfig.json -////{ "files": ["a.ts", "c.ts", "b.ts"] } +////{ "files": ["a.ts", "c.ts", "b.ts"], "compilerOptions": { "lib": ["es5"] } } goTo.file("a.ts"); -verify.ProjectInfo(["/home/src/tslibs/TS/Lib/lib.d.ts", "/home/src/tslibs/TS/Lib/lib.decorators.d.ts", "/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts", "a.ts", "b.ts", "tsconfig.json"]) +verify.ProjectInfo(["/home/src/tslibs/TS/Lib/lib.es5.d.ts", "/home/src/tslibs/TS/Lib/lib.decorators.d.ts", "/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts", "a.ts", "b.ts", "tsconfig.json"]) diff --git a/tests/cases/fourslash/server/quickinfo01.ts b/tests/cases/fourslash/server/quickinfo01.ts index f1f4bb4ddff40..cf4d6fbb95e81 100644 --- a/tests/cases/fourslash/server/quickinfo01.ts +++ b/tests/cases/fourslash/server/quickinfo01.ts @@ -1,5 +1,7 @@ /// +// @lib: es5 + ////interface One { //// commonProperty: number; //// commonFunction(): number; diff --git a/tests/cases/fourslash/server/quickinfoVerbosityServer.ts b/tests/cases/fourslash/server/quickinfoVerbosityServer.ts index 9fc9eeb7082e1..980d89c6659e8 100644 --- a/tests/cases/fourslash/server/quickinfoVerbosityServer.ts +++ b/tests/cases/fourslash/server/quickinfoVerbosityServer.ts @@ -1,5 +1,7 @@ /// +// @lib: es5 + //// type FooType = string | number //// const foo/*a*/: FooType = 1 diff --git a/tests/cases/fourslash/server/quickinfoWrongComment.ts b/tests/cases/fourslash/server/quickinfoWrongComment.ts index 9f96d2c665aea..e4b6ff856310f 100644 --- a/tests/cases/fourslash/server/quickinfoWrongComment.ts +++ b/tests/cases/fourslash/server/quickinfoWrongComment.ts @@ -1,5 +1,7 @@ /// +// @lib: es5 + //// interface I { //// /** The colour */ //// readonly colour: string diff --git a/tests/cases/fourslash/server/referenceToEmptyObject.ts b/tests/cases/fourslash/server/referenceToEmptyObject.ts index b740736d2bcc3..0e284e10efbe5 100644 --- a/tests/cases/fourslash/server/referenceToEmptyObject.ts +++ b/tests/cases/fourslash/server/referenceToEmptyObject.ts @@ -1,5 +1,7 @@ /// +// @lib: es5 + ////const obj = {}/*1*/; verify.baselineFindAllReferences('1'); diff --git a/tests/cases/fourslash/server/references01.ts b/tests/cases/fourslash/server/references01.ts index 214d8caf0645d..9fa83a565c793 100644 --- a/tests/cases/fourslash/server/references01.ts +++ b/tests/cases/fourslash/server/references01.ts @@ -1,5 +1,7 @@ /// +// @lib: es5 + // Global class reference. // @Filename: /home/src/workspaces/project/referencesForGlobals_1.ts diff --git a/tests/cases/fourslash/server/referencesInConfiguredProject.ts b/tests/cases/fourslash/server/referencesInConfiguredProject.ts index 528272d126bb3..8b1b8ab6bdafe 100644 --- a/tests/cases/fourslash/server/referencesInConfiguredProject.ts +++ b/tests/cases/fourslash/server/referencesInConfiguredProject.ts @@ -11,6 +11,6 @@ ////var c = /*1*/globalClass(); // @Filename: /home/src/workspaces/project/tsconfig.json -////{ "files": ["referencesForGlobals_1.ts", "referencesForGlobals_2.ts"] } +////{ "files": ["referencesForGlobals_1.ts", "referencesForGlobals_2.ts"], "compilerOptions": { "lib": ["es5"] } } verify.baselineFindAllReferences('1') diff --git a/tests/cases/fourslash/server/referencesInEmptyFile.ts b/tests/cases/fourslash/server/referencesInEmptyFile.ts index f9ac25f1ae829..214393ffc7c2c 100644 --- a/tests/cases/fourslash/server/referencesInEmptyFile.ts +++ b/tests/cases/fourslash/server/referencesInEmptyFile.ts @@ -1,5 +1,7 @@ /// +// @lib: es5 + /////*1*/ verify.baselineFindAllReferences('1'); diff --git a/tests/cases/fourslash/server/referencesInEmptyFileWithMultipleProjects.ts b/tests/cases/fourslash/server/referencesInEmptyFileWithMultipleProjects.ts index c5564895b9128..f5fccc3889e6c 100644 --- a/tests/cases/fourslash/server/referencesInEmptyFileWithMultipleProjects.ts +++ b/tests/cases/fourslash/server/referencesInEmptyFileWithMultipleProjects.ts @@ -1,14 +1,14 @@ /// // @Filename: /home/src/workspaces/project/a/tsconfig.json -////{ "files": ["a.ts"] } +////{ "files": ["a.ts"], "compilerOptions": { "lib": ["es5"] } } // @Filename: /home/src/workspaces/project/a/a.ts /////// /////*1*/; // @Filename: /home/src/workspaces/project/b/tsconfig.json -////{ "files": ["b.ts"] } +////{ "files": ["b.ts"], "compilerOptions": { "lib": ["es5"] } } // @Filename: /home/src/workspaces/project/b/b.ts /////*2*/; diff --git a/tests/cases/fourslash/server/referencesInStringLiteralValueWithMultipleProjects.ts b/tests/cases/fourslash/server/referencesInStringLiteralValueWithMultipleProjects.ts index 45fb7dd2f60c0..b30be5e5dd79e 100644 --- a/tests/cases/fourslash/server/referencesInStringLiteralValueWithMultipleProjects.ts +++ b/tests/cases/fourslash/server/referencesInStringLiteralValueWithMultipleProjects.ts @@ -1,14 +1,14 @@ /// // @Filename: /home/src/workspaces/project/a/tsconfig.json -////{ "files": ["a.ts"] } +////{ "files": ["a.ts"], "compilerOptions": { "lib": ["es5"] } } // @Filename: /home/src/workspaces/project/a/a.ts /////// ////const str: string = "hello/*1*/"; // @Filename: /home/src/workspaces/project/b/tsconfig.json -////{ "files": ["b.ts"] } +////{ "files": ["b.ts"], "compilerOptions": { "lib": ["es5"] } } // @Filename: /home/src/workspaces/project/b/b.ts ////const str2: string = "hello/*2*/"; diff --git a/tests/cases/fourslash/server/referencesToNonPropertyNameStringLiteral.ts b/tests/cases/fourslash/server/referencesToNonPropertyNameStringLiteral.ts index cf21c74c2d56e..5e82bd975a935 100644 --- a/tests/cases/fourslash/server/referencesToNonPropertyNameStringLiteral.ts +++ b/tests/cases/fourslash/server/referencesToNonPropertyNameStringLiteral.ts @@ -1,5 +1,7 @@ /// +// @lib: es5 + ////const str: string = "hello/*1*/"; verify.baselineFindAllReferences('1') diff --git a/tests/cases/fourslash/server/referencesToStringLiteralValue.ts b/tests/cases/fourslash/server/referencesToStringLiteralValue.ts index ee5c9fca9c02f..25c3ef89a735e 100644 --- a/tests/cases/fourslash/server/referencesToStringLiteralValue.ts +++ b/tests/cases/fourslash/server/referencesToStringLiteralValue.ts @@ -1,5 +1,7 @@ /// +// @lib: es5 + ////const s: string = "some /*1*/ string"; verify.baselineFindAllReferences('1'); diff --git a/tests/cases/fourslash/server/rename01.ts b/tests/cases/fourslash/server/rename01.ts index 66909fe3aeeb1..137c3d6b07abb 100644 --- a/tests/cases/fourslash/server/rename01.ts +++ b/tests/cases/fourslash/server/rename01.ts @@ -1,5 +1,7 @@ /// +// @lib: es5 + /////// ////[|function [|{| "contextRangeIndex": 0 |}Bar|]() { diff --git a/tests/cases/fourslash/server/renameInConfiguredProject.ts b/tests/cases/fourslash/server/renameInConfiguredProject.ts index 2bc7e3272ca12..5691fc920a72f 100644 --- a/tests/cases/fourslash/server/renameInConfiguredProject.ts +++ b/tests/cases/fourslash/server/renameInConfiguredProject.ts @@ -7,7 +7,7 @@ ////var y = [|globalName|]; // @Filename: tsconfig.json -////{ "files": ["referencesForGlobals_1.ts", "referencesForGlobals_2.ts"] } +////{ "files": ["referencesForGlobals_1.ts", "referencesForGlobals_2.ts"], "compilerOptions": { "lib": ["es5"] } } const [rDef, ...ranges] = test.ranges(); verify.baselineRename(ranges, { findInStrings: true, findInComments: true }); diff --git a/tests/cases/fourslash/server/renameNamedImport.ts b/tests/cases/fourslash/server/renameNamedImport.ts index 48e45863903b6..de6d04ab71cca 100644 --- a/tests/cases/fourslash/server/renameNamedImport.ts +++ b/tests/cases/fourslash/server/renameNamedImport.ts @@ -1,21 +1,21 @@ /// // @Filename: /home/src/workspaces/project/lib/tsconfig.json -//// {} +//// { "compilerOptions": { "lib": ["es5"] } } // @Filename: /home/src/workspaces/project/lib/index.ts //// const unrelatedLocalVariable = 123; //// export const someExportedVariable = unrelatedLocalVariable; // @Filename: /home/src/workspaces/project/src/tsconfig.json -//// {} +//// { "compilerOptions": { "lib": ["es5"] } } // @Filename: /home/src/workspaces/project/src/index.ts //// import { /*i*/someExportedVariable } from '../lib/index'; //// someExportedVariable; // @Filename: /home/src/workspaces/project/tsconfig.json -//// {} +//// { "compilerOptions": { "lib": ["es5"] } } goTo.file("/home/src/workspaces/project/lib/index.ts"); goTo.file("/home/src/workspaces/project/src/index.ts"); diff --git a/tests/cases/fourslash/server/renameNamespaceImport.ts b/tests/cases/fourslash/server/renameNamespaceImport.ts index 66d6ba78bdb1c..3984eaa92b506 100644 --- a/tests/cases/fourslash/server/renameNamespaceImport.ts +++ b/tests/cases/fourslash/server/renameNamespaceImport.ts @@ -1,21 +1,21 @@ /// // @Filename: /home/src/workspaces/project/lib/tsconfig.json -//// {} +//// { "compilerOptions": { "lib": ["es5"] } } // @Filename: /home/src/workspaces/project/lib/index.ts //// const unrelatedLocalVariable = 123; //// export const someExportedVariable = unrelatedLocalVariable; // @Filename: /home/src/workspaces/project/src/tsconfig.json -//// {} +//// { "compilerOptions": { "lib": ["es5"] } } // @Filename: /home/src/workspaces/project/src/index.ts //// import * as /*i*/lib from '../lib/index'; //// lib.someExportedVariable; // @Filename: /home/src/workspaces/project/tsconfig.json -//// {} +//// { "compilerOptions": { "lib": ["es5"] } } goTo.file("/home/src/workspaces/project/lib/index.ts"); goTo.file("/home/src/workspaces/project/src/index.ts"); diff --git a/tests/cases/fourslash/server/rewriteRelativeImportExtensionsProjectReferences1.ts b/tests/cases/fourslash/server/rewriteRelativeImportExtensionsProjectReferences1.ts index 2b0190c97e9d8..d40e0ca5331c6 100644 --- a/tests/cases/fourslash/server/rewriteRelativeImportExtensionsProjectReferences1.ts +++ b/tests/cases/fourslash/server/rewriteRelativeImportExtensionsProjectReferences1.ts @@ -3,6 +3,7 @@ // @Filename: packages/common/tsconfig.json //// { //// "compilerOptions": { +//// "lib": ["es5"], //// "composite": true, //// "rootDir": "src", //// "outDir": "dist", @@ -32,6 +33,7 @@ //// "compilerOptions": { //// "module": "nodenext", //// "rewriteRelativeImportExtensions": true, +//// "lib": ["es5"], //// "rootDir": "src", //// "outDir": "dist", //// "resolveJsonModule": false, diff --git a/tests/cases/fourslash/server/rewriteRelativeImportExtensionsProjectReferences2.ts b/tests/cases/fourslash/server/rewriteRelativeImportExtensionsProjectReferences2.ts index 3db2dbd16cefd..1c0c0b2f72f04 100644 --- a/tests/cases/fourslash/server/rewriteRelativeImportExtensionsProjectReferences2.ts +++ b/tests/cases/fourslash/server/rewriteRelativeImportExtensionsProjectReferences2.ts @@ -3,6 +3,7 @@ // @Filename: src/tsconfig-base.json //// { //// "compilerOptions": { +//// "lib": ["es5"], //// "module": "nodenext", //// "composite": true, //// "rootDir": ".", @@ -14,7 +15,7 @@ // @Filename: src/compiler/tsconfig.json //// { //// "extends": "../tsconfig-base.json", -//// "compilerOptions": {} +//// "compilerOptions": { "lib": ["es5"] } //// } // @Filename: src/compiler/parser.ts @@ -23,7 +24,7 @@ // @Filename: src/services/tsconfig.json //// { //// "extends": "../tsconfig-base.json", -//// "compilerOptions": {}, +//// "compilerOptions": { "lib": ["es5"] }, //// "references": [ //// { "path": "../compiler" } //// ] diff --git a/tests/cases/fourslash/server/rewriteRelativeImportExtensionsProjectReferences3.ts b/tests/cases/fourslash/server/rewriteRelativeImportExtensionsProjectReferences3.ts index 9ae9f8b1ff620..7e78459f67f9f 100644 --- a/tests/cases/fourslash/server/rewriteRelativeImportExtensionsProjectReferences3.ts +++ b/tests/cases/fourslash/server/rewriteRelativeImportExtensionsProjectReferences3.ts @@ -3,6 +3,7 @@ // @Filename: src/tsconfig-base.json //// { //// "compilerOptions": { +//// "lib": ["es5"], //// "module": "nodenext", //// "composite": true, //// "rewriteRelativeImportExtensions": true, @@ -13,6 +14,7 @@ //// { //// "extends": "../tsconfig-base.json", //// "compilerOptions": { +//// "lib": ["es5"], //// "rootDir": ".", //// "outDir": "../../dist/compiler", //// } @@ -24,6 +26,7 @@ //// { //// "extends": "../tsconfig-base.json", //// "compilerOptions": { +//// "lib": ["es5"], //// "rootDir": ".", //// "outDir": "../../dist/services", //// }, diff --git a/tests/cases/fourslash/server/semanticClassificationJs1.ts b/tests/cases/fourslash/server/semanticClassificationJs1.ts index a330acf7ca402..1eaf0cc54764f 100644 --- a/tests/cases/fourslash/server/semanticClassificationJs1.ts +++ b/tests/cases/fourslash/server/semanticClassificationJs1.ts @@ -1,5 +1,7 @@ /// +// @lib: es5 + //// @Filename: index.js //// //// var Thing = 0; diff --git a/tests/cases/fourslash/server/signatureHelp01.ts b/tests/cases/fourslash/server/signatureHelp01.ts index f358eae2b490f..1890aa0fefba2 100644 --- a/tests/cases/fourslash/server/signatureHelp01.ts +++ b/tests/cases/fourslash/server/signatureHelp01.ts @@ -1,5 +1,7 @@ /// +// @lib: es5 + ////function foo(data: number) { ////} //// diff --git a/tests/cases/fourslash/server/signatureHelpJSDocCallbackTag.ts b/tests/cases/fourslash/server/signatureHelpJSDocCallbackTag.ts index 65a831ebd5598..e8dc12b46a3f8 100644 --- a/tests/cases/fourslash/server/signatureHelpJSDocCallbackTag.ts +++ b/tests/cases/fourslash/server/signatureHelpJSDocCallbackTag.ts @@ -1,5 +1,6 @@ /// +// @lib: es5 // @allowNonTsExtensions: true // @Filename: jsdocCallbackTag.js //// /** diff --git a/tests/cases/fourslash/server/tripleSlashReferenceResolutionMode.ts b/tests/cases/fourslash/server/tripleSlashReferenceResolutionMode.ts index 1e3db99154e4e..273f3c1418671 100644 --- a/tests/cases/fourslash/server/tripleSlashReferenceResolutionMode.ts +++ b/tests/cases/fourslash/server/tripleSlashReferenceResolutionMode.ts @@ -1,7 +1,7 @@ /// // @Filename: /home/src/workspaces/project/tsconfig.json -//// { "compilerOptions": { "module": "nodenext", "declaration": true, "strict": true, "outDir": "out" }, "files": ["./index.ts"] } +//// { "compilerOptions": { "lib": ["es5"], "module": "nodenext", "declaration": true, "strict": true, "outDir": "out" }, "files": ["./index.ts"] } // @Filename: /home/src/workspaces/project/package.json //// { "private": true, "type": "commonjs" } diff --git a/tests/cases/fourslash/server/tsconfigComputedPropertyError.ts b/tests/cases/fourslash/server/tsconfigComputedPropertyError.ts index 7d2eef6b04c88..fd0eb4501416f 100644 --- a/tests/cases/fourslash/server/tsconfigComputedPropertyError.ts +++ b/tests/cases/fourslash/server/tsconfigComputedPropertyError.ts @@ -3,6 +3,7 @@ // @filename: tsconfig.json ////{ //// ["oops!" + 42]: "true", +//// "compilerOptions": { "lib": ["es5"] }, //// "files": [ //// "nonexistentfile.ts" //// ], diff --git a/tests/cases/fourslash/server/tsxIncrementalServer.ts b/tests/cases/fourslash/server/tsxIncrementalServer.ts index 9ae51406c2fa8..d4d53ced2cf73 100644 --- a/tests/cases/fourslash/server/tsxIncrementalServer.ts +++ b/tests/cases/fourslash/server/tsxIncrementalServer.ts @@ -1,5 +1,7 @@ /// +// @lib: es5 + //// /**/ goTo.marker(); diff --git a/tests/cases/fourslash/server/typeReferenceOnServer.ts b/tests/cases/fourslash/server/typeReferenceOnServer.ts index 5a3273da7d7d7..1884cb5cb993e 100644 --- a/tests/cases/fourslash/server/typeReferenceOnServer.ts +++ b/tests/cases/fourslash/server/typeReferenceOnServer.ts @@ -1,5 +1,7 @@ /// +// @lib: es5 + /////// ////var x: number; ////x./*1*/ diff --git a/tests/cases/fourslash/server/typedefinition01.ts b/tests/cases/fourslash/server/typedefinition01.ts index 8c59c4ace3112..cab505f39c4c8 100644 --- a/tests/cases/fourslash/server/typedefinition01.ts +++ b/tests/cases/fourslash/server/typedefinition01.ts @@ -1,5 +1,7 @@ /// +// @lib: es5 + // @Filename: b.ts ////import n = require('./a'); ////var x/*1*/ = new n.Foo(); From 4ff32407bcfe919ade074c101bf0a34b39090b28 Mon Sep 17 00:00:00 2001 From: Jake Bailey <5341706+jakebailey@users.noreply.github.com> Date: Tue, 27 Jan 2026 18:49:28 -0800 Subject: [PATCH 07/15] lint --- src/harness/fourslashImpl.ts | 31 ------------------------------- 1 file changed, 31 deletions(-) diff --git a/src/harness/fourslashImpl.ts b/src/harness/fourslashImpl.ts index 56e891ae9cf9a..dc6341ef018f7 100644 --- a/src/harness/fourslashImpl.ts +++ b/src/harness/fourslashImpl.ts @@ -4832,19 +4832,6 @@ function parseTestData(basePath: string, contents: string, fileName: string): Fo } } - // @Filename is the only directive that can be used in a test that contains tsconfig.json file. - // Wrong: the inferred project may contain files other than the ones covered by a tsconfig.json. - // const config = ts.find(files, isConfig); - // if (config) { - // let directive = getNonFileNameOptionInFileList(files); - // if (!directive) { - // directive = getNonFileNameOptionInObject(globalOptions); - // } - // if (directive) { - // throw Error(`It is not allowed to use ${config.fileName} along with directive '${directive}'`); - // } - // } - return { markerPositions, markers, @@ -4859,24 +4846,6 @@ function isConfig(file: FourSlashFile): boolean { return Harness.getConfigNameFromFileName(file.fileName) !== undefined; } -function getNonFileNameOptionInFileList(files: FourSlashFile[]): string | undefined { - return ts.forEach(files, f => getNonFileNameOptionInObject(f.fileOptions)); -} - -function getNonFileNameOptionInObject(optionObject: { [s: string]: string; }): string | undefined { - for (const option in optionObject) { - switch (option) { - case MetadataOptionNames.fileName: - case MetadataOptionNames.baselineFile: - case MetadataOptionNames.emitThisFile: - break; - default: - return option; - } - } - return undefined; -} - const enum State { none, inSlashStarMarker, From bead1ab6c4743f0f1e92008d48823d0c4eac29c9 Mon Sep 17 00:00:00 2001 From: Jake Bailey <5341706+jakebailey@users.noreply.github.com> Date: Tue, 27 Jan 2026 18:58:05 -0800 Subject: [PATCH 08/15] Fix test while here --- .../formatTrimRemainingRange.js | 321 ++++++++++++++++++ ...ingRangets => formatTrimRemainingRange.ts} | 4 +- 2 files changed, 324 insertions(+), 1 deletion(-) create mode 100644 tests/baselines/reference/tsserver/fourslashServer/formatTrimRemainingRange.js rename tests/cases/fourslash/server/{formatTrimRemainingRangets => formatTrimRemainingRange.ts} (81%) diff --git a/tests/baselines/reference/tsserver/fourslashServer/formatTrimRemainingRange.js b/tests/baselines/reference/tsserver/fourslashServer/formatTrimRemainingRange.js new file mode 100644 index 0000000000000..fe0b6d2ad0fb5 --- /dev/null +++ b/tests/baselines/reference/tsserver/fourslashServer/formatTrimRemainingRange.js @@ -0,0 +1,321 @@ +Info seq [hh:mm:ss:mss] currentDirectory:: /home/src/Vscode/Projects/bin useCaseSensitiveFileNames:: false +Info seq [hh:mm:ss:mss] libs Location:: /home/src/tslibs/TS/Lib +Info seq [hh:mm:ss:mss] globalTypingsCacheLocation:: /home/src/Library/Caches/typescript +Info seq [hh:mm:ss:mss] request: + { + "seq": 0, + "type": "request", + "arguments": { + "options": { + "target": "es5", + "newLine": "crlf", + "lib": [ + "es5" + ], + "skipDefaultLibCheck": true + } + }, + "command": "compilerOptionsForInferredProjects" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "compilerOptionsForInferredProjects", + "request_seq": 0, + "success": true, + "body": true + } +//// [/tests/cases/fourslash/server/formatTrimRemainingRange.ts] + ; + /* + +*/ + + +Info seq [hh:mm:ss:mss] request: + { + "seq": 1, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/formatTrimRemainingRange.ts" + }, + "command": "open" + } +Info seq [hh:mm:ss:mss] getConfigFileNameForFile:: File: /tests/cases/fourslash/server/formatTrimRemainingRange.ts ProjectRootPath: undefined:: Result: undefined +Info seq [hh:mm:ss:mss] Creating InferredProject: /dev/null/inferredProject1*, currentDirectory: /tests/cases/fourslash/server +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/tsconfig.json 2000 undefined WatchType: Config file for the inferred project root +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/jsconfig.json 2000 undefined WatchType: Config file for the inferred project root +Info seq [hh:mm:ss:mss] Starting updateGraphWorker: Project: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.es5.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] FileWatcher:: Added:: WatchInfo: /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts 500 undefined WatchType: Closed Script info +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/server/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /tests/cases/fourslash/node_modules/@types 1 undefined Project: /dev/null/inferredProject1* WatchType: Type roots +Info seq [hh:mm:ss:mss] Finishing updateGraphWorker: Project: /dev/null/inferredProject1* projectStateVersion: 1 projectProgramVersion: 0 structureChanged: true structureIsReused:: Not Elapsed:: *ms +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + /home/src/tslibs/TS/Lib/lib.es5.d.ts Text-1 lib.es5.d.ts-Text + /home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text + /home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text + /tests/cases/fourslash/server/formatTrimRemainingRange.ts SVC-1-0 " ;\n /*\n \n*/" + + + ../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts + Library 'lib.es5.d.ts' specified in compilerOptions + ../../../../home/src/tslibs/TS/Lib/lib.decorators.d.ts + Library referenced via 'decorators' from file '../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' + ../../../../home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts + Library referenced via 'decorators.legacy' from file '../../../../home/src/tslibs/TS/Lib/lib.es5.d.ts' + formatTrimRemainingRange.ts + Root file specified for compilation + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Project '/dev/null/inferredProject1*' (Inferred) +Info seq [hh:mm:ss:mss] Files (4) + +Info seq [hh:mm:ss:mss] ----------------------------------------------- +Info seq [hh:mm:ss:mss] Open files: +Info seq [hh:mm:ss:mss] FileName: /tests/cases/fourslash/server/formatTrimRemainingRange.ts ProjectRootPath: undefined +Info seq [hh:mm:ss:mss] Projects: /dev/null/inferredProject1* +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "open", + "request_seq": 1, + "success": true, + "performanceData": { + "updateGraphDurationMs": * + } + } +After Request +watchedFiles:: +/home/src/tslibs/TS/Lib/lib.decorators.d.ts: *new* + {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts: *new* + {"pollingInterval":500} +/home/src/tslibs/TS/Lib/lib.es5.d.ts: *new* + {"pollingInterval":500} +/tests/cases/fourslash/server/jsconfig.json: *new* + {"pollingInterval":2000} +/tests/cases/fourslash/server/tsconfig.json: *new* + {"pollingInterval":2000} + +watchedDirectoriesRecursive:: +/tests/cases/fourslash/node_modules/@types: *new* + {} +/tests/cases/fourslash/server/node_modules/@types: *new* + {} + +Projects:: +/dev/null/inferredProject1* (Inferred) *new* + projectStateVersion: 1 + projectProgramVersion: 1 + autoImportProviderHost: false + +ScriptInfos:: +/home/src/tslibs/TS/Lib/lib.decorators.d.ts *new* + version: Text-1 + containingProjects: 1 + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts *new* + version: Text-1 + containingProjects: 1 + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.es5.d.ts *new* + version: Text-1 + containingProjects: 1 + /dev/null/inferredProject1* +/tests/cases/fourslash/server/formatTrimRemainingRange.ts (Open) *new* + version: SVC-1-0 + containingProjects: 1 + /dev/null/inferredProject1* *default* + +Info seq [hh:mm:ss:mss] request: + { + "seq": 2, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/formatTrimRemainingRange.ts", + "line": 1, + "offset": 1, + "endLine": 4, + "endOffset": 3 + }, + "command": "format" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "format", + "request_seq": 2, + "success": true, + "body": [ + { + "start": { + "line": 1, + "offset": 1 + }, + "end": { + "line": 1, + "offset": 5 + }, + "newText": "" + }, + { + "start": { + "line": 2, + "offset": 1 + }, + "end": { + "line": 2, + "offset": 5 + }, + "newText": "" + }, + { + "start": { + "line": 3, + "offset": 1 + }, + "end": { + "line": 3, + "offset": 4 + }, + "newText": "" + } + ] + } +Info seq [hh:mm:ss:mss] request: + { + "seq": 3, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/formatTrimRemainingRange.ts", + "line": 1, + "offset": 1, + "endLine": 1, + "endOffset": 5, + "insertString": "" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "change", + "request_seq": 3, + "success": true + } +After Request +Projects:: +/dev/null/inferredProject1* (Inferred) *changed* + projectStateVersion: 2 *changed* + projectProgramVersion: 1 + dirty: true *changed* + autoImportProviderHost: false + +ScriptInfos:: +/home/src/tslibs/TS/Lib/lib.decorators.d.ts + version: Text-1 + containingProjects: 1 + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts + version: Text-1 + containingProjects: 1 + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.es5.d.ts + version: Text-1 + containingProjects: 1 + /dev/null/inferredProject1* +/tests/cases/fourslash/server/formatTrimRemainingRange.ts (Open) *changed* + version: SVC-1-1 *changed* + containingProjects: 1 + /dev/null/inferredProject1* *default* + +Info seq [hh:mm:ss:mss] request: + { + "seq": 4, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/formatTrimRemainingRange.ts", + "line": 2, + "offset": 1, + "endLine": 2, + "endOffset": 5, + "insertString": "" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "change", + "request_seq": 4, + "success": true + } +After Request +ScriptInfos:: +/home/src/tslibs/TS/Lib/lib.decorators.d.ts + version: Text-1 + containingProjects: 1 + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts + version: Text-1 + containingProjects: 1 + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.es5.d.ts + version: Text-1 + containingProjects: 1 + /dev/null/inferredProject1* +/tests/cases/fourslash/server/formatTrimRemainingRange.ts (Open) *changed* + version: SVC-1-2 *changed* + containingProjects: 1 + /dev/null/inferredProject1* *default* + +Info seq [hh:mm:ss:mss] request: + { + "seq": 5, + "type": "request", + "arguments": { + "file": "/tests/cases/fourslash/server/formatTrimRemainingRange.ts", + "line": 3, + "offset": 1, + "endLine": 3, + "endOffset": 4, + "insertString": "" + }, + "command": "change" + } +Info seq [hh:mm:ss:mss] response: + { + "seq": 0, + "type": "response", + "command": "change", + "request_seq": 5, + "success": true + } +After Request +ScriptInfos:: +/home/src/tslibs/TS/Lib/lib.decorators.d.ts + version: Text-1 + containingProjects: 1 + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts + version: Text-1 + containingProjects: 1 + /dev/null/inferredProject1* +/home/src/tslibs/TS/Lib/lib.es5.d.ts + version: Text-1 + containingProjects: 1 + /dev/null/inferredProject1* +/tests/cases/fourslash/server/formatTrimRemainingRange.ts (Open) *changed* + version: SVC-1-3 *changed* + containingProjects: 1 + /dev/null/inferredProject1* *default* diff --git a/tests/cases/fourslash/server/formatTrimRemainingRangets b/tests/cases/fourslash/server/formatTrimRemainingRange.ts similarity index 81% rename from tests/cases/fourslash/server/formatTrimRemainingRangets rename to tests/cases/fourslash/server/formatTrimRemainingRange.ts index ebc1294236c1a..476a18e66522a 100644 --- a/tests/cases/fourslash/server/formatTrimRemainingRangets +++ b/tests/cases/fourslash/server/formatTrimRemainingRange.ts @@ -1,5 +1,7 @@ /// +// @lib: es5 + //// ; //// /* //// @@ -8,6 +10,6 @@ format.document(); verify.currentFileContentIs( `; - /* +/* */`); \ No newline at end of file From 2b99fa9d7e99d4774bbcb1c37179c8e4bc7af768 Mon Sep 17 00:00:00 2001 From: Jake Bailey <5341706+jakebailey@users.noreply.github.com> Date: Tue, 27 Jan 2026 19:14:49 -0800 Subject: [PATCH 09/15] leftpad does not exist --- tests/cases/fourslash/moveToNewFile_moveJsxImport4.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/cases/fourslash/moveToNewFile_moveJsxImport4.ts b/tests/cases/fourslash/moveToNewFile_moveJsxImport4.ts index cfdb977510845..606b82e25ac68 100644 --- a/tests/cases/fourslash/moveToNewFile_moveJsxImport4.ts +++ b/tests/cases/fourslash/moveToNewFile_moveJsxImport4.ts @@ -1,7 +1,7 @@ /// // @jsx: preserve -// @libFiles: react.d.ts,leftpad.d.ts +// @libFiles: react.d.ts // @Filename: file.tsx //// import React = require('leftpad'); From c724279af84f0907ddd6a7b046e80b6051a9b984 Mon Sep 17 00:00:00 2001 From: Jake Bailey <5341706+jakebailey@users.noreply.github.com> Date: Tue, 27 Jan 2026 19:17:52 -0800 Subject: [PATCH 10/15] Remove corsa derived hack --- src/harness/harnessIO.ts | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/harness/harnessIO.ts b/src/harness/harnessIO.ts index aae310d1d1178..d38b6a49338f5 100644 --- a/src/harness/harnessIO.ts +++ b/src/harness/harnessIO.ts @@ -379,10 +379,6 @@ export namespace Compiler { // Files from tests\lib that are requested by "@libFiles" if (options.libFiles) { for (const fileName of options.libFiles.split(",")) { - if (fileName === "lib.d.ts" && !options.noLib) { - // Hack from Corsa. - continue; - } programFileNames.push(vpath.combine(vfs.testLibFolder, fileName)); } } From ff796325c284749e28301ba615ca5bf5a73e33a8 Mon Sep 17 00:00:00 2001 From: Jake Bailey <5341706+jakebailey@users.noreply.github.com> Date: Tue, 27 Jan 2026 19:20:35 -0800 Subject: [PATCH 11/15] libFiles does nothing in fourslash tests --- tests/cases/fourslash/moveToNewFile_moveJsxImport1.ts | 1 - tests/cases/fourslash/moveToNewFile_moveJsxImport2.ts | 1 - tests/cases/fourslash/moveToNewFile_moveJsxImport3.ts | 1 - tests/cases/fourslash/moveToNewFile_moveJsxImport4.ts | 1 - tests/cases/fourslash/tsxSignatureHelp1.ts | 3 +-- tests/cases/fourslash/tsxSignatureHelp2.ts | 3 +-- 6 files changed, 2 insertions(+), 8 deletions(-) diff --git a/tests/cases/fourslash/moveToNewFile_moveJsxImport1.ts b/tests/cases/fourslash/moveToNewFile_moveJsxImport1.ts index 44005593c8da7..cb65c17cfdc55 100644 --- a/tests/cases/fourslash/moveToNewFile_moveJsxImport1.ts +++ b/tests/cases/fourslash/moveToNewFile_moveJsxImport1.ts @@ -1,7 +1,6 @@ /// // @jsx: preserve -// @libFiles: react.d.ts // @Filename: file.tsx //// import React = require('react'); diff --git a/tests/cases/fourslash/moveToNewFile_moveJsxImport2.ts b/tests/cases/fourslash/moveToNewFile_moveJsxImport2.ts index 0dfb6defb49c5..7184b10cb3fef 100644 --- a/tests/cases/fourslash/moveToNewFile_moveJsxImport2.ts +++ b/tests/cases/fourslash/moveToNewFile_moveJsxImport2.ts @@ -1,7 +1,6 @@ /// // @jsx: preserve -// @libFiles: react.d.ts // @Filename: file.tsx //// import React = require('react'); diff --git a/tests/cases/fourslash/moveToNewFile_moveJsxImport3.ts b/tests/cases/fourslash/moveToNewFile_moveJsxImport3.ts index 493dff8521443..5079d07bc78db 100644 --- a/tests/cases/fourslash/moveToNewFile_moveJsxImport3.ts +++ b/tests/cases/fourslash/moveToNewFile_moveJsxImport3.ts @@ -1,7 +1,6 @@ /// // @jsx: preserve -// @libFiles: react.d.ts // @Filename: file.tsx //// import React = require('react'); diff --git a/tests/cases/fourslash/moveToNewFile_moveJsxImport4.ts b/tests/cases/fourslash/moveToNewFile_moveJsxImport4.ts index 606b82e25ac68..92ca4897e6ccc 100644 --- a/tests/cases/fourslash/moveToNewFile_moveJsxImport4.ts +++ b/tests/cases/fourslash/moveToNewFile_moveJsxImport4.ts @@ -1,7 +1,6 @@ /// // @jsx: preserve -// @libFiles: react.d.ts // @Filename: file.tsx //// import React = require('leftpad'); diff --git a/tests/cases/fourslash/tsxSignatureHelp1.ts b/tests/cases/fourslash/tsxSignatureHelp1.ts index e4b14c5d7c5be..1169da8a3cfb9 100644 --- a/tests/cases/fourslash/tsxSignatureHelp1.ts +++ b/tests/cases/fourslash/tsxSignatureHelp1.ts @@ -1,9 +1,8 @@ /// -//@Filename: file.tsx // @jsx: preserve -// @libFiles: react.d.ts +//@Filename: file.tsx //// import React = require('react'); //// export interface ClickableProps { //// children?: string; diff --git a/tests/cases/fourslash/tsxSignatureHelp2.ts b/tests/cases/fourslash/tsxSignatureHelp2.ts index 6b47664694533..75c1238b71944 100644 --- a/tests/cases/fourslash/tsxSignatureHelp2.ts +++ b/tests/cases/fourslash/tsxSignatureHelp2.ts @@ -1,9 +1,8 @@ /// -//@Filename: file.tsx // @jsx: preserve -// @libFiles: react.d.ts +//@Filename: file.tsx //// import React = require('react'); //// export interface ClickableProps { //// children?: string; From f095d8a3ba8e06fd59cb55a8642ac8d155fea158 Mon Sep 17 00:00:00 2001 From: Jake Bailey <5341706+jakebailey@users.noreply.github.com> Date: Tue, 27 Jan 2026 19:38:26 -0800 Subject: [PATCH 12/15] runtests depends on typesMap now, oops --- Herebyfile.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Herebyfile.mjs b/Herebyfile.mjs index aca96dc28c911..9195f631914e8 100644 --- a/Herebyfile.mjs +++ b/Herebyfile.mjs @@ -677,7 +677,7 @@ export const watchLocal = task({ dependencies: [localize, watchTsc, watchTsserver, watchServices, lssl, watchOtherOutputs, dts, watchSrc], }); -const runtestsDeps = [tests, generateLibs].concat(cmdLineOptions.typecheck ? [dts] : []); +const runtestsDeps = [tests, generateLibs, generateTypesMap].concat(cmdLineOptions.typecheck ? [dts] : []); export const runTests = task({ name: "runtests", From 0b92f3dc88e1539bd92b11cfc1a35442d8aa086a Mon Sep 17 00:00:00 2001 From: Jake Bailey <5341706+jakebailey@users.noreply.github.com> Date: Tue, 27 Jan 2026 21:55:34 -0800 Subject: [PATCH 13/15] includeBuiltFile does not do anything either --- src/harness/harnessIO.ts | 8 -------- tests/cases/compiler/metadataOfEventAlias.ts | 1 - 2 files changed, 9 deletions(-) diff --git a/src/harness/harnessIO.ts b/src/harness/harnessIO.ts index d38b6a49338f5..d836135234dc4 100644 --- a/src/harness/harnessIO.ts +++ b/src/harness/harnessIO.ts @@ -239,7 +239,6 @@ export namespace Compiler { interface HarnessOptions { useCaseSensitiveFileNames?: boolean; - includeBuiltFile?: string; baselineFile?: string; libFiles?: string; noTypesAndSymbols?: boolean; @@ -251,7 +250,6 @@ export namespace Compiler { { name: "allowNonTsExtensions", type: "boolean", defaultValueDescription: false }, { name: "useCaseSensitiveFileNames", type: "boolean", defaultValueDescription: false }, { name: "baselineFile", type: "string" }, - { name: "includeBuiltFile", type: "string" }, { name: "fileName", type: "string" }, { name: "libFiles", type: "string" }, { name: "noErrorTruncation", type: "boolean", defaultValueDescription: false }, @@ -370,12 +368,6 @@ export namespace Compiler { .map(file => options.configFile ? ts.getNormalizedAbsolutePath(file.unitName, currentDirectory) : file.unitName) .filter(fileName => !ts.fileExtensionIs(fileName, ts.Extension.Json)); - // Files from built\local that are requested by test "@includeBuiltFiles" to be in the context. - // Treat them as library files, so include them in build, but not in baselines. - if (options.includeBuiltFile) { - programFileNames.push(vpath.combine(vfs.builtFolder, options.includeBuiltFile)); - } - // Files from tests\lib that are requested by "@libFiles" if (options.libFiles) { for (const fileName of options.libFiles.split(",")) { diff --git a/tests/cases/compiler/metadataOfEventAlias.ts b/tests/cases/compiler/metadataOfEventAlias.ts index a5b8ffea8502f..4f098777a9ef9 100644 --- a/tests/cases/compiler/metadataOfEventAlias.ts +++ b/tests/cases/compiler/metadataOfEventAlias.ts @@ -2,7 +2,6 @@ // @emitDecoratorMetadata: true // @target: es5 // @skipLibCheck: true -// @includeBuiltFile: lib.d.ts // @filename: event.ts export interface Event { title: string }; From 92ba2d08f0ee4967cc9a579b611ca8967a458400 Mon Sep 17 00:00:00 2001 From: Jake Bailey <5341706+jakebailey@users.noreply.github.com> Date: Wed, 28 Jan 2026 09:58:36 -0800 Subject: [PATCH 14/15] rename --- src/harness/harnessLanguageService.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/harness/harnessLanguageService.ts b/src/harness/harnessLanguageService.ts index 2a22abf1a5682..f099c664c7dfd 100644 --- a/src/harness/harnessLanguageService.ts +++ b/src/harness/harnessLanguageService.ts @@ -135,7 +135,7 @@ function createLanguageServiceVfs(): vfs.FileSystem { const sharedLibDocumentRegistry = ts.createDocumentRegistry(/*useCaseSensitiveFileNames*/ false, virtualFileSystemRoot); -function createSelectiveDocumentRegistry(): ts.DocumentRegistry { +function createLibSharingDocumentRegistry(): ts.DocumentRegistry { const localRegistry = ts.createDocumentRegistry(/*useCaseSensitiveFileNames*/ false, virtualFileSystemRoot); const enableLibAstCaching = true; @@ -429,7 +429,7 @@ export class NativeLanguageServiceAdapter implements LanguageServiceAdapter { getLogger: typeof ts.returnUndefined = ts.returnUndefined; constructor(cancellationToken?: ts.HostCancellationToken, options?: ts.CompilerOptions) { this.host = new NativeLanguageServiceHost(cancellationToken, options); - this.documentRegistry = createSelectiveDocumentRegistry(); + this.documentRegistry = createLibSharingDocumentRegistry(); } getHost(): LanguageServiceAdapterHost { return this.host; From 59f1bf88bae1070be66e35e293e1f895640ba042 Mon Sep 17 00:00:00 2001 From: Jake Bailey <5341706+jakebailey@users.noreply.github.com> Date: Wed, 28 Jan 2026 10:38:28 -0800 Subject: [PATCH 15/15] Just cache ASTs only, do not reuse a registry --- src/harness/harnessLanguageService.ts | 115 +++++++++++++++----------- 1 file changed, 67 insertions(+), 48 deletions(-) diff --git a/src/harness/harnessLanguageService.ts b/src/harness/harnessLanguageService.ts index f099c664c7dfd..1703d466619aa 100644 --- a/src/harness/harnessLanguageService.ts +++ b/src/harness/harnessLanguageService.ts @@ -133,85 +133,104 @@ function createLanguageServiceVfs(): vfs.FileSystem { return vfs.createFourslashVfs(IO, /*ignoreCase*/ true, { cwd: virtualFileSystemRoot }); } -const sharedLibDocumentRegistry = ts.createDocumentRegistry(/*useCaseSensitiveFileNames*/ false, virtualFileSystemRoot); +// Cache lib file SourceFiles directly to avoid reparsing across tests. +// Lib .d.ts files parse identically regardless of compiler settings, so we cache +// just one copy per path. This persists for the entire test run. +const libSourceFileCache = new Map(); -function createLibSharingDocumentRegistry(): ts.DocumentRegistry { +function createLibCachingDocumentRegistry(): ts.DocumentRegistry { const localRegistry = ts.createDocumentRegistry(/*useCaseSensitiveFileNames*/ false, virtualFileSystemRoot); - const enableLibAstCaching = true; - if (!enableLibAstCaching) { - return localRegistry; - } - - const libFileVersions = new Map(); - function isLibFile(fileName: string): boolean { return vpath.beneath(vfs.fourslashLibFolder, fileName); } - function getRegistry(fileName: string): ts.DocumentRegistry { - return isLibFile(fileName) ? sharedLibDocumentRegistry : localRegistry; - } - - function checkLibFileVersion(fileName: string, version: string): void { - if (!isLibFile(fileName)) return; - const existingVersion = libFileVersions.get(fileName); - if (existingVersion === undefined) { - libFileVersions.set(fileName, version); - } - else if (existingVersion !== version) { - throw new Error(`Lib file "${fileName}" version changed from "${existingVersion}" to "${version}" - lib files should not be modified`); - } - } - return { acquireDocument(fileName, compilationSettingsOrHost, scriptSnapshot, version, scriptKind, sourceFileOptions) { - checkLibFileVersion(fileName, version); - return getRegistry(fileName).acquireDocument(fileName, compilationSettingsOrHost, scriptSnapshot, version, scriptKind, sourceFileOptions); + if (isLibFile(fileName)) { + const cached = libSourceFileCache.get(fileName); + if (cached) { + return cached; + } + // Not cached - acquire from local registry to parse it, then cache + const sourceFile = localRegistry.acquireDocument(fileName, compilationSettingsOrHost, scriptSnapshot, version, scriptKind, sourceFileOptions); + libSourceFileCache.set(fileName, sourceFile); + // Release from local registry immediately - we don't need ref counting for cached libs + const settings = typeof (compilationSettingsOrHost as ts.MinimalResolutionCacheHost).getCompilationSettings === "function" + ? (compilationSettingsOrHost as ts.MinimalResolutionCacheHost).getCompilationSettings() + : compilationSettingsOrHost as ts.CompilerOptions; + localRegistry.releaseDocument(fileName, settings, scriptKind!, typeof sourceFileOptions === "object" ? sourceFileOptions.impliedNodeFormat : undefined); + return sourceFile; + } + return localRegistry.acquireDocument(fileName, compilationSettingsOrHost, scriptSnapshot, version, scriptKind, sourceFileOptions); }, acquireDocumentWithKey(fileName, path, compilationSettingsOrHost, key, scriptSnapshot, version, scriptKind, sourceFileOptions) { - checkLibFileVersion(fileName, version); - return getRegistry(fileName).acquireDocumentWithKey(fileName, path, compilationSettingsOrHost, key, scriptSnapshot, version, scriptKind, sourceFileOptions); + if (isLibFile(fileName)) { + const cached = libSourceFileCache.get(fileName); + if (cached) { + return cached; + } + // Not cached - acquire from local registry to parse it, then cache + const sourceFile = localRegistry.acquireDocumentWithKey(fileName, path, compilationSettingsOrHost, key, scriptSnapshot, version, scriptKind, sourceFileOptions); + libSourceFileCache.set(fileName, sourceFile); + // Release from local registry immediately + const impliedNodeFormat = typeof sourceFileOptions === "object" ? sourceFileOptions.impliedNodeFormat : undefined; + localRegistry.releaseDocumentWithKey(path, key, scriptKind!, impliedNodeFormat); + return sourceFile; + } + return localRegistry.acquireDocumentWithKey(fileName, path, compilationSettingsOrHost, key, scriptSnapshot, version, scriptKind, sourceFileOptions); }, updateDocument(fileName, compilationSettingsOrHost, scriptSnapshot, version, scriptKind, sourceFileOptions) { - checkLibFileVersion(fileName, version); - return getRegistry(fileName).updateDocument(fileName, compilationSettingsOrHost, scriptSnapshot, version, scriptKind, sourceFileOptions); + if (isLibFile(fileName)) { + // Lib files should never be updated - just return the cached version + const cached = libSourceFileCache.get(fileName); + if (cached) { + return cached; + } + // Fall through to acquire if somehow not cached + return this.acquireDocument(fileName, compilationSettingsOrHost, scriptSnapshot, version, scriptKind, sourceFileOptions); + } + return localRegistry.updateDocument(fileName, compilationSettingsOrHost, scriptSnapshot, version, scriptKind, sourceFileOptions); }, updateDocumentWithKey(fileName, path, compilationSettingsOrHost, key, scriptSnapshot, version, scriptKind, sourceFileOptions) { - checkLibFileVersion(fileName, version); - return getRegistry(fileName).updateDocumentWithKey(fileName, path, compilationSettingsOrHost, key, scriptSnapshot, version, scriptKind, sourceFileOptions); + if (isLibFile(fileName)) { + // Lib files should never be updated - just return the cached version + const cached = libSourceFileCache.get(fileName); + if (cached) { + return cached; + } + // Fall through to acquire if somehow not cached + return this.acquireDocumentWithKey(fileName, path, compilationSettingsOrHost, key, scriptSnapshot, version, scriptKind, sourceFileOptions); + } + return localRegistry.updateDocumentWithKey(fileName, path, compilationSettingsOrHost, key, scriptSnapshot, version, scriptKind, sourceFileOptions); }, getKeyForCompilationSettings(settings) { - return sharedLibDocumentRegistry.getKeyForCompilationSettings(settings); + return localRegistry.getKeyForCompilationSettings(settings); }, getDocumentRegistryBucketKeyWithMode(key, mode) { - return sharedLibDocumentRegistry.getDocumentRegistryBucketKeyWithMode(key, mode); + return localRegistry.getDocumentRegistryBucketKeyWithMode(key, mode); }, releaseDocument(fileName: string, compilationSettings: ts.CompilerOptions, scriptKind?: ts.ScriptKind, impliedNodeFormat?: ts.ResolutionMode) { - // Need to handle the overloaded signature - return getRegistry(fileName).releaseDocument(fileName, compilationSettings, scriptKind!, impliedNodeFormat); + if (isLibFile(fileName)) { + // Lib files are cached separately - no ref counting needed, so no-op + return; + } + return localRegistry.releaseDocument(fileName, compilationSettings, scriptKind!, impliedNodeFormat); }, releaseDocumentWithKey(path: ts.Path, key: ts.DocumentRegistryBucketKey, scriptKind?: ts.ScriptKind, impliedNodeFormat?: ts.ResolutionMode) { - // We don't know the original file name here, so release from both registries - // This is safe because releaseDocument is a no-op if the document wasn't acquired + // We can't easily tell if this is a lib file from just the path without the fileName, + // so try to release from local registry and ignore errors try { localRegistry.releaseDocumentWithKey(path, key, scriptKind!, impliedNodeFormat); } catch { - // Ignore - document might be in the other registry - } - try { - sharedLibDocumentRegistry.releaseDocumentWithKey(path, key, scriptKind!, impliedNodeFormat); - } - catch { - // Ignore - document might be in the other registry + // Ignore - might be a lib file that was never in the local registry } }, reportStats() { - return `Shared lib registry: ${sharedLibDocumentRegistry.reportStats()}\nLocal registry: ${localRegistry.reportStats()}`; + return `Lib cache: ${libSourceFileCache.size} files\nLocal registry: ${localRegistry.reportStats()}`; }, getBuckets() { - // Return local buckets - this is primarily for debugging return localRegistry.getBuckets(); }, }; @@ -429,7 +448,7 @@ export class NativeLanguageServiceAdapter implements LanguageServiceAdapter { getLogger: typeof ts.returnUndefined = ts.returnUndefined; constructor(cancellationToken?: ts.HostCancellationToken, options?: ts.CompilerOptions) { this.host = new NativeLanguageServiceHost(cancellationToken, options); - this.documentRegistry = createLibSharingDocumentRegistry(); + this.documentRegistry = createLibCachingDocumentRegistry(); } getHost(): LanguageServiceAdapterHost { return this.host;