Skip to content

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

@sam-schu

Description

@sam-schu

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions