tomblachut / svelte-intellij

Svelte components in WebStorm and friends
MIT License
482 stars 38 forks source link

Connect instance script with template expressions for code insight #3

Closed tomblachut closed 5 years ago

tomblachut commented 5 years ago

It will fix unused imports problem and improve rename refactoring

CreaturesInUnitards commented 5 years ago

It will fix unused imports problem [...]

Is this referring to imports appearing as unused if they're not used inside a <script>?

tomblachut commented 5 years ago

Exactly

tomblachut commented 5 years ago

While #28 fixes unused imports problem main script is still disconnected from template expressions so for example variables aren't referenced by usages

unlocomqx commented 5 years ago

Here's some insight from the jetbrains guys https://intellij-support.jetbrains.com/hc/en-us/community/posts/360004357879-Different-behavior-between-LanguageInjector-and-MultiHostInjector