Vetur: Cannot collapse custom blocks

Created on 8 Aug 2020  路  10Comments  路  Source: vuejs/vetur

  • [x] I have searched through existing issues
  • [x] I have read through docs
  • [x] I have read FAQ

Info

  • Platform: Mac
  • Vetur version: Latest
  • VS Code version: Latest

Problem

Custom blocks cannot be collapsed.

Screen Shot 2020-08-07 at 9 25 18 PM

Reproducible Case

  • Create a custom block with some contents
  • Hover over gutter, note no collapse arrow
feature-request good first issue folding

Most helpful comment

Today's release (0.27.2) fixed collapsing in template blocks.
This bug is about collapsing in custom blocks and that is still unfixed.
So no need to post here about problems with collapsing within template.

All 10 comments

Today my Vetur is with the same problem, but im using Windows and Vscode. I already uninstalled but notthing works

image

It's a bug and already fixed internally (#2234)

Sorry, this is about custom blocks, not template block. Was confused by the second comment.
@lipecss your issue is #2234

I have the same problem. This started only a few days ago.

Same problem here. :-/
I've reinstalled the Vetur, disabled every extension, reenabled them all and restarted VS Code.
Nothing of those worked

I'm having the same problem. When I open the file folding is working:
Annotation 2020-09-04 221020

one second later it disappears:
Annotation 2020-09-04 220954

It started only 2 days ago, before that it was working fine.
Also it's working fine for javascript code:
Annotation 2020-09-04 221301

I found a fix :

  1. I downloaded an older version (0.27.0 VSIX: https://github.com/vuejs/vetur/releases/tag/v0.27.0)
  2. I installed it using command : install from VSIX
  3. It asked me to reload, so I did, and then it updated automatically and asked to reload again

Now it's working correctly with the latest version that is:
image

image

Today's release (0.27.2) fixed collapsing in template blocks.
This bug is about collapsing in custom blocks and that is still unfixed.
So no need to post here about problems with collapsing within template.

@rchl
Great dude!!! Just tested it
Thx a lot for the quick fix <3

Gridsome uses custom <static-query> and <page-query> tags, and it would be great if these could be collapsed.

Was this page helpful?
0 / 5 - 0 ratings