Skip to content

Commit b04d84c

Browse files
author
alexet
committed
Rename queryCounter to nextQueryId.
1 parent 5a5681d commit b04d84c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

extensions/ql-vscode/src/queries.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ export const tmpDirDisposal = {
3030
}
3131
};
3232

33-
let queryCounter = 0;
3433

3534
export class UserCancellationException extends Error { }
3635

@@ -43,6 +42,8 @@ export class UserCancellationException extends Error { }
4342
export class QueryInfo {
4443
compiledQueryPath: string;
4544
resultsInfo: ResultsInfo;
45+
private static nextQueryId = 0;
46+
4647
/**
4748
* Map from result set name to SortedResultSetInfo.
4849
*/
@@ -56,7 +57,7 @@ export class QueryInfo {
5657
public quickEvalPosition?: messages.Position,
5758
public metadata?: cli.QueryMetadata,
5859
) {
59-
this.queryId = queryCounter++;
60+
this.queryId = QueryInfo.nextQueryId++;
6061
this.compiledQueryPath = path.join(tmpDir.name, `compiledQuery${this.queryId}.qlo`);
6162
this.resultsInfo = {
6263
resultsPath: path.join(tmpDir.name, `results${this.queryId}.bqrs`),

0 commit comments

Comments
 (0)