Skip to content
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

Fix incorrect completions when identifier overlaps with keyword #138

Merged
merged 1 commit into from
Nov 22, 2023

Conversation

OskarDamkjaer
Copy link
Collaborator

We have logic for knowing when to complete the next vs current word. Our logic only moved the cursor back for identifier, so it didn't work when there was overlap between identfiers and keywords. For example:

SHOW DAT correctly suggests DATABASE
but
SHOW DATA would not.

Comment on lines +1 to +5
---
'@neo4j-cypher/language-support': patch
---

Fix incorrect completions when identifier overlaps with keyword
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Only comment is this should not be included in the pr I think and we should bunch them up before doing a release? Rather than creating this patch.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will not trigger a release, only add a changeset right? It's nice to add the changeset relating to the commit at the same time we do the commit IMO

@OskarDamkjaer OskarDamkjaer merged commit 08db455 into main Nov 22, 2023
3 checks passed
@OskarDamkjaer OskarDamkjaer deleted the fix_overlapping_completions branch November 22, 2023 13:12
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.

2 participants