mathworks / mathworks/MATLAB-extension-for-vscode

Cannot fold the section starting with %%

Open
#229 10 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
TypeScript
Stars
435
Forks
40
PR merge metrics
No merged PRs in 30d

Description

Describe the bug
Cannot fold a section starting with %%

To Reproduce

  1. Go to a line starting with %%
  2. Press control + Shift + []
  3. nothing happens

Expected behavior
The entire section gets folded just like a section starting with for or while

Useful Information
Windows11: 24H2 (OS ビルド 26100.3194)
VS Code: 1.97.2
Extension version: 1.3.1

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the MATLAB folding failure using the steps and Windows, VS Code, and extension versions listed in the issue. Locate the extension's folding implementation and compare handling of %% sections with for and while sections; done means the entire %% section folds with the specified shortcut.

Written by the indexing model from the issue text.

Assessment

Tech stack
matlab, typescript, vscode
Domain
developer-experience, tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.