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

Formatting is pushing multi line comment tags #2632

Closed
webdevnerdstuff opened this issue Apr 19, 2023 · 1 comment
Closed

Formatting is pushing multi line comment tags #2632

webdevnerdstuff opened this issue Apr 19, 2023 · 1 comment
Labels
duplicate This issue or pull request already exists good reproduction ✨ This issue provides a good reproduction, we will be able to investigate it first

Comments

@webdevnerdstuff
Copy link

webdevnerdstuff commented Apr 19, 2023

Volar v1.2.0
Vue v3.2.47
VSCode v1.77.3

Issue
When saving and/or formatting code, it will keep pushing a everything after the opening <div> tag in a multi-line comment indefinitely. This causes major issues with Redo and losing the Redo's history.

Example Code:

<!-- <div>
  foo
</div> -->

after saving, and continues to do indent every save/format.

<!-- <div>
    foo
  </div> -->

Steps to replicate:

  1. Add that code to a .vue file.
  2. Format the code.
  3. Notice the code after the <div> tag will keep indenting each time you save/format.

Setting in VSCode:

  "[vue]": {
    "editor.defaultFormatter": "Vue.volar"
  },

This is the same thing happening as another issue I submitted. #2520

@johnsoncodehk
Copy link
Member

Duplicate of #2520

@johnsoncodehk johnsoncodehk marked this as a duplicate of #2520 Apr 20, 2023
@johnsoncodehk johnsoncodehk added duplicate This issue or pull request already exists good reproduction ✨ This issue provides a good reproduction, we will be able to investigate it first labels Apr 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists good reproduction ✨ This issue provides a good reproduction, we will be able to investigate it first
Projects
None yet
Development

No branches or pull requests

2 participants