From d4517ea3d002dc516d7df799a8a206c974f54179 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yann=20C=C3=A9bron?= Date: Thu, 19 Aug 2021 11:44:27 +0200 Subject: [PATCH] file_based_indexes.md: mention com.intellij.indexedRootsProvider EP --- topics/basics/indexing_and_psi_stubs/file_based_indexes.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/topics/basics/indexing_and_psi_stubs/file_based_indexes.md b/topics/basics/indexing_and_psi_stubs/file_based_indexes.md index 7e09ca171..28606a868 100644 --- a/topics/basics/indexing_and_psi_stubs/file_based_indexes.md +++ b/topics/basics/indexing_and_psi_stubs/file_based_indexes.md @@ -96,3 +96,7 @@ Generally, the word index should be accessed indirectly by using helper methods ### File Type Index [`FileTypeIndex`](upsource:///platform/indexing-api/src/com/intellij/psi/search/FileTypeIndex.java) serves a similar goal: it allows to find all files of a particular [`FileType`](upsource:///platform/core-api/src/com/intellij/openapi/fileTypes/FileType.java) quickly. + +## Additional Index Roots + +To add additional files/directories to be indexed, implement [`IndexableSetContributor`](upsource:///platform/indexing-api/src/com/intellij/util/indexing/IndexableSetContributor.java) and register in [`com.intellij.indexedRootsProvider`](https://jb.gg/ipe?extensions=com.intellij.indexedRootsProvider) extension point. \ No newline at end of file