Skip to content

Commit

Permalink
Add/update some code comments
Browse files Browse the repository at this point in the history
  • Loading branch information
charisk committed Jan 24, 2024
1 parent 3d9a8d2 commit 12449ad
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
6 changes: 3 additions & 3 deletions extensions/ql-vscode/src/variant-analysis/ql-pack-details.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@ import type { QueryLanguage } from "../common/query-language";
* a variant analysis.
*/
export interface QlPackDetails {
// The full paths of the query files.
// The absolute paths of the query files.
queryFiles: string[];

// The path to the QL pack that is used for triggering a variant analysis.
// The absolute path to the QL pack that is used for triggering a variant analysis.
// If there is no query pack, this is the same as the directory of the query files.
qlPackRootPath: string;

// The path to the QL pack file (a qlpack.yml or codeql-pack.yml) or undefined if
// The absolute path to the QL pack file (a qlpack.yml or codeql-pack.yml) or undefined if
// it doesn't exist.
qlPackFilePath: string | undefined;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -380,6 +380,9 @@ export class VariantAnalysisManager
this.dbManager,
);

// For now we ge the metadata for the first query in the pack.
// and use that in the submission and query history. In the future
// we'll need to consider how to handle having multiple queries.
const firstQueryFile = qlPackDetails.queryFiles[0];
const queryMetadata = await tryGetQueryMetadata(
this.cliServer,
Expand Down

0 comments on commit 12449ad

Please sign in to comment.