haskell / haskell/vscode-haskell

Support VS Code's foldable `#region` by adding `folding.markers` to `language-configuration.json`

Open Beginner friendly
#1,394 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
597
Forks
98
PR merge metrics
No merged PRs in 30d

Description

**Is your feature request related to a problem? Please describe.**

In other languages like Python, putting `#region` and `#endregion` blocks in code results in VS Code's native foldable regions - that is, the code enclosed in the region can be collapsed (folded / hidden).

**Describe the solution you'd like**

Add `folding.markers` to `langauge-configuration.json`, as shown in VS Code docs: https://code.visualstudio.com/api/language-extensions/language-configuration-guide#folding

Contributor guide

Open the contributing guide

Research direction

Open the extension's language-configuration.json, identified in the issue as langauge-configuration.json, and compare its structure with the VS Code folding markers documentation. Add the configuration for #region and #endregion, then verify in VS Code that code between those markers can be folded.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript, vscode
Domain
devtools
Issue type
Feature
Difficulty
1/5
Estimated time
Under an hour
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
78/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.