AdaCore / ada_language_server

Server implementing the Microsoft Language Protocol for Ada and SPARK
GNU General Public License v3.0
228 stars 54 forks source link

V823-006: Add nullity check in Code_Action handler #1038

Closed AnthonyLeonardoGracio closed 2 years ago

AnthonyLeonardoGracio commented 2 years ago

We can get a null node if the cursor is located on a comment or an empty line for instance.

In that case, don't try to analyze the node to see which codeActions should be available.

Add a minimal test.