ty extension for Visual Studio CodeA Visual Studio Code extension for ty, an extremely fast Python type checker and language server, written in Rust.
The extension ships with FeaturesCurrently, the extension supports the following features:
UsageOnce installed in Visual Studio Code, ty will automatically execute when you open or edit a Python or Jupyter Notebook file. If you don't want to use ty for a specific workspace, disable this extension in VS code. Untrusted WorkspaceThe extension supports untrusted workspace. For untrusted workspaces, the extension always uses the bundled ty executable, ignoring the following settings: SettingsSee settings for an enumeration of all supported settings. Commands
RequirementsThis extension requires a version of the VSCode Python extension that supports Python 3.8+. ty itself is compatible with Python 3.8 to 3.13. Getting helpIf you encounter any issues with the extension or the language server, please refer to the logs in the corresponding output channel in VS Code. The extension logs are in the "ty" output channel and the language server logs are in the "ty Language Server" output channel. To open the output panel, use the The default log level for the extension is The default log level for the language server is
The language server logs can be directed to a file by setting the
To capture the LSP messages between the editor and the server, set the
This will be visible in the "ty Language Server Trace" output channel. The difference between
The extension also displays certain information in the status bar. This can be pinned to the status bar as a permanent item. How to pin the ty status item in VS Code toolbar?![]() The status bar item displays the status of the language server. It can also be clicked to open the ty output channel. LicenseThe ty extension is licensed under the MIT license (LICENSE). |