From 6c20c5db4501a318b301f026988a1ae9b23ac18f Mon Sep 17 00:00:00 2001 From: Remon Oldenbeuving Date: Mon, 19 May 2025 13:28:54 +0200 Subject: [PATCH 1/2] fix(webview): Fix links to filename:0 --- src/integrations/misc/open-file.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/integrations/misc/open-file.ts b/src/integrations/misc/open-file.ts index 52352314b3e..d48bda6401a 100644 --- a/src/integrations/misc/open-file.ts +++ b/src/integrations/misc/open-file.ts @@ -77,7 +77,9 @@ export async function openFile(filePath: string, options: OpenFileOptions = {}) const document = await vscode.workspace.openTextDocument(uri) const selection = - options.line !== undefined ? new vscode.Selection(options.line - 1, 0, options.line - 1, 0) : undefined + options.line !== undefined + ? new vscode.Selection(Math.max(options.line - 1, 0), 0, Math.max(options.line - 1, 0), 0) + : undefined await vscode.window.showTextDocument(document, { preview: false, selection, From 8123baba284f46893d217a4452d979e706107c43 Mon Sep 17 00:00:00 2001 From: Remon Oldenbeuving Date: Mon, 19 May 2025 16:23:22 +0200 Subject: [PATCH 2/2] Add changeset --- .changeset/slimy-paths-design.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/slimy-paths-design.md diff --git a/.changeset/slimy-paths-design.md b/.changeset/slimy-paths-design.md new file mode 100644 index 00000000000..7a46f4b7d04 --- /dev/null +++ b/.changeset/slimy-paths-design.md @@ -0,0 +1,5 @@ +--- +"roo-cline": patch +--- + +Fixed bug that prevented some file links from working in the Agent output