From 73d837902dffd4a952a61475096ee41f04862425 Mon Sep 17 00:00:00 2001 From: liangfung Date: Mon, 23 Dec 2024 21:41:24 +0700 Subject: [PATCH] update --- clients/vscode/src/chat/fileContext.ts | 2 +- ee/tabby-ui/components/chat/chat-panel.tsx | 2 +- ee/tabby-ui/components/chat/question-answer.tsx | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/clients/vscode/src/chat/fileContext.ts b/clients/vscode/src/chat/fileContext.ts index 13cad6d5d2a4..68bd74867b20 100644 --- a/clients/vscode/src/chat/fileContext.ts +++ b/clients/vscode/src/chat/fileContext.ts @@ -71,7 +71,7 @@ export async function showFileContext(fileContext: FileContext, gitProvider: Git preserveFocus: true, }); - // move the cursor to the specified line + // Move the cursor to the specified line const start = fileContext.range ? new Position(Math.max(0, fileContext.range.start - 1), 0) : new Position(0, 0); const end = fileContext.range ? new Position(fileContext.range.end, 0) : new Position(0, 0); editor.selection = new Selection(start, end); diff --git a/ee/tabby-ui/components/chat/chat-panel.tsx b/ee/tabby-ui/components/chat/chat-panel.tsx index 83270c4964f6..d3ee3d3a0f0b 100644 --- a/ee/tabby-ui/components/chat/chat-panel.tsx +++ b/ee/tabby-ui/components/chat/chat-panel.tsx @@ -284,7 +284,7 @@ function ChatPanelRenderer( ) : null} {relevantContext.map((item, idx) => { - // `filepath + range` as unique key + // `git_url + filepath + range` as unique key const key = `${item.git_url}_${item.filepath}_${item.range?.start}_${item.range?.end}` return (