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

Update vscode-languageclient and refactor (a lot of TLC) #4131

Merged
merged 5 commits into from
Aug 12, 2022

Conversation

andyleejordan
Copy link
Member

Hopefully fixes #4128 by eliminating race conditions in the LanguageClient's connection process.

Also update our engine to align with ADS's update to 1.62.0.
Unfortunately, we still have unresolved work pending their update to
1.65.0.
@andyleejordan andyleejordan marked this pull request as ready for review August 12, 2022 20:51
@andyleejordan andyleejordan requested a review from a team August 12, 2022 20:51
Copy link
Collaborator

@SeeminglyScience SeeminglyScience left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! well done 🎉

(after tests pass ofc)

Lots of clean-up, a little refactoring, and most importantly, a less
buggy `LanguageClient` implementation (which is less prone to race
conditions). Also handle disposal of handler registrations.
It's faster...it reads better.
This is necessary to take the language client library update.
Unfortunately it means that ADS won't be able to take the next update to
our extension until they catch up to at least this engine version. It
could be worse, we didn't have to bump to 1.7x.
@andyleejordan andyleejordan changed the title Update vscode-languageclient and refactor Update vscode-languageclient and refactor (a lot of TLC) Aug 12, 2022
@ghost ghost added Area-Startup Issue-Bug A bug to squash. labels Aug 12, 2022
@andyleejordan andyleejordan merged commit e980d34 into main Aug 12, 2022
@andyleejordan andyleejordan deleted the andschwa/update-lsp branch August 12, 2022 21:40
@andyleejordan
Copy link
Member Author

FYI @Charles-Gagnon we had to bump our engine to 1.65 in order to (finally) take the language client library update. What's ADS's ETA to merge 1.65?

@Charles-Gagnon
Copy link

No exact ETA at this point in time - we're working on another update currently though (probably for October/November) that may get up that far, if not then it'll be sometime early next year.

@andyleejordan
Copy link
Member Author

No worries, if you need we can back-port some patches and cut you a new release, but hopefully you can just take this one sooner rather than later!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Engine Area-Startup Issue-Bug A bug to squash. Issue-Enhancement A feature request (enhancement).
Projects
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Language client failed to start in newest preview in Windows PowerShell 5.1
3 participants