-
Notifications
You must be signed in to change notification settings - Fork 53
Description
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)

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
