[groovy] get presentable text in GroovyExpressionTypeProvider.

It is needed to properly display `as`-coercion trait types e.g. `Foo as T1, T2` instead of `Foo`.
This commit is contained in:
Daniil Ovchinnikov
2015-11-06 16:58:55 +03:00
parent 77f160ec5e
commit 2f5e6277f0
@@ -31,7 +31,7 @@ public class GroovyExpressionTypeProvider extends ExpressionTypeProvider<GrExpre
@Override
public String getInformationHint(@NotNull GrExpression element) {
final PsiType type = element.getType();
return StringUtil.escapeXml(type == null ? "<unknown>" : type.getCanonicalText());
return StringUtil.escapeXml(type == null ? "<unknown>" : type.getPresentableText());
}
@NotNull