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

Use the new "Fix All in Workspace" commands in the "dart fix" prompt #5100

Open
DanTup opened this issue May 9, 2024 · 0 comments
Open

Use the new "Fix All in Workspace" commands in the "dart fix" prompt #5100

DanTup opened this issue May 9, 2024 · 0 comments
Labels
in editor Relates to code editing or language features is enhancement

Comments

@DanTup
Copy link
Member

DanTup commented May 9, 2024

When opening a project that has diagnostics that can be fixed with "dart fix" we currently direct you to instructions to run it from the command line:

image

When using a pre-release SDK that supports the new "Fix All in Workspace" commands, you instead get an option to trigger those commands and see the changes in-editor:

image

The reason this is currently only enabled for pre-release SDKs is that the UX for the Preview option isn't great - all of the entries are unticked by default (and it can be tedious to tick them). I have an open PR for VS Code I hope may improve this at microsoft/vscode#210175. If that (or something similar) doesn't land soon, we may wish to consider enabling this functionality anyway (or perhaps hiding the Preview button?).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in editor Relates to code editing or language features is enhancement
Projects
None yet
Development

No branches or pull requests

1 participant