You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While the extension is displaying the documentation about currently hovered function, it wrongly assumes the markdown is correct, while in fact the Svelte documentation is being pulled from a browser, where a [link](/data/server-side-component-api) is properly interpreted to be a path as in an anchor tag, in a context of an editor, it is wrongly assumed to be a link to file located on the users drive as /docs or similar.
Reproduction
While hovering over a documented function from svelte package, any link inside the markdown contains only the route (/docs#etc-etc) and not a full URI (https://svelte.dev/docs#etc-etc)
Expected behaviour
The extension should add back the information about the internet resource as it is no longer markdown meant to be interacted on the website, but in the editor itself.
System Info
OS: Arch Linux 6.7.2-arch1-1
IDE: VSCode 1.85.2
Svelte for VS Code v108.2.1
Which package is the issue about?
Svelte for VS Code extension
Additional Information, eg. Screenshots
Keep in mind this could also be an issue with SvelteKit documentation, and also other code editors could interact badly with the link being a file path and not a URI, which could make it a svelte-language-server issue also.
The text was updated successfully, but these errors were encountered:
jasonlyu123
changed the title
Inline links in hover information should prepend 'https://svelte.dev', so VSCode doesn't prompt for new file creation.
JSDoc link should include 'https://svelte.dev'
Jan 31, 2024
Describe the bug
While the extension is displaying the documentation about currently hovered function, it wrongly assumes the markdown is correct, while in fact the Svelte documentation is being pulled from a browser, where a
[link](/data/server-side-component-api)
is properly interpreted to be a path as in an anchor tag, in a context of an editor, it is wrongly assumed to be a link to file located on the users drive as/docs
or similar.Reproduction
While hovering over a documented function from svelte package, any link inside the markdown contains only the route (/docs#etc-etc) and not a full URI (https://svelte.dev/docs#etc-etc)
Expected behaviour
The extension should add back the information about the internet resource as it is no longer markdown meant to be interacted on the website, but in the editor itself.
System Info
Which package is the issue about?
Svelte for VS Code extension
Additional Information, eg. Screenshots
Keep in mind this could also be an issue with SvelteKit documentation, and also other code editors could interact badly with the link being a file path and not a URI, which could make it a svelte-language-server issue also.
The text was updated successfully, but these errors were encountered: