mathworks / mathworks/MATLAB-extension-for-vscode

Expand selection is not working as expected on m files

Open
#70 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

In other language source files, when we select one line and expand selection, if that selected line is inside of a closure or if-clause, the closure or if-clause will firstly be selected, but in .m files, when we expand selection on one line, the whole file will be selected.

Is this feature a part of vs code or we can fix it in this extension?

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

Start by reproducing Expand Selection on a line inside a closure or if-clause in a .m file, then compare the behavior with another language source file in VS Code. Inspect the extension and VS Code selection behavior to determine ownership; done means the responsible component is identified and MATLAB selection expands hierarchically rather than selecting the whole file.

Written by the indexing model from the issue text.

Assessment

Tech stack
matlab, typescript, vscode
Domain
devtools
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.