-
-
Notifications
You must be signed in to change notification settings - Fork 206
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
Make the <style> tag collapsible #523
Comments
I tried to implement it but found this is not a simple task to do. We didn't implement a folding range feature so the folding range seems to be generated by vscode and it seems to base on indentation and matching brackets or tags. Once the custom folding kicks in the default one would be disabled which means we probably need to implement the folding range in a lot of embed languages, like the pug, sass/scss and typescript/javascript. Or somehow recreate the default folding ranges when we don't know how to fold the embed language. Otherwise, it might be a worse experience for others. |
I feared this might be the case. What's worse is that for the script we could not rely on the TS language service results (if if has such a method) because it would give us folding ranges for the translated JSX which is wrong. |
Not to be that guy, but how do other plugins solve this issue? |
Luckily there's a "folding" property which we can use in the |
Is your feature request related to a problem? Please describe.
As you can see in this image the style tag isn't collapsible.
With big CSS heavy components it would be nice to be able to close the entire style tag instead of only each css block individually
Describe the solution you'd like
This, but without the need for extra tabs
Describe alternatives you've considered
Not care. But I care too much.
The text was updated successfully, but these errors were encountered: