Question

Can xtext propose styled string in template proposals? Normal createCompletionProposal could have that but I didn't find any API returning StryledString in ITemplateProposalProvider hierarchy.

Was it helpful?

Solution

You would have to extend TemplateProposal and add ICompletionProposalExtension6 in order to deal with styled strings in the display string of the template. That's not a class from Xtext but from the underlying Eclipse content proposal framework.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top