File tree Expand file tree Collapse file tree 1 file changed +1
-6
lines changed
packages/core/src/amazonqTest/chat/controller Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Original file line number Diff line number Diff line change @@ -695,12 +695,7 @@ export class TestController {
695695 private async openDiff ( message : OpenDiffMessage ) {
696696 const session = this . sessionStorage . getSession ( )
697697 const filePath = session . generatedFilePath
698- const workspaceFolder = vscode . workspace . workspaceFolders ?. [ 0 ]
699- if ( ! workspaceFolder ) {
700- throw new Error ( 'No workspace folder found' )
701- }
702- const projectPath = workspaceFolder . uri . fsPath
703- const absolutePath = path . join ( projectPath , filePath )
698+ const absolutePath = path . join ( session . projectRootPath , filePath )
704699 const fileExists = await fs . existsFile ( absolutePath )
705700 const leftUri = fileExists ? vscode . Uri . file ( absolutePath ) : vscode . Uri . from ( { scheme : 'untitled' } )
706701 const rightUri = vscode . Uri . file ( path . join ( this . tempResultDirPath , 'resultArtifacts' , filePath ) )
You can’t perform that action at this time.
0 commit comments