Link ES6 Import to XML Tag to make it used
Answered
Hi,
What is the class to override in order to make an import used when an XML tag is present
I'm working with the svelte syntax which is similar to html but the issue I couldn't solve is to make the import used if a tag is present
Example code
<script>
import Child from "./Child.svelte";
</script>
<Child></Child>
The tag descriptor already return the declaration but the inspector doesn't take that into account
I also tried to use intentionAndInspectionFilter but with no success
Thank you
Please sign in to leave a comment.
Actually yes, I think the reference searcher implementation is the best solution in this case.
I used referencesSearch to solve the issue
Here are the commits if anyone wants to implement a similar function
https://github.com/tomblachut/svelte-intellij/pull/28/commits/87f09395baf058be43cb449855a7c7502012ece
https://github.com/tomblachut/svelte-intellij/pull/28/commits/1287232dfeb1b45df63c78157ef2958cc801dfd4