gemoc / ale-lang

Action Language for EMF
Eclipse Public License 1.0
8 stars 6 forks source link

[Editor] Show a warning when editing a file not in env #175

Closed echebbi closed 4 years ago

echebbi commented 4 years ago

Closes #153

The warning is accompagnied by a quick fix that adds the file to the enclosing project's environment (which can be stored in preferences or in a .dsl file).

Demo

_Editing a file that is not in the .dsl/preferences_: ![demo-issue-153](https://user-images.githubusercontent.com/25926433/86514843-1ee2eb80-be15-11ea-9b98-3919e2d0d228.gif)
echebbi commented 4 years ago

@dvojtise the code updating the environment (in AleQuickfixProvider) is currently duplicated from other parts of the code; I plan to address this later with #174.