Skip to content

Commit 691bf81

Browse files
committed
Only index normal Kotlin files
1 parent 8b6631d commit 691bf81

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

server/src/main/kotlin/org/javacs/kt/SourcePath.kt

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,10 @@ class SourcePath(
200200
}
201201
}
202202

203-
updateIndexAsync(container)
203+
// Only index normal files, not build files
204+
if (kind == CompilationKind.DEFAULT) {
205+
updateIndexAsync(container)
206+
}
204207

205208
return context
206209
}
@@ -219,8 +222,8 @@ class SourcePath(
219222
* Updates the symbol index asynchronously.
220223
*/
221224
private fun updateIndexAsync(container: ComponentProvider) = indexAsync.execute {
222-
val module = container.getService(ModuleDescriptor::class.java)
223-
index.update(module)
225+
// val module = container.getService(ModuleDescriptor::class.java)
226+
// index.update(module)
224227
}
225228

226229
/**

0 commit comments

Comments
 (0)