Skip to content

Commit 01fcb6e

Browse files
committed
refactor(config): remove SecretStorage dependency
1 parent 36be83d commit 01fcb6e

2 files changed

Lines changed: 3 additions & 5 deletions

File tree

src/managers/config.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
1-
import { type SecretStorage, workspace } from "vscode";
1+
import { workspace } from "vscode";
22

33
import { ApiKey } from "@/lib/api-key";
44
import { ExtensionID } from "@/lib/constants";
55

66
export class ConfigManager {
7-
apiKey = new ApiKey(this.secrets);
8-
9-
constructor(private readonly secrets: SecretStorage) {}
7+
apiKey = new ApiKey();
108

119
get root() {
1210
return workspace.getConfiguration(ExtensionID);

src/managers/extension.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import { TreeViewsManager } from "./treeviews";
1414
export class SquareCloudExtension {
1515
private readonly logger = new Logger("Square Cloud");
1616

17-
public readonly config = new ConfigManager(this.context.secrets);
17+
public readonly config = new ConfigManager();
1818
public readonly configFile = new ConfigFileManager(this);
1919
public readonly treeViews = new TreeViewsManager(this);
2020
public readonly commands = new CommandsManager(this);

0 commit comments

Comments
 (0)