Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement updating for node-based language servers #9361

Merged
merged 11 commits into from Mar 15, 2024

Conversation

JosephTLyons
Copy link
Contributor

@JosephTLyons JosephTLyons commented Mar 14, 2024

Fixes: #9234

This PR will allow all (except vue) node-based language servers to update. It is mostly just throwing in a method into the NodeRuntime trait that is used for checking if a package doesn't exist locally, or is out of date, by checking the version against what's newest, and installing. If any parsing of the package.json data fails along the way, it assumes something has gone awry on the users system, logs the error, and then proceeds with trying to install the package, so that users don't get stuck on version if their package has some bad data. Outside of adding this method, it just adds that check in all of the language server's individual fetch_server_binary methods.

This doesn't address vue as it has a slightly different install code, but it should be fairly simple to add - I'll add it in in a follow-up.

Release Notes:

  • Added updating for node-based language servers (#9234).

@cla-bot cla-bot bot added the cla-signed The user has signed the Contributor License Agreement label Mar 14, 2024
@JosephTLyons JosephTLyons force-pushed the implement-updating-for-node-based-language-servers branch from ce8db5f to 04f18c6 Compare March 14, 2024 19:09
@JosephTLyons JosephTLyons marked this pull request as ready for review March 15, 2024 15:14
@JosephTLyons JosephTLyons merged commit 276139f into main Mar 15, 2024
10 checks passed
@JosephTLyons JosephTLyons deleted the implement-updating-for-node-based-language-servers branch March 15, 2024 15:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla-signed The user has signed the Contributor License Agreement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Download new pyright updates
1 participant