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
This change will only work on databases created by cli >= 2.4.1. In that
version, a new `primaryLanguage` field in the `codeql-database.yml`
file. We use this property as the language.
This change also includes a refactoring of the logic around extracting
database information heuristically based on file location. As much
as possible, it is extracted to the `helpers` module. Also, the
initial quick query text is generated based on the language (if known)
otherwise it falls back to the old style of generation.
Copy file name to clipboardExpand all lines: extensions/ql-vscode/CHANGELOG.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,6 +4,7 @@
4
4
5
5
- Fix bug when removing databases where sometimes the source folder would not be removed from the workspace or the database files would not be removed from the workspace storage location. [#692](https://github.com/github/vscode-codeql/pull/692)
6
6
- Query results with no string representation will now be displayed with placeholder text in query results. Previously, they were omitted. [#694](https://github.com/github/vscode-codeql/pull/694)
7
+
- Add a label for the language of a database in the databases view. This will only take effect for new databases created with the CodeQL CLI v2.4.1 or later. [#697](https://github.com/github/vscode-codeql/pull/697)
@@ -400,12 +394,11 @@ export async function resolveDatasetFolder(cliServer: CodeQLCliServer, datasetFo
400
394
401
395
dbschemes.sort();
402
396
constdbscheme=dbschemes[0];
397
+
403
398
if(dbschemes.length>1){
404
399
Window.showErrorMessage(`Found multiple dbschemes in ${datasetFolder} during quick query; arbitrarily choosing the first, ${dbscheme}, to decide what library to use.`);
@@ -51,7 +44,7 @@ export async function displayQuickQuery(
51
44
ctx: ExtensionContext,
52
45
cliServer: CodeQLCliServer,
53
46
databaseUI: DatabaseUI,
54
-
progress: helpers.ProgressCallback,
47
+
progress: ProgressCallback,
55
48
token: CancellationToken
56
49
){
57
50
@@ -85,7 +78,7 @@ export async function displayQuickQuery(
85
78
// being undefined) just let the user know that they're in for a
86
79
// restart.
87
80
if(workspace.workspaceFile===undefined){
88
-
constmakeMultiRoot=awaithelpers.showBinaryChoiceDialog('Quick query requires multiple folders in the workspace. Reload workspace as multi-folder workspace?');
81
+
constmakeMultiRoot=awaitshowBinaryChoiceDialog('Quick query requires multiple folders in the workspace. Reload workspace as multi-folder workspace?');
0 commit comments