In intellij, we have intentions to create a variable if it doesn't exist.
Thus it supports what is called intentional programming : you write your intent, and the ide propose you intentions according to the context.
I want to do the same for one language which accepts expressions from baseLanguage.
The user can enter a text, which is not a correct expression (not a variable etc) and I want to propose an intention to create a correct node from this incorrect expression.
I can activate my intention with editorContext.getContextCell().isErrorState().
Wand now the question is how do I access the content of the expression which is wrong ?
For example :
var toto = titi;
titi doesn't exist, I want an intention to create a new variable called titi, how do I access the titi string ?
Thanks for your attention.