Skip to content

[Feature Request] Option to match block highlight/decoration functionality of Apex PMD #1838

@djs5008

Description

@djs5008

Product Area

The "Salesforce Code Analyzer" VS Code Extension

Your Need or Problem

Since switching over to using the Salesforce Code Analyzer extension exclusively rather than using Apex PMD, I've noticed a difference in behavior with how lines are highlighted for notice/warning/errors.

The Salesforce Code Analyzer extension is highlighting the entire block for certain violations that apply to the whole block, this includes an entire class, or an entire method.

Apex PMD previously used to only highlight the start line where the violation occurred. In my opinion, this is less intrusive, making it easier to read and see where errors / warnings are happening.

Here's an example:

(Salesforce Code Analyzer Extension)
Image

(Apex PMD Extension)
Image

In these examples you can see that it's much easier to see other warnings within the block using the Apex PMD extension. I'm requesting an option in the extension to match this Apex PMD behavior.

Your Desired Solution

My desired solution would be to add an option to set the decoration ranges as the start line only, rather than the entire block from start line to end line.

Alternatives Considered

No response

Additional Context (Screenshots, Files, etc)

No response

Workaround

No response

Urgency

Low

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions