mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-08-28 05:27:24 +00:00
fix(webview): Fix links to filename:0 (#3727)
* fix(webview): Fix links to filename:0 * Add changeset
This commit is contained in:
parent
d70d0c1627
commit
8721ab5dcd
2 changed files with 8 additions and 1 deletions
5
.changeset/slimy-paths-design.md
Normal file
5
.changeset/slimy-paths-design.md
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
"roo-cline": patch
|
||||
---
|
||||
|
||||
Fixed bug that prevented some file links from working in the Agent output
|
||||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue