Skip to content
CAI
Software that uses CAICheck a score

microsoft/TypeScript

56.2

Adequate · 14 November 2026

1371.3k

lines of production code

JavaScript

with Go, TypeScript

1

measurement over time

CAI band scale
CAI lens gauges

What this system is

Features

Add AST token navigation utilities

The \tsc/internal/astnav\ package now provides functions for locating tokens within a source file's AST, including \GetTokenAtPosition\, \GetTouchingToken\, and \GetTouchingPropertyName\. These utilities support features like go-to-definition and signature help by allowing the language service to efficiently find the specific token at a given character position, handling edge cases such as JSDoc type assertions and leading trivia.

tsc/internal/astnav · high confidence

Add Go diagnostics package with localization support

The \tsc/internal/diagnostics\ package now provides the infrastructure for TypeScript compiler error messages in the Go port. This includes generated message constants, a localization system that supports argument substitution and locale-specific translations, and the underlying JSON message definitions. Users will see standard TypeScript diagnostic codes and messages, with support for internationalization via the \locale\ package.

tsc/internal/diagnostics · high confidence

Add io/fs-based virtual file system implementation

The \iovfs\ package introduces a new virtual file system implementation built on Go's standard \io/fs\ interface. This allows the TypeScript compiler to interact with file systems that conform to the \io/fs\ contract, supporting both read-only and writable operations (including file writing, appending, directory creation, removal, and timestamp updates) depending on the underlying file system's capabilities. It also provides path resolution via \Realpath\ and handles URL-based paths gracefully without panicking.

tsc/internal/vfs/iovfs · high confidence

Added LSP-compliant glob pattern parsing

Introduced a new \glob\ package that implements parsing for LSP-compliant glob patterns (supporting \\\, \?\, \\\*\, \{}\, and \\[\]\ ranges) used for document filters. This provides the internal foundation for matching file paths against glob expressions, currently marked as intended for testing pending further validation against the VS Code implementation.

tsc/internal/glob · high confidence

Added cached VFS wrapper to reduce filesystem overhead

A new \cachedvfs\ package has been introduced in the \tsc/internal/vfs\ directory to wrap the underlying filesystem interface with caching. This wrapper caches the results of directory existence checks, file existence checks, accessible entries, realpaths, and file stats, significantly reducing the number of direct OS calls for repeated operations. The cache can be enabled, disabled, or cleared on demand, allowing the TypeScript compiler to optimize performance during large project scans or watch modes without sacrificing correctness when the cache is invalidated.

tsc/internal/vfs/cachedvfs · high confidence

Added filesystem baseline diffing utility for test stability

A new \differ.go\ utility has been introduced in the \tsc/internal/testutil/fsbaselineutil\ package to support stable filesystem baselining in tests. This component compares current filesystem states against previous snapshots to detect new, modified, deleted, or rewritten files, while automatically sanitizing volatile internal symbol names to prevent flaky test failures caused by changing identifiers.

tsc/internal/testutil/fsbaselineutil · high confidence

Added single-file transpilation and declaration emit capabilities

Users can now transpile individual TypeScript files to JavaScript or generate declaration files (.d.ts) without requiring a full project build. This change introduces the \TranspileModule\ and \TranspileDeclaration\ functions in the \tsc/internal/transpile\ package, which handle single-file input using a synthetic in-memory filesystem. The implementation includes a barebones library definition for declaration emit to support global type inference and ensures that single-file operations do not interact with the real disk, preventing side effects during transpilation. Also in this area: 19 commits (4 fixes) modifying tsc.

tsc/internal/transpile · medium confidence · unverified

Automatic TypeScript type acquisition for JavaScript projects

The project system now automatically discovers and installs missing TypeScript declaration files (@types/\*) for JavaScript projects. When type acquisition is enabled, the system scans source files, package.json dependencies, and unresolved imports to identify missing types, then triggers an npm install to fetch the corresponding definitions. This allows JavaScript projects to receive full type checking and IntelliSense support without manual configuration, while respecting user exclusions and caching installed typings to avoid redundant installs. Also in this area: 2 commits (0 fixes) modifying github.com/microsoft/TypeScript/tsc, tsc.

tsc/internal/project · medium confidence · unverified

Code Lenses now display reference and implementation counts for functions, classes, and interfaces

The TypeScript language service now provides Code Lenses that show how many references or implementations exist for code elements. This includes counts for anonymous and arrow functions, named functions, class methods, and interface methods. The feature supports cross-project references and respects configuration options to control whether references are shown on all functions, class methods, or interface methods.

tsc/testdata/baselines/reference/fourslash/codeLenses · high confidence

Implement ES2017–ES2022 downlevel transforms

The TypeScript compiler now includes transformers for ES2017 async/await, ES2018 for-await-of, ES2019 optional catch binding, ES2020 nullish coalescing (??) and optional chaining (?.), ES2021 logical assignment operators, ES2022 class fields and private identifiers, and ES2022 ES decorators. When targeting older ECMAScript versions, these modern syntax features are automatically rewritten into compatible JavaScript, enabling developers to use the latest language constructs while maintaining support for legacy environments.

tsc/internal/transformers/estransforms · high confidence

Implement declaration emit diagnostics and symbol tracking

The declaration emit system now includes comprehensive diagnostics and symbol tracking logic. The new \diagnostics.go\ file defines how accessibility errors are selected and reported for various node types (e.g., class properties, methods, type aliases), ensuring that exported symbols using private or inaccessible names trigger appropriate errors. The \tracker.go\ file implements the \SymbolTracker\ interface, handling complex scenarios like cyclic structures, inaccessible types, unsafe imports, and expando function errors, particularly within \isolatedDeclarations\. Additionally, \supplementalreferences.go\ adds support for emitting triple-slash path references for supplemental files, ensuring that consumers of the declaration files correctly include all necessary type definitions.

tsc/internal/transformers/declarations · high confidence

Implement incremental build state management and build info serialization

This change introduces the core infrastructure for TypeScript's incremental compilation mode within the \tsc/internal/execute/incremental\ package. It adds the \BuildInfo\ struct and its JSON serialization logic to persist and restore compiler state between runs, including file signatures, reference maps, and diagnostic caches. The \Program\ and \snapshot\ types manage the incremental state, tracking file changes, affected files, and pending emits. New handlers (\affectedFilesHandler\, \emitFilesHandler\) coordinate the detection of changed files and the selective re-emission of affected outputs. Additionally, the system now validates content mapper identities to ensure stale programs are discarded when custom file transformations change.

tsc/internal/execute/incremental · high confidence

Initial AST implementation in Go

The \tsc/internal/ast\ package introduces the core Abstract Syntax Tree data structures and utilities for the TypeScript compiler written in Go. This includes the \Node\ hierarchy, a \NodeFactory\ with arena-based memory management, visitor patterns, and deep-cloning capabilities. It also provides foundational support for JSDoc parsing, flow analysis nodes, and diagnostic collection, forming the structural backbone for subsequent type checking and emit features.

tsc/internal/ast · high confidence

Initial LSP server implementation with concurrency, localization, and progress support

The TypeScript LSP server now provides a foundational implementation for language service features, introducing a dynamic request queue to handle concurrent LSP messages and a dedicated progress reporter that displays user-visible loading indicators for long-running operations like project loading. The server also supports locale-sensitive diagnostics and messages, allowing error and info text to be localized according to the client's configured language, and includes a structured logging system that respects client verbosity settings to filter debug and trace output.

tsc/internal/lsp · high confidence

Initial implementation of CommonJS and ES module transformers

The TypeScript compiler now includes the core logic for transforming source code into CommonJS and ES module formats. This change introduces the \CommonJSModuleTransformer\ and \ESModuleTransformer\ components, which handle the conversion of import/export statements, variable declarations, and other module-related syntax into their respective runtime equivalents. The \ImpliedModuleTransformer\ acts as a dispatcher, selecting the appropriate transformer based on the configured module kind (e.g., ES2015+ vs CommonJS). This foundational work enables the compiler to correctly emit JavaScript modules that adhere to the target environment's module system.

tsc/internal/transformers/moduletransforms · high confidence

Initial implementation of JSX transformation in TypeScript Go

The \tsc/internal/transformers/jsxtransforms\ package introduces the core logic for transforming JSX syntax into JavaScript. This change adds a \JSXTransformer\ that handles JSX elements, fragments, and text nodes, supporting modern React JSX runtime modes (\jsx\ and \jsxs\) alongside the legacy \createElement\ fallback. It also implements logic for managing implicit runtime imports and correctly positioning generated import statements relative to prologue directives.

tsc/internal/transformers/jsxtransforms · high confidence

Initial implementation of the TypeScript binder in Go

The \tsc/internal/binder\ package has been introduced to handle symbol binding, name resolution, and reference resolution for TypeScript source files. This new component replaces the previous JavaScript-based binding logic with a Go implementation, featuring a pooled \Binder\ for performance, a \NameResolver\ for scoping and symbol lookup, and a \ReferenceResolver\ for resolving identifiers to their declarations. The package includes benchmarks to track binding performance and supports standard TypeScript features such as CommonJS module exports, class/enum scoping, and type parameter visibility.

tsc/internal/binder · high confidence

Initial implementation of the tsc command-line interface in Go

The \tsc/internal/execute\ package introduces the core command-line execution logic for the TypeScript compiler, replacing the previous entry point. This change adds support for standard compilation (\tsc\), build mode (\tsc -b\), and watch mode (\tsc -w\), including the integration of a file-system watcher (\fswatch\) and incremental build caching. Users will now see the Go-based CLI handling configuration parsing, diagnostic reporting, and program orchestration, with specific features like \--generateTrace\, \--pprof\, and \--init\ wired into the new execution flow.

tsc/internal/execute · high confidence

Initial implementation of the tsc compiler execution engine

This change introduces the core execution logic for the TypeScript compiler in Go, including the compilation and file emission pipeline, diagnostic reporting with locale-aware formatting, and support for build mode and watch mode. It adds the \tsc --init\ command to generate configuration files, implements the \--all\ flag to display comprehensive help, and introduces the \--extendedDiagnostics\ flag to output detailed compilation statistics. The implementation also includes a concurrency-safe cache for extended \tsconfig\ configurations to prevent deadlocks on circular references, and supports the \FORCE\_COLOR\ environment variable for consistent terminal output.

tsc/internal/execute/tsc · high confidence

Initial port of TypeScript path resolution utilities

The \tsc/internal/tspath\ package introduces the foundational path resolution logic for the TypeScript Go compiler. This includes core path manipulation functions (such as combining, normalizing, and extracting components for POSIX, DOS, and URL schemes), file extension handling for TypeScript/JavaScript/JSON variants, and logic to identify and ignore specific system paths like \.git\ or \node\_modules\ directories. Comprehensive test coverage is provided for these path operations, including edge cases for untitled virtual files and case-sensitivity.

tsc/internal/tspath · high confidence

Initial port of the TypeScript type checker to Go

The \tsc/internal/checker\ package introduces the core type-checking engine for the new Go-based TypeScript compiler. This implementation includes the main \Checker\ struct, the \EmitResolver\ for declaration emit logic, and the foundational type system structures (such as \Type\, \Signature\, and \CachedTypeKey\). It also provides the initial test suite and benchmarks to validate symbol resolution and checker instantiation performance.

tsc/internal/checker · high confidence

Introduce Go-based LSP protocol implementation

The \tsc/internal/lsp/lsproto\ package now provides the foundational LSP protocol layer for the TypeScript Go compiler. This includes a new base protocol reader and writer for handling JSON-RPC message framing, a generated set of LSP types and message structures, and a strict reflection-driven JSON decoder that enforces required fields and rejects null values for non-nullable spec fields. Comprehensive tests verify correct message parsing, URI handling, and strict adherence to the LSP specification.

tsc/internal/lsp/lsproto · high confidence

Introduce Go-based command-line and tsconfig option parsing infrastructure

This change adds the foundational Go implementation for parsing TypeScript compiler options from both the command line and tsconfig.json files. It introduces the \CommandLineOption\ structure to define option metadata (types, validation rules, and diagnostic messages) and implements the \commandLineParser\ to handle argument parsing, including support for response files (\@args.txt\), watch options, and build mode flags. The diff also includes the definition of option declarations for compiler, watch, and build modes, as well as content mapper resolution logic, establishing the core parsing layer that replaces or supplements the previous JavaScript-based option handling.

tsc/internal/tsoptions · high confidence

Introduce IPC-based API with virtual filesystem and module resolution callbacks

The TypeScript API now supports an inter-process communication (IPC) model, allowing the language service to run in a separate process from the client. This change introduces a \callbackFS\ mechanism that lets API clients override filesystem operations (such as \readFile\, \fileExists\, and \directoryExists\) via RPC, enabling virtual filesystems for testing or in-memory scenarios. Additionally, it adds a \callbackModuleResolver\ that delegates module resolution logic to the client, allowing custom resolution strategies. The API protocol is extended with a new msgpack-based transport (\MessagePackProtocol\) for efficient serialization, and the internal API surface is expanded with numerous new methods for type checking, symbol inspection, and program management. Also in this area: 2 commits (0 fixes) modifying github.com/microsoft/TypeScript/tsc, tsc.

tsc/internal/api, tsc/internal/api/requestfilesystem · medium confidence

Introduce binary AST encoding and decoding for the TypeScript API

The \tsc/internal/api/encoder\ package now provides a compact binary format for serializing and deserializing TypeScript \SourceFile\ ASTs, enabling efficient transfer over IPC or caching. This change adds encoder and decoder implementations (including generated code for node-specific logic) that handle string tables, extended node data, and structured metadata like content mappers and span maps, along with comprehensive tests verifying round-trip fidelity for various source constructs.

tsc/internal/api/encoder · high confidence

Introduce bundled package for embedded TypeScript library definitions

The \tsc/internal/bundled\ package now provides a unified way to access TypeScript's standard library definitions (such as \lib.d.ts\, DOM, and ES2015+ type definitions). It supports two modes: an embedded file system (default) that bundles the library files directly into the binary for portability, and a fallback mode that reads them from the executable's directory. This change ensures that the compiler can always locate the necessary type definitions regardless of the deployment environment.

tsc/internal/bundled · high confidence

Introduce core infrastructure package with compiler options, concurrency primitives, and utility types

The \tsc/internal/core\ package now provides the foundational types and utilities for the TypeScript compiler implementation. This includes the \CompilerOptions\ and \BuildOptions\ structs that define the configuration surface, along with \Tristate\ and \ScriptTarget\ enums for handling option states. To support concurrent execution, the package introduces \LimitedSemaphore\ for controlling OS filesystem call concurrency, \Arena\ for efficient memory allocation, and \BreadthFirstSearchParallel\ for parallel graph traversal. Additionally, it adds core utility types such as \TextRange\ and \TextChange\ for source code manipulation, \PagedLinkStore\ for sparse data storage, and \NodeCoreModules\ for identifying built-in Node.js modules.

tsc/internal/core · high confidence

Introduce diagnostic writer with localization and content-mapper support

The new \tsc/internal/diagnosticwriter\ package provides the core logic for formatting and displaying TypeScript diagnostics. It introduces localization support, allowing error messages to be translated based on the user's locale, and adds specific handling for content mappers: diagnostics originating from mapped files are correctly resolved to their original source locations, while those in synthesized virtual code are clearly flagged with a note explaining their origin. This ensures that error messages are both linguistically appropriate and accurately positioned relative to the user's actual source files.

tsc/internal/diagnosticwriter · high confidence

Introduce in-process LSP file watcher for clients without dynamic registration support

Added a new \lspwatcher\ package that provides an in-process file system watcher, allowing the LSP server to handle file changes even when the client does not support dynamic registration of file watchers. The implementation manages subscriptions to directories, handles non-existent or symlinked paths by watching ancestor directories, and batches change events to mimic the \workspace/didChangeWatchedFiles\ notification format. This ensures consistent file watching behavior across different LSP clients and platforms, including Windows and macOS, while also addressing race conditions during shutdown and fixes for symlinked directories.

tsc/internal/lsp/lspwatcher · high confidence

Introduce jsnum package for JavaScript-compliant number and BigInt handling

The new \tsc/internal/jsnum\ package provides a \Number\ type and \PseudoBigInt\ type that replicate JavaScript's numeric behavior, including 32-bit bitwise operations, ECMAScript-specified remainder and exponentiate logic, and precise string conversions for both safe integers and large values. This ensures that internal type-checking and emission logic in the TypeScript compiler produces results consistent with actual JavaScript engines, particularly for edge cases involving NaN, Infinity, and large integer literals.

tsc/internal/jsnum · high confidence

Introduce new VFS abstraction and directory walking utility

The \tsc/internal/vfs\ package now provides a unified \FS\ interface for file system operations, including methods for reading, writing, removing files, and checking existence, alongside a \WalkDir\ function that traverses directory trees while respecting case sensitivity and symlink semantics. This change introduces a mock implementation (\FSMock\) for testing purposes and benchmarks to validate read performance, establishing the foundational file system layer for the TypeScript compiler's Go implementation.

tsc/internal/vfs · high confidence

Introduce printer infrastructure for code transformation and emit

The \tsc/internal/printer\ package now includes the core scaffolding for the TypeScript code printer, enabling the transformation and emission of JavaScript/TypeScript code. This change adds the \EmitContext\ for managing transformation state (such as variable hoisting and lexical environments), a \NodeFactory\ for creating AST nodes during emit, a \NameGenerator\ for producing unique identifiers, and a \ChangeTrackerWriter\ to preserve source positions for incremental updates. It also defines \EmitFlags\ to control output formatting (e.g., source maps, comments) and provides helper functions for ES decorators and class fields transforms.

tsc/internal/printer · high confidence

Introduce pseudochecker for isolated declarations type inference

Added a new \pseudochecker\ package in \tsc/internal/pseudochecker\ that provides a lightweight type-checking mechanism for generating isolated declaration files. This component introduces \PseudoType\ structures to represent partially interpreted types and expressions, allowing the system to infer return types for accessors, properties, variables, and function signatures without performing full type checking. It handles specific logic for accessor inference failures, parameter type reuse, and contextual typing of const array literals, serving as the foundational logic for the \--isolatedDeclarations\ node builder.

tsc/internal/pseudochecker · high confidence

Introduce semver version parsing and range matching

The \tsc/internal/semver\ package now provides core SemVer capabilities, including parsing version strings into \Version\ structs and evaluating \VersionRange\ expressions. Users can now parse versions with major, minor, and patch components, along with pre-release and build metadata, and compare them according to SemVer precedence rules (e.g., pre-release versions have lower precedence than release versions, and numeric identifiers are compared numerically). The package also supports npm-style range syntax, allowing users to define and test version constraints using operators like \\<\, \\>\, \\<=\, \\>=\, \=\, tildes (\\~\), carets (\^\), hyphens (\-\), and logical OR (\\|\|\), as well as wildcards (\\*\, \x\, \X\).

tsc/internal/semver · high confidence

Introduce transformer infrastructure and destructuring flattening logic

The \tsc/internal/transformers\ package now provides the core infrastructure for source-file transformations, including a \Transformer\ struct that wraps the emit context, node factory, and visitor, and a \Chain\ function that allows multiple transformers to be executed sequentially on a source file. Additionally, the package introduces \FlattenDestructuringAssignment\ and \FlattenDestructuringBinding\ utilities, which decompose complex destructuring patterns (object and array) into individual variable declarations and assignments, supporting custom callbacks for module-specific behaviors like CommonJS exports.

tsc/internal/transformers · high confidence

New Fourslash test harness implementation

