Skip to content

Conversation

@rolandwalker
Copy link
Contributor

Description

Identifiers which begin with numbers can still be completed by starting the text with a backquote. That might be a little fragile but works for now. Example:

last image

Example of the undesirable old behavior which is fixed in this PR:

Screenshot 2026-01-23 at 10 48 53 AM

Checklist

  • I've added this contribution to the changelog.md.
  • I've added my name to the AUTHORS file (or it's already there).
  • I ran uv run ruff check && uv run ruff format && uv run mypy --install-types . to lint and format the code.

@rolandwalker rolandwalker force-pushed the RW/do-not-attempt-to-complete-numbers branch 2 times, most recently from 2722ada to 83e7dbb Compare January 23, 2026 16:30
@rolandwalker rolandwalker self-assigned this Jan 23, 2026
Identifiers which begin with numbers can still be completed by starting
the text with a backquote.  That might be a little fragile but works
for now.
@rolandwalker rolandwalker force-pushed the RW/do-not-attempt-to-complete-numbers branch from 83e7dbb to bf7fb7a Compare January 23, 2026 18:23
Copy link
Contributor

@scottnemes scottnemes left a comment

Choose a reason for hiding this comment

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

Works as-is.

Either for future or to update this if you want, seems like it would be good to restrict the new number logic to only certain types of completions; i.e. keywords. I would expect you'd still want completions for tables, databases, and columns at least. Should be a limited case as it's not best practice to name stuff with numbers up front anyway, but something to consider. Since it works with the backticks as you mentioned that is doable now anyway.

@rolandwalker
Copy link
Contributor Author

Valid points! But I'm not clever enough about the completions to do that yet.

@rolandwalker rolandwalker merged commit 7f9842e into main Jan 23, 2026
8 checks passed
@rolandwalker rolandwalker deleted the RW/do-not-attempt-to-complete-numbers branch January 23, 2026 21:31
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.

3 participants