pucelle / vscode-run-on-save

Run configured shell commands when a file is saved in vscode, and output configured messages on status bar.
https://marketplace.visualstudio.com/items?itemName=pucelle.run-on-save
MIT License
51 stars 14 forks source link

Support for Jupyter Notebooks #29

Closed mihao closed 1 year ago

mihao commented 1 year ago

Jupyter notebooks don't support onWillSaveTextDocument, but do support the newly-introduced onWillSaveNotebookDocument (see https://github.com/microsoft/vscode/issues/157844). Could you add support for this? If I understand correctly, it's just a matter of adding a few lines to src/extension.ts.

pucelle commented 1 year ago

Not sure if it works, please try.