From 7d36016adbb0fecba1c6713022fb7db0ea7a7978 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Damian=20Baczy=C5=84ski?= Date: Tue, 1 Sep 2026 14:54:43 +0000 Subject: [PATCH] BAZEL-3492: Enable indexing of all files in directories and exclude unnecessary ones MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 GitOrigin-RevId: 939139369d6e572a37a85a2ab60a228a310ccdd8 --- .bazelproject | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.bazelproject b/.bazelproject index 19e96d4bb78d..a71afb122bb5 100644 --- a/.bazelproject +++ b/.bazelproject @@ -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//...