Skip to content

Commit 2162ee3

Browse files
sabrowning1Copilot
andauthored
[EDI] Managing CodeQL query packs and library packs (#59677)
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
1 parent c515d9e commit 2162ee3

File tree

1 file changed

+7
-25
lines changed

1 file changed

+7
-25
lines changed

content/code-security/how-tos/scan-code-for-vulnerabilities/scan-from-vs-code/managing-codeql-packs.md

Lines changed: 7 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -9,56 +9,38 @@ topics:
99
- Code Security
1010
- Code scanning
1111
- CodeQL
12-
intro: You can view, write, and edit {% data variables.product.prodname_codeql %} query and library packs in {% data variables.product.prodname_vscode %} using the {% data variables.product.prodname_codeql %} extension.
12+
intro: Download and install dependencies for your {% data variables.product.prodname_codeql %} query and library packs in {% data variables.product.prodname_vscode %} using the {% data variables.product.prodname_codeql %} extension.
1313
allowTitleToDifferFromFilename: true
1414
redirect_from:
1515
- /code-security/codeql-for-vs-code/working-with-codeql-packs-in-visual-studio-code
1616
- /code-security/codeql-for-vs-code/using-the-advanced-functionality-of-the-codeql-for-vs-code-extension/managing-codeql-packs
1717
contentType: how-tos
1818
---
1919

20-
## Benefits of using the {% data variables.product.prodname_codeql %} extension for {% data variables.product.prodname_vscode %} to work with packs
21-
22-
With the {% data variables.product.prodname_codeql %} for {% data variables.product.prodname_vscode %} extension, you can:
23-
24-
* Write {% data variables.product.prodname_codeql %} query packs without needing to check out the standard libraries in your workspace.
25-
26-
* Install dependencies for {% data variables.product.prodname_codeql %} query packs inside your {% data variables.product.prodname_vscode_shortname %} workspace.
27-
28-
* Download {% data variables.product.prodname_codeql %} query packs.
29-
30-
* View a {% data variables.product.prodname_codeql %} query pack and all of its dependencies.
20+
## Downloading {% data variables.product.prodname_codeql %} query packs
3121

32-
For more information about creating and editing {% data variables.product.prodname_codeql %} query and library packs, see [AUTOTITLE](/code-security/codeql-cli/using-the-advanced-functionality-of-the-codeql-cli/creating-and-working-with-codeql-packs).
22+
1. In {% data variables.product.prodname_vscode_shortname %}, open the {% data variables.product.prodname_vscode_command_palette_shortname %} and run **{% data variables.product.prodname_codeql %}: Download Packs**.
23+
1. You can download all the core query packs, or enter the full name of a specific pack to download. You can download query packs created by other users.
3324

3425
## Installing dependencies for {% data variables.product.prodname_codeql %} query packs
3526

3627
1. In {% data variables.product.prodname_vscode_shortname %}, open the {% data variables.product.prodname_vscode_command_palette_shortname %} and run **{% data variables.product.prodname_codeql %}: Install Pack Dependencies**.
37-
3828
1. Select the packs that you want to install dependencies for.
3929

40-
## Downloading {% data variables.product.prodname_codeql %} query packs
41-
42-
1. In {% data variables.product.prodname_vscode_shortname %}, open the {% data variables.product.prodname_vscode_command_palette_shortname %} and run **{% data variables.product.prodname_codeql %}: Download Packs**.
43-
44-
1. You can download all the core query packs, or enter the full name of a specific pack to download. You can download query packs created by other users.
45-
4630
## Viewing a {% data variables.product.prodname_codeql %} query pack and its dependencies
4731

4832
1. In {% data variables.product.prodname_vscode_shortname %}, open the `qlpack.yml` file in the root of any {% data variables.product.prodname_codeql %} pack directory.
49-
5033
1. In the `dependencies` section of the `qlpack.yml` file, you'll see what libraries the pack depends on.
5134

52-
1. Optionally, you can use {% data variables.product.prodname_vscode_shortname %}'s Intellisense features. For example, if you hover over an element from a library depended on by the pack, {% data variables.product.prodname_vscode %} will resolve it so you can see documentation about the element.
35+
1. Optionally, you can use {% data variables.product.prodname_vscode_shortname %}'s IntelliSense features. For example, if you hover over an element from a library depended on by the pack, {% data variables.product.prodname_vscode %} will resolve it so you can see documentation about the element.
5336

5437
1. To view the full definition of an element of a query, you can right-click and select **Go to Definition**.
5538

5639
* If the library pack is present within the same {% data variables.product.prodname_vscode %} workspace, this will take you to the definition within the workspace.
57-
5840
* Otherwise, you will see the definition stored in your package cache, where downloaded dependencies are saved. The package cache is a shared location that is stored in your home directory by default.
5941

60-
## Working with {% data variables.product.prodname_codeql %} model packs
42+
## Next steps
6143

6244
{% data reusables.code-scanning.beta-model-packs %}
6345

64-
{% data variables.product.prodname_codeql %} model packs can be used to expand {% data variables.product.prodname_code_scanning %} analysis to include dependencies that are not supported by default. The {% data variables.product.prodname_codeql %} extension for {% data variables.product.prodname_vscode %} includes a dedicated editor for creating and editing model packs. For information on using the model editor, see [AUTOTITLE](/code-security/codeql-for-vs-code/using-the-advanced-functionality-of-the-codeql-for-vs-code-extension/using-the-codeql-model-editor).
46+
{% data variables.product.prodname_codeql %} model packs can be used to expand {% data variables.product.prodname_code_scanning %} analysis to include dependencies that are not supported by default. The {% data variables.product.prodname_codeql %} extension for {% data variables.product.prodname_vscode %} includes a dedicated editor for creating and editing model packs. See [AUTOTITLE](/code-security/codeql-for-vs-code/using-the-advanced-functionality-of-the-codeql-for-vs-code-extension/using-the-codeql-model-editor).

0 commit comments

Comments
 (0)