arduino / arduino-language-server

An Arduino Language Server based on Clangd to Arduino code autocompletion
GNU Affero General Public License v3.0
133 stars 11 forks source link

Do not bail-out if incorrect ranges are requested via DocumentSymbol #117

Closed cmaglie closed 2 years ago

cmaglie commented 2 years ago

Please check if the PR fulfills these requirements

What kind of change does this PR introduce? If invalid ranges are requested in DocumentSymbol the language server will just ignore and log them.

What is the current behavior? A jsonrpc error is returned, making the language server unusable on some IDE.

What is the new behavior? The invalid range is just ignored.