vscode-explicit-folding
vscode-explicit-folding copied to clipboard
Folding rules scoped for specific filenames?
Discussed in https://github.com/zokugun/vscode-explicit-folding/discussions/86
Originally posted by depascalis August 13, 2022
Is it possible to have folding rules that only apply to specific filenames like *.special.js or *.special? If not I would like to do a feature request if it is possible to implement.
@depascalis Yes, it's possible. I should able to implement it.
Awesome, thank you @daiyam Btw the original question is still marked as unanswered. I don't know if this issue could be referenced as an answer for future reference.
@depascalis I might be able to that with (not yet implemented):
"explicitFolding.rules": {
"*.config.xml": [<your rules>],
"*.special.js": [<your rules>],
},
Or you can create your own language as suggested by @aeschli.
Settings syntax looks perfect! This feature would be valuable for me, and I've seen others requesting this functionality elsewhere.
Thanks
I will change to the following config:
"[javascript]": {
"explicitFolding.perFiles": {
"*.special.js": [<your rules>],
},
},
"[xml]": {
"explicitFolding.perFiles": {
"*.config.xml": [<your rules>],
},
},
The feature is available in the latest release.
You're awesome, thank you!
@depascalis Can you close the issue if it's working for you 😉 Thx
@daiyam I believe you opened this issue on my behalf, I don't see the option to close it.
OH!