Swap arguments so command arg comes last
This commit is contained in:
@@ -1274,7 +1274,7 @@ async function activateWithInstalledDistribution(
|
|||||||
|
|
||||||
ctx.subscriptions.push(
|
ctx.subscriptions.push(
|
||||||
commandRunner("codeQL.previewQueryHelp", async (selectedQuery: Uri) => {
|
commandRunner("codeQL.previewQueryHelp", async (selectedQuery: Uri) => {
|
||||||
await previewQueryHelp(cliServer, selectedQuery, qhelpTmpDir);
|
await previewQueryHelp(cliServer, qhelpTmpDir, selectedQuery);
|
||||||
}),
|
}),
|
||||||
);
|
);
|
||||||
|
|
||||||
@@ -1842,8 +1842,8 @@ async function compileAndRunQueryOnMultipleDatabases(
|
|||||||
|
|
||||||
async function previewQueryHelp(
|
async function previewQueryHelp(
|
||||||
cliServer: CodeQLCliServer,
|
cliServer: CodeQLCliServer,
|
||||||
selectedQuery: Uri,
|
|
||||||
qhelpTmpDir: DirResult,
|
qhelpTmpDir: DirResult,
|
||||||
|
selectedQuery: Uri,
|
||||||
): Promise<void> {
|
): Promise<void> {
|
||||||
// selectedQuery is unpopulated when executing through the command palette
|
// selectedQuery is unpopulated when executing through the command palette
|
||||||
const pathToQhelp = selectedQuery
|
const pathToQhelp = selectedQuery
|
||||||
|
|||||||
Reference in New Issue
Block a user