Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions .changeset/remove-continue-completion-provider.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
---
"kilo-code": patch
---

Remove unused ContinueCompletionProvider and NextEdit code

This removes the ContinueCompletionProvider class and all its dependencies that are no longer used by our codebase. The GhostInlineCompletionProvider is our active autocomplete implementation.

Removed files:

- ContinueCompletionProvider and its test
- GhostTextAcceptanceTracker (only used by ContinueCompletionProvider)
- statusBar.ts (only used by ContinueCompletionProvider)
- activation folder (JumpManager, NextEditWindowManager, SelectionChangeManager)
- util folder (errorHandling, util, workspaceConfig)
- Entire nextEdit folder (NextEditProvider, NextEditLoggingService, PrefetchQueue, etc.)
- autodetect.ts (modelSupportsNextEdit function)

Also cleaned up index.d.ts by removing unused NextEdit-related types:

- IAutocompleteNextEditLLM interface
- RangeInFileWithNextEditInfo interface
- nextEdit property from ModelCapability
4 changes: 1 addition & 3 deletions src/services/continuedev/core/autocomplete/MinimalConfig.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
/**
* Minimal configuration for autocomplete and NextEdit features.
* Minimal configuration for autocomplete features.
* This replaces the complex ConfigHandler system with simple hardcoded defaults.
*
* Analysis of ConfigHandler usage:
* - CompletionProvider needs: config.tabAutocompleteOptions, config.experimental.enableStaticContextualization, currentProfile.profileType
* - NextEditProvider needs: config.tabAutocompleteOptions, currentProfile.profileType
* - NextEdit context fetching needs: config.modelsByRole, config.selectedModelByRole
*
* The profileType is only used for logging/telemetry, so we can set it to undefined for a minimal extraction.
*/
Expand Down
60 changes: 0 additions & 60 deletions src/services/continuedev/core/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,55 +85,6 @@ export interface ILLM extends Omit<LLMOptions, RequiredLLMOptions>, Required<Pic
supportsFim(): boolean
}

// Narrowed interface for autocomplete and NextEdit consumers
export interface IAutocompleteNextEditLLM {
// Core identification
readonly providerName: string
readonly underlyingProviderName: string
model: string
title?: string

// API configuration
apiKey?: string
apiBase?: string

// Capabilities and options
capabilities?: ModelCapability
contextLength: number
completionOptions: CompletionOptions
autocompleteOptions?: Partial<TabAutocompleteOptions>
promptTemplates?: Partial<Record<keyof PromptTemplates, PromptTemplate>>
useLegacyCompletionsEndpoint?: boolean

// State
lastRequestId?: string

// Required methods for autocomplete
streamComplete(
prompt: string,
signal: AbortSignal,
options?: LLMFullCompletionOptions,
): AsyncGenerator<string, PromptLog>

streamFim(
prefix: string,
suffix: string,
signal: AbortSignal,
options?: LLMFullCompletionOptions,
): AsyncGenerator<string, PromptLog>

supportsFim(): boolean

// Required methods for NextEdit
chat(messages: ChatMessage[], signal: AbortSignal, options?: LLMFullCompletionOptions): Promise<ChatMessage>

// Required for token counting
countTokens(text: string): number

// Required for reranking (NextEdit editable region calculation)
rerank(query: string, chunks: Chunk[]): Promise<number[]>
}

export type ContextProviderType = "normal" | "query" | "submenu"
export type ContextIndexingType = "chunk" | "embeddings" | "fullTextSearch" | "codeSnippets"

Expand Down Expand Up @@ -520,7 +471,6 @@ export interface BaseCompletionOptions {
export interface ModelCapability {
uploadImage?: boolean
tools?: boolean
nextEdit?: boolean
}

export interface JSONEmbedOptions {
Expand Down Expand Up @@ -580,16 +530,6 @@ export interface RangeInFileWithContents {
contents: string
}

export interface RangeInFileWithNextEditInfo {
filepath: string
range: Range
fileContents: string
editText: string
afterCursorPos: Position
beforeCursorPos: Position
workspaceDir: string
}

/**
* Signature help represents the signature of something
* callable. There can be multiple signatures but only one
Expand Down
100 changes: 0 additions & 100 deletions src/services/continuedev/core/llm/autodetect.test.ts

This file was deleted.

23 changes: 0 additions & 23 deletions src/services/continuedev/core/llm/autodetect.ts

This file was deleted.

Loading