Skip to content

Commit fcf9b13

Browse files
committed
Merge branch 'main' into eamon/morecleanups
2 parents 5973132 + 5e9dad0 commit fcf9b13

File tree

9 files changed

+1435
-991
lines changed

9 files changed

+1435
-991
lines changed

jetbrains/host/pnpm-lock.yaml

Lines changed: 1374 additions & 920 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
"prettier": "^3.4.2",
6262
"rimraf": "^6.0.1",
6363
"tsx": "^4.19.3",
64-
"turbo": "^2.5.6",
64+
"turbo": "^2.6.0",
6565
"typescript": "^5.4.5"
6666
},
6767
"lint-staged": {

pnpm-lock.yaml

Lines changed: 55 additions & 47 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/services/ghost/GhostServiceManager.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ export class GhostServiceManager {
4747

4848
// Register Internal Components
4949
this.documentStore = new GhostDocumentStore()
50-
this.providerSettingsManager = new ProviderSettingsManager(context)
50+
this.providerSettingsManager = cline.providerSettingsManager
5151
this.model = new GhostModel()
5252
this.ghostContext = new GhostContext(this.documentStore)
5353

src/services/ghost/classic-auto-complete/HoleFiller.ts

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,4 @@
11
import { AutocompleteInput } from "../types"
2-
import type { TextDocument, Range } from "vscode"
3-
4-
/**
5-
* Special marker used to indicate where completions should occur in the document
6-
*/
7-
export const CURSOR_MARKER = "<<<AUTOCOMPLETE_HERE>>>"
82

93
export interface FillInAtCursorSuggestion {
104
text: string
@@ -103,17 +97,6 @@ function hypothenuse(a, b) {
10397
`
10498
}
10599

106-
export function addCursorMarker(document: TextDocument, range?: Range): string {
107-
if (!range) return document.getText()
108-
109-
const fullText = document.getText()
110-
const cursorOffset = document.offsetAt(range.start)
111-
const beforeCursor = fullText.substring(0, cursorOffset)
112-
const afterCursor = fullText.substring(cursorOffset)
113-
114-
return `${beforeCursor}${CURSOR_MARKER}${afterCursor}`
115-
}
116-
117100
/**
118101
* Parse the response - only handles responses with <COMPLETION> tags
119102
* Returns a FillInAtCursorSuggestion with the extracted text, or an empty string if nothing found

src/test-llm-autocompletion/strategy-tester.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
import { LLMClient } from "./llm-client.js"
2-
import { HoleFiller, CURSOR_MARKER, parseGhostResponse } from "../services/ghost/classic-auto-complete/HoleFiller.js"
2+
import { HoleFiller, parseGhostResponse } from "../services/ghost/classic-auto-complete/HoleFiller.js"
33
import { GhostSuggestionContext, AutocompleteInput } from "../services/ghost/types.js"
44
import { MockTextDocument } from "../services/mocking/MockTextDocument.js"
55
import * as vscode from "vscode"
66
import crypto from "crypto"
7+
import { CURSOR_MARKER } from "./test-cases.js"
78

89
export class StrategyTester {
910
private llmClient: LLMClient

src/test-llm-autocompletion/test-cases.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
import fs from "fs"
22
import path from "path"
33
import { fileURLToPath } from "url"
4-
import { CURSOR_MARKER } from "../services/ghost/classic-auto-complete/HoleFiller.js"
4+
5+
export const CURSOR_MARKER = "<<<AUTOCOMPLETE_HERE>>>"
56

67
const __filename = fileURLToPath(import.meta.url)
78
const __dirname = path.dirname(__filename)

webview-ui/src/components/settings/DisplaySettings.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ type DisplaySettingsProps = HTMLAttributes<HTMLDivElement> & {
1616
showTaskTimeline?: boolean
1717
sendMessageOnEnter?: boolean // kilocode_change
1818
showTimestamps?: boolean
19-
ghostServiceSettings?: any
2019
reasoningBlockCollapsed: boolean
2120
setCachedStateField: SetCachedStateField<
2221
| "showTaskTimeline"
@@ -33,7 +32,6 @@ export const DisplaySettings = ({
3332
showTaskTimeline,
3433
showTimestamps,
3534
sendMessageOnEnter,
36-
ghostServiceSettings,
3735
setCachedStateField,
3836
reasoningBlockCollapsed,
3937
hideCostBelowThreshold,

webview-ui/src/components/settings/SettingsView.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -915,7 +915,6 @@ const SettingsView = forwardRef<SettingsViewRef, SettingsViewProps>(({ onDone, t
915915
showTaskTimeline={showTaskTimeline}
916916
sendMessageOnEnter={sendMessageOnEnter}
917917
showTimestamps={cachedState.showTimestamps} // kilocode_change
918-
ghostServiceSettings={ghostServiceSettings}
919918
hideCostBelowThreshold={hideCostBelowThreshold}
920919
setCachedStateField={setCachedStateField}
921920
/>

0 commit comments

Comments
 (0)