Apply biome rules: noUnusedVariables, noUnusedFunctionParameters, noUnusedImports (#5545)
* Enable biome rules: noUnusedVariables, noUnusedFunctionParameters, noUnusedImports * Apply new rules with format * remove unused currentReplaceContent * update nextTerminalId * fix all format issues * update biome config * add back applyContextOptimizations and killAllChromeBrowsers
This commit is contained in:
463 files changed
+3439
-3152
No files matched your search
@@ -1,7 +1,7 @@
|
||||
import { Controller } from ".."
|
||||
import { Empty } from "@shared/proto/cline/common"
|
||||
import { AskResponseRequest } from "@shared/proto/cline/task"
|
||||
import { ClineAskResponse } from "../../../shared/WebviewMessage"
|
||||
import { Controller } from ".."
|
||||
|
||||
/**
|
||||
* Handles a response from the webview for a previous ask operation
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { Controller } from ".."
|
||||
import { Empty, EmptyRequest } from "@shared/proto/cline/common"
|
||||
import { Controller } from ".."
|
||||
|
||||
/**
|
||||
* Cancel the currently running task
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { Controller } from ".."
|
||||
import { Empty, EmptyRequest } from "@shared/proto/cline/common"
|
||||
import { Controller } from ".."
|
||||
|
||||
/**
|
||||
* Clears the current task
|
||||
|
||||
@@ -1,11 +1,10 @@
|
||||
import path from "path"
|
||||
import fs from "fs/promises"
|
||||
import { Controller } from ".."
|
||||
import { DeleteAllTaskHistoryCount } from "@shared/proto/cline/task"
|
||||
import { fileExistsAtPath } from "../../../utils/fs"
|
||||
import { ShowMessageRequest, ShowMessageType } from "@/shared/proto/host/window"
|
||||
import fs from "fs/promises"
|
||||
import path from "path"
|
||||
import { HostProvider } from "@/hosts/host-provider"
|
||||
import { HistoryItem } from "@/shared/HistoryItem"
|
||||
import { ShowMessageRequest, ShowMessageType } from "@/shared/proto/host/window"
|
||||
import { fileExistsAtPath } from "../../../utils/fs"
|
||||
import { Controller } from ".."
|
||||
|
||||
/**
|
||||
* Deletes all task history, with an option to preserve favorites
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
import path from "path"
|
||||
import fs from "fs/promises"
|
||||
import { Controller } from ".."
|
||||
import { Empty, StringArrayRequest } from "@shared/proto/cline/common"
|
||||
import { fileExistsAtPath } from "../../../utils/fs"
|
||||
import fs from "fs/promises"
|
||||
import path from "path"
|
||||
import { HostProvider } from "@/hosts/host-provider"
|
||||
import { ShowMessageRequest, ShowMessageType } from "@/shared/proto/host/window"
|
||||
import { ShowMessageType } from "@/shared/proto/host/window"
|
||||
import { fileExistsAtPath } from "../../../utils/fs"
|
||||
import { Controller } from ".."
|
||||
|
||||
/**
|
||||
* Deletes tasks with the specified IDs
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { ExecuteQuickWinRequest } from "@shared/proto/cline/task"
|
||||
import { Empty } from "@shared/proto/cline/common"
|
||||
import { ExecuteQuickWinRequest } from "@shared/proto/cline/task"
|
||||
import type { Controller } from "../index"
|
||||
|
||||
/**
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { Controller } from ".."
|
||||
import { Empty, StringRequest } from "@shared/proto/cline/common"
|
||||
import { Controller } from ".."
|
||||
|
||||
/**
|
||||
* Exports a task with the given ID to markdown
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
import { Controller } from ".."
|
||||
import { GetTaskHistoryRequest, TaskHistoryArray } from "@shared/proto/cline/task"
|
||||
import { getWorkspacePath, arePathsEqual } from "../../../utils/path"
|
||||
import { HistoryItem } from "@/shared/HistoryItem"
|
||||
import { arePathsEqual, getWorkspacePath } from "../../../utils/path"
|
||||
import { Controller } from ".."
|
||||
|
||||
/**
|
||||
* Gets filtered task history
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { Controller } from ".."
|
||||
import { EmptyRequest, Int64 } from "@shared/proto/cline/common"
|
||||
import { getTotalTasksSize as calculateTotalTasksSize } from "../../../utils/storage"
|
||||
import { Controller } from ".."
|
||||
|
||||
/**
|
||||
* Gets the total size of all tasks including task data and checkpoints
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { Controller } from ".."
|
||||
import { Empty } from "@shared/proto/cline/common"
|
||||
import { NewTaskRequest } from "@shared/proto/cline/task"
|
||||
import { Controller } from ".."
|
||||
|
||||
/**
|
||||
* Creates a new task with the given text and optional images
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
import { Controller } from ".."
|
||||
import { StringRequest } from "@shared/proto/cline/common"
|
||||
import { TaskResponse } from "@shared/proto/cline/task"
|
||||
import { Controller } from ".."
|
||||
import { sendChatButtonClickedEvent } from "../ui/subscribeToChatButtonClicked"
|
||||
import { HistoryItem } from "@/shared/HistoryItem"
|
||||
|
||||
/**
|
||||
* Shows a task with the specified ID
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
import { Empty, Int64Request } from "@shared/proto/cline/common"
|
||||
import { Controller } from ".."
|
||||
import { Empty } from "@shared/proto/cline/common"
|
||||
import { Int64Request } from "@shared/proto/cline/common"
|
||||
|
||||
/**
|
||||
* Shows task completion changes in a diff view
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { Controller } from ".."
|
||||
import { Empty, StringRequest } from "@shared/proto/cline/common"
|
||||
import { telemetryService } from "@services/posthog/PostHogClientProvider"
|
||||
import { Empty, StringRequest } from "@shared/proto/cline/common"
|
||||
import { Controller } from ".."
|
||||
|
||||
/**
|
||||
* Handles task feedback submission (thumbs up/down)
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
import { HistoryItem } from "@/shared/HistoryItem"
|
||||
import { Controller } from "../"
|
||||
import { Empty } from "@shared/proto/cline/common"
|
||||
import { TaskFavoriteRequest } from "@shared/proto/cline/task"
|
||||
import { Controller } from "../"
|
||||
|
||||
export async function toggleTaskFavorite(controller: Controller, request: TaskFavoriteRequest): Promise<Empty> {
|
||||
if (!request.taskId || request.isFavorited === undefined) {
|
||||
|
||||
Reference in new issue
Block a user