Merge pull request #2393 from github/aeisenberg/fix-cfg-viewer

Fix CFG viewer
This commit is contained in:
Andrew Eisenberg
2023-05-01 07:29:26 -07:00
committed by GitHub
2 changed files with 6 additions and 1 deletions

View File

@@ -52,6 +52,8 @@ export function getAstCfgCommands({
progress,
token,
undefined,
undefined,
res[1],
);
}
},

View File

@@ -337,6 +337,7 @@ export class LocalQueries extends DisposableObject {
token: CancellationToken,
databaseItem: DatabaseItem | undefined,
range?: Range,
templates?: Record<string, string>,
): Promise<void> {
await this.compileAndRunQueryInternal(
quickEval,
@@ -345,6 +346,7 @@ export class LocalQueries extends DisposableObject {
token,
databaseItem,
range,
templates,
);
}
@@ -356,6 +358,7 @@ export class LocalQueries extends DisposableObject {
token: CancellationToken,
databaseItem: DatabaseItem | undefined,
range?: Range,
templates?: Record<string, string>,
): Promise<CoreCompletedQuery> {
let queryPath: string;
if (queryUri !== undefined) {
@@ -395,7 +398,7 @@ export class LocalQueries extends DisposableObject {
extensionPacks,
this.queryStorageDir,
undefined,
undefined,
templates,
);
// handle cancellation from the history view.