File tree Expand file tree Collapse file tree 1 file changed +11
-15
lines changed
server/src/main/kotlin/org/javacs/kt/index Expand file tree Collapse file tree 1 file changed +11
-15
lines changed Original file line number Diff line number Diff line change @@ -117,22 +117,18 @@ class SymbolIndex {
117
117
val started = System .currentTimeMillis()
118
118
LOG .info(" Updating symbol index..." )
119
119
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))" )
133
128
}
134
-
135
- progress.close()
129
+ } catch (e: Exception ) {
130
+ LOG .error(" Error while updating symbol index" )
131
+ LOG .printStackTrace(e)
136
132
}
137
133
}
138
134
You can’t perform that action at this time.
0 commit comments