mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Autopopup parameter info works in any headless environment, not just in unit test mode
This commit is contained in:
@@ -172,7 +172,7 @@ public class AutoPopupController implements Disposable {
|
||||
|
||||
Runnable request = () -> {
|
||||
if (!myProject.isDisposed() && !DumbService.isDumb(myProject) && !editor.isDisposed() &&
|
||||
(ApplicationManager.getApplication().isUnitTestMode() || editor.getComponent().isShowing())) {
|
||||
(ApplicationManager.getApplication().isHeadlessEnvironment() || editor.getComponent().isShowing())) {
|
||||
int lbraceOffset = editor.getCaretModel().getOffset() - 1;
|
||||
try {
|
||||
PsiFile file1 = PsiDocumentManager.getInstance(myProject).getPsiFile(editor.getDocument());
|
||||
|
||||
Reference in New Issue
Block a user