If multiple properties files are opened and you save by clicking on saveAll in the interface then the conversion is applied only on the active document (not on other properties files opened)
I think on event onWillSaveTextDocument the document should be retrieved from the incoming event.
I'm afraid I couldn't solve this issue.
A TextEditor object of the inactive document is not available on event onWillSaveTextDocument.
(A TextEditor object is required for setting text)
If multiple
properties
files are opened and you save by clicking onsaveAll
in the interface then the conversion is applied only on the active document (not on otherproperties
files opened)I think on event
onWillSaveTextDocument
the document should be retrieved from the incoming event.