-
Notifications
You must be signed in to change notification settings - Fork 107
[3] refactor: improve & simplify tree-sitter context-tracking #595
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: refactor/object-reference
Are you sure you want to change the base?
[3] refactor: improve & simplify tree-sitter context-tracking #595
Conversation
| .await; | ||
|
|
||
| // no completions in the values list! | ||
| assert_no_complete_results( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
deleted this for now; I think we should have completions in the values list, but making sure they are the right suggestions is another issue.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
was unused since the latest revoke/grant parser refactors 👍🏻
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
seems like the compiler book starts to show its influence :D
ctx.node_under_cursordoes not need to be an Option; we should always have a tree.root_nodeTreesitterContextNext up, I'll make sure we open new scopes for CTEs, subqueries etc.
Also, I think the whole WrappingClause and WrappingNodes are unnecessary indirections – we can just as easily check the tree-sitter node kind
&strs.