Skip to content

Commit e865574

Browse files
committed
Add bare content from Google doc
1 parent 075cbfd commit e865574

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

docs/codeql/codeql-for-visual-studio-code/using-the-codeql-model-editor.rst

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ You can view, write, and edit all types of CodeQL packs in Visual Studio Code us
1111

1212
TODO - EDIT THIS CONTENT!
1313

14+
Explain how to find the data extension files that you've created and test them. Also how to save to the right location in a GitHub repository for default and advanced setup to use.
15+
1416
About the CodeQL model editor
1517
-----------------------------
1618

@@ -65,3 +67,14 @@ Known limitations
6567
Only Java is supported
6668
It's not possible to place the extension pack in a different directory than the root of a workspace folder
6769

70+
How to use data extensions in CodeQL for VS Code
71+
When a query is run in CodeQL for VS Code, by default, the IDE will load data extensions for the given pack and its transitive dependencies as defined in the How to use Data Extensions in the CodeQL CLI section.
72+
73+
To include extension packs in a VS Code workspace, there is a new setting called codeQL.runningQueries.useExtensionPacks. By default, this value is "none", which means that extension packs are not loaded for query evaluations. The other option is "all", which means that before running a query, the IDE will locate all extension packs in the workspace and load them during evaluation.
74+
75+
In the future, we may define other options to selectively load a subset of extension packs.
76+
77+
To use this option, simply set codeQL.runningQueries.useExtensionPacks to "all" and run queries as before. This option applies both to locally run queries and to variant analysis queries run remotely.
78+
79+
For more information on the engineering and product decisions around extension packs in the VS Code extension, see Customization support in the CodeQL VS Code extension.
80+

0 commit comments

Comments
 (0)