stivoat / tailwind-fold

Visual Studio Code extension that improves code readability by folding long class attributes
https://marketplace.visualstudio.com/items?itemName=stivo.tailwind-fold
MIT License
121 stars 23 forks source link

[BUG] Folding more than it should #46

Open Ice-mourne opened 5 months ago

Ice-mourne commented 5 months ago

This image Get folded to this image This is a minimal reproduction The actual problem is way bigger

Code from above

const a = {
  a: {
    class: 'underline',
  },
  b: { a: '' },
}

Settings: Fold Style: quotes Unfold If Line Selected: true Fold Length Threshold: 3 Everything else default

Adding space after underline class fixes the problem

2hmad commented 5 months ago

Same Problem, I hope to fix it ASAP @stivoat