vuejs/vetur

Can't fold code in template region with pug

Open

#2,308 opened on Sep 22, 2020

View on GitHub
 (5 comments) (14 reactions) (0 assignees)TypeScript (594 forks)github user discovery
buggood first issuelang:puglsp:folding

Repository metrics

Stars
 (5,752 stars)
PR merge metrics
 (PR metrics pending)

Description

  • I have searched through existing issues
  • I have read through docs
  • I have read FAQ

Info

  • Platform: macOS
  • Vetur version: v0.27.3
  • VS Code version: 1.59.1

Problem

Can't collapse code in template region with lang="pug" (similar to https://github.com/vuejs/vetur/issues/2234)

Reproducible Case

Create vue template like this:

<template lang="pug">
  .parent
    .children
      .grand-children
        p sometext
      .grand-children
        p sometext
</template>

Without vetur it will collapse as expected, but not with vetur enabled.

Contributor guide