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.
@@ -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