diff --git a/docs/codeql/codeql-for-visual-studio-code/analyzing-your-projects.rst b/docs/codeql/codeql-for-visual-studio-code/analyzing-your-projects.rst index cfd1746499c4..05b01a4c051b 100644 --- a/docs/codeql/codeql-for-visual-studio-code/analyzing-your-projects.rst +++ b/docs/codeql/codeql-for-visual-studio-code/analyzing-your-projects.rst @@ -129,12 +129,14 @@ To remove queries from the Query History view, select all the queries you want t Viewing query results ----------------------- -#. Click a query in the Query History view to display its results in the Results view. Alternatively, right-click the result to select a different view: +#. Click a query in the Query History view to display its results in the Results view. - - To view the results in :ref:`SARIF format `, right-click and select **View SARIF**. - - To view the results in :ref:`DIL format `, right-click and select **View DIL**. + .. pull-quote:: Note -#. Use the dropdown menu in the Results view to choose which results to display, and in what form to display them, such as a formatted alert message or a table of raw results. The available output forms are specified by the format of the query and the metadata. For more information, see ":ref:`CodeQL queries `." + Depending on the query, you can also choose different views such as CSV, :ref:`SARIF `, or :ref:`DIL format `. For example, to view the DIL format, right-click a result and select **View DIL**. + The available output views are determined by the format and the metadata of the query. For more information, see ":ref:`CodeQL queries `." + +#. Use the dropdown menu in the Results view to choose which results to display, and in what form to display them, such as a formatted alert message or a table of raw results. #. To sort the results by the entries in a particular column, click the column header. diff --git a/docs/codeql/codeql-for-visual-studio-code/customizing-settings.rst b/docs/codeql/codeql-for-visual-studio-code/customizing-settings.rst index b48e2cd7f070..940a8a0c50c5 100644 --- a/docs/codeql/codeql-for-visual-studio-code/customizing-settings.rst +++ b/docs/codeql/codeql-for-visual-studio-code/customizing-settings.rst @@ -37,12 +37,13 @@ Changing the labels of query history items The query history **Format** setting controls how the extension lists queries in the query history. By default, each item has a label with the following format:: - [%t] %q on %d - %s - -- ``%t`` is the time the query was run + %q on %d - %s, %r result count [%t] + - ``%q`` is the query name - ``%d`` is the database name - ``%s`` is a status string +- ``%r`` is the number of results +- ``%t`` is the time the query was run To override the default label, you can specify a different format for the query history items.