eclipse / xtext

Eclipse Xtext™ is a language development framework
http://www.eclipse.org/Xtext
Eclipse Public License 2.0
767 stars 321 forks source link

Template preferences page does not show variables documentation #2372

Open UdoW opened 6 years ago

UdoW commented 6 years ago

If I add my own templates preferences page for my DSL then it shows the same incorrect variables documentation like the Xtend templates preferences. See screenshot bug_xtext_templates In the screenshot I marked the wrong presentation of the template documentation with yellow color.

If you compare it to the templates preferences of the Java editor then the documentation should open in an additional overlay window where HTML syntax is interpreted for layouting the docs. See screenshot java_templates.

cdietrich commented 6 years ago

org.eclipse.xtext.ui.codetemplates.ui.contentassist.CodetemplatesProposalProvider.completeVariable_Name(EObject, Assignment, ContentAssistContext, ICompletionProposalAcceptor) does not create additional proposal infos. i cannot tell if this is intended or not.

and we dont have a custom processor as jdt does: TemplateVariableProcessor => we would need either a bigger c&p or fixed it in platform