mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-19 01:33:15 -05:00
* Move package.json related utils to utilities * Add failing test * Make first test pass * Don’t filter when there’s no package.json, fix scoped package imports * Use type acquisition as a heuristic for whether a JS project is using node core * Make same fix in getCompletionDetails * Fix re-exporting * Change JS node core module heuristic to same-file utilization * Remove unused method * Remove other unused method * Remove unused triple-slash ref * Update comment * Refactor findAlias to forEachAlias to reduce iterations * Really fix re-exporting * Use getModuleSpecifier instead of custom hack * Fix offering auto imports to paths within node modules * Rename things and make comments better * Add another reexport test * Inline `symbolHasBeenSeen` * Simplify forEachAlias to findAlias * Add note that symbols is mutated * Symbol order doesn’t matter here * Style nits * Add test with nested package.jsons * Fix and add tests for export * re-exports * Don’t fail when alias isn’t found * Make some easy optimizations * Clean up memoization when done * Remove unnecessary semicolon * Make getSymbolsFromOtherSourceFileExports pure * Cache auto imports * Revert "Cache auto imports" This reverts commit8ea4829587. * Handle merged symbols through cache * Be safer with symbol declarations, add logging * Improve cache invalidation for imports and exports * Check symbol presence first * Only run cache invalidation logic if there’s something to clear * Consolidate cache invalidation logic * Fix reuseProgramStructure test * Add more logging * Only clear cache if symbols are different * Refactor ambient module handling * Start caching package.json stuff * Support package.json searching in fourslash * Move import suggestions cache to Project * Start making more module specifier work available without having the importing file * Going to backtrack some from here * Get rid of dumb cache, fix node core modules stuff * Start determining changes to a file have invalidated its own auto imports * Move package.json related utils to utilities * Add failing test * Make first test pass * Don’t filter when there’s no package.json, fix scoped package imports * Use type acquisition as a heuristic for whether a JS project is using node core * Make same fix in getCompletionDetails * Fix re-exporting * Change JS node core module heuristic to same-file utilization * Remove unused method * Remove other unused method * Remove unused triple-slash ref * Update comment * Refactor findAlias to forEachAlias to reduce iterations * Really fix re-exporting * Use getModuleSpecifier instead of custom hack * Fix offering auto imports to paths within node modules * Rename things and make comments better * Add another reexport test * Inline `symbolHasBeenSeen` * Simplify forEachAlias to findAlias * Add note that symbols is mutated * Symbol order doesn’t matter here * Style nits * Add test with nested package.jsons * Fix and add tests for export * re-exports * Don’t fail when alias isn’t found * Make some easy optimizations * Clean up memoization when done * Remove unnecessary semicolon * Make getSymbolsFromOtherSourceFileExports pure * Cache auto imports * Revert "Cache auto imports" This reverts commit8ea4829587. * Handle merged symbols through cache * Be safer with symbol declarations, add logging * Improve cache invalidation for imports and exports * Check symbol presence first * Only run cache invalidation logic if there’s something to clear * Consolidate cache invalidation logic * Fix reuseProgramStructure test * Add more logging * Only clear cache if symbols are different * Refactor ambient module handling * Finish(?) sourceFileHasChangedOwnImportSuggestions * Make package.json info model better * Fix misplaced paren * Use file structure cache for package.json detection when possible * Revert unnecessary changes in moduleSpecifiers * Revert more unnecessary changes * Don’t watch package.jsons inside node_modules, fix tests * Work around declaration emit bug * Sync submodules? * Delete unused type * Add server cache tests * Fix server fourslash editing * Fix packageJsonInfo tests * Add node core modules cache test and fix more fourslash * Clean up symlink caching * Improve logging * Function name doesn’t make any sense anymore * Move symlinks cache to host * Fix markFileAsDirty from ScriptInfo * Mark new Project members internal * Use Path instead of fileName * Rename AutoImportSuggestionsCache * Improve WatchType description * Remove entries() from packageJsonCache * Fix path/fileName bug * Also cache symlinks on Program for benefit of d.ts emit * Let language service use Program’s symlink cache
176 lines
7.4 KiB
JSON
176 lines
7.4 KiB
JSON
{
|
|
"extends": "../tsconfig-noncomposite-base",
|
|
"compilerOptions": {
|
|
"outFile": "../../built/local/run.js",
|
|
"composite": false,
|
|
"declaration": false,
|
|
"declarationMap": false,
|
|
"types": [
|
|
"node", "mocha", "chai"
|
|
],
|
|
"lib": [
|
|
"es6",
|
|
"scripthost"
|
|
]
|
|
},
|
|
"references": [
|
|
{ "path": "../compiler", "prepend": true },
|
|
{ "path": "../services", "prepend": true },
|
|
{ "path": "../jsTyping", "prepend": true },
|
|
{ "path": "../server", "prepend": true },
|
|
{ "path": "../typingsInstallerCore", "prepend": true },
|
|
{ "path": "../harness", "prepend": true }
|
|
],
|
|
|
|
"files": [
|
|
"fourslashRunner.ts",
|
|
"compilerRunner.ts",
|
|
"projectsRunner.ts",
|
|
"rwcRunner.ts",
|
|
"externalCompileRunner.ts",
|
|
"test262Runner.ts",
|
|
|
|
"parallel/host.ts",
|
|
"parallel/worker.ts",
|
|
"parallel/shared.ts",
|
|
|
|
"runner.ts",
|
|
|
|
"unittests/services/extract/helpers.ts",
|
|
"unittests/tsbuild/helpers.ts",
|
|
"unittests/tsc/helpers.ts",
|
|
"unittests/tscWatch/helpers.ts",
|
|
"unittests/tsserver/helpers.ts",
|
|
|
|
"unittests/asserts.ts",
|
|
"unittests/base64.ts",
|
|
"unittests/builder.ts",
|
|
"unittests/comments.ts",
|
|
"unittests/compilerCore.ts",
|
|
"unittests/convertToBase64.ts",
|
|
"unittests/customTransforms.ts",
|
|
"unittests/factory.ts",
|
|
"unittests/incrementalParser.ts",
|
|
"unittests/jsDocParsing.ts",
|
|
"unittests/moduleResolution.ts",
|
|
"unittests/parsePseudoBigInt.ts",
|
|
"unittests/paths.ts",
|
|
"unittests/printer.ts",
|
|
"unittests/programApi.ts",
|
|
"unittests/publicApi.ts",
|
|
"unittests/reuseProgramStructure.ts",
|
|
"unittests/semver.ts",
|
|
"unittests/shimMap.ts",
|
|
"unittests/transform.ts",
|
|
"unittests/config/commandLineParsing.ts",
|
|
"unittests/config/configurationExtension.ts",
|
|
"unittests/config/convertCompilerOptionsFromJson.ts",
|
|
"unittests/config/convertTypeAcquisitionFromJson.ts",
|
|
"unittests/config/initializeTSConfig.ts",
|
|
"unittests/config/matchFiles.ts",
|
|
"unittests/config/projectReferences.ts",
|
|
"unittests/config/showConfig.ts",
|
|
"unittests/config/tsconfigParsing.ts",
|
|
"unittests/evaluation/asyncArrow.ts",
|
|
"unittests/evaluation/asyncGenerator.ts",
|
|
"unittests/evaluation/awaiter.ts",
|
|
"unittests/evaluation/forAwaitOf.ts",
|
|
"unittests/evaluation/forOf.ts",
|
|
"unittests/evaluation/objectRest.ts",
|
|
"unittests/services/cancellableLanguageServiceOperations.ts",
|
|
"unittests/services/colorization.ts",
|
|
"unittests/services/convertToAsyncFunction.ts",
|
|
"unittests/services/documentRegistry.ts",
|
|
"unittests/services/extract/constants.ts",
|
|
"unittests/services/extract/functions.ts",
|
|
"unittests/services/extract/symbolWalker.ts",
|
|
"unittests/services/extract/ranges.ts",
|
|
"unittests/services/hostNewLineSupport.ts",
|
|
"unittests/services/languageService.ts",
|
|
"unittests/services/organizeImports.ts",
|
|
"unittests/services/patternMatcher.ts",
|
|
"unittests/services/preProcessFile.ts",
|
|
"unittests/services/textChanges.ts",
|
|
"unittests/services/transpile.ts",
|
|
"unittests/tsbuild/amdModulesWithOut.ts",
|
|
"unittests/tsbuild/containerOnlyReferenced.ts",
|
|
"unittests/tsbuild/demo.ts",
|
|
"unittests/tsbuild/emitDeclarationOnly.ts",
|
|
"unittests/tsbuild/emptyFiles.ts",
|
|
"unittests/tsbuild/graphOrdering.ts",
|
|
"unittests/tsbuild/inferredTypeFromTransitiveModule.ts",
|
|
"unittests/tsbuild/javascriptProjectEmit.ts",
|
|
"unittests/tsbuild/lateBoundSymbol.ts",
|
|
"unittests/tsbuild/missingExtendedFile.ts",
|
|
"unittests/tsbuild/moduleSpecifiers.ts",
|
|
"unittests/tsbuild/outFile.ts",
|
|
"unittests/tsbuild/referencesWithRootDirInParent.ts",
|
|
"unittests/tsbuild/resolveJsonModule.ts",
|
|
"unittests/tsbuild/sample.ts",
|
|
"unittests/tsbuild/transitiveReferences.ts",
|
|
"unittests/tsbuild/watchEnvironment.ts",
|
|
"unittests/tsbuild/watchMode.ts",
|
|
"unittests/tsc/declarationEmit.ts",
|
|
"unittests/tscWatch/consoleClearing.ts",
|
|
"unittests/tscWatch/emit.ts",
|
|
"unittests/tscWatch/emitAndErrorUpdates.ts",
|
|
"unittests/tscWatch/incremental.ts",
|
|
"unittests/tscWatch/programUpdates.ts",
|
|
"unittests/tscWatch/resolutionCache.ts",
|
|
"unittests/tscWatch/watchEnvironment.ts",
|
|
"unittests/tscWatch/watchApi.ts",
|
|
"unittests/tsserver/applyChangesToOpenFiles.ts",
|
|
"unittests/tsserver/cachingFileSystemInformation.ts",
|
|
"unittests/tsserver/cancellationToken.ts",
|
|
"unittests/tsserver/compileOnSave.ts",
|
|
"unittests/tsserver/completions.ts",
|
|
"unittests/tsserver/configFileSearch.ts",
|
|
"unittests/tsserver/configuredProjects.ts",
|
|
"unittests/tsserver/declarationFileMaps.ts",
|
|
"unittests/tsserver/documentRegistry.ts",
|
|
"unittests/tsserver/duplicatePackages.ts",
|
|
"unittests/tsserver/events/largeFileReferenced.ts",
|
|
"unittests/tsserver/events/projectLanguageServiceState.ts",
|
|
"unittests/tsserver/events/projectLoading.ts",
|
|
"unittests/tsserver/events/projectUpdatedInBackground.ts",
|
|
"unittests/tsserver/externalProjects.ts",
|
|
"unittests/tsserver/forceConsistentCasingInFileNames.ts",
|
|
"unittests/tsserver/formatSettings.ts",
|
|
"unittests/tsserver/getApplicableRefactors.ts",
|
|
"unittests/tsserver/getEditsForFileRename.ts",
|
|
"unittests/tsserver/getExportReferences.ts",
|
|
"unittests/tsserver/importHelpers.ts",
|
|
"unittests/tsserver/importSuggestionsCache.ts",
|
|
"unittests/tsserver/inferredProjects.ts",
|
|
"unittests/tsserver/languageService.ts",
|
|
"unittests/tsserver/maxNodeModuleJsDepth.ts",
|
|
"unittests/tsserver/metadataInResponse.ts",
|
|
"unittests/tsserver/navTo.ts",
|
|
"unittests/tsserver/occurences.ts",
|
|
"unittests/tsserver/openFile.ts",
|
|
"unittests/tsserver/packageJsonInfo.ts",
|
|
"unittests/tsserver/projectErrors.ts",
|
|
"unittests/tsserver/projectReferenceCompileOnSave.ts",
|
|
"unittests/tsserver/projectReferenceErrors.ts",
|
|
"unittests/tsserver/projectReferences.ts",
|
|
"unittests/tsserver/projects.ts",
|
|
"unittests/tsserver/refactors.ts",
|
|
"unittests/tsserver/reload.ts",
|
|
"unittests/tsserver/rename.ts",
|
|
"unittests/tsserver/resolutionCache.ts",
|
|
"unittests/tsserver/smartSelection.ts",
|
|
"unittests/tsserver/session.ts",
|
|
"unittests/tsserver/skipLibCheck.ts",
|
|
"unittests/tsserver/symLinks.ts",
|
|
"unittests/tsserver/syntaxOperations.ts",
|
|
"unittests/tsserver/textStorage.ts",
|
|
"unittests/tsserver/telemetry.ts",
|
|
"unittests/tsserver/typeAquisition.ts",
|
|
"unittests/tsserver/typeReferenceDirectives.ts",
|
|
"unittests/tsserver/typingsInstaller.ts",
|
|
"unittests/tsserver/untitledFiles.ts",
|
|
"unittests/tsserver/versionCache.ts",
|
|
"unittests/tsserver/watchEnvironment.ts"
|
|
]
|
|
}
|