My company uses Cliosoft for source control. If I do not check out a file in Cliosoft, it will fail to save in VS Code since the file will only have read access. I want to setup VS Code such that when it detects that a file failed to save, it runs a command line call (soscmd -co filename) and then tries to save again
I looked at the VS Code API, particularly onWillSaveTextDocument and onDidSaveTextDocument. I imagine through the combination of those two events I could make something up but I am not very familiar with how events and thenables work in Javascript