Highlight/color query results in code

Offen
#1,775 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
5/5
Geschätzter Aufwand
Über eine Woche
Anfängerfreundlichkeit
25/100
Issue-Typ
Feature
Klarheit
Größtenteils klar
Aktivitätsstatus
Veraltet
Tech-Stack
typescript, vscode

Rechercherichtung

Das Issue nennt keine Dateien oder Tests. Beginne damit, den Code zu finden, der in der VS Code extension CodeQL query-result references und die Navigation zu Quellpositionen verarbeitet. Lege fest, ob completion bedeutet, ganze Zeilen oder nur references einzufärben, und überprüfe anschließend, dass beide im Beispiel genannten Positionen hervorgehoben und weiterhin anklickbar sind.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

enhancement VSCode

Is your feature request related to a problem? Please describe.
There is no present problem, it's just a feature request.
I would like to have the query results highlighted/colored in the code.

Describe the solution you'd like
In more detail, consider the query

from FunctionCall call
select call

which returns a query result with all the references to function calls
in the database, that you can click on and they will be shown in the source code.
What I would like to see is these locations in the code colored.

Describe alternatives you've considered
Either have the whole line colored or only the references.

Additional context
Example:

int func()
{
    int a = 0;
    
    foo();    /* this expression or the whole line would be colored */
    a++;
    bar();   /* this expression or the whole line would be colored */
    return a;
}
`
Vorherrschende Sprache
TypeScript
Sterne
539
Forks
240
Ø Merge
2 T. 6 Std.
Gemergte PRs (30 T.)
29

Beitragsleitfaden

Beitragsleitfaden öffnen

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus github/vscode-codeql

Alle Issues in github/vscode-codeql

Ähnliche Issues

Weitere Issues zu TypeScript

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.