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

【bug】 After volar sets non-air parentheses to add Spaces, v-for automatically adds unlimited Spaces #2571

Closed
Autumn-one opened this issue Apr 2, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@Autumn-one
Copy link

Autumn-one commented Apr 2, 2023

After setting "typescript.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets": true , a space is added each time the document is formatted, as shown in the figure
GIF 2023-4-2 12-33-20

image

Unfortunately, if this option is turned off, it can cause an error in the scope slot,It generates the wrong semicolon in the scope slot,

image

@johnsoncodehk johnsoncodehk added the bug Something isn't working label Apr 15, 2023
@mrinc
Copy link

mrinc commented Apr 18, 2023

@johnsoncodehk is this change live yet ? (v1.3.18)

@davide-granello
Copy link

I have the same issue, also other attributes keep getting appended and prepended spaces:

<v-list-item
  v-for="option in availableOptions"
  :key="option.id"
  :title="option.name"
  @click.stop="onOptionSelected(option.id)"
/>

after format:

<v-list-item
  v-for=" option  in  availableOptions "
  :key=" option.id "
  :title=" option.name "
  @click.stop="onOptionSelected(option.id)"
/>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants