Skip to content

Commit b5b988e

Browse files
Merge pull request #25 from github/elena/yer-a-codespace-query
Change tour to suggest using new `Create Query` command
2 parents 992f08e + c32ed4f commit b5b988e

File tree

2 files changed

+3
-18
lines changed

2 files changed

+3
-18
lines changed

.tours/codeql-tutorial.tour

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -106,25 +106,9 @@
106106
"title": "Run query yourself"
107107
},
108108
{
109-
"file": "tutorial-queries/tutorial.ql",
110-
"description": "It's time to add your own database and analyze some real code!\n\nHover over the 'Databases' title bar and click 'Download Database from GitHub'. Enter the repository name of your favorite open source repository.\nAfter the download has finished, the database will be automatically selected.",
111-
"selection": {
112-
"start": {
113-
"line": 7,
114-
"character": 1
115-
},
116-
"end": {
117-
"line": 9,
118-
"character": 1
119-
}
120-
},
121-
"title": "Add your own database",
109+
"description": "It's time to create your own query and analyze some real code!\n\n1. Open the Command Palette with `Cmd/Ctrl+Shift+P` and type 'CodeQL: Create Query'.\n2. Choose the language that you'd like to analyze.\n3. Type the name of a repository with that language, so that we can download the CodeQL database for it.\n\n When the download has finished, the database will be automatically selected, so you can immediately modify and run your query!",
110+
"title": "Add your own query",
122111
"view": "codeQLDatabases"
123-
},
124-
{
125-
"title": "CodeQL pack",
126-
"description": "After adding a database we create a new CodeQL pack for you.\n\nThis loads all dependencies needed for the language of the database, and creates an example query that you can run and modify.\n\nOpen `example.ql` inside the 'codeql-custom-queries-*' folder to get started.",
127-
"view": "explorer"
128112
}
129113
]
130114
}

codeql-workspace.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
provide:
22
- "tutorial-queries/codeql-pack.yml"
3+
- "codeql-custom-queries-*/codeql-pack.yml"

0 commit comments

Comments
 (0)