Skip to content

Be willing to complete in the face of emptiness #772

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

Merged
merged 4 commits into from
May 22, 2025

Conversation

jennybc
Copy link
Member

@jennybc jennybc commented Apr 10, 2025

Fixes #770

See the last "move" in #805 (comment) for a concrete illustration of what this PR does. If the client asks for completions in any context where we aren't inside a node (i.e. we're just in the 'Program' node), we should basically send all composite completions, instead of no completions.

I've verified that the new tests fail on main and bugfix/nearest-enclosing-node for the reasons I expect.

@jennybc jennybc force-pushed the bugfix/completing-nothing branch from 8790f19 to cc1fb06 Compare May 14, 2025 21:17
@jennybc jennybc marked this pull request as ready for review May 14, 2025 23:03
@jennybc jennybc requested a review from DavisVaughan May 14, 2025 23:03
@jennybc jennybc changed the base branch from main to bugfix/nearest-enclosing-node May 14, 2025 23:06
@jennybc jennybc force-pushed the bugfix/completing-nothing branch 2 times, most recently from 58f15d0 to c403fb0 Compare May 21, 2025 23:43
@jennybc jennybc force-pushed the bugfix/nearest-enclosing-node branch from d8670d9 to 3a473a3 Compare May 22, 2025 01:36
@jennybc jennybc force-pushed the bugfix/completing-nothing branch from c403fb0 to b44d356 Compare May 22, 2025 01:36
Base automatically changed from bugfix/nearest-enclosing-node to main May 22, 2025 15:00
@jennybc jennybc force-pushed the bugfix/completing-nothing branch from de267c7 to 7953884 Compare May 22, 2025 15:30
@jennybc jennybc merged commit 3e41b3e into main May 22, 2025
6 checks passed
@jennybc jennybc deleted the bugfix/completing-nothing branch May 22, 2025 15:38
@github-actions github-actions bot locked and limited conversation to collaborators May 22, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

In a scenario where ark should provide all completions, it provides none
2 participants