language-tools
language-tools copied to clipboard
on mac, incorrect .Svelte extension is accepted. Note the capital. It should not
Describe the bug
On MacOS, when by mistake one creates a .Svelte file instead a .svelte one, the vscode svelte extension does not complain but vite will and will show the (not so) missing file path that can be nevertheless opened by cmd Enter.
This due to the fact that mac filesystem are insensitive.
Reproduction
create a .Svelte file (note the upper case), import it from another component file.
Expected behaviour
The correct behavior for the svelte extension is to report an error because vite will bail out. Also the same repo with the same .Svelte file will cause an error on an non Mac filesystem.
System Info
Darwin cogs-MacBook-Air.local 24.1.0 Darwin Kernel Version 24.1.0: Tue Sep 17 07:48:04 PDT 2024; root:xnu-11215.40.59~38/RELEASE_ARM64_T8112 arm64 1.95.0-insider 38dc6ac5a771cc94bde1344722bb2d02c80096ea arm64
Last released 2024-11-22, 21:27:05 Last updated 2024-11-23, 06:43:00 Identifier svelte.svelte-vscode
Which package is the issue about?
No response
Additional Information, eg. Screenshots
No response