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

Vue file type disallows collapse of html tags in template section #106204

Closed
MetanoiaRichi opened this issue Sep 7, 2020 · 3 comments
Closed
Assignees
Labels
info-needed Issue requires more information from poster

Comments

@MetanoiaRichi
Copy link

  • VSCode Version: 1.48.2
  • OS Version: Windows 10

Steps to Reproduce:

  1. Set file type to vue
  2. Check to see that only the main template tag is collapseable.

After the update I cant collapse the tags under the template in vue files.
The only collapseable part is the main template tag. Whereas the sub tags inside aren't collapseable.
There are also some times when If I open a vue file it will automatically collapse the template or the script section, or even both.
I had to switch the file type to vue-html to make the all tags collapseable again but making it like that will break the color stylings of the code. It will make the entire script tag color white which looks like a block of text not a code.

Does this issue occur when all extensions are disabled?: Yes/No

@aeschli
Copy link
Contributor

aeschli commented Sep 7, 2020

Do you use am extension for vue?
Can you add a code sample that shows the issue?

@aeschli aeschli added the info-needed Issue requires more information from poster label Sep 7, 2020
@gsborgz
Copy link

gsborgz commented Sep 8, 2020

I think I have the same issue. Only the "template" tag can be collapsed:
image (1)

@aeschli
Copy link
Contributor

aeschli commented Sep 9, 2020

Folding ranges either come from extensions, or they are computed by indentation.
I believe the vue extension provides folding ranges, so if there are ranges missing, this is an issue of the vue extension.

Can you please file the issue against the vue extension?

Also check vuejs/vetur#2134

@aeschli aeschli closed this as completed Sep 9, 2020
@github-actions github-actions bot locked and limited conversation to collaborators Oct 24, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
info-needed Issue requires more information from poster
Projects
None yet
Development

No branches or pull requests

3 participants