mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-08-28 05:27:24 +00:00
fix: Add remaining missing types for Files Changed Overview feature
This commit is contained in:
parent
db6cd50669
commit
886e8178cb
3 changed files with 22 additions and 0 deletions
|
|
@ -267,6 +267,7 @@ export class Task extends EventEmitter<TaskEvents> implements TaskLike {
|
|||
enableCheckpoints: boolean
|
||||
checkpointService?: RepoPerTaskCheckpointService
|
||||
checkpointServiceInitializing = false
|
||||
ongoingCheckpointSaves?: Set<string>
|
||||
|
||||
// Task Bridge
|
||||
enableBridge: boolean
|
||||
|
|
|
|||
|
|
@ -118,6 +118,7 @@ export class ClineProvider
|
|||
private mdmService?: MdmService
|
||||
private taskCreationCallback: (task: Task) => void
|
||||
private taskEventListeners: WeakMap<Task, Array<() => void>> = new WeakMap()
|
||||
private fileChangeManager?: any // FileChangeManager instance
|
||||
|
||||
private recentTasksCache?: string[]
|
||||
|
||||
|
|
@ -1654,6 +1655,7 @@ export class ClineProvider
|
|||
|
||||
return {
|
||||
version: this.context.extension?.packageJSON?.version ?? "",
|
||||
filesChangedEnabled: false, // Add this property
|
||||
apiConfiguration,
|
||||
customInstructions,
|
||||
alwaysAllowReadOnly: alwaysAllowReadOnly ?? false,
|
||||
|
|
@ -1864,6 +1866,7 @@ export class ClineProvider
|
|||
|
||||
// Return the same structure as before.
|
||||
return {
|
||||
filesChangedEnabled: false, // Add this property
|
||||
apiConfiguration: providerSettings,
|
||||
lastShownAnnouncementId: stateValues.lastShownAnnouncementId,
|
||||
customInstructions: stateValues.customInstructions,
|
||||
|
|
@ -2013,6 +2016,20 @@ export class ClineProvider
|
|||
return this.contextProxy.getValue(key)
|
||||
}
|
||||
|
||||
// File Change Manager methods
|
||||
public getFileChangeManager(): any {
|
||||
return this.fileChangeManager
|
||||
}
|
||||
|
||||
public ensureFileChangeManager(): any {
|
||||
if (!this.fileChangeManager) {
|
||||
// Import and create FileChangeManager instance
|
||||
const { FileChangeManager } = require("../../services/file-changes/FileChangeManager")
|
||||
this.fileChangeManager = new FileChangeManager()
|
||||
}
|
||||
return this.fileChangeManager
|
||||
}
|
||||
|
||||
public async setValue<K extends keyof RooCodeSettings>(key: K, value: RooCodeSettings[K]) {
|
||||
await this.contextProxy.setValue(key, value)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -52,6 +52,8 @@ export interface WebviewMessage {
|
|||
| "webviewDidLaunch"
|
||||
| "webviewReady"
|
||||
| "filesChangedRequest"
|
||||
| "filesChangedEnabled"
|
||||
| "filesChangedBaselineUpdate"
|
||||
| "viewDiff"
|
||||
| "acceptFileChange"
|
||||
| "rejectFileChange"
|
||||
|
|
@ -274,6 +276,8 @@ export interface WebviewMessage {
|
|||
visibility?: ShareVisibility // For share visibility
|
||||
hasContent?: boolean // For checkRulesDirectoryResult
|
||||
checkOnly?: boolean // For deleteCustomMode check
|
||||
fileChanges?: any[] // For filesChanged message
|
||||
baseline?: string // For filesChangedBaselineUpdate
|
||||
codeIndexSettings?: {
|
||||
// Global state settings
|
||||
codebaseIndexEnabled: boolean
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue