From da849bbc4dafa7eae31117b97686614124545eaf Mon Sep 17 00:00:00 2001 From: azerr Date: Sun, 8 Oct 2023 19:27:45 +0200 Subject: [PATCH] fix: Create template from codelens doesn't work in IDEA EAP 2023-3 EAP Fixes #1216 Signed-off-by: azerr --- .../qute/psi/internal/java/QuteJavaCodeLensCollector.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/redhat/devtools/intellij/qute/psi/internal/java/QuteJavaCodeLensCollector.java b/src/main/java/com/redhat/devtools/intellij/qute/psi/internal/java/QuteJavaCodeLensCollector.java index 6b689ee59..dd75d0cc6 100644 --- a/src/main/java/com/redhat/devtools/intellij/qute/psi/internal/java/QuteJavaCodeLensCollector.java +++ b/src/main/java/com/redhat/devtools/intellij/qute/psi/internal/java/QuteJavaCodeLensCollector.java @@ -19,6 +19,7 @@ import com.redhat.devtools.intellij.lsp4mp4ij.psi.core.utils.IPsiUtils; import com.redhat.devtools.intellij.qute.psi.QuteCommandConstants; import com.redhat.devtools.intellij.qute.psi.utils.PsiQuteProjectUtils; +import com.redhat.devtools.intellij.qute.psi.utils.PsiTypeUtils; import com.redhat.devtools.intellij.qute.psi.utils.TemplatePathInfo; import com.redhat.qute.commons.datamodel.DataModelParameter; import com.redhat.qute.commons.datamodel.GenerateTemplateInfo; @@ -109,7 +110,7 @@ private static List createParameter(PsiMethod method) { //ITypeBinding binding = parameterType.resolveBinding(); DataModelParameter parameter = new DataModelParameter(); parameter.setKey(parameterName); - parameter.setSourceType(parameterType.getPresentableText()); + parameter.setSourceType(PsiTypeUtils.resolveSignature(parameterType, false)); parameters.add(parameter); } return parameters;