microsoft / vscode-makefile-tools

MAKE integration in Visual Studio Code
Other
194 stars 58 forks source link

region and endregion support please in makefile #544

Open cavo789 opened 9 months ago

cavo789 commented 9 months ago

Hi,

Is it possible to add support in vscode for # region and # endregion block like in other supported language.

For instance:

# region - ANSI colors support
COLOR_BLUE:=34
COLOR_CYAN:=36
COLOR_GRAY:=30
COLOR_GREEN:=32
COLOR_PURPLE:=35
COLOR_RED:=31
COLOR_WHITE:=37
COLOR_YELLOW:=33

_CYAN   := "\e[1;${COLOR_CYAN}m%s\033[0m %s\n"   # F.i. printf $(_CYAN)   "Info xxx"
_GRAY   := "\e[1;${COLOR_GRAY}m%s\033[0m %s\n"   # F.i. printf $(_GRAY)   "ipso lorem"
_GREEN  := "\e[1;${COLOR_GREEN}m%s\033[0m %s\n"  # F.i. printf $(_GREEN)  "Success - xxx"
_RED    := "\e[1;${COLOR_RED}m%s\033[0m %s\n"    # F.i. printf $(_RED)    "Error - xxx"
_WHITE  := "\e[1;${COLOR_WHITE}m%s\033[0m %s\n"  # F.i. printf $(_WHITE)  "ispo lorem"
_YELLOW := "\e[1;${COLOR_YELLOW}m%s\033[0m %s\n" # F.i. printf $(_YELLOW) "ispo lorem"
# endregion

I would like to be able to fold the ANSI color block.

Not supported

(as you can see, folding is not supported here above)

For information, code folding already supported when there is indentation like in:

# region - help
help:
      # any valid code 
# endregion

Well supported when there is an indentation

(as you can see, folding is well supported here above as soon as there is an indentation)

Thanks!

gcampbell-msft commented 9 months ago

@cavo789 Thanks for the request! I'll mark this as a feature request and we'll keep it under consideration in future planning.