You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
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
The text was updated successfully, but these errors were encountered:
silentmantra
changed the title
Wrong formatting with simultaneous <script> and <script setup>
Wrong initial formatting with simultaneous <script> and <script setup>
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:
Tried the pre-release version - the same problem:
The text was updated successfully, but these errors were encountered: