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

🐛 BUG: Spread operator triggers commit character of IntelliSense suggestion. #746

Open
ata1704 opened this issue Jan 3, 2024 · 1 comment
Labels
- P3: minor bug An edge case that only affects very specific usage (priority) ecosystem: compiler Issue is caused by a bug in the Astro compiler

Comments

@ata1704
Copy link

ata1704 commented Jan 3, 2024

Describe the Bug

Using the spread operator in an arrow function inside the HTML code is captured as the commit character for code suggestions. This only happens in Astro files. Not experiencing this issues in Vue (with Volar) for example.

Bildschirmaufnahme.2024-01-03.um.14.30.52.mov

Steps to Reproduce

  1. Typing in the first . open code suggestions and the second . is interpreted as a commit character.
@github-actions github-actions bot added the needs triage Issue needs to be triaged label Jan 3, 2024
@Princesseuh
Copy link
Member

Hmm, I think what's happening here is that we transform {.} to {...{".} because just a dot is considered an invalid attribute for TSX that we need to sanitize, so the completion gets confused. Would have to test to be sure, but I'm pretty sure that's the issue.

Thank you for opening this issue!

@Princesseuh Princesseuh added - P3: minor bug An edge case that only affects very specific usage (priority) and removed needs triage Issue needs to be triaged labels Jan 4, 2024
@Princesseuh Princesseuh added the ecosystem: compiler Issue is caused by a bug in the Astro compiler label Feb 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
- P3: minor bug An edge case that only affects very specific usage (priority) ecosystem: compiler Issue is caused by a bug in the Astro compiler
Projects
None yet
Development

No branches or pull requests

2 participants