-
Notifications
You must be signed in to change notification settings - Fork 29.7k
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 Notebook Level formatting support + api #207334
Comments
Currently we have the following two commands:
Both of these actions take an approach that doesn't really include the context of the entire notebook at once. The former takes a naive approach and simply calls down to The ask here is to create api and infrastructure to be able to format an entire notebook at once with the context of what is in each cell. The current limitation is that The proposal is to rename the above commands into something that more resembles declare module 'vscode' {
export interface NotebookFormattingEditProvider {
/**
* Provide formatting edits for a whole notebook.
*
* @param notebook The NotebookDocument in which the command was invoked.
* @param options Options controlling formatting.
* @param token A cancellation token.
* @returns A set of Workspace edits or a thenable that resolves to such. The lack of a result can be
* signaled by returning `undefined`, `null`, or an empty array.
*/
provideNotebookFormattingEdits(notebook: NotebookDocument, options: FormattingOptions, token: CancellationToken): ProviderResult<WorkspaceEdit[]>;
}
} |
Feedback from API sync (cc @rebornix):
|
Closing in favor of #212381 |
Tracking issue to follow progress for native notebookk formatting support within VS Code. Will need proposed api alongside it, as well as api commonds on the EH side.
The text was updated successfully, but these errors were encountered: