Skip to content

Conversation

@lahodaj
Copy link
Contributor

@lahodaj lahodaj commented Mar 30, 2025

Three smallish improvements here:

  • in cpplite.editor, when one of ccls or clangd is not specified in the settings, the path for the given server is null, and this null is sent to List.of, but List.of is null averse, and throws an exception, breaking the CPPLite C/C++ support (as even the one server that is specified won't be able to run, as the exception happens too soon). This PR proposes one way to fix that, but there are other ways.
  • in lsp.client, if the server does not provide document symbol provider, don't use it for breadcrumbs (otherwise it tends to fail with an exception)
  • in lsp.client, CompletionItem.getLabelDetails().getDescription() may be null - account for that.

@lahodaj lahodaj added the C/C++ label Mar 30, 2025
@lahodaj lahodaj added this to the NB26 milestone Mar 30, 2025
Copy link
Contributor

@matthiasblaesing matthiasblaesing left a comment

Choose a reason for hiding this comment

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

Only eyeballed this, but looks sane to me. Thank you.

@lahodaj lahodaj merged commit 4ee1cc7 into apache:master Apr 4, 2025
31 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants