dschulten / sveltejs-idea-plugin

Idea plugin for sveltejs components
MIT License
14 stars 1 forks source link

Please don't "steal" the .html extension #2

Open marcvangend opened 7 years ago

marcvangend commented 7 years ago

Hi, thanks for contributing your plugin.

I just spent 15 minutes figuring out why suddenly HTML formatting was broken (wrong amount of indent spaces, no automatic white lines, etc.) in PhpStorm. As it turned out, installing the svelte plugin had "stolen" the .html extension. Under Settings > Editor > File Types, the .html extension had been moved to 'Svelte Html Components'. That means that the formatting settings under Settings > Editor > Code Style > HTML no longer applied to HTML documents (PhpStorm was using the settings for 'Other File Types' instead).

AFAIC this should not be the default behavior, as it is unexpected and hard to debug.

mineralmonster-old commented 5 years ago

Also breaks syntax highlighting for HTML Django Templates in PyCharm 2018.1.1

valentinogagliardi commented 5 years ago

Thanks for the plugin but I had the same issue. Since I installed it the "open in browser" feature in Webstorm stopped working. Hope it will be fixed. In the meantime I had to disable the plugin.