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

Extension does not work with notebook files (*.ipynb) #16

Closed venaturum closed 2 years ago

venaturum commented 3 years ago

Looks like it may need to listen for event onDidSaveNotebookDocument ?

pucelle commented 3 years ago

Busy these days, will fix it soon.

venaturum commented 3 years ago

I know the feeling 😆

Thanks!

pucelle commented 3 years ago

Hi, venaturum, I checked the new vscode API at: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/vscode, but didn't find an API like onDidSaveNotebookDocument.

A similar API that's available is vscode.workspace.onDidCloseNotebookDocument, but I guess it can't work.

venaturum commented 3 years ago

My bad, looks like it's proposed API

https://github.com/microsoft/vscode/blob/27b2434631bc9e253c30f3d55b837fea41a7c170/src/vs/vscode.proposed.d.ts#L1209

pucelle commented 3 years ago

OK, I guess we should just leave this issue here and wait for the API released.

francisco-perez-sorrosal commented 3 years ago

I recently came up with the same problem and I created an issue in the VSCode github repo for that. Please upvote there!

pucelle commented 3 years ago

Voted

pucelle commented 2 years ago

Close it, never mind to reopen after everything is ready.