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

feat: introduce LanguageServerWrapper#getServerCapabilitiesAsync #1098

Merged
merged 1 commit into from
Sep 4, 2024

Conversation

sebthom
Copy link
Member

@sebthom sebthom commented Sep 4, 2024

getServerCapabilities() can block for up to 10 seconds. In code locations where the result is a future anyways it is useful to have a getServerCapabilitiesAsync()

I am planning to use getServerCapabilitiesAsync() more in future PRs where it will play nicely with the then suggested changes.

Addresses #628

@rubenporras
Copy link
Contributor

Other than my comment, the PR is a very nice idea.

Copy link
Contributor

@rubenporras rubenporras left a comment

Choose a reason for hiding this comment

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

thanks

@rubenporras rubenporras merged commit 5a9f461 into eclipse:main Sep 4, 2024
6 checks passed
@sebthom sebthom deleted the server-caps-async branch September 4, 2024 15:07
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.

2 participants