The \tsc/internal/fourslash\ package now provides a new Go-based harness for running TypeScript's Fourslash tests. This implementation introduces a test runner that parses Fourslash test syntax (including markers and ranges), manages a virtual file system, and communicates with the language server via LSP. It supports generating baselines for various language features such as semantic tokens, quick info, diagnostics, and code actions, enabling the existing TypeScript test suite to be executed against the new Go implementation.

tsc/internal/fourslash · high confidence

New Go-based source map decoder and generator

The \tsc/internal/sourcemap\ package now provides a native Go implementation for parsing and generating source maps, replacing previous approaches. This includes a \MappingsDecoder\ that efficiently iterates through VLQ-encoded mapping strings using a memory arena, a \Generator\ that constructs source map JSON with proper base64-VLQ encoding and source/name deduplication, and a \DocumentPositionMapper\ that resolves positions between generated and source files. These components enable accurate source map emission and position mapping for TypeScript compilation.

tsc/internal/sourcemap · high confidence

New Go-based test runner for TypeScript compiler baselines

The \tsc/internal/testrunner\ package introduces a new test execution framework in Go to run TypeScript compiler and transpile baseline tests. This includes a \CompilerBaselineRunner\ for regression and conformance tests, a \TranspileBaselineRunner\ for transpilation outputs, and a \TestCaseParser\ that interprets test file directives (such as \@filename\ and \@config\) to construct compiler configurations. The runner supports running tests in parallel, manages local baseline cleanup, and explicitly skips tests that rely on removed features (like AMD/UMD modules) or deprecated options to ensure compatibility with the current TypeScript 6.0+ behavior.

tsc/internal/testrunner · high confidence

New LSP test client infrastructure for verifying protocol round-trips

Added a new LSP client utility in the test package that simulates a real editor by streaming JSON messages over byte pipes, ensuring full marshal/unmarshal round-trips of protocol data structures. This infrastructure supports server-initiated requests and notifications, allowing tests to exercise the complete LSP communication path with proper serialization and concurrency handling.

tsc/internal/testutil/lsptestutil · high confidence

New VFS wrapper for substituting file system operations

A new \wrapvfs\ package has been added to the \tsc/internal/vfs\ layer, providing a \Wrap\ function that creates a \vfs.FS\ implementation delegating to an underlying file system while allowing specific operations (such as \ReadFile\, \WriteFile\, \Stat\, and \Realpath\) to be replaced via a \Replacements\ struct. This enables internal components to override file system behavior for specific paths or operations without modifying the core VFS interface, facilitating testing and specialized file handling logic.

tsc/internal/vfs/wrapvfs · high confidence

New auto-import infrastructure for the TypeScript language service

Introduces a new auto-import system in the \tsc/internal/ls/autoimport\ package, replacing the previous implementation. This change adds a dedicated \aliasResolver\ to handle module resolution and symbol binding for auto-imports, a new \Export\ data model to represent module exports with their syntax and metadata, and an \exportExtractor\ to scan source files and ambient modules for available symbols. The system now uses a \registry\ with incremental \bucket\ management to track dirty state for project files and \node\_modules\ packages, allowing for efficient, granular updates when files change. Additionally, an \importAdder\ component manages the accumulation and coalescing of import fixes, ensuring that multiple imports from the same module are merged into single statements, while an \Index\ structure provides optimized case-insensitive search for export names.

tsc/internal/ls/autoimport · high confidence

New baseline generation utilities for compiler tests

The test harness now includes dedicated baseline generators for content-mapped files, JavaScript emit, source maps, module resolution traces, and type/symbol information. These utilities allow tests to capture and compare detailed compiler outputs—such as original versus transformed source code, emitted JavaScript, source map data, and type representations—ensuring that changes to the compiler's emit and type-checking behavior are accurately tracked.

tsc/internal/testutil/tsbaseline · high confidence

New baseline testing infrastructure with diff tracking and race detection support

The test utilities now include a new baseline package that manages reference and local baseline files for compiler tests, using the 'patience' diff algorithm to generate unified diffs for comparison. This system supports tracking which baseline files are actively used during test runs via a tracking directory, helping identify unused baselines. Additionally, a new race detection utility package provides build-tagged implementations to report whether the Go race detector is enabled, allowing tests to conditionally handle race-sensitive scenarios.

tsc/internal/testutil/baseline · high confidence

New build orchestrator for tsc -b with dependency scheduling and content mapping

The \tsc/internal/execute/build\ package introduces a new build orchestrator that manages TypeScript project references (\tsc -b\). It schedules builds by dependency depth to reduce builder idle time, supports incremental builds with up-to-date checks, and integrates content mappers for transformed source files. The implementation includes a clean command for removing outputs, a graph generator for dependency resolution, and comprehensive tests for build ordering, clean operations, and content mapper integration.

tsc/internal/execute/build · high confidence

New code fix providers for isolated declarations and interface implementation

The language service now includes dedicated code fix providers for \isolatedDeclarations\ type annotation errors and for classes that incorrectly implement an interface. Users can now apply quick fixes to automatically add missing explicit type annotations required by \isolatedDeclarations\ or to implement missing members when a class fails to correctly implement an interface.

tsc/internal/ls · high confidence

New collections package with ordered, concurrent, and copy-on-write data structures

The \tsc/internal/collections\ package introduces a suite of specialized collection types to support the compiler's internal data handling. This includes \OrderedMap\ and \OrderedSet\ which preserve insertion order, \CopyOnWriteMap\ and \CopyOnWriteSet\ for efficient, scope-aware cloning without immediate deep copies, and \SyncMap\ and \SyncSet\ which provide thread-safe access using Go's \sync.Map\. Additionally, a \MultiMap\ is provided for mapping keys to multiple values, and a standard \Set\ with utility methods for unions and intersections. These structures are accompanied by comprehensive tests covering their core behaviors, including JSON unmarshaling for ordered maps and nil-safety for concurrent maps.

tsc/internal/collections · high confidence

New in-memory virtual file system for testing

Added a new \vfstest\ package that provides an in-memory virtual file system (\MapFS\) for use in tests. This helper allows tests to define file contents and directory structures via a map, supporting case-sensitive and case-insensitive modes, symlink resolution, and deterministic modification times via a configurable clock. It implements the \RealpathFS\ and \WritableFS\ interfaces to emulate file system behavior without touching the real disk.

tsc/internal/vfs/vfstest · high confidence

New language service utility package for formatting, imports, and AST analysis

The \tsc/internal/ls/lsutil\ package introduces core utilities that power several language service capabilities. It implements the logic for Organize Imports, including configurable sorting (ordinal, natural, unicode) and type-ordering preferences. It adds support for parsing and applying Format Code Settings, allowing users to control indentation, semicolon preferences, and whitespace. The package also provides AST navigation helpers to detect Automatic Semicolon Insertion (ASI) candidates and determine if nodes are completed, which improves code completion and editing accuracy. Additionally, it handles the serialization and deserialization of User Preferences, mapping VS Code settings to internal language service configurations.

tsc/internal/ls/lsutil · high confidence

New module resolution engine with per-directory caching and static overrides

The \tsc/internal/module\ package introduces a new module resolution implementation that includes per-directory caching for module and type reference directives to improve performance and consistency. It adds a \StaticResolver\ component, allowing external systems to provide pre-computed module resolution results that bypass the standard file-system lookup, which is useful for IDEs or build tools that already know the resolved paths. The resolver also handles edge cases such as trailing slashes in \node\_modules\ paths and race conditions during concurrent resolution, ensuring that imports like \pkg\ and \pkg/\ resolve correctly even in multi-threaded environments. Also in this area: 2 commits (0 fixes) modifying github.com/microsoft/TypeScript/tsc, tsc.

tsc/internal/module · medium confidence · unverified

New pure-Go filesystem watcher with platform-specific backends

The \tsc/internal/fswatch\ package introduces a new, pure-Go filesystem watcher (ported and modified from \@parcel/watcher\) that replaces previous implementation dependencies. It provides native backends for Linux (fanotify and inotify), macOS (FSEvents and kqueue), Windows, and BSDs, eliminating the need for external C++ build tools. The watcher simplifies the event model to 'update' and 'delete' kinds, implements per-backend debouncing to prevent callback starvation, and adds features like recursive watching, symlink handling, and shared FSEvents streams on macOS for improved performance.

tsc/internal/fswatch · high confidence

New stringtestutil package with Dedent function

A new internal test utility package (tsc/internal/testutil/stringtestutil) has been added, providing a Dedent function that normalizes multi-line strings by removing common leading indentation, converting tabs to spaces, and trimming blank lines. This utility supports internal testing workflows by simplifying string comparison in tests.

tsc/internal/testutil/stringtestutil · high confidence

New stringutil package with JS-compatible Unicode casing and identifier checks

The \tsc/internal/stringutil\ package introduces a new set of string utilities for the TypeScript compiler, including JS-compatible case conversion (\ToLowerJS\, \ToUpperJS\) that adheres to ECMAScript semantics (including Final\_Sigma handling), locale-insensitive identifier validation (\IsUnicodeIdentifierStart\, \IsUnicodeIdentifierPart\) based on Unicode 15.1.0, and URI encoding (\EncodeURI\). These changes ensure that string operations like casing and identifier parsing match JavaScript runtime behavior rather than Go's default Unicode tables, improving consistency for users relying on these features in code generation and analysis.

tsc/internal/stringutil · high confidence

New test harness utilities for file system recording and source map verification

The \tsc/internal/testutil/harnessutil\ package introduces new infrastructure to support the compiler test runner. It adds an \OutputRecorderFS\ that intercepts file writes to capture emitted outputs for baseline comparison, and a \sourceMap\_recorder\ that decodes and validates source map mappings against expected spans to ensure accurate position mapping in test diffs.

tsc/internal/testutil/harnessutil · high confidence

Ported TypeScript code formatter to Go and enabled it in the language server

The code formatting engine has been ported from TypeScript to Go and is now active within the language server. This change introduces a new formatting subsystem in \tsc/internal/format\ that handles document, selection, and on-enter formatting via \FormatSpan\ and related API functions. It includes a rule-based formatting engine (\rules.go\, \rule.go\) and smart indentation logic (\indent.go\) that respects user preferences such as tab size, newline characters, and brace placement. The port also addresses several formatting stability and correctness issues, including proper handling of JSDoc comments, multi-line argument lists, method chains, and tab indentation, ensuring that formatted output remains stable across multiple passes.

tsc/internal/format · high confidence

Ported the TypeScript scanner and regular expression parser to Go

The scanner implementation in \tsc/internal/scanner\ has been ported to Go, introducing new files for the core scanner logic (\scanner.go\), regular expression parsing (\regexp.go\), and Unicode property tables (\unicodeproperties.go\). This change enables the Go-based compiler to tokenize source code, including support for modern regex features like Unicode sets and named capture groups, while preserving JSDoc type information and handling UTF-8/UTF-16 character boundaries correctly. The port includes corresponding unit tests (\scanner\_test.go\) to verify scanning behavior for strings, JSDoc normalization, and surrogate pair handling.

tsc/internal/scanner · high confidence

Support for const enum inlining with synthetic comment preservation

The TypeScript compiler now includes a transformer that inlines const enums, replacing property and element access expressions with their literal values (numbers, strings, or bigints). Additionally, when the remove-comments option is disabled, the original source text of the enum member is preserved as a synthetic trailing comment on the inlined value, ensuring that debugging information and documentation comments remain visible in the emitted output.

tsc/internal/transformers/inliners · high confidence

Watch mode now tracks file dependencies via a new VFS wrapper

A new \trackingvfs\ package has been added to wrap the file system interface, recording every file path accessed during compilation (including non-existent paths from failed module resolution). This enables watch mode to precisely identify which files and directories the compiler depended on, improving the accuracy of change detection.

tsc/internal/vfs/trackingvfs · high confidence

Behavioural changes

1 commit (0 fixes) modifying packages/typescript/bin, tools/hooks

A change to existing behaviour in packages/typescript/bin, tools/hooks — 1 commit, 3 files: “Apply the TypeScript 7 repository layout”.

packages/typescript/bin, tools/hooks · medium confidence · unverified

1 commit (0 fixes) modifying tools/gen-preferences

