@@ -398,23 +398,23 @@ export class ChatController {
398398
399399 private async processOpenDiff ( message : OpenDiff ) {
400400 const session = this . sessionStorage . getSession ( message . tabID )
401- const filePath = session . getFilePath ?? message . filePath
401+ const filePath = session . filePath ?? message . filePath
402402 const fileExists = await fs . existsFile ( filePath )
403403 // Check if fileExists=false, If yes, return instead of showing broken diff experience.
404- if ( ! session . getTempFilePath ) {
404+ if ( ! session . tempFilePath ) {
405405 return
406406 }
407407 const leftUri = fileExists ? vscode . Uri . file ( filePath ) : vscode . Uri . from ( { scheme : 'untitled' } )
408- const rightUri = vscode . Uri . file ( session . getTempFilePath ?? filePath )
408+ const rightUri = vscode . Uri . file ( session . tempFilePath ?? filePath )
409409 const fileName = path . basename ( filePath )
410410 await vscode . commands . executeCommand ( 'vscode.diff' , leftUri , rightUri , `${ fileName } ${ amazonQTabSuffix } ` )
411411 }
412412
413413 private async processAcceptCodeDiff ( message : CustomFormActionMessage ) {
414414 const session = this . sessionStorage . getSession ( message . tabID ?? '' )
415- const filePath = session . getFilePath ?? ''
415+ const filePath = session . filePath ?? ''
416416 const fileExists = await fs . existsFile ( filePath )
417- const tempFilePath = session . getTempFilePath
417+ const tempFilePath = session . tempFilePath
418418 const tempFileExists = await fs . existsFile ( tempFilePath ?? '' )
419419 if ( fileExists && tempFileExists ) {
420420 const fileContent = await fs . readFileText ( filePath )
@@ -889,7 +889,7 @@ export class ChatController {
889889
890890 private async processPromptMessageAsNewThread ( message : PromptMessage ) {
891891 const session = this . sessionStorage . getSession ( message . tabID )
892- session . pushToListOfReadFiles ( undefined )
892+ session . clearListOfReadFiles ( )
893893 this . editorContextExtractor
894894 . extractContextForTrigger ( 'ChatMessage' )
895895 . then ( ( context ) => {
0 commit comments