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

Cannot collapse custom blocks #2134

Closed
3 tasks done
johnsusek opened this issue Aug 8, 2020 · 14 comments
Closed
3 tasks done

Cannot collapse custom blocks #2134

johnsusek opened this issue Aug 8, 2020 · 14 comments
Labels

Comments

@johnsusek
Copy link

  • I have searched through existing issues
  • I have read through docs
  • 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
@lipecss
Copy link

lipecss commented Sep 4, 2020

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

image

@rchl
Copy link
Collaborator

rchl commented Sep 4, 2020

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

@rchl rchl closed this as completed Sep 4, 2020
@rchl
Copy link
Collaborator

rchl commented Sep 4, 2020

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

@rchl rchl reopened this Sep 4, 2020
@rafaelgrube
Copy link

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

@LucasCFM
Copy link

LucasCFM commented Sep 6, 2020

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

@DeathYouki
Copy link

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

@DeathYouki
Copy link

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

@rchl
Copy link
Collaborator

rchl commented Sep 6, 2020

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.

@LucasCFM
Copy link

LucasCFM commented Sep 6, 2020

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

@MarcelloTheArcane
Copy link

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

@fjh1997
Copy link

fjh1997 commented Jul 20, 2021

I have encouterd the same problem.It doesn't work when I more than one vue file.I have to save file and close whole vscode(not just tabs) then re-open only one file to make it work.

@rahulonsong
Copy link

I uninstalled the extension Vetur and re-installed it. That fixed the issue

@yoyo930021
Copy link
Member

If anyone wants legacy behavior,
#2308 (comment)

The new behavior is use LSP for folding.
We need to add many languages in Vue LSP.
We can't do it.

@viethq-vareal
Copy link

I still struggle with this issue, i am using vscode ubuntu

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests