svelte-intellij icon indicating copy to clipboard operation
svelte-intellij copied to clipboard

Comment with Line Comment broken for <script> section of .svelte files

Open indigo-jay opened this issue 2 years ago • 2 comments

When I try to comment out the subscribe code section below using CMD-/ (macOS) in a svelte file:

<script>
	import DeviceFolderStore from "./stores/deviceFolderStore";

	let deviceFolders = [];

	DeviceFolderStore.subscribe(data => {
		deviceFolders = data;
	});
</script>

This is the result:

<script>
	import DeviceFolderStore from "./stores/deviceFolderStore";

	let deviceFolders = [];

	<!--DeviceFolderStore.subscribe(data => {-->
	<!--    deviceFolders = data;-->
	<!--});-->
</script>

So, it seems comments inside the

indigo-jay avatar Jul 01 '22 19:07 indigo-jay

Note, this is in PyCharm - not sure if that makes a difference.

indigo-jay avatar Jul 01 '22 19:07 indigo-jay

Same issue here with WebStorm. Is there a possible fix?

planetaska avatar Aug 27 '22 04:08 planetaska

Looks like a regression unrelated to Svelte plugin that was already fixed in WebStorm. If the problem persists please create an issue on YouTrack, thanks!

tomblachut avatar Jul 05 '23 16:07 tomblachut