Skip to content

Commit

Permalink
Update WebPanelView.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
hellovai committed Jul 3, 2024
1 parent e73bd3e commit 091d705
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,7 @@ export class WebPanelView {
try {
console.log('jumpToFile', message.data)
const span = message.data as StringSpan
// span.source_file is a file:/// URI
const uri = vscode.Uri.parse(span.source_file)
await vscode.workspace.openTextDocument(uri).then((doc) => {
const range = new vscode.Range(doc.positionAt(span.start), doc.positionAt(span.end))
Expand Down

0 comments on commit 091d705

Please sign in to comment.