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

languages: Fix JS/TS imports not showing correct suggestions after using period #27235

Merged
merged 1 commit into from
Mar 21, 2025

Conversation

smitbarmase
Copy link
Member

Closes #21728

This PR improves autocomplete for imports for all kinds of javascript and typescript files.

Adds . as completion_query_characters which will make it act like word for auto completion context. This allows capturing compete format. as query.

Before:
image

After:
image

Release Notes:

  • Improved autocomplete suggestions for JavaScript and TypeScript imports.

@cla-bot cla-bot bot added the cla-signed The user has signed the Contributor License Agreement label Mar 21, 2025
@smitbarmase smitbarmase merged commit 33fc1f4 into main Mar 21, 2025
15 checks passed
@smitbarmase smitbarmase deleted the fix-import-autocomplete-for-jsts branch March 21, 2025 09:43
blake-c-dev pushed a commit to blake-c-dev/zed that referenced this pull request Mar 21, 2025
…ing period (zed-industries#27235)

Closes zed-industries#21728

This PR improves autocomplete for imports for all kinds of javascript
and typescript files.

Adds `.` as `completion_query_characters` which will make it act like
word for auto completion context. This allows capturing compete
`format.` as query.

Before:
<img width="500" alt="image"
src="https://github.com/user-attachments/assets/849fb342-db73-48e7-a9d8-93f0e5a14b58"
/>

After:
<img width="500" alt="image"
src="https://github.com/user-attachments/assets/e3ac3272-3217-4bcd-857f-4a83afc5980e"
/>

Release Notes:

- Improved autocomplete suggestions for JavaScript and TypeScript
imports.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla-signed The user has signed the Contributor License Agreement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Autocomplete drop-down for filename doesn't highlight matching file based on filename prefix
1 participant