Skip to content

Commit e298f2b

Browse files
committed
Take storage path off App instead of extension context
1 parent b4468d6 commit e298f2b

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

extensions/ql-vscode/src/extension.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -862,7 +862,6 @@ async function activateWithInstalledDistribution(
862862
databaseUI,
863863
localQueryResultsView,
864864
queryStorageDir,
865-
ctx,
866865
);
867866
ctx.subscriptions.push(localQueries);
868867

extensions/ql-vscode/src/local-queries.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import { ProgressCallback, ProgressUpdate, withProgress } from "./progress";
22
import {
33
CancellationToken,
44
CancellationTokenSource,
5-
ExtensionContext,
65
QuickPickItem,
76
Range,
87
Uri,
@@ -222,7 +221,6 @@ export class LocalQueries extends DisposableObject {
222221
private readonly databaseUI: DatabaseUI,
223222
private readonly localQueryResultsView: ResultsView,
224223
private readonly queryStorageDir: string,
225-
private readonly ctx: ExtensionContext,
226224
) {
227225
super();
228226
}
@@ -384,7 +382,7 @@ export class LocalQueries extends DisposableObject {
384382
async (progress: ProgressCallback, token: CancellationToken) => {
385383
const credentials = isCanary() ? this.app.credentials : undefined;
386384
const contextStoragePath =
387-
this.ctx.storageUri?.fsPath || this.ctx.globalStorageUri.fsPath;
385+
this.app.workspaceStoragePath || this.app.globalStoragePath;
388386
const skeletonQueryWizard = new SkeletonQueryWizard(
389387
this.cliServer,
390388
progress,

0 commit comments

Comments
 (0)