Skip to content

JSDoc link should include 'https://svelte.dev' #10351

@forvate

Description

@forvate

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

  • 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

example
prompt

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions