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

Feedback on VS Code proposed Code Action Auto Fix APIs #59

Closed
mjbvz opened this issue Jan 17, 2019 · 1 comment
Closed

Feedback on VS Code proposed Code Action Auto Fix APIs #59

mjbvz opened this issue Jan 17, 2019 · 1 comment
Labels

Comments

@mjbvz
Copy link

mjbvz commented Jan 17, 2019

Hi, I'm on the VS Code team. We are exploring extending VS Code's code actions to support automatic fixes and auto fix on save. You can find the two current proposal here

Your extension is a large user of code actions so we'd appreciate your feedback on these API proposals. Here are example use cases for these two areas:

  • For auto fix: I write some markdown that causes a linter failure. This is shown as a red squiggly in the editor. I F8 to the error and then use a single keyboard shortcut to auto fix the failure This fix has been marked as the preferred auto fix by your extension. Other alternative fixes could be provided in the existing lightbulb menu

  • For fix all: I open an old md document that has a bunch of linter errors. Thankfully, I've enabled "editor.codeActionsOnSave": { "source.autoFix": true } and your extension provides an autofix code action. This autofix action looks through the entire document and fixes all trivial errors in a single pass. So all I need to do is save the document and many of the simple errors are addressed

This guide covers how to use VS Code's proposed APIs. Please let me know if you have any questions about these proposals, feedback on the API, or ideas for other auto-fix scenarios that you would like to see supported in VS Code

@DavidAnson
Copy link
Owner

Provided feedback in the proposal.

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

No branches or pull requests

2 participants