BAZEL-3492: Enable indexing of all files in directories and exclude unnecessary ones

Before that change, all the files unrelated to Bazel or Bazel targets (sources & resources) were part of the monorepo but not indexed. Additionally, we had some directories that should be excluded, but they were not. Both lead to long search operations e.g., Find in files. First results can appear pretty fast, but it takes some time for search to end.

The exclusion list was partially based on JPS exclusions. However, JPS declares hundreds of exclusions across all the files. Excluding exactly what JPS excludes is not viable and probably not needed. Most of them seem to be related to JPS or Gradle build. The list is focused on directories that are committed or filled when working with Bazel.


Merge-request: IJ-MR-220535
Merged-by: Damian Baczyński <damian.baczynski@jetbrains.com>

GitOrigin-RevId: 939139369d6e572a37a85a2ab60a228a310ccdd8
This commit is contained in:
Damian Baczyński
2026-09-01 19:23:34 +00:00
committed by intellij-monorepo-bot
parent 5415783696
commit 7d36016adb
+13
View File
@@ -3,6 +3,19 @@
dot_idea_directory_location: .idea.bazel
index_all_files_in_directories: true
directories:
.
-build/download
-build/dependencies/build/android-sdk
-config
-out
-platform/sqlite/target
-system
-test-config
-test-system
targets:
//...
@rules_jvm//...