Skip to content

Commit

Permalink
fix: correct link in markdown hover preview
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesdabbs committed Jun 4, 2024
1 parent ba49e7f commit 113e67d
Show file tree
Hide file tree
Showing 3 changed files with 784 additions and 3 deletions.
3 changes: 2 additions & 1 deletion packages/vscode/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"homepage": "https://topology.pi-base.org/",
"license": "ISC",
"author": "James Dabbs <james.dabbs@gmail.com> (https://jdabbs.com)",
"version": "0.0.12",
"version": "0.0.13",
"repository": {
"type": "git",
"url": "https://github.com/pi-base/web.git"
Expand Down Expand Up @@ -59,6 +59,7 @@
},
"dependencies": {
"@pi-base/core": "workspace:*",
"@vscode/vsce": "^2.27.0",
"debug": "^4.3.4",
"js-yaml": "^4.1.0",
"zod": "^3.23.8"
Expand Down
4 changes: 2 additions & 2 deletions packages/vscode/src/providers/EntityIdHoverProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ export class EntityIdHoverProvider
return
}

const { path, name, description } = entity
const { uri, name, description } = entity

return new vscode.Hover(
new vscode.MarkdownString(
[`# [${name}](${path})`, '', description].join('\n'),
[`# [${name}](${uri})`, '', description].join('\n'),
),
)
}
Expand Down
Loading

0 comments on commit 113e67d

Please sign in to comment.