oderwat / vscode-indent-rainbow

Extension which shows indentation with a faint rainbow colored background to make them more readable
MIT License
406 stars 53 forks source link

Never nester option #161

Open moolight-seashell opened 1 year ago

moolight-seashell commented 1 year ago

add in the options the possibility of defining a "max" indent number above which a specific color (setting) is used.

like the red color used when the indent is not matching 2 or 4 space indent

oderwat commented 1 year ago

What is the use case? I don't need that. Sounds like something a linter should do. Indent-Rainbow is not a linter. The "error functionality" is considered an error by myself.

moolight-seashell commented 1 year ago

my idea is to not enable it by default

the principle is to be able to show over-indentation imediatly without the imperatives and restrictions that a linter would propose,

basically such a system would be just indicative and it would allow you to see over-indentation on the fly and sonner than with a linter or without failing a whole cicd pipline.

Afterwards it is obviously quite far from the main features of indent-rainbow but it would seem to me to be a very good way to do it