-
Notifications
You must be signed in to change notification settings - Fork 29.2k
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
Add notebook Format On Cell Execution #182924
Conversation
src/vs/workbench/contrib/notebook/browser/services/notebookExecutionServiceImpl.ts
Outdated
Show resolved
Hide resolved
src/vs/workbench/contrib/notebook/browser/notebook.contribution.ts
Outdated
Show resolved
Hide resolved
src/vs/workbench/contrib/notebook/browser/notebook.contribution.ts
Outdated
Show resolved
Hide resolved
src/vs/workbench/contrib/notebook/browser/services/notebookExecutionStateServiceImpl.ts
Outdated
Show resolved
Hide resolved
src/vs/workbench/contrib/notebook/browser/services/notebookExecutionServiceImpl.ts
Outdated
Show resolved
Hide resolved
return toDisposable(() => this.cellExecutionParticipants.delete(participant)); | ||
} | ||
|
||
async runExecutionParticipants(executions: INotebookCellExecution[]): Promise<void> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be private unless there's a reason to expose it publicly
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed by: 183164, missed your point on the first read through. Appreciate the help and review through this.
Fix: vscode-jupyter/7058
Hook into
NotebookExecutionService
and add support for formatting cells upon execution. UsesvalidCellExecutions
and formats based on cells present in that array.Formatting is implemented similar to what is used in src\vs\workbench\contrib\notebook\browser\contrib\format\formatting.ts and src\vs\workbench\contrib\notebook\browser\contrib\saveParticipants\saveParticipants.ts. Could this be reworked into a different location where multiple spots could leverage the same formatter? Rather than just reusing code in various locations.