From 1adb714f92eb30ea39ecfbbaa42670132fa1ac32 Mon Sep 17 00:00:00 2001 From: Alex Plate Date: Thu, 29 Nov 2018 12:48:23 +0300 Subject: [PATCH] Retype: Log post caret completions --- .../lang-impl/src/com/intellij/internal/retype/RetypeSession.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/platform/lang-impl/src/com/intellij/internal/retype/RetypeSession.kt b/platform/lang-impl/src/com/intellij/internal/retype/RetypeSession.kt index 375020f022c0..08dd38fcef72 100644 --- a/platform/lang-impl/src/com/intellij/internal/retype/RetypeSession.kt +++ b/platform/lang-impl/src/com/intellij/internal/retype/RetypeSession.kt @@ -357,6 +357,7 @@ class RetypeSession( document.replaceString(pos, pos + docIndexOfFirstComp, replacement) } } + (pos until pos + origIndexOfFirstComp + firstCompletion.length).forEach { log.recordCompletion(document.text[it]) } pos += origIndexOfFirstComp + firstCompletion.length editor.caretModel.moveToOffset(pos) completionStack.removeLast()