百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
T

ty-vscode

> 编程语言
开源

一个用于 ty 的 Visual Studio Code 扩展。

372 stars0 点赞0 次浏览
访问官网GitHub

工具介绍

一个用于 ty 的 Visual Studio Code 扩展。

ty extension for Visual Studio Code

A Visual Studio Code extension for ty, an extremely fast Python type checker and language server, written in Rust.

The extension ships with ty==0.0.77.

Installation

Install this extension from the Visual Studio Marketplace.

Features

Currently, the extension supports the following features:

  • File and workspace level diagnostics
  • Hover type information for symbols
  • Go to definition
  • Go to declaration
  • Go to type definition
  • Go to symbol
  • Open symbol by name
  • Find references
  • Inlay hints
  • Completions
  • Signature help
  • Highlight references of symbols
  • Semantic highlighting
  • Symbol renaming

Usage

Once installed in Visual Studio Code, ty will automatically execute when you open or edit a Python or Jupyter Notebook file.

The extension automatically disables the language server from the Python extension to avoid running two Python language servers. This is done by setting python.languageServer to "None" as a default configuration.

If you prefer to use ty only for type checking and want to use another language server for capabilities like hover, auto-completions, etc., you can override this by explicitly setting python.languageServer and ty.disableLanguageServices in your settings.json:

jsonc
{
  "python.languageServer": "Pylance",
  "ty.disableLanguageServices": true,
}

If you don't want to use ty for a specific workspace, disable this extension in VS code.

Untrusted Workspace

The extension supports untrusted workspace. For untrusted workspaces, the extension always uses the bundled ty executable and disables uv integration, ignoring the following settings:

  • ty.experimental.useUv
  • ty.importStrategy
  • ty.interpreter
  • ty.path

Settings

See the ty editor settings reference for an enumeration of all supported settings.

Commands

Command Description
ty: Restart server Restart the ty language server
ty: Show client logs Open the "ty" output channel
ty: Show server logs Open the "ty Language Server" output channel
ty: Open debug information Opens a window with debug information

Requirements

The ty extension works without additional extensions. For Python environment detection, we recommend one of the following:

  • Python Environments
  • Python

When either extension is available, ty can find an executable installed in the active Python environment. You can also set ty.interpreter to a Python executable or environment directory without either extension. When no interpreter is configured or selected, ty looks for an executable in the Python environment configured by environment.python or a local .venv. If no executable is found, the extension checks PATH before using its bundled ty executable.

Reload VS Code after installing or enabling either extension.

Finding a ty executable through a Python interpreter requires Python 3.8 or later. ty itself can analyze Python 3.8 to 3.14.

Getting help

See the troubleshooting guide to get more information on how to debug issues with the extension or the language server.

Publisher

This extension is published under the astral-sh account, which differs from our Ruff extension that uses the "charliermarsh" publisher. Both extensions are official products from Astral.

License

The ty extension is licensed under the MIT license (LICENSE).

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

TypeScript

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言