forcedotcom / forcedotcom/code-analyzer

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

Aperta
#1,838 3 commenti 9 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
TypeScript
Stelle
240
Fork
52
Merge medio
1g 23h
PR unite (30g)
5

Descrizione

### 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

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Inizia dalla gestione degli intervalli di decorazione delle violation nell’estensione Salesforce Code Analyzer VS Code e traccia il modo in cui vengono prodotti gli intervalli di blocchi interi. Controlla i test o il comportamento dell’UI dell’estensione per le violation a livello di blocco; il lavoro è completato quando un’opzione consente di selezionare la decorazione solo della riga iniziale, mantenendo per impostazione predefinita il comportamento esistente.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
typescript, vscode
Ambito
tooling
Tipo di issue
Funzionalità
Difficoltà
3/5
Tempo stimato
1-2 giorni
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
35/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.