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

Wrong initial formatting with simultaneous <script> and <script setup> #79

Open
silentmantra opened this issue Nov 7, 2023 · 0 comments

Comments

@silentmantra
Copy link

silentmantra commented Nov 7, 2023

I often use <script> together with <script setup> in SFC to cache some data across components.
Unfortunately it seems Volar wrongly formats this combination initially.
When I format manually, close and open the file, everything works fine afterwards, but that's annonying:

volar-wrong-formatting

Tried the pre-release version - the same problem:

Vue Language Features (Volar)
v1.8.23

Visual Studio Code
Version: 1.84.1
Commit: 2b35e1e6d88f1ce073683991d1eff5284a32690f
Date: 2023-11-06T12:35:59.022Z (23 hrs ago)
Browser: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Code/1.84.1 Chrome/114.0.5735.289 Electron/25.9.2 Safari/537.36
@silentmantra silentmantra changed the title Wrong formatting with simultaneous <script> and <script setup> Wrong initial formatting with simultaneous <script> and <script setup> Nov 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant