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/using-the-codeql-model-editor.rst
+6-2Lines changed: 6 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -32,6 +32,10 @@ Displaying the CodeQL model editor
32
32
#. The CodeQL model editor runs a series of telemetry queries to identify APIs in the code and the editor is displayed in a new tab.
33
33
#. When the telemetry queries are complete, the APIs that have been identified are shown in the editor.
34
34
35
+
.. tip::
36
+
37
+
The "CodeQL method modeling" section is a view that you can move from the primary sidebar to the secondary sidebar, when you want more space while you are modeling calls or methods. If you close the view, you can reopen it from the "Open Views" option in the **View** menu.
38
+
35
39
Modeling the calls your codebase makes to external APIs
@@ -56,13 +60,13 @@ You typically use this approach when you are looking at a specific codebase wher
56
60
:width:800
57
61
:alt:Screenshot of a file showing a place where your codebase calls the API is highlighted with a dark orange outline.
58
62
59
-
#. The file containing the first call from your codebase to the API is opened and a "CodeQL methods usage" view opened (typically this is co-located with the "Problems" and "Terminal" views. The "CodeQL methods usage" view lists of all the calls from your code to the API, grouped by method. You can click through each use to decide how to model your use of the method.
63
+
#. The file containing the first call from your codebase to the API is opened and a "CodeQL methods usage" view is displayed in the VS Code Panel (where the "Problems" and "Terminal" views are usually displayed). The "CodeQL methods usage" view lists of all the calls from your code to the API, grouped by method. You can click through each use to decide how to model your use of the method.
:alt:Screenshot of the "CodeQL methods usage" view. The currently displayed call to an external method is highlighted blue.
64
68
65
-
#. When you have determined how to model your use of the method, define the **Model type** in either the main model editor tab, or in the "CodeQL method modeling" tab.
69
+
#. When you have determined how to model your use of the method, you can define the **Model type** in the "CodeQL method modeling" tab of the CodeQL extension and this change is automatically reflected in the main model editor.
66
70
#. The remaining fields are updated with available options:
67
71
68
72
- **Source**: choose the **Output** element to model.
0 commit comments