Skip to content

Commit ac0fd93

Browse files
committed
Update docs for customizing settings
1 parent 2f4eea5 commit ac0fd93

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

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

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ Changing the labels of query history items
3939

4040
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::
4141
42-
%q on %d - %s, %r result count [%t]
42+
%q on %d - %s %r [%t]
4343

4444
- ``%q`` is the query name
4545
- ``%d`` is the database name
@@ -107,6 +107,19 @@ You can also edit the items shown in the Variant Analysis Repositories panel by
107107
108108
You can change the items shown in the panel or add new items by directly editing this file.
109109

110+
Configuring settings for downloading databases
111+
------------------------------------------------
112+
113+
To automatically add database source folders to your workspace, you can check the **Database Download > Add Database Source to Workspace** setting.
114+
115+
This setting is disabled by default. You may want to enable the setting if you regularly browse the source code of databases, for example to view the abstract syntax tree of the code. For more information, see ":ref:`Exploring the structure of your source code <exploring-the-structure-of-your-source-code>`."
116+
117+
.. pull-quote:: Note
118+
119+
If you are in a single-folder workspace, adding database source folders will cause the workspace to reload as a multi-root workspace. This may cause query history and database lists to be reset.
120+
121+
Before enabling this setting, we recommend that you save your workspace as a multi-root workspace. For more information, see ""`Multi-root Workspaces <https://code.visualstudio.com/docs/editor/multi-root-workspaces>`__" in the Visual Studio Code help.
122+
110123
Configuring settings for testing queries locally
111124
------------------------------------------------
112125

0 commit comments

Comments
 (0)