From 7d99b29e001599c6052f239b448e47755c7aa481 Mon Sep 17 00:00:00 2001 From: cezarc1 <1907982+cezarc1@users.noreply.github.com> Date: Tue, 5 May 2026 16:34:37 -0400 Subject: [PATCH 1/3] Use project-local ty for LSP server Switch from `uvx ty@latest server` to `uv run ty server` so the LSP uses the version pinned in the project. Also adds `.pyw` extension support and `restartOnCrash`/`maxRestarts` for stability. --- plugins/astral/.claude-plugin/plugin.json | 11 +++++++---- plugins/astral/skills/ty/SKILL.md | 2 +- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/plugins/astral/.claude-plugin/plugin.json b/plugins/astral/.claude-plugin/plugin.json index 78c7672..7f09d04 100644 --- a/plugins/astral/.claude-plugin/plugin.json +++ b/plugins/astral/.claude-plugin/plugin.json @@ -23,12 +23,15 @@ ], "lspServers": { "ty": { - "command": "uvx", - "args": ["ty@latest", "server"], + "command": "uv", + "args": ["run", "ty", "server"], "extensionToLanguage": { ".py": "python", - ".pyi": "python" - } + ".pyi": "python", + ".pyw": "python" + }, + "restartOnCrash": true, + "maxRestarts": 3 } } } diff --git a/plugins/astral/skills/ty/SKILL.md b/plugins/astral/skills/ty/SKILL.md index 8841bc4..da5a066 100644 --- a/plugins/astral/skills/ty/SKILL.md +++ b/plugins/astral/skills/ty/SKILL.md @@ -90,7 +90,7 @@ possibly-unresolved-reference = "warn" ## Language server This plugin automatically configures the ty language server for Python files -(`.py` and `.pyi`). +(`.py`, `.pyi`, and `.pyw`). ## Migrating from other tools From 76452b30f260d47a9aeca73cfa1af1815d25f32f Mon Sep 17 00:00:00 2001 From: cezarc1 <1907982+cezarc1@users.noreply.github.com> Date: Tue, 5 May 2026 16:34:37 -0400 Subject: [PATCH 2/3] Bump version to 0.1.1 --- plugins/astral/.claude-plugin/plugin.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/astral/.claude-plugin/plugin.json b/plugins/astral/.claude-plugin/plugin.json index 7f09d04..126a6a7 100644 --- a/plugins/astral/.claude-plugin/plugin.json +++ b/plugins/astral/.claude-plugin/plugin.json @@ -1,7 +1,7 @@ { "name": "astral", "description": "Skills for working with Python using Astral tools.", - "version": "0.1.0", + "version": "0.1.1", "author": { "name": "Astral", "url": "https://astral.sh" From 40430f988aeb808c5328b1fd57d80e3e80ef00c7 Mon Sep 17 00:00:00 2001 From: cezarc1 <1907982+cezarc1@users.noreply.github.com> Date: Tue, 5 May 2026 16:34:37 -0400 Subject: [PATCH 3/3] Update LSP docs to require ty as a project dependency --- README.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 4886703..c30654f 100644 --- a/README.md +++ b/README.md @@ -63,7 +63,11 @@ instruction to your `CLAUDE.md`: ### LSP -The plugin also provides the ty LSP. It requires `uvx` to be available. +The plugin also provides the ty LSP. It requires `ty` to be installed in your project: + +```bash +uv add --dev ty +``` ## License