mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IJPL-214795 [mod-commands] (part) LookupImpl: disable ModCommand caching in power-save mode
GitOrigin-RevId: 6f8d8d324e770aeaadec01254d7de001c3941892
This commit is contained in:
committed by
intellij-monorepo-bot
parent
dde7f5b667
commit
cd294aa27d
@@ -13,6 +13,7 @@ import com.intellij.codeInsight.lookup.impl.actions.ChooseItemAction;
|
||||
import com.intellij.codeInsight.template.impl.actions.NextVariableAction;
|
||||
import com.intellij.codeWithMe.ClientId;
|
||||
import com.intellij.featureStatistics.FeatureUsageTracker;
|
||||
import com.intellij.ide.PowerSaveMode;
|
||||
import com.intellij.injected.editor.DocumentWindow;
|
||||
import com.intellij.injected.editor.EditorWindow;
|
||||
import com.intellij.internal.statistic.service.fus.collectors.UIEventLogger;
|
||||
@@ -1167,7 +1168,7 @@ public class LookupImpl extends LightweightHint implements LookupEx, Disposable,
|
||||
listener.currentItemChanged(event);
|
||||
}
|
||||
}
|
||||
if (currentItem instanceof CompletionItemLookupElement wrapper) {
|
||||
if (currentItem instanceof CompletionItemLookupElement wrapper && !PowerSaveMode.isEnabled()) {
|
||||
PsiFile file = getPsiFile();
|
||||
if (file != null) {
|
||||
ActionContext actionContext = ActionContext.from(editor, file);
|
||||
|
||||
Reference in New Issue
Block a user