Force scope validation
Hi!
I'm now continuing to investigate MPS solution. I've defined set of "type definitions" on a model and defined a scope provider behavior to constraint it and it actually works with some slight glitch: if I change the "type definitions" set the editor doesn't re-validate the scope immediately. If I switch the window forth and back - it does.
Is it possible to somehow force the scope re-validation?
Please sign in to leave a comment.
If I understand correctly, F5 (editor refresh) should do what you ask for.
Vaclav
Well, it does indeed, but I was asking about ability to trigger the same from within the language definition or something - a DSL user might expect validation to happen straight away.
Indeed, the MPS editor does not revalidate the scope of a valid reference, unless it has been itself changed or moved. Use editorContext.getEditorComponent().update(); to refresh the editor from your code.
Vaclav