How to lock saving files through extension?

150 Views Asked by At

Before saving the file, I have to write the file to an external resource. If the external resource is not available, the file should not be saved. I tried to use the event onWillSaveTextDocument: Event<TextDocumentWillSaveEvent>. But it does not allow to mark saving changes in the file.

0

There are 0 best solutions below