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
So all you have to do is svelte-devtools to include this relative url and line number in the element, add a button that opens such a link, and that's all the work.
The text was updated successfully, but these errors were encountered:
We'll be adding this exclusively to app built with the vite plugin because only vite exposes such functionality to open editors from the browser, at least for now. @dominikg also mentions that vite can open other editors as well, so the extension will be working closely with v-p-s in this manner.
Can you add a function that works like this:
https://github.com/sveltejs/vite-plugin-svelte/blob/main/docs/config.md#inspector
Meaning in the DevTools panel an additional button that opens the item in VSCode in the source file?
Inspector in vite-plugin-svelte is based on a very simple url, such as:
http://localhost:5173/__open-in-editor?file=src/lib/Views.svelte:56:3
Such url works, even if the inspector is not enabled.
So all you have to do is svelte-devtools to include this relative url and line number in the element, add a button that opens such a link, and that's all the work.
The text was updated successfully, but these errors were encountered: