diff --git a/src/extension/inlineEdits/node/nextEditCache.ts b/src/extension/inlineEdits/node/nextEditCache.ts index 70ed98df30..018e56f3cb 100644 --- a/src/extension/inlineEdits/node/nextEditCache.ts +++ b/src/extension/inlineEdits/node/nextEditCache.ts @@ -39,7 +39,7 @@ export interface CachedEdit { cacheTime: number; } -export type CachedOrRebasedEdit = CachedEdit & { rebasedEdit?: StringReplacement; rebasedEditIndex?: number; showLabel?: boolean }; +export type CachedOrRebasedEdit = CachedEdit & { rebasedEdit?: StringReplacement; rebasedEditIndex?: number }; export class NextEditCache extends Disposable { private readonly _documentCaches = new Map(); diff --git a/src/extension/inlineEdits/node/nextEditProvider.ts b/src/extension/inlineEdits/node/nextEditProvider.ts index 3d83d784ee..cc16d4c281 100644 --- a/src/extension/inlineEdits/node/nextEditProvider.ts +++ b/src/extension/inlineEdits/node/nextEditProvider.ts @@ -32,7 +32,6 @@ import { assertType } from '../../../util/vs/base/common/types'; import { generateUuid } from '../../../util/vs/base/common/uuid'; import { LineEdit } from '../../../util/vs/editor/common/core/edits/lineEdit'; import { StringEdit, StringReplacement } from '../../../util/vs/editor/common/core/edits/stringEdit'; -import { Range } from '../../../util/vs/editor/common/core/range'; import { OffsetRange } from '../../../util/vs/editor/common/core/ranges/offsetRange'; import { StringText } from '../../../util/vs/editor/common/core/text/abstractText'; import { checkEditConsistency } from '../common/editRebase'; @@ -41,7 +40,7 @@ import { DebugRecorder } from './debugRecorder'; import { INesConfigs } from './nesConfigs'; import { CachedOrRebasedEdit, NextEditCache } from './nextEditCache'; import { LlmNESTelemetryBuilder } from './nextEditProviderTelemetry'; -import { INextEditDisplayLocation, INextEditResult, NextEditResult } from './nextEditResult'; +import { INextEditResult, NextEditResult } from './nextEditResult'; export interface INextEditProvider extends IDisposable { readonly ID: string; @@ -193,7 +192,6 @@ export class NextEditProvider extends Disposable implements INextEditProvider) => void; +export type PushEdit = (edit: Result<{ edit: LineReplacement; window?: OffsetRange; targetDocument?: DocumentId }, NoNextEditReason>) => void; export interface IStatelessNextEditProvider { readonly ID: string;