Skip to content

Commit

Permalink
fix: Create template from codelens doesn't work in IDEA EAP 2023-3 EAP
Browse files Browse the repository at this point in the history
Fixes #1216

Signed-off-by: azerr <[email protected]>
  • Loading branch information
angelozerr committed Oct 8, 2023
1 parent b657071 commit da849bb
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -109,7 +110,7 @@ private static List<DataModelParameter> 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;
Expand Down

0 comments on commit da849bb

Please sign in to comment.