Indexing external directory programatically
Answered
Hello,
I want to add external directory and create indices for it to my project programatically from the plugin code so I could search for the files in the directory with FilenameIndex.getFilesByName function. Is that achievable?
Could I create shared index for that directory so when accessing mentioned directory in different projects created index would be reused?
Please sign in to leave a comment.
Use EP List to find entry points https://plugins.jetbrains.com/docs/intellij/extension-point-list.html#indexingxml
com.intellij.indexedRootsProvider -> IndexableSetContributor
That's what I needed.Thanks for help