mathworks / mathworks/MATLAB-extension-for-vscode
Quick Fix to suppress linting diagnostic on line with line continuation does not actually do so
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 435
- Forks
- 40
- PR merge metrics
- No merged PRs in 30d
Description
Describe the bug
When a line of MATLAB code with a line continuation (...) has a linting diagnostic message, and you use the Quick Fix to suppress the message, the suppression comment is added to the end of the line. This does not actually suppress the message.
To Reproduce
Steps to reproduce the behavior:
- Enter the following code in a MATLAB file:
abc;; ...
abc;
- Hover over the blue underline under the second semicolon and select
Quick Fix... > Suppress message NOSEMI on this line. - Notice that a suppression comment is added to the end of the line, but the blue underline with the linting diagnostic message is still present.
Expected behavior
The suppression comment should be added to the end of the following line to actually suppress the diagnostic.
Screenshots
Current behavior:
Expected behavior:
Useful Information
- MATLAB Version: R2025a
- OS Version: Windows 11
- VS Code Version: 1.105.1
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the issue in the MATLAB extension using the sample code and the Quick Fix for NOSEMI. Trace the suppression handling for a diagnostic on a line ending in ...; done means the suppression comment is placed on the following line and the diagnostic disappears.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript, vscode
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 52/100