Files
Viper_VSCode/architecture/generated/features/feat-cli-and-vs-code-extension.md
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

18 KiB

CLI and VS Code Extension

Feature path: CLI and VS Code Extension

Implementation summary

  • Files: 11
  • Symbols: 78

Primary files

These are the main implementation files attached to this semantic node.

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

Symbol preview (40 of 78)

Symbol Kind Source
main function packages/pyright/packages/pyright-internal/src/nodeMain.ts
run function packages/pyright/packages/pyright-internal/src/nodeServer.ts
getConnectionOptions function packages/pyright/packages/pyright-internal/src/nodeServer.ts
processArgs function packages/pyright/packages/pyright-internal/src/pyright.ts
runSingleThreaded function packages/pyright/packages/pyright-internal/src/pyright.ts
runMultiThreaded function packages/pyright/packages/pyright-internal/src/pyright.ts
runWorkerMessageLoop function packages/pyright/packages/pyright-internal/src/pyright.ts
verifyPackageTypes function packages/pyright/packages/pyright-internal/src/pyright.ts
accumulateReportDiagnosticStats function packages/pyright/packages/pyright-internal/src/pyright.ts
buildTypeCompletenessReport function packages/pyright/packages/pyright-internal/src/pyright.ts
printTypeCompletenessReportText function packages/pyright/packages/pyright-internal/src/pyright.ts
printUsage function packages/pyright/packages/pyright-internal/src/pyright.ts
getVersionString function packages/pyright/packages/pyright-internal/src/pyright.ts
printVersion function packages/pyright/packages/pyright-internal/src/pyright.ts
reportDiagnosticsAsJson function packages/pyright/packages/pyright-internal/src/pyright.ts
isDiagnosticIncluded function packages/pyright/packages/pyright-internal/src/pyright.ts
convertDiagnosticCategoryToSeverity function packages/pyright/packages/pyright-internal/src/pyright.ts
convertDiagnosticToJson function packages/pyright/packages/pyright-internal/src/pyright.ts
reportDiagnosticsAsText function packages/pyright/packages/pyright-internal/src/pyright.ts
logDiagnosticToConsole function packages/pyright/packages/pyright-internal/src/pyright.ts
parseThreadsArgValue function packages/pyright/packages/pyright-internal/src/pyright.ts
main function packages/pyright/packages/pyright-internal/src/pyright.ts
PyrightFileSystem class packages/pyright/packages/pyright-internal/src/pyrightFileSystem.ts
PyrightFileSystem.mkdirSync method packages/pyright/packages/pyright-internal/src/pyrightFileSystem.ts
PyrightFileSystem.chdir method packages/pyright/packages/pyright-internal/src/pyrightFileSystem.ts
PyrightFileSystem.writeFileSync method packages/pyright/packages/pyright-internal/src/pyrightFileSystem.ts
PyrightFileSystem.rmdirSync method packages/pyright/packages/pyright-internal/src/pyrightFileSystem.ts
PyrightFileSystem.unlinkSync method packages/pyright/packages/pyright-internal/src/pyrightFileSystem.ts
PyrightFileSystem.createWriteStream method packages/pyright/packages/pyright-internal/src/pyrightFileSystem.ts
PyrightFileSystem.copyFileSync method packages/pyright/packages/pyright-internal/src/pyrightFileSystem.ts
PyrightServer class packages/pyright/packages/pyright-internal/src/server.ts
PyrightServer.getSettings method packages/pyright/packages/pyright-internal/src/server.ts
PyrightServer.createBackgroundAnalysis method packages/pyright/packages/pyright-internal/src/server.ts
PyrightServer.createHost method packages/pyright/packages/pyright-internal/src/server.ts
PyrightServer.createImportResolver method packages/pyright/packages/pyright-internal/src/server.ts
PyrightServer.executeCommand method packages/pyright/packages/pyright-internal/src/server.ts
PyrightServer.isLongRunningCommand method packages/pyright/packages/pyright-internal/src/server.ts
PyrightServer.isRefactoringCommand method packages/pyright/packages/pyright-internal/src/server.ts
PyrightServer.executeCodeAction method packages/pyright/packages/pyright-internal/src/server.ts
PyrightServer.createProgressReporter method packages/pyright/packages/pyright-internal/src/server.ts
38 additional symbols omitted

Dependencies

