github / vscode-codeql

An extension for Visual Studio Code that adds rich language support for CodeQL

Home Page:https://marketplace.visualstudio.com/items?itemName=GitHub.vscode-codeql

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Highlight/color query results in code

nrb547 opened this issue · comments

commented

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;
}
`