Skip to content

Commit cce8eac

Browse files
authored
Merge pull request github#5946 from shati-patel/vscode-custom-logs
Docs: Describe custom log directory setting in VS Code extension
2 parents 75ed7c0 + bfc8845 commit cce8eac

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

docs/codeql/codeql-for-visual-studio-code/customizing-settings.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,17 @@ The query history **Format** setting controls how the extension lists queries in
4646

4747
To override the default label, you can specify a different format for the query history items.
4848

49+
.. _configuring-settings-for-running-queries:
50+
4951
Configuring settings for running queries
5052
-----------------------------------------
5153

5254
There are a number of settings for **Running Queries**. If your queries run too slowly and time out frequently, you may want to increase the memory.
5355

5456
.. include:: ../reusables/running-queries-debug.rst
5557

58+
To save query server logs in a custom location, edit the **Running Queries: Custom Log Directory** setting. If you use a custom log directory, the extension saves the logs permanently, instead of deleting them automatically after each workspace session. This is useful if you want to investigate these logs to improve the performance of your queries.
59+
5660
Configuring settings for testing queries
5761
-----------------------------------------
5862

docs/codeql/codeql-for-visual-studio-code/troubleshooting-codeql-for-visual-studio-code.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ You are most likely to need to restart the query server if you make external cha
3838
To see the logs from running a particular query, right-click the query in the Query History and select **Show Query Log**.
3939
If the log file is too large for the extension to open in the VS Code editor, the file will be displayed in your file explorer so you can open it with an external program.
4040

41+
By default, the extension deletes logs after each workspace session. To override this behavior, you can specify a custom directory for query server logs. For more information, see ":ref:`Customizing settings <configuring-settings-for-running-queries>`."
42+
4143
Exploring problems with running tests
4244
----------------------------------------------
4345

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
If you want to examine query performance, enable the **Running Queries: Debug** setting to include timing and tuple counts in the CodeQL Query Server logs shown in the Output view. The tuple count is useful because it indicates the size of the :ref:`predicates <predicates>` computed by the query.
1+
If you want to examine query performance, enable the **Running Queries: Debug** setting to include timing and tuple counts. This is shown in the logs in the CodeQL Query Server tab of the Output view. The tuple count is useful because it indicates the size of the :ref:`predicates <predicates>` computed by the query.

0 commit comments

Comments
 (0)