Skip to content

Use project-local ty for CC's LSP server#19

Open
cezarc1 wants to merge 3 commits into
astral-sh:mainfrom
cezarc1:fix/ty-lsp-config
Open

Use project-local ty for CC's LSP server#19
cezarc1 wants to merge 3 commits into
astral-sh:mainfrom
cezarc1:fix/ty-lsp-config

Conversation

@cezarc1

@cezarc1 cezarc1 commented May 5, 2026

Copy link
Copy Markdown

Switches from uvx ty@latest server to just uv run ty server so the LSP uses the version pinned in the project rather than always fetching latest. This keeps diagnostics consistent with what ty check actually reports locally.

Also adds .pyw (windows) to the supported extensions and sets restartOnCrash/maxRestarts for more reliable behavior.

verified that claude plugin validate plugins/astral passes.

@cezarc1 cezarc1 marked this pull request as draft May 5, 2026 20:00
@cezarc1 cezarc1 changed the title Fix ty LSP configuration Use project-local ty for CC's LSP server May 5, 2026
@cezarc1 cezarc1 force-pushed the fix/ty-lsp-config branch from 44422c7 to c37fe2e Compare May 5, 2026 20:23
@cezarc1 cezarc1 marked this pull request as ready for review May 5, 2026 20:30
cezarc1 added 3 commits May 5, 2026 16:34
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.
@cezarc1 cezarc1 force-pushed the fix/ty-lsp-config branch from f6a983e to 40430f9 Compare May 5, 2026 20:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant