Skip to content

Commit 6246b53

Browse files
committed
refactor: rename SquareEasyExtension to SquareCloudExtension
1 parent 1f097a4 commit 6246b53

13 files changed

Lines changed: 28 additions & 32 deletions

File tree

src/core/activate.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import { SquareEasyExtension } from "@/managers/extension";
1+
import { SquareCloudExtension } from "@/managers/extension";
22
import type { ExtensionContext } from "vscode";
33

44
export async function activate(context: ExtensionContext): Promise<void> {
5-
new SquareEasyExtension(context);
5+
new SquareCloudExtension(context);
66
}

src/managers/api.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
import { ApplicationStatus } from "@/structures/application/status";
22
import { Logger } from "@/structures/logger";
33
import { SquareCloudAPI } from "@squarecloud/api";
4-
import type { SquareEasyExtension } from "./extension";
4+
import type { SquareCloudExtension } from "./extension";
55

66
export class APIManager {
7-
private readonly logger = new Logger("Square Cloud Easy");
7+
private readonly logger = new Logger("Square Cloud");
88

99
public paused = false;
1010

11-
constructor(private readonly extension: SquareEasyExtension) {
11+
constructor(private readonly extension: SquareCloudExtension) {
1212
this.refresh();
1313
setInterval(() => this.refresh(), 30000);
1414
}

src/managers/commands.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@ import type { Command } from "@/structures/command";
22
import { Logger } from "@/structures/logger";
33
import * as vscode from "vscode";
44
import * as commands from "../commands";
5-
import type { SquareEasyExtension } from "./extension";
5+
import type { SquareCloudExtension } from "./extension";
66

77
export class CommandsManager {
8-
private readonly logger = new Logger("Square Cloud Easy");
8+
private readonly logger = new Logger("Square Cloud");
99

10-
constructor(private readonly extension: SquareEasyExtension) {
10+
constructor(private readonly extension: SquareCloudExtension) {
1111
this.loadCommands();
1212
}
1313

src/managers/config-file.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,11 @@
1-
import { ConfigFileParameters } from "@/config-file/parameters";
2-
import { createDiagnostic } from "@/lib/utils/diagnostic";
31
import { ConfigFileActionProvider } from "@/providers/config-file-action";
42
import { ConfigCompletionProvider } from "@/providers/config-file-completion";
53
import { validateConfigFile } from "@/providers/config-file-validation";
6-
import type { ConfigFileKeys } from "@/types/config-file";
74
import * as vscode from "vscode";
8-
import { t } from "vscode-ext-localisation";
9-
import type { SquareEasyExtension } from "./extension";
5+
import type { SquareCloudExtension } from "./extension";
106

117
export class ConfigFileManager {
12-
constructor(private readonly extension: SquareEasyExtension) {
8+
constructor(private readonly extension: SquareCloudExtension) {
139
this.initialize();
1410
}
1511

src/managers/extension.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ import { ConfigManager } from "./config";
99
import { ConfigFileManager } from "./config-file";
1010
import { TreeViewsManager } from "./treeviews";
1111

12-
export class SquareEasyExtension {
13-
private readonly logger = new Logger("Square Cloud Easy");
12+
export class SquareCloudExtension {
13+
private readonly logger = new Logger("Square Cloud");
1414

1515
public readonly config = new ConfigManager(this.context.secrets);
1616
public readonly configFile = new ConfigFileManager(this);

src/managers/treeviews.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { ApplicationsTreeViewProvider } from "@/treeviews/applications/provider";
22
import { UserTreeViewProvider } from "@/treeviews/user/provider";
33
import { window } from "vscode";
4-
import type { SquareEasyExtension } from "./extension";
4+
import type { SquareCloudExtension } from "./extension";
55

66
type TreeViewsKey = keyof TreeViewsManager["views"];
77

@@ -11,7 +11,7 @@ export class TreeViewsManager {
1111
user: new UserTreeViewProvider(this.extension),
1212
};
1313

14-
constructor(private readonly extension: SquareEasyExtension) {
14+
constructor(private readonly extension: SquareCloudExtension) {
1515
window.registerTreeDataProvider("apps-view", this.views.applications);
1616
window.registerTreeDataProvider("user-view", this.views.user);
1717
}

src/providers/config-file-validation.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { ConfigFileParameters } from "@/config-file/parameters";
22
import { createDiagnostic } from "@/lib/utils/diagnostic";
3-
import type { SquareEasyExtension } from "@/managers/extension";
3+
import type { SquareCloudExtension } from "@/managers/extension";
44
import type {
55
ConfigFileAllowedParams,
66
ConfigFileKeys,
@@ -12,7 +12,7 @@ import { t } from "vscode-ext-localisation";
1212
* This function validates the config file and sets the diagnostics for the document.
1313
*/
1414
export function validateConfigFile(
15-
extension: SquareEasyExtension,
15+
extension: SquareCloudExtension,
1616
document: vscode.TextDocument,
1717
diagnosticCollection: vscode.DiagnosticCollection,
1818
): void {

src/structures/application/command.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import { ExtensionID } from "@/lib/constants";
2-
import type { SquareEasyExtension } from "@/managers/extension";
2+
import type { SquareCloudExtension } from "@/managers/extension";
33
import type { ApplicationTreeItem } from "@/treeviews/applications/item";
44

55
export type CommandExecute = (
6-
extension: SquareEasyExtension,
6+
extension: SquareCloudExtension,
77
treeItem: ApplicationTreeItem,
88
...args: any[]
99
) => void;

src/structures/command.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { ExtensionID } from "@/lib/constants";
2-
import type { SquareEasyExtension } from "@/managers/extension";
2+
import type { SquareCloudExtension } from "@/managers/extension";
33

44
export type CommandExecute = (
5-
extension: SquareEasyExtension,
5+
extension: SquareCloudExtension,
66
...args: any[]
77
) => void;
88

src/treeviews/applications/item.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { getIcons } from "@/lib/utils/icons";
2-
import type { SquareEasyExtension } from "@/managers/extension";
2+
import type { SquareCloudExtension } from "@/managers/extension";
33
import type { BaseApplication } from "@squarecloud/api";
44
import { TreeItem, TreeItemCollapsibleState } from "vscode";
55
import type { CustomTreeItem } from "../items/custom";
@@ -28,7 +28,7 @@ export class ApplicationTreeItem extends TreeItem {
2828
contextValue = this.favorited ? "application-fav" : "application";
2929

3030
constructor(
31-
private readonly extension: SquareEasyExtension,
31+
private readonly extension: SquareCloudExtension,
3232
public readonly application: BaseApplication,
3333
) {
3434
super(application.name);

0 commit comments

Comments
 (0)