Rule working in "*", not for language #105
Unanswered
TonyGravagno
asked this question in
Q&A
Replies: 2 comments 3 replies
-
Beta Was this translation helpful? Give feedback.
2 replies
-
That one actually goes a bit deeper 😄 :
"explicitFolding.rules": {
"*": [
{
"foldLastLine": true
}
],
"typescriptreact": [
{
"foldLastLine": false
},
{
"beginRegex": "aaa",
"endRegex": "bbb",
"nested": true,
"foldLastLine": false
}, I have tried many combinations, only noting a few here. I could take the time to test and document all behavior combinations but I lack the time to poke into the code to see if I can make changes. The most desirable setting is a cascade of priority from higher to lower, and it's almost like that, but not quite. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This works:

This is not working with a .tsx file where the language is confirmed to be

typescriptreact
:No joy when removing the brackets around
[typescriptreact]
.Ideas?
Using latest published v0.23.1 with latest VSCode 1.79.1 over Win10.
I just noticed that my VSCode About shows Node 16.17.1, but the rest of the system is running 20.3.0. I'll look into that, don't think it's a factor, but mentioning just in case...
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions