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

Checking for null capabilities. #7921

Merged
merged 1 commit into from
Oct 29, 2024

Conversation

lahodaj
Copy link
Contributor

@lahodaj lahodaj commented Oct 29, 2024

We unfortunately broke the ServerTest with:
#7750

This patch tries to account for capabilities that are null. I believe client.getNbCodeCapabilities() never returns null, but client.getNbCodeCapabilities().getClientCapabilities() does, currently.

@lahodaj lahodaj added Java [ci] enable extra Java tests (java.completion, java.source.base, java.hints, refactoring.java, form) LSP [ci] enable Language Server Protocol tests VSCode Extension [ci] enable VSCode Extension tests labels Oct 29, 2024
@lahodaj lahodaj added this to the NB25 milestone Oct 29, 2024
@sid-srini
Copy link
Contributor

Thank you so much.

sid-srini added a commit to sid-srini/javavscode that referenced this pull request Oct 29, 2024
… only

Backported apache/netbeans#7921 to fix unit tests breakage due to uninitialised
`NbCodeClientCapabilities.getClientCapabilities()` by adding a null check in the
initialisation of `lineFoldingOnly` in `TextDocumentServiceImpl.foldingRange()`.

Signed-off-by: Siddharth Srinivasan <[email protected]>
@lahodaj lahodaj merged commit 2eecf2a into apache:master Oct 29, 2024
37 checks passed
@lahodaj
Copy link
Contributor Author

lahodaj commented Oct 29, 2024

Thanks for the review!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Java [ci] enable extra Java tests (java.completion, java.source.base, java.hints, refactoring.java, form) LSP [ci] enable Language Server Protocol tests VSCode Extension [ci] enable VSCode Extension tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants