Skip to content

Add source.fixAll constant #1308

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

Merged
merged 1 commit into from
Jul 2, 2021
Merged

Conversation

DanTup
Copy link
Contributor

@DanTup DanTup commented Jul 1, 2021

@dbaeumer I don't know if this is reasonable, but VS Code has a constant for it and it seems like it would be useful for the same reason as having source.organizeImports here - so clients can provide better UI beyond just the Source Actions list for invoking this kind of (common) operation.

@dbaeumer
Copy link
Member

dbaeumer commented Jul 2, 2021

Makes sense.

@dbaeumer dbaeumer merged commit 023d506 into microsoft:gh-pages Jul 2, 2021
Comment on lines +6686 to +6691
* Base kind for an organize imports source action:
* `source.fixAll`.
*
* Fix all actions automatically fix errors that have a clear fix that
* do not require user input. They should not suppress errors or perform
* unsafe fixes such as generating new types or classes.
Copy link
Contributor

Choose a reason for hiding this comment

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

Some copy-paste and wording issues:

This is wrong:

Base kind for an organize imports source action:

This sentence doesn't start well:

Fix all actions automatically fix errors

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Eugh, good catch. The second part was copy/pasted from VS Code so I didn't want to change it too much. I've added quotes around 'Fix all' that I think make it clearer - I've filed #1309 - comments welcome. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants