Skip to content

Delegate Pylance language-client lifecycle to Pylance with compatibility fallback #26334

In review

Description

@bschnurr

Move Pylance language-client lifecycle ownership (start, stop, and restart) to the Pylance extension while preserving compatibility with independently updated Python and Pylance extensions.

Summary

  • Advertise supportsSelfManagedPylance: true on the Python extension's pylance API (Node and Browser).
  • Delegate start, stop, and
    estart to Pylance when Pylance advertises supportsSelfManagedLifecycle: true.
  • Retain the legacy Python-managed client lifecycle and shared output channel as a compatibility fallback for older Pylance versions.

Related companion PR: https://github.com/microsoft/pyrx/pull/10248

Activity

  1. added
    triage-needed
    on Dec 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    triage-needed

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions