Wrong initial formatting with simultaneous <script> and <script setup>
silentmantra opened this issue · 1 comments
silentmantra commented
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