Skip to content

fix(hover): skip unsupported hover nodes#754

Merged
psteinroe merged 1 commit into
mainfrom
fix/hover-not-implemented
Jun 2, 2026
Merged

fix(hover): skip unsupported hover nodes#754
psteinroe merged 1 commit into
mainfrom
fix/hover-not-implemented

Conversation

@psteinroe
Copy link
Copy Markdown
Collaborator

Avoid crashing hover requests when the cursor is on a parsed node that the hover engine recognizes but does not yet implement, such as policy names in DROP POLICY statements. Unsupported hover targets now return no hover result instead of panicking, and empty hover results propagate as None through the LSP handler.

Regression Coverage

Adds a regression test for hovering over a quoted policy name in DROP POLICY IF EXISTS, matching the crash reported in the issue.

Fixes #753

@psteinroe psteinroe merged commit 32eee5c into main Jun 2, 2026
9 checks passed
@psteinroe psteinroe deleted the fix/hover-not-implemented branch June 2, 2026 12:56
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.

"Not yet implemented" error when hovering over the name of a policy to drop

1 participant