Skip to content

feat: support generics on snippets #2761

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

Merged
merged 3 commits into from
May 15, 2025

Conversation

paoloricciuti
Copy link
Member

language-tools part of sveltejs/svelte#15915

I've added a test and manually verified that works but maybe an extra pair of eyes could benefit, i hope i didn't miss anything.

There's still a problem with the textmate grammar that I have no idea how to fix...i tried vibe coding it with awful results...specifically when a generic uses the extends keyword then the code looks like this

image

I noticed we don't have tests for snippets in the svelte-vscode package, am i mistaken?

Copy link
Member

@dummdidumm dummdidumm left a comment

Choose a reason for hiding this comment

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

thank you!

@dummdidumm dummdidumm merged commit d12a9ae into sveltejs:master May 15, 2025
3 checks passed
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.

2 participants