You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Disable language services if Pyrefly extension installed + active (#24987)
For #24850
Summary:
Background:
A new typechecker called Pyrefly will be featured at Pycon with a
[talk](https://us.pycon.org/2025/schedule/presentation/118/),
[website/sandbox](https://pyrefly.org/) (still WIP), and
[extension](https://marketplace.visualstudio.com/items?itemName=meta.pyrefly)
(still WIP). This extension will provide ultrafast typechecking and
language services. When the Pyrefly extension is installed,
`ms-python.python` should not start Jedi or Pylance unless
[`python.pyrefly.disableLanguageServices`](facebook/pyrefly@4d7e23c)
is set to `true`.
Because of the separation of vscode's `getExtensions` API and config
reading logic, I chose to augment `DefaultLSType` with fallback
information in case Pyrefly is disabled. This lets `configSettings` pick
the correct jedi/pylance without knowing if Pyrefly will be enabled or
disabled.
Test Plan:
still can't get pyright to work in the local extension build but I do
see my breakpoints hit and the correct languageServer set
https://github.com/user-attachments/assets/395bacbb-7ad0-4357-b084-cd5e88062801
0 commit comments