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
103 stars 17 forks source link

[BUG] Folding more than it should #46

Open Ice-mourne opened 1 week ago

Ice-mourne commented 1 week 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 1 week ago

Same Problem, I hope to fix it ASAP @stivoat