-
Notifications
You must be signed in to change notification settings - Fork 29.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Explore support for notebook.codeActionsOnSave
#179213
Comments
merge all code with |
|
#182799 adds support for standard CodeAction providers to supply actions for notebook cells, also ensures that edits only apply to the given cell via a check between the TextEdit's resource and the model URI. Existing providers and extensions may need a document selector/filter capable of selecting notebook cells.
Part (2) of this statement is now completed. This CodeAction sorting will need to be revised to prioritize the Notebook CodeAction type, rather than source.fixAll. Current thinking is that this should take priority over the parallel cell actions, as Notebook types will likely restructure the contents of multiple cells.
Current thought is to adopt |
#183457 adds in the proper
An example extension with a basic notebook CodeAction provider can be found here. This is still a personal wip, and currently only adds imports to a new top cell, rather than also removing them from throughout the notebook. The SaveParticipant handling CodeActions on save can be found here. |
Notebook CodeActions are now in a good state of useability, and are no longer invasive in every lightbulb of every code cell in a notebook. Fixed by the above PR. They can only be leveraged via the Todo:
|
formatOnSave
The text was updated successfully, but these errors were encountered: