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

Svelte-ignore code action #171

Merged
merged 8 commits into from
Jun 14, 2020
Merged

Conversation

jasonlyu123
Copy link
Member

close #122

Only the Diagnostics where the source is svelte and it has diagnostics code can be able to be ignored.
Maybe should also still check all the warning in the svelte compiler to see if any of it should be filtered out.

@jasonlyu123 jasonlyu123 changed the title Svelte ignore code action Svelte-ignore code action Jun 6, 2020
@jasonlyu123
Copy link
Member Author

I think there's still some code action range issue needed needed to be considered. Also check if it affects script and style.

Copy link
Member Author

@jasonlyu123 jasonlyu123 left a comment

Choose a reason for hiding this comment

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

Also needed to change it to parsing the transpiled code if exists.
Ultimately the AST should be managed separately so that it could be used in other places like #169

@dummdidumm
Copy link
Member

Nice work! I added a mapping from generated to original, so it also works when you use preprocessors.

@dummdidumm dummdidumm merged commit c510710 into sveltejs:master Jun 14, 2020
@jasonlyu123 jasonlyu123 deleted the svelte-ignore branch November 13, 2020 05:00
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.

Support VS Code quick fixes for svelte-ignore
2 participants