A change to existing behaviour in tools/gen-preferences — 1 commit, 3 files: “\[api\] Ensure completion symbols returned to API always come from the current snapshot (\#64554)” (refs \#64554).

tools/gen-preferences · medium confidence · unverified

1 commit (0 fixes) modifying tools/signing

A change to existing behaviour in tools/signing — 1 commit, 1 file: “Switch signing command to msbuild (\#64555)” (refs \#64555).

tools/signing · medium confidence · unverified

1 commit (0 fixes) modifying tsc/testdata/baselines/reference/tsc/contentMapperInclusion

A change to existing behaviour in tsc/testdata/baselines/reference/tsc/contentMapperInclusion — 1 commit, 2 files: “Allow content mapper registrations to filter their files with an \include\ glob, inherit default \extension\ from manifest (\#65047)” (refs \#65047).

tsc/testdata/baselines/reference/tsc/contentMapperInclusion · medium confidence · unverified

1 commit (0 fixes) modifying tsc/testdata/baselines/reference/tsoptions/removedWatchOptions

A change to existing behaviour in tsc/testdata/baselines/reference/tsoptions/removedWatchOptions — 1 commit, 7 files: “Generate compiler option definitions, create JSON schema (\#64457)” (refs \#64457).

tsc/testdata/baselines/reference/tsoptions/removedWatchOptions · medium confidence · unverified

10 commits (1 fix) modifying packages/typescript/scripts

A change to existing behaviour in packages/typescript/scripts — 10 commits (1 fix), 2 files: “Bump and clean up deps, raise min local node version (\#64054)”; “Make all the codegen we do incremental (\#64331)”; “Make the API disposable (\#64117)”; and 7 more (refs \#64054, \#64331, \#64117, \#64400, \#64023, …).

packages/typescript/scripts · medium confidence · unverified

10 commits (2 fixes) modifying tsc/testdata/baselines/reference/tsbuildWatch/roots

A change to existing behaviour in tsc/testdata/baselines/reference/tsbuildWatch/roots — 10 commits (2 fixs), 2 files: “Drop old references and code relating to the tsgo name (\#65373)”; “Porting of tsc -b -w (microsoft/typescript-go\#1684)”; “Rebuilt build mode around \fswatch\ package (microsoft/typescript-go\#4326)”; and 7 more (refs \#65373, \#64096, \#64712, \#65116).

tsc/testdata/baselines/reference/tsbuildWatch/roots · medium confidence · unverified

10 commits (2 fixes) modifying tsc/testdata/baselines/reference/tsc/showConfig

A change to existing behaviour in tsc/testdata/baselines/reference/tsc/showConfig — 10 commits (2 fixs), 21 files: “Drop old references and code relating to the tsgo name (\#65373)”; “feat: add iterator methods to esnext (\#64095)”; “Support source phase imports (\#63915)”; and 7 more (refs \#65373, \#64095, \#63915, \#64096, \#64093, …).

tsc/testdata/baselines/reference/tsc/showConfig · medium confidence · unverified

11 commits (2 fixes) modifying tsc/internal/ipc

A change to existing behaviour in tsc/internal/ipc — 11 commits (2 fixs), 14 files: “Add wasip1 support, enabling CLI, API, browser, sync/async (\#64174)”; “Drop old references and code relating to the tsgo name (\#65373)”; “Avoid async IPC panic on peer close (\#64142)”; and 8 more (refs \#64174, \#65373, \#64142, \#64818, \#64163, …).

tsc/internal/ipc · medium confidence · unverified

12 commits (1 fix) modifying tsc/cmd

A change to existing behaviour in tsc/cmd — 12 commits (1 fix), 13 files: “Handle tsc watch and profiling signals (\#64085)”; “Add wasip1 support, enabling CLI, API, browser, sync/async (\#64174)”; “\[api\] Improve callback FS (\#64447)”; and 9 more (refs \#64085, \#64174, \#64447, \#64818, \#64986, …).

tsc/cmd · medium confidence · unverified

12 commits (3 fixes) modifying tsc/internal/contentmapper

A change to existing behaviour in tsc/internal/contentmapper — 12 commits (3 fixs), 6 files: “Rename the Go module to github.com/microsoft/TypeScript/tsc”; “Content mappers (microsoft/typescript-go\#4712)”; “Update to Go 1.27 (\#63902)”; and 9 more (refs \#63902, \#65353, \#65492, \#65432, \#64898, …).

tsc/internal/contentmapper · medium confidence · unverified

13 commits (1 fix) modifying tools/scripts/gen

A change to existing behaviour in tools/scripts/gen — 13 commits (1 fix), 8 files: “Just check package.json for vendor code up-to-date-ness (\#64393)”; “Allow other VS Code extensions to install LSP middleware on language feature responses (\#64583)”; “Drop old references and code relating to the tsgo name (\#65373)”; and 10 more (refs \#64393, \#64583, \#65373, \#64331, \#64392, …).

tools/scripts/gen · medium confidence · unverified

14 commits (0 fixes) modifying tools/gen-proto

A change to existing behaviour in tools/gen-proto — 14 commits, 2 files: “\[api\] Generate optional protocol properties with \\| undefined\ so we can stop doing silly spreads to satisfy \exactOptionalPropertyTypes\ (\#64245)”; “Complete the CompilerOptions API surface (\#64078)”; “\[api\] Ensure completion symbols returned to API always come from the current snapshot (\#64554)”; and 11 more (refs \#64245, \#64078, \#64554, \#64879, \#64299, …).

tools/gen-proto · medium confidence · unverified

14 commits (2 fixes) modifying packages/vscode-typescript/src

A change to existing behaviour in packages/vscode-typescript/src — 14 commits (2 fixs), 27 files: “Allow other VS Code extensions to install LSP middleware on language feature responses (\#64583)”; “Add wasip1 support, enabling CLI, API, browser, sync/async (\#64174)”; “Drop old references and code relating to the tsgo name (\#65373)”; and 11 more (refs \#64583, \#64174, \#65373, \#63985, \#65406, …).

packages/vscode-typescript/src · medium confidence · unverified

14 commits (2 fixes) modifying tsc/internal/project/ata

A change to existing behaviour in tsc/internal/project/ata — 14 commits (2 fixs), 8 files: “Speed up iofs file writes, remove writeByteOrderMark entirely (microsoft/typescript-go\#3008)”; “Support disabling ATA via VS Code settings for inferred projects (microsoft/typescript-go\#3584)”; “Rename the Go module to github.com/microsoft/TypeScript/tsc”; and 11 more (refs \#64836, \#64159).

tsc/internal/project/ata · medium confidence · unverified

17 commits (2 fixes) modifying packages/typescript/src/ast

A change to existing behaviour in packages/typescript/src/ast — 17 commits (2 fixs), 15 files: “Fix AST optionality (\#65063)”; “Support import attributes on ambient modules (\#63931)”; “Add getJSDocCommentsAndTags back with functionality of 6.0 (\#64455)”; and 14 more (refs \#65063, \#63931, \#64455, \#63915, \#64141, …).

packages/typescript/src/ast · medium confidence · unverified

19 commits (4 fixes) modifying tsc

A change to existing behaviour in tsc — 19 commits (4 fixs), 137 files: “Handle tsc watch and profiling signals (\#64085)”; “Restore fourslash marker selection and native JS test discovery (\#65476)”; “Route typed emit paths to per-file trace threads (\#65468)”; and 16 more (refs \#64085, \#65476, \#65468, \#65480, \#65463, …). Also in this area: Introduce bundled package for embedded TypeScript library definitions.

tsc/internal/osutil · medium confidence · unverified

2 commits (0 fixes) modifying packages/typescript-wasip1-wasm, packages/typescript/src/wasm, tools/scripts/wasm

A change to existing behaviour in packages/typescript-wasip1-wasm, packages/typescript/src/wasm, tools/scripts/wasm — 2 commits, 8 files: “Add wasip1 support, enabling CLI, API, browser, sync/async (\#64174)”; “Flip files from CRLF to LF (\#64046)” (refs \#64174, \#64046).

packages/typescript-wasip1-wasm, packages/typescript/src/wasm, tools/scripts/wasm · medium confidence · unverified

2 commits (0 fixes) modifying packages/typescript/vendor

A change to existing behaviour in packages/typescript/vendor — 2 commits, 41 files: “Apply the TypeScript 7 repository layout”; “Update dependencies (\#65131)” (refs \#65131).

packages/typescript/vendor · medium confidence · unverified

2 commits (1 fix) modifying tsc/testdata/baselines/reference/tsc/compilerOptionChanges

A change to existing behaviour in tsc/testdata/baselines/reference/tsc/compilerOptionChanges — 2 commits (1 fix), 105 files: “Drop old references and code relating to the tsgo name (\#65373)”; “Fix compiler option invalidation in incremental builds (\#64712)” (refs \#65373, \#64712).

tsc/testdata/baselines/reference/tsc/compilerOptionChanges · medium confidence · unverified

20 commits (2 fixes) modifying packages/typescript/src/api/node

A change to existing behaviour in packages/typescript/src/api/node — 20 commits (2 fixs), 9 files: “Add wasip1 support, enabling CLI, API, browser, sync/async (\#64174)”; “Bump and clean up deps, raise min local node version (\#64054)”; “Fix AST optionality (\#65063)”; and 17 more (refs \#64174, \#64054, \#65063, \#63931, \#63915, …).

packages/typescript/src/api/node · medium confidence · unverified

20 commits (3 fixes) modifying tsc/internal/bundled/libs

A change to existing behaviour in tsc/internal/bundled/libs — 20 commits (3 fixs), 116 files: “Remove misplaced parameter description from RegExp\#source JSDoc (\#64352)”; “Update submodule (microsoft/typescript-go\#4477)”; “feat: add iterator methods to esnext (\#64095)”; and 17 more (refs \#64352, \#64095, \#63915, \#64096, \#65012, …).

tsc/internal/bundled/libs · medium confidence · unverified

3 commits (0 fixes) modifying (repo-wide)

A change to existing behaviour in (repo-wide) — 3 commits, 4 files: “Drop old references and code relating to the tsgo name (\#65373)”; “Content mappers (microsoft/typescript-go\#4712)”; “feat: add es2026 as a valid target and lib (\#64096)” (refs \#65373, \#64096).

(repo-wide) · medium confidence · unverified

3 commits (0 fixes) modifying packages/typescript/enums

A change to existing behaviour in packages/typescript/enums — 3 commits, 76 files: “Optimized insertion-ordered symbol tables (\#64979)”; “\[api\] Remove package.json "imports" (\#64879)”; “Flip files from CRLF to LF (\#64046)” (refs \#64979, \#64879, \#64046).

packages/typescript/enums · medium confidence · unverified

3 commits (0 fixes) modifying tsc/testdata/baselines/reference/tscWatch/commandLine

A change to existing behaviour in tsc/testdata/baselines/reference/tscWatch/commandLine — 3 commits, 3 files: “Drop old references and code relating to the tsgo name (\#65373)”; “Port tsc --init (microsoft/typescript-go\#2033)”; “Generate compiler option definitions, create JSON schema (\#64457)” (refs \#65373, \#64457).

tsc/testdata/baselines/reference/tscWatch/commandLine · medium confidence · unverified

31 commits (4 fixes) modifying tools/scripts/tsc

A change to existing behaviour in tools/scripts/tsc — 31 commits (4 fixs), 14 files: “Bump and clean up deps, raise min local node version (\#64054)”; “Recover concrete AST nodes from their embedded headers (\#64798)”; “Make all the codegen we do incremental (\#64331)”; and 28 more (refs \#64054, \#64798, \#64331, \#65063, \#63931, …).

tools/scripts/tsc · medium confidence · unverified

380 commits (37 fixes) modifying (repo-wide)

A change to existing behaviour in (repo-wide) — 380 commits (37 fixs), 15 files: “Git ignore package-lock.json and forcibly update in workflow”; “Fix typo in README: behavorial -\> behavioral (\#63492)”; “move to contribute header”; and 346 more (refs \#63492, \#32942, \#33425, \#65320, \#53291, …).

(repo-wide) · low confidence · unverified

4 commits (0 fixes) modifying tsc/testdata/baselines/reference/tsc/contentMapperFailures

A change to existing behaviour in tsc/testdata/baselines/reference/tsc/contentMapperFailures — 4 commits, 3 files: “Drop old references and code relating to the tsgo name (\#65373)”; “Redo localization for onboarding (\#63987)”; “Content mappers (microsoft/typescript-go\#4712)”; and 1 more (refs \#65373, \#63987, \#64096).

tsc/testdata/baselines/reference/tsc/contentMapperFailures · medium confidence · unverified

40 commits (5 fixes) modifying src/testRunner/unittests/services/extract

A change to existing behaviour in src/testRunner/unittests/services/extract — 40 commits (5 fixs), 5 files. Also in this area: 1 commit (0 fixes) modifying github.com/microsoft/TypeScript/tsc; 2 commits (0 fixes) modifying github.com/microsoft/TypeScript/tsc, tsc.

github.com/microsoft/TypeScript/tsc · low confidence · unverified

5 commits (0 fixes) modifying tools/cmd

A change to existing behaviour in tools/cmd — 5 commits, 5 files: “Apply the TypeScript 7 repository layout”; “Replace Quill CLI with focused Mach-O tool (\#63954)”; “Update localization files (\#64608)”; and 2 more (refs \#63954, \#64608, \#64046, \#64664).

tools/cmd · medium confidence · unverified

5 commits (2 fixes) modifying tsc/internal/nativepath

A change to existing behaviour in tsc/internal/nativepath — 5 commits (2 fixs), 10 files: “Fix Darwin realpath test lint failures (microsoft/typescript-go\#4879)”; “Fix watches on symlinked directories (microsoft/typescript-go\#4376)”; “Remove macOS realpath fast path (microsoft/typescript-go\#4867)”; and 2 more (refs \#64832, \#65024).

tsc/internal/nativepath · medium confidence · unverified

52 commits (4 fixes) modifying packages/typescript/src/api

A change to existing behaviour in packages/typescript/src/api — 52 commits (4 fixs), 17 files: “Properly serialize \+Infinity\, \-Infinity\, and \NaN\ number literal type values in API (\#64241)”; “\[api\] Add \.isReadonlySymbol()\ method (\#63943)”; “Add wasip1 support, enabling CLI, API, browser, sync/async (\#64174)”; and 49 more (refs \#64241, \#63943, \#64174, \#63956, \#64408, …).

packages/typescript/src/api · medium confidence · unverified

54 commits (3 fixes) modifying packages/typescript/src/api/sync

A change to existing behaviour in packages/typescript/src/api/sync — 54 commits (3 fixs), 6 files: “Properly serialize \+Infinity\, \-Infinity\, and \NaN\ number literal type values in API (\#64241)”; “\[api\] Add \.isReadonlySymbol()\ method (\#63943)”; “Add wasip1 support, enabling CLI, API, browser, sync/async (\#64174)”; and 51 more (refs \#64241, \#63943, \#64174, \#63956, \#63911, …).

packages/typescript/src/api/sync · medium confidence · unverified

56 commits (3 fixes) modifying packages/typescript/src/api/async

A change to existing behaviour in packages/typescript/src/api/async — 56 commits (3 fixs), 6 files: “Properly serialize \+Infinity\, \-Infinity\, and \NaN\ number literal type values in API (\#64241)”; “\[api\] Add \.isReadonlySymbol()\ method (\#63943)”; “Add wasip1 support, enabling CLI, API, browser, sync/async (\#64174)”; and 53 more (refs \#64241, \#63943, \#64174, \#63956, \#63911, …).

packages/typescript/src/api/async · medium confidence · unverified

6 commits (0 fixes) modifying tools/customlint

A change to existing behaviour in tools/customlint — 6 commits, 53 files: “Apply the TypeScript 7 repository layout”; “Lint missing diagnostic formatting arguments (\#65103)”; “Lint writes to protected record kind fields (\#64791)”; and 3 more (refs \#65103, \#64791, \#64153, \#64159, \#65024).

tools/customlint · medium confidence · unverified

6 commits (0 fixes) modifying tools/scripts

A change to existing behaviour in tools/scripts — 6 commits, 5 files: “Drop old references and code relating to the tsgo name (\#65373)”; “Publish PR builds to npm for installation and the Playground (\#65406)”; “Apply the TypeScript 7 repository layout”; and 3 more (refs \#65373, \#65406, \#64286, \#64910, \#64046).

tools/scripts · medium confidence · unverified

7 commits (0 fixes) modifying packages/typescript/src/vscode

A change to existing behaviour in packages/typescript/src/vscode — 7 commits, 3 files: “Allow other VS Code extensions to install LSP middleware on language feature responses (\#64583)”; “\[api\] Expose API client modules from VS Code extension (\#64647)”; “Update dependencies (\#65131)”; and 4 more (refs \#64583, \#64647, \#65131, \#65047, \#64681, …).

packages/typescript/src/vscode · medium confidence · unverified

7 commits (0 fixes) modifying tsc/internal/stringutil/\_scripts

A change to existing behaviour in tsc/internal/stringutil/\_scripts — 7 commits, 1 file: “Bump and clean up deps, raise min local node version (\#64054)”; “Make all the codegen we do incremental (\#64331)”; “Use JS-compatible Unicode casing for intrinsic string mappings (microsoft/typescript-go\#3495)”; and 4 more (refs \#64054, \#64331, \#64400, \#65131, \#64046).

_tsc/internal/stringutil/\scripts · medium confidence · unverified

7 commits (1 fix) modifying tools/scripts/lsp

A change to existing behaviour in tools/scripts/lsp — 7 commits (1 fix), 7 files: “Allow other VS Code extensions to install LSP middleware on language feature responses (\#64583)”; “Drop old references and code relating to the tsgo name (\#65373)”; “\[api\] Fix named pipe / UDS creation (\#64818)”; and 4 more (refs \#64583, \#65373, \#64818, \#64400, \#65047, …).

tools/scripts/lsp · medium confidence · unverified

7 commits (1 fix) modifying tsc/internal/tracing

A change to existing behaviour in tsc/internal/tracing — 7 commits (1 fix), 2 files: “Drop old references and code relating to the tsgo name (\#65373)”; “Route typed emit paths to per-file trace threads (\#65468)”; “Rename the Go module to github.com/microsoft/TypeScript/tsc”; and 4 more (refs \#65373, \#65468, \#64691, \#64159).

tsc/internal/tracing · medium confidence · unverified

7 commits (3 fixes) modifying tsc/internal/project/background

A change to existing behaviour in tsc/internal/project/background — 7 commits (3 fixs), 2 files: “Rename the Go module to github.com/microsoft/TypeScript/tsc”; “Typed path prep bugfixes (\#64544)”; “Make concurrency regression tests independent of wall time (\#65353)”; and 4 more (refs \#64544, \#65353).

tsc/internal/project/background · medium confidence · unverified

7 commits (3 fixes) modifying tsc/testdata/baselines/reference/tsbuildWatch/dependencyUpdate

A change to existing behaviour in tsc/testdata/baselines/reference/tsbuildWatch/dependencyUpdate — 7 commits (3 fixs), 1 file: “Drop old references and code relating to the tsgo name (\#65373)”; “feat: add es2026 as a valid target and lib (\#64096)”; “Use package.json locations for build up-to-date checks (microsoft/typescript-go\#4301)”; and 4 more (refs \#65373, \#64096, \#64712, \#65116, \#64210).

tsc/testdata/baselines/reference/tsbuildWatch/dependencyUpdate · medium confidence · unverified

76 commits (26 fixes) modifying tsc/testdata/baselines/reference/conformance

A change to existing behaviour in tsc/testdata/baselines/reference/conformance — 76 commits (26 fixs), 22331 files: “fix(64665): fix emit crash for duplicate private names in decorated classes (\#64670)”; “Add baseline/diff generation for JS emit (microsoft/typescript-go\#651)”; “Full-signature types for JSDoc (microsoft/typescript-go\#1468)”; and 73 more (refs \#64670, \#64122, \#64556, \#64372, \#64566, …).

tsc/testdata/baselines/reference/conformance · medium confidence · unverified

8 commits (0 fixes) modifying tsc/internal/testutil/contentmappertest

A change to existing behaviour in tsc/internal/testutil/contentmappertest — 8 commits, 21 files: “Add wasip1 support, enabling CLI, API, browser, sync/async (\#64174)”; “Drop old references and code relating to the tsgo name (\#65373)”; “Rename the Go module to github.com/microsoft/TypeScript/tsc”; and 5 more (refs \#64174, \#65373, \#63902, \#63936, \#64042, …).

tsc/internal/testutil/contentmappertest · medium confidence · unverified

9 commits (0 fixes) modifying tsc/internal/vfs/vfsmatch

A change to existing behaviour in tsc/internal/vfs/vfsmatch — 9 commits, 7 files: “Make all the codegen we do incremental (\#64331)”; “Rename the Go module to github.com/microsoft/TypeScript/tsc”; “Avoid repeated realpath in vfsmatch (microsoft/typescript-go\#3825)”; and 6 more (refs \#64331, \#64544, \#64877, \#65047, \#64159).

tsc/internal/vfs/vfsmatch · medium confidence · unverified

9 commits (1 fix) modifying packages/typescript/lib

A change to existing behaviour in packages/typescript/lib — 9 commits (1 fix), 5 files: “Add wasip1 support, enabling CLI, API, browser, sync/async (\#64174)”; “Drop old references and code relating to the tsgo name (\#65373)”; “Publish PR builds to npm for installation and the Playground (\#65406)”; and 6 more (refs \#64174, \#65373, \#65406, \#63940, \#64879, …).

packages/typescript/lib · medium confidence · unverified

9 commits (1 fix) modifying tsc/internal/pprof

A change to existing behaviour in tsc/internal/pprof — 9 commits (1 fix), 2 files: “Handle tsc watch and profiling signals (\#64085)”; “Simplify quick profiling (microsoft/typescript-go\#2404)”; “Add pprof commands to VS Code extension (microsoft/typescript-go\#2474)”; and 6 more (refs \#64085, \#65408, \#65338, \#64832).

tsc/internal/pprof · medium confidence · unverified

9 commits (1 fix) modifying tsc/testdata/baselines/reference/tsc/generateTrace

A change to existing behaviour in tsc/testdata/baselines/reference/tsc/generateTrace — 9 commits (1 fix), 5 files: “Restore 4 more lost PRs (microsoft/typescript-go\#3634)”; “Drop old references and code relating to the tsgo name (\#65373)”; “Route typed emit paths to per-file trace threads (\#65468)”; and 6 more (refs \#65373, \#65468, \#64979, \#64096, \#64922).

tsc/testdata/baselines/reference/tsc/generateTrace · medium confidence · unverified

Build mode command-line option validation and parsing

The TypeScript build mode (\tsc -b\) now enforces stricter validation on command-line arguments. It rejects invalid combinations of flags, such as using \--clean\ with \--force\, \--verbose\, or \--watch\, and prevents mixing \--watch\ with \--dry\. It also validates the new \--builders\ option, requiring a numeric value greater than 1 to control concurrent project builds, and rejects incompatible compiler options like \--strict\ or \--tsBuildInfoFile\ when used with build mode. Additionally, it correctly parses multiple flags and project paths regardless of their order in the argument list.

tsc/testdata/baselines/reference/tsoptions/commandLineParsing/parseBuildOptions · high confidence

The OS-backed virtual file system now protects all file system calls (reads, writes, directory checks, and realpaths) with semaphores to prevent resource exhaustion and ensure thread safety. This change also introduces optimized realpath resolution on Linux and macOS, better support for Windows junctions and symlinks, and ensures that file writes automatically create parent directories when necessary.

tsc/internal/vfs/osvfs · high confidence

Declaration emit now skips output files when errors occur

When declaration generation encounters errors (such as TS4023, where an exported variable cannot be named), the compiler now prevents the creation of \.d.ts\ files for the affected project. This ensures that downstream consumers do not receive incomplete or invalid type definitions. The change applies to both standard and incremental builds, as verified by test baselines showing \DiagnosticsPresent\_OutputsSkipped\ when errors are present.

tsc/testdata/baselines/reference/tsc/declarationEmit · high confidence

Enhanced VS QuickInfo with symbol icons and colorized text

The Visual Studio QuickInfo hover display now includes a symbol icon alongside the type signature, and the text content is colorized by classification type (e.g., keywords, punctuation, names). This change updates the baseline expectations for the \tsc/testdata/baselines/reference/fourslash/vSQuickInfo\ test suite to reflect the new structured output format containing \ImageElement\ and \ClassifiedTextElement\ nodes.

tsc/testdata/baselines/reference/fourslash/vSQuickInfo · high confidence

Go-to-definition now supports TypeScript declaration maps and content mappers for source navigation

Developers can now use Go-to-Definition to navigate from compiled JavaScript or bundled code back to the original TypeScript source files when declaration maps are available. This change adds baseline tests for declaration map navigation, including handling of relative source roots, non-monotonic mappings, and out-of-date mappings. It also introduces support for content mappers, enabling definition lookups for virtual or transformed files such as Vue single-file components, Astro globals, and CSS modules, as well as handling edge cases like duplicate mappings and disabled features.

tsc/testdata/baselines/reference/fourslash/goToDefinition · high confidence

Implement TypeScript output path resolution and rootDir validation

The compiler now calculates output file locations by determining a common source directory—defaulting to the tsconfig.json directory when rootDir is unspecified—and validates that source files included in the configuration actually reside within that root directory. This ensures that emitted JavaScript, declaration files, and source maps are placed in the correct output structure relative to the project root, preventing layout errors and crashes during emit.

tsc/internal/outputpaths · high confidence

Improved Quick Info display for JSDoc and destructured bindings

The Quick Info (hover) feature now correctly preserves and displays JSDoc comments on destructured interface properties and mapped type properties, and properly handles aliased default function exports. Additionally, hover information for optional members now accurately reflects their optional status, and JSDoc type tags are correctly interpreted to show the appropriate TypeScript types.

tsc/testdata/baselines/reference/fourslash/quickInfo · high confidence

Improved TypeScript watch mode file-system detection and incremental build stability

The TypeScript watch mode (\tsc --watch\) now more reliably detects file-system changes, including new files in deeply nested or previously non-existent directories, modifications to symlinked \node\_modules\ targets, and the addition or removal of \@types\ packages. Incremental builds have been stabilized to correctly handle scenarios where global declarations are removed or modules temporarily disappear, ensuring that diagnostic errors are accurately reported and cleared as the project state changes without crashing or losing context.

tsc/testdata/baselines/reference/tscWatch/commandLineWatch · high confidence

Improved command-line argument parsing and validation

The TypeScript compiler's command-line parsing now provides more robust handling of compiler options. It offers spelling suggestions for misspelled flags (e.g., suggesting 'declaration' for '--declarations') and enforces stricter validation for options that require arguments, such as --lib, --module, and --jsx, by listing valid values in error messages. Additionally, it correctly handles edge cases like trailing whitespace in --lib values, explicit boolean flag settings, and the use of 'null' to reset certain options on the command line. It also ensures that build-only flags like --clean and --dry are only accepted with --build, and validates file specifications for --excludeDirectories and --excludeFiles to prevent invalid parent directory references.

tsc/testdata/baselines/reference/tsoptions/commandLineParsing/parseCommandLine · high confidence

Improved tsconfig extends handling and diagnostic reporting

The TypeScript compiler now provides more robust handling of configuration inheritance via the \extends\ keyword. It correctly resolves configuration paths, including those involving symlinks and node\_modules, and properly expands template variables like \${configDir}\ in paths such as \include\, \typeRoots\, and \paths\. Additionally, the compiler now validates that the \include\, \exclude\, and \files\ options in extended configurations contain only string values, emitting specific errors (TS5024) when non-string types are encountered, rather than failing silently or with less clear diagnostics.

tsc/testdata/baselines/reference/tsc/extends · high confidence

Introduce NodeBuilder type definitions and interfaces

Added the \types.go\ file in the \tsc/internal/nodebuilder\ package, which defines the \SymbolTracker\ interface and \Flags\/\InternalFlags\ constants used by the node builder and emit resolver. This establishes the foundational type contracts for the node builder implementation being ported.

tsc/internal/nodebuilder · high confidence

Introduce balanced checker affinity for concurrent type checking

The compiler now uses a weighted graph-partitioning algorithm (FENNEL) to assign source files to type checkers based on their import relationships. This ensures that files with high import affinity are processed by the same checker, reducing duplicated cache construction and improving parallel type-checking performance. The system automatically selects between source-dominated and declaration-heavy balancing policies depending on the project's workload and the number of available checkers.

tsc/internal/compiler · high confidence

Introduce content-mapper support and fix UTF-8 position conversion in the language server converter

The \tsc/internal/ls/lsconv\ package now handles content-mapped virtual files (such as those from Svelte, Vue, or Astro) by mapping positions and ranges between virtual output and original source text, allowing language server features to work correctly across these hybrid files. Additionally, the position conversion logic has been corrected to handle invalid UTF-8 sequences properly, ensuring that line and character offsets are calculated accurately even when source files contain malformed bytes.

tsc/internal/ls/lsconv · high confidence

Lazy repository path resolution with cross-platform slash handling

The repo package now lazily resolves the repository root and test data paths using sync.OnceValue, ensuring these expensive filesystem operations are performed only once. The implementation correctly handles forward slashes returned by runtime.Caller on all platforms by converting them via filepath.FromSlash, preventing path resolution failures in environments where slash normalization is inconsistent.

tsc/internal/repo · high confidence

New Go implementation for TypeScript module specifier generation

The \tsc/internal/modulespecifiers\ package introduces a new Go-based implementation for generating import paths and auto-import specifiers. This change adds logic to determine the preferred import specifier format (such as \.js\, \.ts\, or extensionless) based on user preferences, compiler options like \allowImportingTsExtensions\, and the existing import style of the source file. It also implements support for excluding specific modules from auto-imports via regex patterns, handles project reference outputs, and improves symlink resolution during path generation.

tsc/internal/modulespecifiers · high confidence

New file-system watch manager with case-sensitivity and Docker fallback support

The TypeScript CLI now uses a new \watchmanager\ package to handle file-system watching, replacing the previous implementation. This change introduces a \WatchBackend\ abstraction that defaults to the \fswatch\ library, with a fallback to \inotify\ when \fanotify\ encounters errors (fixing watch issues in Docker environments). The watch manager now correctly handles case-sensitive file systems, ensuring that directories differing only by casing are treated as distinct and that watch coverage respects case rules. It also includes logic to ignore \.git\ and \node\_modules\ directories during watching, and manages recursive vs. non-recursive watch coverage accurately, preventing unnecessary rebuilds while ensuring all relevant changes trigger cycles.

tsc/internal/execute/watchmanager · high confidence

New package.json parsing infrastructure with robust caching and validation

The \tsc/internal/packagejson\ package introduces a complete rewrite of how \package.json\ files are parsed and cached, supporting advanced module resolution features like \typesVersions\, \exports\, and \imports\. The new system includes a thread-safe \InfoCache\ to avoid contention during concurrent builds, a \JSONValue\ type that preserves raw JSON types for accurate diagnostics, and an \Expected\[T\]\ wrapper to distinguish between missing, null, and invalid fields. It also handles edge cases such as duplicate JSON keys and validates the structure of \exports\ and \imports\ fields to improve error reporting for users. Also in this area: 2 commits (0 fixes) modifying github.com/microsoft/TypeScript/tsc, tsc.

tsc/internal/packagejson · medium confidence · unverified

Parser now lazily parses JSDoc in TypeScript files

The parser in \tsc/internal/parser\ has been updated to defer the parsing of JSDoc comments in TypeScript (\.ts\) files until they are actually accessed, rather than processing them eagerly during the initial parse. This change, implemented in \jsdoc.go\ and \parser.go\, improves performance by skipping unnecessary work for nodes that do not reference JSDoc, while still ensuring JSDoc is parsed when needed for features like type inference or documentation display. JavaScript files continue to parse JSDoc eagerly to maintain existing behavior for type annotations.

tsc/internal/parser · high confidence

Port core TypeScript emit transformers to Go

The \tsc/internal/transformers/tstransforms\ package now includes the Go implementations of the core TypeScript emit transformers: \TypeEraser\ (removes type annotations, interfaces, and unused modifiers), \RuntimeSyntax\ (converts TypeScript-specific syntax like enums and namespaces to JavaScript), \ImportElision\ (removes unused imports and exports), \LegacyDecorators\ (handles \--experimentalDecorators\ transformation), and \Metadata\ (generates \--emitDecoratorMetadata\). These changes ensure that the Go-based compiler correctly strips TypeScript-only constructs and transforms language features into valid JavaScript output, matching the behavior of the original TypeScript compiler.

tsc/internal/transformers/tstransforms · high confidence

The internal virtual file system implementation has been restructured to improve file system interaction accuracy and performance. It now correctly handles symbolic links and Windows junctions (reparse points) when listing directory entries, ensuring these special file types are identified and processed appropriately. Additionally, file content is read directly into strings using unsafe pointer conversion to avoid unnecessary memory copies, and UTF-16 files with byte order marks are decoded correctly. These changes provide a more robust foundation for file operations across different operating systems.

tsc/internal/vfs/internal · high confidence

Refactored language service change tracking and deletion logic

The internal change-tracking system has been restructured into a dedicated package with new files for deletion logic, the main tracker, and implementation details. This refactoring introduces smarter handling for deleting various AST nodes (such as import specifiers, parameters, and variable declarations) to preserve formatting and comments correctly, and adds robust support for content-mapped files by detecting unmappable edits and deduplicating changes across projections to prevent corrupting the source text.

tsc/internal/ls/change · high confidence

Refined tsc command-line argument parsing and terminal color behavior

The TypeScript compiler's command-line interface now handles several edge cases more robustly: the \-p\ flag correctly accepts paths to both configuration files and directories containing a \tsconfig.json\, and an empty \tsconfig.json\ is treated as a valid empty configuration. The \--init\ command now generates a modern default configuration (using \nodenext\ module and \esnext\ target) and properly validates arguments, reporting errors for unknown options or invalid enum values. Additionally, terminal output coloring is now controlled by the \FORCE\_COLOR\ and \NO\_COLOR\ environment variables, allowing users to explicitly enable or disable ANSI color codes in compiler diagnostics and help text.

tsc/testdata/baselines/reference/tsc/commandLine · high confidence

Signature help now supports VS colorization and improved JSDoc display

Signature help tooltips in Visual Studio now include syntax coloring (classifying method names, parameters, and keywords) via the new \\_vs\_colorizedLabel\ field. The feature also delivers improved JSDoc handling, including better support for namespace types in \@returns\ and \@type\ tags, correct display of optional parameters and default values, and proper markdown formatting for parameter documentation.

tsc/testdata/baselines/reference/fourslash/signatureHelp · high confidence

Switch to Go 1.27 json/v2 with invalid UTF-8 tolerance

The internal JSON serialization layer has been migrated from the standard library to the new Go 1.27 json/v2 package. This change updates the underlying marshalling and unmarshalling logic to use the v2 API, which may alter performance characteristics and error handling behavior. Additionally, the JSON encoder is now configured to allow invalid UTF-8 sequences by default, meaning malformed text in JSON payloads will no longer cause serialization errors but will be passed through.

tsc/internal/json · high confidence

Type acquisition parsing now validates tsconfig.json include/exclude paths

The TypeScript compiler now parses the \typeAcquisition\ section of \tsconfig.json\ and validates it against the specified \include\ and \exclude\ paths. If the configured paths do not match any actual files in the project, the compiler emits a TS18003 error indicating that no inputs were found, rather than silently proceeding or ignoring the configuration.

tsc/testdata/baselines/reference/tsc/typeAcquisition · high confidence

Updated baseline for JSX closing tag auto-insertion with complex names and trivia

The test baseline for the \jsxClosingTag\ command has been updated to reflect correct auto-insertion behavior for JSX tags containing trivia (comments, whitespace) and complex naming patterns. Specifically, the system now correctly generates closing tags for namespaced elements (e.g., \ns:sometag\), property-access components (e.g., \someModule.SomeComponent\), and tags with special characters like \$\ (properly escaped in snippets). This ensures the editor's auto-insertion feature handles these edge cases accurately when users trigger closing tag insertion.

tsc/testdata/baselines/reference/fourslash/closingTag · medium confidence

Updated build-watch demo baselines for ES5 removal and circular reference detection

The test baselines in the \tsbuildWatch/demo\ directory have been updated to reflect two key behaviors in the TypeScript build watch mode. First, the compiler now emits error TS5108 when the \target\ option is set to \ES5\, which has been removed, causing builds to fail with diagnostics rather than generating outputs. Second, the system now correctly detects and reports circular project reference cycles (error TS6202) in watch mode, preventing infinite loops and skipping output generation until the cycle is resolved. These changes ensure that demo scenarios accurately represent the current error handling and validation logic for build references.

tsc/testdata/baselines/reference/tsbuildWatch/demo · high confidence

Updated compiler test fixtures to TypeScript 7 repository layout

The test fixtures in tsc/testdata/fixtures/compiler have been reorganized to match the TypeScript 7 repository layout. This change introduces a new \_namespaces directory containing barrel files (ts.ts, ts.moduleSpecifiers.ts, ts.performance.ts) that re-export the compiler's internal modules, and updates internal modules (such as binder, builder, checker, and commandLineParser) to import from these namespaces instead of direct relative paths.

tsc/testdata/fixtures · high confidence

Updated composite build baselines for new compiler restrictions and JSX module handling

This update refreshes the TypeScript compiler test baselines in the composite build test suite to reflect several behavioral changes. The compiler now rejects the 'es5' target (error TS5108) and the 'module: none' setting, requiring modern module formats like 'es2015' or 'node16'. Additionally, the baselines capture stricter handling of synthetic JSX imports, specifically flagging errors when a CommonJS module attempts to import from an ESM module via 'jsxImportSource' (error TS1479), and verifying correct behavior when no JSX elements are present. The test cases also confirm that command-line overrides for 'composite' and 'tsBuildInfoFile' correctly interact with existing configuration files.

tsc/testdata/baselines/reference/tsc/composite · high confidence

Updated module resolution baselines for Node16 and pnpm workspaces

The TypeScript compiler's module resolution behavior has been updated, as reflected in new test baselines for \tsc/testdata/baselines/reference/tsc/moduleResolution\. The \alternateResult.js\ baseline confirms correct resolution of ESM/CJS conditional exports under \moduleResolution: node16\, including proper handling of \.mjs\/\.mts\ extensions and type declarations. The \package-json-scope.js\ baseline verifies that CommonJS files importing \.mjs\ files now correctly trigger TS1479 errors, enforcing module format consistency. Additionally, the \pnpm-style-layout.js\ baseline demonstrates that the compiler now correctly resolves packages within pnpm's nested \.pnpm\ directory structure, including accurate resolution of peer dependencies and symlinked packages.

tsc/testdata/baselines/reference/tsc/moduleResolution · high confidence

Updated rename-location baselines for import aliases, dynamic imports, and JSDoc tags

The \findRenameLocations\ test baselines have been refreshed to reflect improved handling of several edge cases. Renames now correctly propagate through import aliases (e.g., \import { X as Y }\), dynamic imports (\import('./foo')\), and re-exports (\export { X } from ...\). Additionally, the service now respects the \useAliasesForRename\ preference when generating edits and correctly identifies rename locations within JSDoc tags such as \@typedef\, \@callback\, \@see\, and \@link\.

tsc/testdata/baselines/reference/fourslash/findRenameLocations · high confidence

VS Find All References now includes classified definition text

The VS Find All References feature now returns syntax-highlighted (classified) definition text for symbols. Instead of plain text, the output includes structured runs with classification types (such as 'keyword', 'class name', 'method name', 'property name') and their corresponding text, allowing editors to render reference locations with appropriate syntax coloring.

tsc/testdata/baselines/reference/fourslash/vsFindAllReferences · high confidence

Watch mode now correctly handles noEmit with declaration and semantic errors

The TypeScript compiler's watch mode now correctly manages scenarios involving the \noEmit\ flag when declaration or semantic errors are present. Previously, errors related to private properties in exported classes (TS4094) or type mismatches (TS2322) might have interfered with the expected no-emit behavior or declaration generation. This update ensures that when \noEmit\ is enabled, the compiler still performs semantic analysis and reports errors accurately without generating output files, even if declaration errors occur. It also correctly handles syntax errors (TS1002) in watch mode, ensuring that the compiler state and file watching remain consistent across edits that introduce or fix these errors.

tsc/testdata/baselines/reference/tscWatch/noEmit · high confidence

Watch mode now tracks package.json changes for incremental build up-to-date checks

The TypeScript build mode (\tsc -b\) watch mode now monitors \package.json\ files for changes to module resolution, ensuring that adding, removing, or modifying a package's \package.json\ (such as \main\, \types\, or \typesVersions\ fields) triggers a rebuild. The test baselines confirm that the compiler now registers directory watches for \node\_modules\ and specific package directories, and updates the \.tsbuildinfo\ cache to record which \package.json\ files were involved in resolution (including tracking missing ones), so that subsequent file changes in those packages correctly invalidate the build state.

tsc/testdata/baselines/reference/tsbuildWatch/moduleResolution · high confidence

Watch mode reports syntax errors in tsconfig.json

When running TypeScript in build watch mode (tsc -b -w), syntax errors in the tsconfig.json file (such as missing commas in the files array) are now correctly reported to the user, and the compiler continues watching for changes instead of failing silently or ignoring the config error.

tsc/testdata/baselines/reference/tsbuildWatch/configFileErrors · high confidence

Test coverage

12 commits adding/updating tests in packages/vscode-typescript/test; 42 commits adding/updating tests in tsc/testdata/tests/cases/conformance; 77 commits adding/updating tests in packages/typescript/test; Add compiler test baselines for class declarations and 2D arrays; Added baseline tests for Go To Type Definition across diverse TypeScript constructs; Added baseline tests for document highlights; Added benchmark fixtures for compiler and library test data; Added compiler regression tests and API samples; Added fourslash test baselines for cross-project and declaration map scenarios; Added test baselines for Go to Source Definition; Added test baselines for TypeScript build watch mode with circular references and source maps; Added test baselines for concurrent project building with --builders; Added test baselines for library resolution with libReplacement in watch mode; Added test utilities for Fourslash completion assertions; Added test utilities for TypeScript project sessions and typings installation; Expanded test coverage for transpile and declaration emit scenarios; New auto-import test infrastructure; New test fixture utility for managing file-based test data; New test harness for tsc execution, build, and watch modes; New test utilities for parsing and emission validation; New test utility for executing Node.js scripts in tests; New test utility package for panic assertions and thread-mode detection; Ported 255 Fourslash tests to Go; Updated Find All References test baselines; Updated Go to Implementation test baselines; Updated TypeScript build baseline tests; Updated baseline expectations for global query diagnostics; Updated baselines for TypeScript build watch mode with config extends and re-exports; Updated compiler baselines for incremental builds and file-casing checks; Updated document symbol baselines for fourslash tests; Updated inlay hints test baselines; Updated library resolution baselines for TypeScript 6.0 behavior; Updated project reference test baselines for TypeScript 6.0 behavior; Updated syntax and semantic diagnostic baselines for JavaScript and TypeScript files; Updated test baselines for TypeScript build watch mode program updates; Updated test baselines for TypeScript build watch mode with noEmit; Updated transpile baseline tests for isolated declarations; Updated tsc noEmit test baselines for composite and incremental builds; Updated tsconfig file-matching baseline tests.

Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.

How this codebase got here

Baseline

  • First survey — no prior run to compare against. CAI 56.

Lenses

  • Code Health 57
  • Architecture 65
  • Maturity 51
  • Readiness 69
  • Security 80
  • Performance 60

Changes since last survey

  • 300 commits — 237 feature/other, 63 fixes

By area

  • tsc/internal — 127 commits
  • tsc/testdata — 103 commits
  • packages/typescript — 24 commits
  • tools/pipelines — 12 commits
  • .github/workflows — 10 commits
  • (root) — 8 commits
  • packages/vscode-typescript — 5 commits
  • .github/skills — 4 commits
  • tools/loc — 2 commits
  • .github/actions — 1 commit
  • .github/copilot-instructions.md — 1 commit
  • tools/customlint — 1 commit
  • tools/scripts — 1 commit
  • tsc/cmd — 1 commit

Notable commits

  • fix: Fix auto-import not offering unsaved exports after auto-imports were computed (#64960)
  • fix: Fix compiler option invalidation in incremental builds (#64712)
  • fix: Fix incremental diagnostics after global file deletion (#64845)
  • fix: Add a regression test for narrowing NoInfer union constituents of non-generic aliases (#64969)
  • fix: Add regression test for inference recursion hang (#65362)
  • fix: Fix AST generation of diamond inheritance and add missing DeclarationBase extends (#64503)
  • fix: Fix AST optionality (#65063)
  • fix: Fix Array.at documentation: change 'code unit' to 'item' (#64536)
  • fix: Fix CommonJS export assignments for shadowed names in function-local loops (#64676)
  • fix: Fix LS crashes found in checker order fuzz (#65390)
  • fix: Fix OneLoc pipeline (#64414)
  • fix: Fix PR package publishing (#65416)
  • fix: Fix TODO in psuedochecker's typeNodeCouldReferToUndefined (#65470)
  • fix: Fix TS1450 diagnostic severity for invalid dynamic imports (#65317)
  • fix: Fix workspace/symbol crash on an inferred project without a program (#64642)
  • fix: Fix broken augmentExportEquals2 test fixture (#64748)
  • fix: Fix call hierarchy file node paths (#64108)
  • fix: Fix content mapper's virtual file module format (#65432)
  • fix: Fix crash in isolatedDeclarations on this.x = … assignments (#64471)
  • fix: Fix crash in decorator metadata emit for decorated object literal members (#64633)
  • …and 280 more

Architecture

  • 0 containers · 1 bounded contexts · 0 dependency edges (baseline)

Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.

Survey your own repository

microsoft/TypeScript was measured the same way every project in this corpus was: the same rubric, at a pinned commit, with the result published in full. Point a surveyor at a repository you know and see whether you agree with it.

About this page

  • The score is its most recent published measurement, taken on 14 November 2026 at a pinned commit. It is not a live figure and does not change until the project is measured again.
  • Measured at commit 6bdcb54d23f41bc7098c1f3488ac599c75b852ca — the exact code this score is about.
  • Scored under rubric-2026.11.4 — the same rubric and the same method as every other entry in this index.
  • Measured by Canine Code Analyzer (cca.canine.dev) using cca measure-2026.11.65+preprod-e1a3b69fc8ee.