elm-tooling/elm-language-client-vscode

Configure folding markers for regions in the language configuration

Swissbite opened this issue · 0 comments

Elm files can get large. To organize the code and fold larger areas, it would be great to have the folding markers for regions configured in language-configuration.json

Expected Behaviour

Create a region block by

-- #region
Large code block for a specific topic
-- #endregion

Current Behaviour

The region pattern is not recognized, therefore no effect.

Possible Solution

Add the folding marks to the language-configuration.json as described in the language configuration guide

Context

I'm used to other languages which supports this behaviour in vscode.
It's a nice feature to organize blocks of code, especially if the code in a single file for a given language tends to get several 100 lines long.

Your Environment

  • Version used: v2.3.0
  • Editor name and version: vscode 1.62.3