mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
EDU-395 Hint window is empty if there is no available hint for current placeholder
This commit is contained in:
+2
-1
@@ -61,7 +61,8 @@ public class StudyShowHintAction extends DumbAwareAction {
|
||||
}
|
||||
String hintText = ourWarningMessage;
|
||||
if (answerPlaceholder != null) {
|
||||
hintText = answerPlaceholder.getHint();
|
||||
String hint = answerPlaceholder.getHint();
|
||||
hintText = hint.isEmpty() ? HINT_NOT_AVAILABLE : hint;
|
||||
}
|
||||
int offset = editor.getDocument().getLineStartOffset(pos.line) + pos.column;
|
||||
PsiElement element = file.findElementAt(offset);
|
||||
|
||||
Reference in New Issue
Block a user