diff --git a/clients/vscode/src/chat/WebviewHelper.ts b/clients/vscode/src/chat/WebviewHelper.ts index b80c2c8b371f..8a5a5ee261a7 100644 --- a/clients/vscode/src/chat/WebviewHelper.ts +++ b/clients/vscode/src/chat/WebviewHelper.ts @@ -640,7 +640,9 @@ export class WebviewHelper { } } - const targetRange = fileLocation.location ? chatPanelLocationToVSCodeRange(fileLocation.location) ?? new Range(0, 0, 0, 0) : new Range(0, 0, 0, 0); + const targetRange = fileLocation.location + ? chatPanelLocationToVSCodeRange(fileLocation.location) ?? new Range(0, 0, 0, 0) + : new Range(0, 0, 0, 0); try { await commands.executeCommand( "editor.action.goToLocations",