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

feat: make use of loose Svelte parser and provide better intellisense #2631

Merged
merged 6 commits into from
Dec 17, 2024

Conversation

dummdidumm
Copy link
Member

@dummdidumm dummdidumm commented Dec 12, 2024

This adds support for the Svelte parser with its new loose mode and adjusts code paths to make use of it properly. As a result, intellisense should be a lot more useful in situations where code is in the middle of being typed and the Svelte file is in a broken state.

Demo (note how autocompletion works in broken states):

intellisense-demo.mp4

Needs sveltejs/svelte#14691

Fixes #2499
Fixes #1916
Fixes #1884
Fixes #776
Fixes #1990
Fixes #1302

This adds support for the Svelte parser with its new loose mode and adjusts code paths to make use of it properly. As a result, intellisense should be a lot more useful in situations where code is in the middle of being typed and the Svelte file is in a broken state.
@dummdidumm dummdidumm marked this pull request as draft December 12, 2024 14:37
@dummdidumm dummdidumm marked this pull request as ready for review December 17, 2024 10:20
@dummdidumm dummdidumm merged commit ac10174 into master Dec 17, 2024
3 checks passed
@dummdidumm dummdidumm deleted the loose-parser branch December 17, 2024 15:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment