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

internal: Refactor language client handling #13426

Merged
merged 6 commits into from
Oct 17, 2022

Conversation

Veykril
Copy link
Member

@Veykril Veykril commented Oct 17, 2022

Follow up to #12847 (turns out they fixed parts of the problem)

The PR will attempt to allow us to dispose more resources at will, so that we can implement restarts for the server properly instead of restating the entire extension as well as allowing us to implement a stop command.

Closes #12936
Closes #4697

@Veykril
Copy link
Member Author

Veykril commented Oct 17, 2022

Stop and start server commands are implemented now. For some reason disposing a language client doesn't properly get rid of it in VSCode, so by constantly restarting the server via the reload/start commands one will slowly leak memory 🎉 At this point I don't wanna question the VSCode internals anymore though.

Ideally we would never dispose the client, but that's not an option as we want to change the server path and initialization options between restarts, neither of which is supported...

@Veykril Veykril marked this pull request as ready for review October 17, 2022 13:46
@Veykril
Copy link
Member Author

Veykril commented Oct 17, 2022

@bors r+
This might break things (though I don't think it should) so let's merge this now given we just had a stable release to test

@bors
Copy link
Contributor

bors commented Oct 17, 2022

📌 Commit d63c44e has been approved by Veykril

It is now in the queue for this repository.

@bors
Copy link
Contributor

bors commented Oct 17, 2022

⌛ Testing commit d63c44e with merge 067c410...

@bors
Copy link
Contributor

bors commented Oct 17, 2022

☀️ Test successful - checks-actions
Approved by: Veykril
Pushing 067c410 to master...

1 similar comment
@bors
Copy link
Contributor

bors commented Oct 17, 2022

☀️ Test successful - checks-actions
Approved by: Veykril
Pushing 067c410 to master...

@bors
Copy link
Contributor

bors commented Oct 17, 2022

👀 Test was successful, but fast-forwarding failed: 422 Changes must be made through a pull request.

@bors bors merged commit 067c410 into rust-lang:master Oct 17, 2022
@Veykril Veykril deleted the client-refactor branch October 17, 2022 16:07
@Veykril Veykril changed the title Refactor language client handling internal: Refactor language client handling Oct 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants