Swap arguments so command arg comes last

This commit is contained in:
Robert
2023-03-15 13:36:57 +00:00
parent 7571304fb2
commit e81d585336

View File

@@ -1274,7 +1274,7 @@ async function activateWithInstalledDistribution(
ctx.subscriptions.push(
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(
cliServer: CodeQLCliServer,
selectedQuery: Uri,
qhelpTmpDir: DirResult,
selectedQuery: Uri,
): Promise<void> {
// selectedQuery is unpopulated when executing through the command palette
const pathToQhelp = selectedQuery