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

typescript formatting issue [vetur 0.34+] #3008

Open
seraphimMM opened this issue Jun 16, 2021 · 1 comment
Open

typescript formatting issue [vetur 0.34+] #3008

seraphimMM opened this issue Jun 16, 2021 · 1 comment
Labels

Comments

@seraphimMM
Copy link

  • [yes ] I have searched through existing issues
  • [yes] I have read through docs
  • [yes] I have read FAQ
  • [yes] I have tried restarting VS Code or running Vetur: Restart VLS

Info

  • Platform: Win
  • Vetur version: 0.34 and 0.34.1
  • VS Code version: 1.57

Reproducible Case

I write a typescript script like this

export default class ItemCell
    extends Vue
    implements ItemController { 
}

when i used shift+alt+f to format it, it changed to a wrong format style like:

export default class ItemCell
    extends Vue
    implements ItemController 
{ 
}

the first brace went to the next line. (only happens when i use both "extends" and "implements")

this issue does not exist when i use the previous versions of vetur (<= 0.33.1)

@seraphimMM seraphimMM changed the title typescript formmatting issue typescript formatting issue [vetur 0.34+] Jun 16, 2021
@yoyo930021
Copy link
Member

Please check your setting about formatters.
https://vuejs.github.io/vetur/guide/formatting.html#formatters

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants