show type action: return presentable text, so capture is visible, etc.

This commit is contained in:
Anna Kozlova
2018-01-30 11:33:49 +03:00
parent ca1d8a348c
commit 52639c2a42
@@ -30,7 +30,7 @@ public class JavaTypeProvider extends ExpressionTypeProvider<PsiExpression> {
@Override
public String getInformationHint(@NotNull PsiExpression element) {
PsiType type = element.getType();
String text = type == null ? "<unknown>" : type.getCanonicalText();
String text = type == null ? "<unknown>" : type.getPresentableText();
return StringUtil.escapeXml(text);
}