# Pylance + Pyrefly: bring your preferred type checker to Visual Studio Code

DevFeed: [Pylance + Pyrefly: bring your preferred type checker to Visual Studio Code](<https://devfeed.tech/articles/pylance-pyrefly-bring-your-preferred-type-checker-to-visual-studio-code-93020.md>)

Original publisher: [Read original article](<https://devblogs.microsoft.com/python/announcing-tsp/>)

Author: Brett Cannon

Published: 2026-10-21T16:42:20Z

Content type: release

Language: en

Sources: [Microsoft Python Engineering](<https://devfeed.tech/sources/microsoft-python-engineering.md>)

Topics: [Visual Studio Code](<https://devfeed.tech/topics/visual-studio-code.md>), [code-completion](<https://devfeed.tech/topics/code-completion.md>)

Tags: [agentic](<https://devfeed.tech/tags/agentic.md>), [agentic-workflows](<https://devfeed.tech/tags/agentic-workflows.md>), [agents](<https://devfeed.tech/tags/agents.md>), [ai](<https://devfeed.tech/tags/ai.md>), [ai-ml](<https://devfeed.tech/tags/ai-ml.md>), [analysis](<https://devfeed.tech/tags/analysis.md>), [api](<https://devfeed.tech/tags/api.md>), [blog-post](<https://devfeed.tech/tags/blog-post.md>), [build](<https://devfeed.tech/tags/build.md>), [built-in](<https://devfeed.tech/tags/built-in.md>), [continuous-integration](<https://devfeed.tech/tags/continuous-integration.md>), [meta](<https://devfeed.tech/tags/meta.md>), [microsoft](<https://devfeed.tech/tags/microsoft.md>), [partnership](<https://devfeed.tech/tags/partnership.md>), [protocol](<https://devfeed.tech/tags/protocol.md>), [pylance](<https://devfeed.tech/tags/pylance.md>), [pyrefly](<https://devfeed.tech/tags/pyrefly.md>), [python](<https://devfeed.tech/tags/python.md>), [tsp](<https://devfeed.tech/tags/tsp.md>), [type](<https://devfeed.tech/tags/type.md>), [visual-studio-code](<https://devfeed.tech/tags/visual-studio-code.md>), [vs-code](<https://devfeed.tech/tags/vs-code.md>)

## AI overview

The Type Server Protocol (TSP) separates Pylance's VS Code intelligence features from the type checker, making the checker interchangeable. Pyright remains the default; developers can route diagnostics through Pyrefly while keeping Pylance completions, Quick Info, environment management, and GitHub Copilot integrations. Pylance can detect an installed Pyrefly and offer to switch, or users can select "Pylance + Pyrefly" in settings. The integration requires Pylance 2026.4.1 or newer and Pyrefly 0.60.0 or newer; Pylance can search for or download Pyrefly, and its version can be pinned or set to a local executable. The article says Pyrefly is also available as a standalone VS Code extension and for CI, while Pylance adds Copilot and broader Python tooling integrations.

## Source excerpt

Announcing the Type Server Protocol and our partnership with Meta The post Pylance + Pyrefly: bring your preferred type checker to Visual Studio Code appeared first on Microsoft for Python Developers Blog.