mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-03-22 06:50:54 +07:00
Do not write showing_time log when there is no show
GitOrigin-RevId: 1250a73bd0c478b5cfb8e198e3e7c0c61e3da6ce
This commit is contained in:
committed by
intellij-monorepo-bot
parent
8b3fd0b3ef
commit
4690be09a5
@@ -98,14 +98,16 @@ internal class InlineCompletionLogsListener(private val editor: Editor) : Inline
|
||||
override fun onHide(event: InlineCompletionEventType.Hide) {
|
||||
val container = InlineCompletionLogsContainer.remove(editor) ?: return
|
||||
with(holder) {
|
||||
container.add(WAS_SHOWN with wasShown)
|
||||
container.add(SHOWING_TIME.with(System.currentTimeMillis() - showStartTime))
|
||||
container.add(FINISH_TYPE with event.finishType)
|
||||
container.add(FULL_INSERT_ACTIONS with fullInsertActions)
|
||||
container.add(NEXT_WORD_ACTIONS with nextWordActions)
|
||||
container.add(NEXT_LINE_ACTIONS with nextLineActions)
|
||||
container.add(TOTAL_INSERTED_LENGTH with totalInsertedLength)
|
||||
container.add(TOTAL_INSERTED_LINES with totalInsertedLines)
|
||||
container.add(WAS_SHOWN with wasShown)
|
||||
if (wasShown) {
|
||||
container.add(SHOWING_TIME.with(System.currentTimeMillis() - showStartTime))
|
||||
container.add(FULL_INSERT_ACTIONS with fullInsertActions)
|
||||
container.add(NEXT_WORD_ACTIONS with nextWordActions)
|
||||
container.add(NEXT_LINE_ACTIONS with nextLineActions)
|
||||
container.add(TOTAL_INSERTED_LENGTH with totalInsertedLength)
|
||||
container.add(TOTAL_INSERTED_LINES with totalInsertedLines)
|
||||
}
|
||||
}
|
||||
container.logCurrent() // see doc of this function, it's very fast, and we should wait for its completion
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user