Skip to content

Commit 757f22a

Browse files
Update src/core/context-tracking/FileContextTracker.ts
Co-authored-by: ellipsis-dev[bot] <65095814+ellipsis-dev[bot]@users.noreply.github.com>
1 parent 8ba06dc commit 757f22a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/core/context-tracking/FileContextTracker.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ export class FileContextTracker {
111111

112112
// Gets task metadata from storage
113113
async getTaskMetadata(taskId: string): Promise<TaskMetadata> {
114-
const globalStoragePath = this.getContextProxy()!.globalStorageUri.fsPath
114+
const globalStoragePath = this.getContextProxy()?.globalStorageUri.fsPath ?? ''
115115
const taskDir = await getTaskDirectoryPath(globalStoragePath, taskId)
116116
const filePath = path.join(taskDir, GlobalFileNames.taskMetadata)
117117
try {
@@ -180,7 +180,7 @@ export class FileContextTracker {
180180
case "roo_edited":
181181
newEntry.roo_read_date = now
182182
newEntry.roo_edit_date = now
183-
this.checkpointPossibleFile.add(filePath)
183+
this.checkpointPossibleFiles.add(filePath)
184184
break
185185

186186
// read_tool/file_mentioned: Roo has read the file via a tool or file mention
@@ -205,8 +205,8 @@ export class FileContextTracker {
205205
}
206206

207207
getAndClearCheckpointPossibleFile(): string[] {
208-
const files = Array.from(this.checkpointPossibleFile)
209-
this.checkpointPossibleFile.clear()
208+
const files = Array.from(this.checkpointPossibleFiles)
209+
this.checkpointPossibleFiles.clear()
210210
return files
211211
}
212212

0 commit comments

Comments
 (0)