You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/codeql/codeql-for-visual-studio-code/analyzing-your-projects.rst
+5-4Lines changed: 5 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -47,7 +47,7 @@ Downloading a database from GitHub
47
47
Filtering databases and queries by language
48
48
-------------------------------------------
49
49
50
-
Optionally, to see databases containing a specific language, as well as queries written for that language, you can apply a language filter using the language selector.
50
+
Optionally, to see databases containing a specific language and queries written for that language, you can apply a language filter using the language selector.
51
51
52
52
#. To see available language filters, in the sidebar, click the **Language** title bar.
53
53
#. Hover over the language filter you would like to apply, then click **Select**.
@@ -59,7 +59,7 @@ Optionally, to see databases containing a specific language, as well as queries
59
59
Creating a query
60
60
------------------------
61
61
62
-
You can generate a query template for a specific language from the queries panel, helping you quickly create a custom query.
62
+
You can generate a query template for a specific language from the queries panel, then write your own code to quickly create a custom query.
63
63
64
64
#. In the sidebar, hover over the **Queries** title bar, then click the **Create query** icon.
65
65
@@ -68,7 +68,7 @@ You can generate a query template for a specific language from the queries panel
68
68
:alt:Screenshot of the queries panel. The "Create query" icon is outlined in dark orange.
69
69
70
70
#. In the Command Palette, select the target language for your query. Selecting a language will autogenerate a folder labeled "codeql-custom-queries-LANGUAGE", which will contain a query template labeled "example.ql".
71
-
#. In the template file, write your custom query, then save the file. Once your query is finished, you can run it from the queries panel.
71
+
#. In the template, write your custom query, then save the file. Once your query is finished, you can run it from the queries panel.
72
72
73
73
Running a query
74
74
------------------------
@@ -163,14 +163,15 @@ This is helpful if you want to test your query on multiple codebases, or find a
163
163
Viewing previous queries
164
164
--------------------------
165
165
166
-
To see the queries that you have run in the current session, open the Query History view. You can filter the Query History view by language. For more information, see ":ref:`Filtering databases and queries by language <filtering-databases-and-queries-by-language>`."
166
+
To see the queries that you have run in the current session, open the Query History view.
The Query History contains information including the date and time when the query was run, the name of the query, the database on which it was run, and how long it took to run the query.
173
173
To customize the information that is displayed, right-click an entry and select **Rename**.
174
+
Additionally, you can filter the Query History view by language. For more information, see ":ref:`Filtering databases and queries by language <filtering-databases-and-queries-by-language>`."
174
175
175
176
Click an entry to display the corresponding results in the Query Results view, and double-click
176
177
to display the query itself in the editor (or right-click and select **View Query**).
0 commit comments