I have an issue with my plugin. I have implement a ReferenceProvider for autocompletion and reference check in XML Files.
My problem is that the references and autocompletion does not work. In order to make the loading of the ids from other files efficent I try to load the required files by indexing them. Therefore I am also creating a GlobalSearchScope for the directories where I am trying to locate the references.
Via the method `FileBasedIndex.getInstance().getContainingFiles(...)` I am trying to find the indexed files by given key.
But for some reason I don't understand why my index key has no values. But it should have some.
But when I invalidate the cache and start intellij again, I can see that the Index is working.After starting the project later it does not work until I invalidate the cache again and restart intellij
Here is a sample of my code and the test project for the plugin.
Upload id: 2022_10_20_5Y4NEx5PTHq4BspJATxitz (files: plugin_code.zip, completionTest.zip)