[terminal] IDEA-344353 Do not show completion after typing space

GitOrigin-RevId: 4928d9b756105f4d05b1a68a8845e46e580f1d41
This commit is contained in:
Konstantin Hudyakov
2024-01-29 17:02:26 +00:00
committed by intellij-monorepo-bot
parent 165421c59d
commit 73fb7acefc
@@ -15,7 +15,7 @@ import java.io.File
/**
* Logic is mostly copied from [com.intellij.codeInsight.editorActions.CompletionAutoPopupHandler].
* Added additional characters to trigger auto popup (' ', '-', '/').
* Added additional characters to trigger auto popup ('-', '/').
* Allowed to reopen the popup automatically in the [EmptyAutoPopup] phase.
*/
class TerminalCompletionAutoPopupHandler : TypedHandlerDelegate() {
@@ -32,7 +32,7 @@ class TerminalCompletionAutoPopupHandler : TypedHandlerDelegate() {
return Result.STOP
}
if (Character.isLetterOrDigit(charTyped) || charTyped == ' ' || charTyped == '-' || charTyped == File.separatorChar) {
if (Character.isLetterOrDigit(charTyped) || charTyped == '-' || charTyped == File.separatorChar) {
AutoPopupController.getInstance(project).scheduleAutoPopup(editor)
return Result.STOP
}