8000 fix LS restart after exception by ghentschke · Pull Request #370 · eclipse-cdt/cdt-lsp · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

fix LS restart after exception #370

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

Merged
merged 2 commits into from
Sep 6, 2024

Conversation

ghentschke
Copy link
Contributor

due to this LSP4E change 1044 in LSP4E the restart of a LS, after an exception occurred during the start of the LS, is not possible anymore. This will be fixed.

due to a change in LSP4E the restart of a LS, after an exception
occurred during the start of the LS, is not possible anymore. This will
be fixed.
/**
* Get active language servers
* @return Stream of LanguageServerWrapper
*/
public static Stream<LanguageServerWrapper> getLanguageServers() {
Copy link
Member

Choose a reason for hiding this comment

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

Missed this earlier, but Stream in public signature is not so cool, mostly because of the Stream state-full nature.
I don't believe that we can have any performance impact if we switch public methods to any collection.
For private method Stream is fine

Copy link
Member
@ruspl-afed ruspl-afed left a comment

Choose a reason for hiding this comment

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

LGTM

@ghentschke ghentschke merged commit 8b144f0 into eclipse-cdt:master Sep 6, 2024
3 checks passed
@ghentschke
Copy link
Contributor Author

Thanks for review!

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.

3 participants
0