mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
don't restart already restarted completion (EA-37973)
This commit is contained in:
+3
-1
@@ -604,7 +604,9 @@ public class CompletionProgressIndicator extends ProgressIndicatorBase implement
|
||||
cancel();
|
||||
|
||||
final CompletionProgressIndicator current = CompletionServiceImpl.getCompletionService().getCurrentCompletion();
|
||||
LOG.assertTrue(this == current, current + "!=" + this);
|
||||
if (this != current) {
|
||||
LOG.error(current + "!=" + this);
|
||||
}
|
||||
|
||||
if (isAutopopupCompletion() && !myLookup.isShown()) {
|
||||
if (CompletionServiceImpl.getCompletionService().getCurrentCompletion() == this) {
|
||||
|
||||
@@ -62,14 +62,11 @@ public class BackspaceHandler extends EditorActionHandler {
|
||||
}
|
||||
|
||||
if (process != null) {
|
||||
process.prefixUpdated();
|
||||
}
|
||||
|
||||
if (hideOffset < editor.getCaretModel().getOffset()) {
|
||||
if (process != null) {
|
||||
if (hideOffset < editor.getCaretModel().getOffset()) {
|
||||
process.scheduleRestart();
|
||||
return;
|
||||
}
|
||||
process.prefixUpdated();
|
||||
}
|
||||
|
||||
lookup.hide();
|
||||
|
||||
Reference in New Issue
Block a user