Scoopfeeds — Intelligent news, curated.
computer-science

Meta's Pyrefly sabotages competing Python extensions without telling you

Hacker News · May 2, 2026, 4:34 PM

Key takeaways

  • These settings are never restored when Pyrefly is deactivated or uninstalled, leaving those extensions permanently broken until the user manually intervenes.
  • This has been verified by live reproduction on a real machine (see below).
  • export async function disableWindsurfPyrightIfInstalled() { const windsurfPyrightExtension = vscode.extensions.getExtension('codeium.windsurfpyright');

These settings are never restored when Pyrefly is deactivated or uninstalled, leaving those extensions permanently broken until the user manually intervenes.

This has been verified by live reproduction on a real machine (see below).

export async function disableWindsurfPyrightIfInstalled() { const windsurfPyrightExtension = vscode.extensions.getExtension('codeium.windsurfpyright'); if (windsurfPyrightExtension) { const config = vscode.workspace.getConfiguration('windsurfPyright'); await config.update('disableLanguageServices', true, vscode.ConfigurationTarget.Global); } } export async function disableBasedPyrightIfInstalled() { const basedPyrightExtension = vscode.extensions.getExtension('detachhead.basedpyright'); if (basedPyrightExtension) { const config = vscode.workspace.getConfiguration('basedpyright'); await config.update('disableLanguageServices', true, vscode.ConfigurationTarget.Global); } } export async function disableCursorPyrightIfInstalled() { const cursorPyrightExtension = vscode.extensions.getExtension('anysphere.cursorpyright'); if (cursorPyrightExtension) { const config = vscode.workspace.getConfiguration('cursorpyright'); await config.update('disableLanguageServices', true, vscode.ConfigurationTarget.Global); } } These are called unconditionally in lsp/src/extension.ts on activation.

Article preview — originally published by Hacker News. Full story at the source.
Read full story on Hacker News → More top stories
Aggregated and edited by the Scoop newsroom. We surface news from Hacker News alongside other reporting so you can compare coverage in one place. Editorial policy · Corrections · About Scoop