AdguardTeam / AdguardTeam/VscodeAdblockSyntax

Anyway to fold / collapse just for organization purpose inside a uBO filter with VscodeAdblackSyntax ?

Ouverte
#139 6 commentaires 0 réactions 1 personne assignée Réclamée par @maximtop Voir sur GitHub
Priority: P4
Langage dominant
TypeScript
Étoiles
88
Forks
8
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

Hi, We are editing uBO filters in VS Code using VscodeAdblackSyntax. Can we use a symbol or a formatting to fold/collapse sections for presentation clarity?

Currently, we are using this presentation format:
```
!=== : as Heading 1 ===
! : as Heading 2
!!: as Heading 3
```
Here is an example:
![image](https://github.com/user-attachments/assets/5afe1e91-4efc-483f-9c2c-f9da55fe788d)
It is not ideal because there is no folding / collapse possibility.

VscodeAdblackSyntax offers folding for pre-parsing directives like !#if / !#endif
![image](https://github.com/user-attachments/assets/8e31a7cc-d1b8-4835-8fe4-c713401e6fa4)
but pre-parsing directives are for coding purposes, not just display purposes. Is there a better way than writting this:
![image](https://github.com/user-attachments/assets/e789e472-90fc-4c4f-aaef-81a69535f8f3)

Guide de contribution

Ouvrir le guide de contribution

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.