Skip to content
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

Support for notebook.format Code Action #212750

Merged
merged 4 commits into from
May 16, 2024
Merged

Conversation

Yoyokrazy
Copy link
Contributor

@Yoyokrazy Yoyokrazy commented May 14, 2024

Re: #212381

Refer to the linked issue for extensibility rules, functionality is laid out here.

@Yoyokrazy Yoyokrazy requested a review from rebornix May 14, 2024 22:54
@Yoyokrazy Yoyokrazy self-assigned this May 14, 2024
@Yoyokrazy Yoyokrazy marked this pull request as ready for review May 15, 2024 22:34
@Yoyokrazy Yoyokrazy changed the title Milively/format-codeaction Support for notebook.format Code Action May 15, 2024
@vscodenpa vscodenpa added this to the May 2024 milestone May 15, 2024
const providedActions = await CodeActionParticipantUtils.getActionsToRun(model, formatCodeActionOnSave, excludes, languageFeaturesService, getActionProgress, token);
// warn the user if there are more than one provided format action, and there is no specified defaultFormatter
if (providedActions.validActions.length > 1 && !extensionId) {
logService.warn('More than one format code action is provided, the 0th one will be used. A default can be specified via `notebook.defaultFormatter` in your settings.');
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

later we can show a quick pick.

@Yoyokrazy Yoyokrazy merged commit 1d44987 into main May 16, 2024
6 checks passed
@Yoyokrazy Yoyokrazy deleted the milively/format-codeaction branch May 16, 2024 22:26
@microsoft microsoft locked and limited conversation to collaborators Jun 30, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants