Skip to content

fix: exception in Outline view when LS fails to start (#1239) - #1249

Merged
sebthom merged 1 commit into
eclipse-lsp4e:mainfrom
sebthom:issue-1239
Apr 14, 2025
Merged

fix: exception in Outline view when LS fails to start (#1239)#1249
sebthom merged 1 commit into
eclipse-lsp4e:mainfrom
sebthom:issue-1239

Conversation

@sebthom

@sebthom sebthom commented Apr 12, 2025

Copy link
Copy Markdown
Member

Ensure getServerCapabilitiesAsync() fails gracefully when serverCapabilities is unexpectedly null.


Disclaimer: I haven't seen the reported issue myself, but I’ve improved getServerCapabilitiesAsync() anyways to handle a potential null value more gracefully. Additionally, I’ve marked serverCapabilities as volatile to address possible visibility issues that could lead also to unexpected NPEs.

…1239)

Ensure getServerCapabilitiesAsync() fails gracefully when
serverCapabilities is unexpectedly null.
@sebthom
sebthom merged commit b591ac1 into eclipse-lsp4e:main Apr 14, 2025
@sebthom
sebthom deleted the issue-1239 branch May 27, 2025 13:26
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