mathworks / mathworks/MATLAB-extension-for-vscode

Quick Fix to suppress linting diagnostic on line with line continuation does not actually do so

Open
#287 0 comments 0 reactions 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
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:

  1. Enter the following code in a MATLAB file:
abc;; ...
abc;
  1. Hover over the blue underline under the second semicolon and select Quick Fix... > Suppress message NOSEMI on this line.
  2. 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:
Image

Expected behavior:
Image

Useful Information

  • MATLAB Version: R2025a
  • OS Version: Windows 11
  • VS Code Version: 1.105.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 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.