From 5cccb7974533cfcba51bc64154fa90b5963aec96 Mon Sep 17 00:00:00 2001 From: Sanjula Ganepola Date: Sun, 17 Nov 2024 00:27:23 -0500 Subject: [PATCH] Fix lint errors Signed-off-by: Sanjula Ganepola --- src/componentsManager.ts | 8 ++++---- src/historyManager.ts | 4 ++-- src/views/components/componentsTreeDataProvider.ts | 2 +- src/views/history/history.ts | 2 +- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/componentsManager.ts b/src/componentsManager.ts index 10c9137..5072a04 100644 --- a/src/componentsManager.ts +++ b/src/componentsManager.ts @@ -1,4 +1,4 @@ -import * as child_process from "child_process"; +import * as childProcess from "child_process"; import { env, extensions, QuickPickItemKind, ShellExecution, TaskGroup, TaskPanelKind, TaskRevealKind, tasks, TaskScope, ThemeIcon, Uri, window } from "vscode"; import { act, componentsTreeDataProvider } from "./extension"; @@ -214,7 +214,7 @@ export class ComponentsManager { async getCliInfo(command: string, versionRegex: RegExp, ignoreError: boolean, checksIfRunning: boolean): Promise<{ version?: string, status: CliStatus }> { return new Promise<{ version?: string, status: CliStatus }>((resolve, reject) => { - child_process.exec(command, (error, stdout, stderr) => { + childProcess.exec(command, (error, stdout, stderr) => { const version = stdout?.match(versionRegex); if (error) { @@ -257,11 +257,11 @@ export class ComponentsManager { return { status: ExtensionStatus.Activated, version: extension.packageJSON.version - } + }; } else { return { status: ExtensionStatus.NotActivated - } + }; } } } \ No newline at end of file diff --git a/src/historyManager.ts b/src/historyManager.ts index 4b663b0..27b73b1 100644 --- a/src/historyManager.ts +++ b/src/historyManager.ts @@ -52,7 +52,7 @@ export class HistoryManager { async viewOutput(history: History) { await workspace.openTextDocument({ content: history.output }).then(async document => { await window.showTextDocument(document); - }) + }); } async restart(history: History) { @@ -64,7 +64,7 @@ export class HistoryManager { } async remove(history: History) { - const historyIndex = this.workspaceHistory[history.commandArgs.fsPath].findIndex(workspaceHistory => workspaceHistory.index === history.index) + const historyIndex = this.workspaceHistory[history.commandArgs.fsPath].findIndex(workspaceHistory => workspaceHistory.index === history.index); this.workspaceHistory[history.commandArgs.fsPath].splice(historyIndex, 1); this.storageManager.update(StorageKey.WorkspaceHistory, this.workspaceHistory); } diff --git a/src/views/components/componentsTreeDataProvider.ts b/src/views/components/componentsTreeDataProvider.ts index c30e0ea..29d0021 100644 --- a/src/views/components/componentsTreeDataProvider.ts +++ b/src/views/components/componentsTreeDataProvider.ts @@ -62,7 +62,7 @@ export default class ComponentsTreeDataProvider implements TreeDataProvider