svelte-intellij
svelte-intellij copied to clipboard
Svelte components in WebStorm and friends
The following screenshot shows a case where the plugin fails to find dependencies. This is, to be fair a nasty special case. Here I use svelte for electron browser windows....
Me again ;) I was just puzzled that a svelte file that 'looked' good didn't compile. I missed one single quotation mark on an import and both me and the...
Github supports svelte in markdown like this ```text ```svelte ``` But the IDE only supports ```text ```sveltehtml ```
``` java.lang.AssertionError at com.intellij.lang.javascript.psi.impl.JSParameterImpl.getUseScope(JSParameterImpl.java:268) at com.intellij.psi.impl.search.PsiSearchHelperImpl.getUseScope(PsiSearchHelperImpl.java:76) at com.intellij.psi.search.searches.ReferencesSearch$SearchParameters.getEffectiveSearchScope(ReferencesSearch.java:112) at dev.blachut.svelte.lang.codeInsight.SvelteReferencesSearch.processQuery(SvelteReferencesSearch.kt:19) at dev.blachut.svelte.lang.codeInsight.SvelteReferencesSearch.processQuery(SvelteReferencesSearch.kt:12) at com.intellij.openapi.application.QueryExecutorBase.execute(QueryExecutorBase.java:77) at com.intellij.util.ExecutorsQuery.processResults(ExecutorsQuery.java:28) at com.intellij.util.AbstractQuery.doProcessResults(AbstractQuery.java:91) at com.intellij.util.AbstractQuery.delegateProcessResults(AbstractQuery.java:108) at com.intellij.util.MergeQuery.processResults(MergeQuery.java:22) at com.intellij.util.AbstractQuery.doProcessResults(AbstractQuery.java:91) at com.intellij.util.AbstractQuery.delegateProcessResults(AbstractQuery.java:108) at com.intellij.util.UniqueResultsQuery.processResults(UniqueResultsQuery.java:39) at com.intellij.util.AbstractQuery.doProcessResults(AbstractQuery.java:91)...
Refer to this test: https://github.com/sveltejs/svelte/tree/master/test/parser/samples/textarea-children And this repl: https://svelte.dev/repl/1e98afa6a765431d9368139f9f48c6dc?version=3.24.1
Therefore, as the variable is treated as unused, its import gets removed when running 'Reformat code' with 'Optimize imports' option. Apart from all other problems like not found usages etc....
I encountered this when using same quotes in the curly braces as in the html tags.  ---  ---  I can provide additional code and examples if needed....
Hi, thanks for this really nice plugin ! Would it be possible to add type suggestion for component props ? 
I often would rather have double quotes instead of curly braces. In the case when the js code within the braces has spaces, double quotes need to be used anyways....
Hi again, thx for the latest update spotted another bug. Something like this breaks the file: `class:materials={/"/.test()}` --- 