In a .vue file with a javascript block comment directly before export default, the comment can not be folded/collapsed in vscode. It make no difference if it's a <script>, <script lang="ts"> or <script lang="js"> tag
The below code will not fold (or offer the arrow to collapse when hovering the line):
However, if you add a line of js code between the comment and the export, the comment will fold as expected (and offer the arrow when hovering over the line):
Vue - Official extension or vue-tsc version
Vue - Official v2.0.22,
VSCode version
1.90.2
Vue version
3.4.29
TypeScript version
5.4.5
System Info
Steps to reproduce
In a .vue file with a javascript block comment directly before
export default
, the comment can not be folded/collapsed in vscode. It make no difference if it's a<script>
,<script lang="ts">
or<script lang="js">
tagThe below code will not fold (or offer the arrow to collapse when hovering the line):
However, if you add a line of js code between the comment and the export, the comment will fold as expected (and offer the arrow when hovering over the line):
Link to minimal reproduction
No response
Any additional comments?
No response