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

<style lang="stylus">, the collapse and formatting features are missing #480

Closed
shawn-yee opened this issue Sep 11, 2021 · 6 comments
Closed
Labels
wontfix This will not be worked on

Comments

@shawn-yee
Copy link

shawn-yee commented Sep 11, 2021

1.The vscode folding strategy is denpend on curly braces || indentation,
volar currently doesn't have any code folding for stylus block.
If I set indent folding strategy, the code at the top level of vue file will not collapse.
截屏2021-09-11 下午2 11 52

2.The stylus formatting plugin currently only this, prettier does not.
https://marketplace.visualstudio.com/items?itemName=thisismanta.stylus-supremacy&ssr=false#review-details
Jietu20210911-140818@2x

@shawn-yee
Copy link
Author

Taking a look at the stylus language project, it seems that its contributors are dropping the project, so I closed this issue.

@johnsoncodehk johnsoncodehk added the wontfix This will not be worked on label Sep 13, 2021
@qnp
Copy link

qnp commented Feb 9, 2022

Hi @shawn-yee, where did you find that the contributors are dropping stylus project ?
I could not access that information.

@shawn-yee
Copy link
Author

@qnp stylus/stylus#2282

@qnp
Copy link

qnp commented Feb 24, 2022

Meanwhile, I have written a very small vscode extension just for formatting .vue SFC files, where prettier (alongside @prettier/plugin-pug for pug templates) is used for <template> and <script> formatting, while stylus-supremacy handles the formatting of the <style lang="stylus"> block, If it can help you :
https://marketplace.visualstudio.com/items?itemName=ekqnp.prettylus

@shawn-yee
Copy link
Author

@qnp I used to be a big fan of pug and stylus, but the indentation-based language was very challenging when it came to copying, pasting and refactoring, so I eventually gave up, but thank you for the plugin, which is helpful to a lot of people.

@johnsoncodehk
Copy link
Member

See #1244 (comment).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

3 participants