From f217f2a6dfb01a70752fde75154b407ec316e2e3 Mon Sep 17 00:00:00 2001 From: "autofix-ci[bot]" <114827586+autofix-ci[bot]@users.noreply.github.com> Date: Tue, 24 Dec 2024 04:05:20 +0000 Subject: [PATCH] [autofix.ci] apply automated fixes --- clients/vscode/src/chat/WebviewHelper.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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",