How can I display the inferred type in the editor?
I would like to be able to display the type inferred from an expression.
So for example 'string' should be inferred and displayed in:
string x = "abc"
However, I could not find a way to access the inferred type from the editor.
Thanks,
Malte
Please sign in to leave a comment.
Use the read-only model cell and compute the presented value as "node.type.getPresentation()". The j.m.lang.typesystem will have to be imported into the editor model.
Thank you for your help.
It took me some time to realize, that I have to add it as a used language, but then it worked