cwan / native-ascii-converter

VS Code extension that converts characters with Unicode escapes or vice versa. The same as 'native2ascii' tool of JDK.
MIT License
15 stars 3 forks source link

conversion on save is not applied if multiple documents saved at once #13

Open fredjoseph opened 4 years ago

fredjoseph commented 4 years ago

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.

cwan commented 4 years ago

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)