fix: Improve auto-complete behavior for aliases and maps#1987
fix: Improve auto-complete behavior for aliases and maps#1987kodiakhq[bot] merged 3 commits intomainfrom
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
🦋 Changeset detectedLatest commit: f201673 The changes in this PR will be included in the next version bump. This PR includes changesets to release 3 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Knip - Unused Code Analysis🔴 +2 change in total issues (231 on main → 233 on PR)
DetailsUnlisted dependencies
What is this?Knip finds unused files, dependencies, and exports in your codebase. Run |
PR Review✅ No critical issues found. A few minor observations (non-blocking):
The logic is correct, well-scoped, and the test coverage for AS suppression and mid-identifier replacement range is solid. Safe to merge. |
E2E Test Results✅ All tests passed • 93 passed • 3 skipped • 952s
Tests ran across 4 shards in parallel. |
091c0aa to
5b2411a
Compare
teeohhem
left a comment
There was a problem hiding this comment.
Very slick. Confirmed working on my end
## Summary This PR improves auto-complete in the following ways 1. Auto-complete suggestions will not appear after `AS`, since it is assumed that a user will not want to type an existing column or function name as a column alias 2. Accepting an auto-complete suggestion will replace characters after the cursor if they match the accepted suggestion. This is nice when, for example, I have typed `ResourceAttributes[]` and my cursor is before the `]` - accepting a suggestion will now replace the trailing `]` instead of leaving it be (in which case it would be duplicated after inserting the suggestion). ### Screenshots or video https://github.com/user-attachments/assets/9577393c-6bfa-410b-b5ba-2ba6b00bc26b ### How to test locally or on Vercel This can be tested in the preview environment. ### References - Linear Issue: Closes HDX-2612 - Related PRs:
Summary
This PR improves auto-complete in the following ways
AS, since it is assumed that a user will not want to type an existing column or function name as a column aliasResourceAttributes[]and my cursor is before the]- accepting a suggestion will now replace the trailing]instead of leaving it be (in which case it would be duplicated after inserting the suggestion).Screenshots or video
Screen.Recording.2026-03-25.at.9.06.55.AM.mov
How to test locally or on Vercel
This can be tested in the preview environment.
References