Skip to content

Commit f693eb2

Browse files
committed
Remove progress indicators on incremental indexing
1 parent 4aa8456 commit f693eb2

File tree

1 file changed

+11
-15
lines changed

1 file changed

+11
-15
lines changed

server/src/main/kotlin/org/javacs/kt/index/SymbolIndex.kt

Lines changed: 11 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -117,22 +117,18 @@ class SymbolIndex {
117117
val started = System.currentTimeMillis()
118118
LOG.info("Updating symbol index...")
119119

120-
progressFactory.create("Indexing").thenApplyAsync { progress ->
121-
try {
122-
transaction(db) {
123-
removeDeclarations(remove)
124-
addDeclarations(add)
125-
126-
val finished = System.currentTimeMillis()
127-
val count = Symbols.slice(Symbols.fqName.count()).selectAll().first()[Symbols.fqName.count()]
128-
LOG.info("Updated symbol index in ${finished - started} ms! (${count} symbol(s))")
129-
}
130-
} catch (e: Exception) {
131-
LOG.error("Error while updating symbol index")
132-
LOG.printStackTrace(e)
120+
try {
121+
transaction(db) {
122+
removeDeclarations(remove)
123+
addDeclarations(add)
124+
125+
val finished = System.currentTimeMillis()
126+
val count = Symbols.slice(Symbols.fqName.count()).selectAll().first()[Symbols.fqName.count()]
127+
LOG.info("Updated symbol index in ${finished - started} ms! (${count} symbol(s))")
133128
}
134-
135-
progress.close()
129+
} catch (e: Exception) {
130+
LOG.error("Error while updating symbol index")
131+
LOG.printStackTrace(e)
136132
}
137133
}
138134

0 commit comments

Comments
 (0)