Imported by:

  • packages/pyright/packages/pyright-internal/src/commands/createTypeStub.ts
  • packages/pyright/packages/pyright-internal/src/commands/dumpFileDebugInfoCommand.ts
  • packages/pyright/packages/pyright-internal/src/common/envVarUtils.ts
  • packages/pyright/packages/pyright-internal/src/common/languageServerInterface.ts
  • packages/pyright/packages/pyright-internal/src/languageServerBase.ts
  • packages/pyright/packages/pyright-internal/src/languageService/analyzerServiceExecutor.ts
  • packages/pyright/packages/pyright-internal/src/languageService/codeActionProvider.ts
  • packages/pyright/packages/pyright-internal/src/languageService/fileWatcherDynamicFeature.ts
  • packages/pyright/packages/pyright-internal/src/languageService/workspaceSymbolProvider.ts

Imports:

  • packages/pyright/packages/pyright-internal/src/analyzer/analysis.ts
  • packages/pyright/packages/pyright-internal/src/analyzer/cacheManager.ts
  • packages/pyright/packages/pyright-internal/src/analyzer/importResolver.ts
  • packages/pyright/packages/pyright-internal/src/analyzer/packageTypeReport.ts
  • packages/pyright/packages/pyright-internal/src/analyzer/packageTypeVerifier.ts
  • packages/pyright/packages/pyright-internal/src/analyzer/pythonPathUtils.ts
  • packages/pyright/packages/pyright-internal/src/analyzer/service.ts
  • packages/pyright/packages/pyright-internal/src/analyzer/sourceFile.ts
  • packages/pyright/packages/pyright-internal/src/analyzer/sourceFileInfo.ts
  • packages/pyright/packages/pyright-internal/src/analyzer/typeStubWriter.ts
  • packages/pyright/packages/pyright-internal/src/backgroundAnalysis.ts
  • packages/pyright/packages/pyright-internal/src/backgroundAnalysisBase.ts
  • packages/pyright/packages/pyright-internal/src/commands/commandController.ts
  • packages/pyright/packages/pyright-internal/src/common/asyncInitialization.ts
  • packages/pyright/packages/pyright-internal/src/common/cancellationUtils.ts
  • packages/pyright/packages/pyright-internal/src/common/chokidarFileWatcherProvider.ts
  • packages/pyright/packages/pyright-internal/src/common/commandLineOptions.ts
  • packages/pyright/packages/pyright-internal/src/common/configOptions.ts
  • packages/pyright/packages/pyright-internal/src/common/console.ts
  • packages/pyright/packages/pyright-internal/src/common/core.ts
  • packages/pyright/packages/pyright-internal/src/common/debug.ts
  • packages/pyright/packages/pyright-internal/src/common/deferred.ts
  • packages/pyright/packages/pyright-internal/src/common/diagnostic.ts
  • packages/pyright/packages/pyright-internal/src/common/diagnosticSink.ts
  • packages/pyright/packages/pyright-internal/src/common/envVarUtils.ts
  • packages/pyright/packages/pyright-internal/src/common/fileBasedCancellationUtils.ts
  • packages/pyright/packages/pyright-internal/src/common/fileSystem.ts
  • packages/pyright/packages/pyright-internal/src/common/fullAccessHost.ts
  • packages/pyright/packages/pyright-internal/src/common/host.ts
  • packages/pyright/packages/pyright-internal/src/common/languageServerInterface.ts
  • packages/pyright/packages/pyright-internal/src/common/pathUtils.ts
  • packages/pyright/packages/pyright-internal/src/common/progressReporter.ts
  • packages/pyright/packages/pyright-internal/src/common/pythonVersion.ts
  • packages/pyright/packages/pyright-internal/src/common/realFileSystem.ts
  • packages/pyright/packages/pyright-internal/src/common/serviceKeys.ts
  • packages/pyright/packages/pyright-internal/src/common/serviceProvider.ts
  • packages/pyright/packages/pyright-internal/src/common/serviceProviderExtensions.ts
  • packages/pyright/packages/pyright-internal/src/common/streamUtils.ts
  • packages/pyright/packages/pyright-internal/src/common/textRange.ts
  • packages/pyright/packages/pyright-internal/src/common/timing.ts
  • packages/pyright/packages/pyright-internal/src/common/uri/uri.ts
  • packages/pyright/packages/pyright-internal/src/common/uri/uriUtils.ts
  • packages/pyright/packages/pyright-internal/src/languageServerBase.ts
  • packages/pyright/packages/pyright-internal/src/languageService/codeActionProvider.ts
  • packages/pyright/packages/pyright-internal/src/partialStubService.ts
  • packages/pyright/packages/pyright-internal/src/readonlyAugmentedFileSystem.ts