mirror of
https://github.com/Kilo-Org/kilocode.git
synced 2026-08-29 03:44:06 +08:00
refactor(vscode): drop dead meta parameter from session migrate()
Co-authored-by: kiloconnect[bot] <240665456+kiloconnect[bot]@users.noreply.github.com>
This commit is contained in:
@@ -197,7 +197,6 @@ async function startRooMigration(
|
||||
selection,
|
||||
ctx.extensionContext as Parameters<typeof migrateSession>[1],
|
||||
ctx.client as KiloClient,
|
||||
undefined,
|
||||
progress,
|
||||
resolved,
|
||||
),
|
||||
|
||||
@@ -264,8 +264,7 @@ export async function migrate(
|
||||
selections: selections.sessions,
|
||||
sessions,
|
||||
resolve: (id) => resolveSession(catalog, id),
|
||||
migrate: (selection, source, progress) =>
|
||||
migrateSession(selection, context, client, undefined, progress, source),
|
||||
migrate: (selection, source, progress) => migrateSession(selection, context, client, progress, source),
|
||||
onProgress,
|
||||
onSessionProgress,
|
||||
})),
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import * as vscode from "vscode"
|
||||
import type { KiloClient } from "@kilocode/sdk/v2/client"
|
||||
import { getMigrationErrorMessage } from "../errors/migration-error"
|
||||
import type { MigrationSessionInfo, MigrationSessionProgress, MigrationSessionSelection } from "../legacy-types"
|
||||
import type { MigrationSessionProgress, MigrationSessionSelection } from "../legacy-types"
|
||||
import { createSessionID } from "./lib/ids"
|
||||
import type { SessionSource } from "../task-store"
|
||||
import type { LegacyHistoryItem } from "./lib/legacy-types"
|
||||
@@ -31,11 +31,6 @@ export async function migrate(
|
||||
input: MigrationSessionSelection,
|
||||
context: vscode.ExtensionContext,
|
||||
client: KiloClient,
|
||||
_meta?: {
|
||||
session: MigrationSessionInfo
|
||||
index: number
|
||||
total: number
|
||||
},
|
||||
onProgress?: ProgressCallback,
|
||||
resolved?: SessionSource,
|
||||
): Promise<Result> {
|
||||
|
||||
Reference in New Issue
Block a user