sveltejs / vite-plugin-svelte

Svelte plugin for http://vitejs.dev/
MIT License
864 stars 105 forks source link

Cannot open components files that break out of layout on Windows #954

Closed rChaoz closed 3 months ago

rChaoz commented 3 months ago

Describe the bug

SvelteKit allows page/layout files to be suffixed with @ followed by the path name of the layout you wish to use, instead of the default one (breaking out of layouts). Svelte Inspector cannot open this file because '@' is not an allowed character.

Reproduction URL

-

Reproduction

Use Ctrl + Shift and click on a component located in a +page@.svelte/+layout@.svelte.

Logs

Could not open +layout@.svelte in the editor.

When running on Windows, file names are checked against a safe file name pattern to protect against remote code execution attacks. File names may consist only of alphanumeric characters (all languages), periods, dashes, slashes, and underscores.

System Info

-
rChaoz commented 3 months ago

This issue belongs to the launch-editor-middleware project