We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3e1a5b0 commit 01ab459Copy full SHA for 01ab459
server/src/main/kotlin/org/javacs/kt/index/SymbolIndex.kt
@@ -35,11 +35,16 @@ class SymbolIndex {
35
LOG.info("Updating symbol index...")
36
37
try {
38
+ val descriptors = allDescriptors(module)
39
+
40
+ // TODO: Incremental updates
41
transaction(db) {
- for (descriptor in allDescriptors(module)) {
42
+ Symbols.deleteAll()
43
44
+ for (descriptor in descriptors) {
45
val fqn = descriptor.fqNameSafe
46
- Symbols.insert {
47
+ Symbols.insertIgnore {
48
it[fqName] = fqn.toString()
49
it[shortName] = fqn.shortName().toString()
50
it[kind] = descriptor.accept(ExtractSymbolKind, Unit).rawValue
0 commit comments