mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[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:
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user