Files
TermiNexus e9e4693333
Some checks failed
Run mypy_primer on push / Run mypy_primer on push (push) Has been cancelled
Validation / Typecheck (push) Has been cancelled
Validation / Style (push) Has been cancelled
Validation / Test macos-latest (push) Has been cancelled
Validation / Test ubuntu-latest (push) Has been cancelled
Validation / Test windows-latest (push) Has been cancelled
Validation / Build (push) Has been cancelled
Validation / Required (push) Has been cancelled
初始化上传
2026-07-24 17:08:39 +08:00

22 KiB

Subsystem: src

Source files under src/. Grouped by the functional area each file was assigned to during semantic lifting.

  • Files: 18
  • Symbols (leaves): 296

CLI and VS Code Extension

  • src/nodeMain.ts — Entrypoint that starts the Pyright Node server and its background analysis runner
  • src/nodeServer.ts — Starts and configures the Pyright language server in Node, initializing deps and handling main vs worker threads
  • src/pyright.ts — Command-line entry point for the Pyright type checker, handling CLI args, diagnostics, and running analysis
  • src/pyrightFileSystem.ts — FileSystem wrapper that remaps URIs and delegates mutable file operations to an underlying real filesystem
  • src/server.ts — Implements the Pyright language server, handling workspace settings, background analysis, commands, and code actions
  • src/workspaceFactory.ts — Manages creation, initialization, and lifecycle of language server workspaces for the Pyright analyzer
  • src/langserver.ts — Starts the Pyright command-line entrypoint with zero worker threads
  • src/pyright.ts — Starts the Pyright CLI
  • src/cancellationUtils.ts — Provides a file-based cancellation strategy for the language server protocol
  • src/extension.ts — Registers and manages the Pyright language server client and related VS Code commands and configuration
  • src/server.ts — Starts the Pyright VS Code language server with one background worker

Import Resolution and Packaging

  • src/partialStubService.ts — Maps partially typed stub packages into corresponding installed library directories and provides a no-op alternative

Language Service Providers

Shared Runtime Infrastructure

  • src/backgroundAnalysis.ts — Provides classes to spawn and coordinate Pyright background analysis workers and runners
  • src/backgroundAnalysisBase.ts — Runs the analyzer in a background worker and manages program views, diagnostics, and result serialization
  • src/backgroundThreadBase.ts — Provides background thread classes and helpers for message serialization, logging, and cancellation
  • src/readonlyAugmentedFileSystem.ts — Provides a read-only augmented FileSystem that overlays mapped directories onto a backing FileSystem
  • src/types.ts — Exports types describing language server client capabilities and initialization options

Cross-subsystem dependencies

Imported by (external):

Imports (external):