Take storage path off App instead of extension context

This commit is contained in:
Elena Tanasoiu
2023-04-12 16:39:14 +00:00
parent b4468d612a
commit e298f2ba09
2 changed files with 1 additions and 4 deletions

View File

@@ -862,7 +862,6 @@ async function activateWithInstalledDistribution(
databaseUI,
localQueryResultsView,
queryStorageDir,
ctx,
);
ctx.subscriptions.push(localQueries);

View File

@@ -2,7 +2,6 @@ import { ProgressCallback, ProgressUpdate, withProgress } from "./progress";
import {
CancellationToken,
CancellationTokenSource,
ExtensionContext,
QuickPickItem,
Range,
Uri,
@@ -222,7 +221,6 @@ export class LocalQueries extends DisposableObject {
private readonly databaseUI: DatabaseUI,
private readonly localQueryResultsView: ResultsView,
private readonly queryStorageDir: string,
private readonly ctx: ExtensionContext,
) {
super();
}
@@ -384,7 +382,7 @@ export class LocalQueries extends DisposableObject {
async (progress: ProgressCallback, token: CancellationToken) => {
const credentials = isCanary() ? this.app.credentials : undefined;
const contextStoragePath =
this.ctx.storageUri?.fsPath || this.ctx.globalStorageUri.fsPath;
this.app.workspaceStoragePath || this.app.globalStoragePath;
const skeletonQueryWizard = new SkeletonQueryWizard(
this.cliServer,
progress,