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

Implement source.fixAll.regal code action #1095

Open
anderseknert opened this issue Sep 10, 2024 · 0 comments
Open

Implement source.fixAll.regal code action #1095

anderseknert opened this issue Sep 10, 2024 · 0 comments

Comments

@anderseknert
Copy link
Member

https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#textDocument_codeAction

        /**
	 * Base kind for a 'fix all' 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.
	 *
	 * @since 3.17.0
	 */

I imagine this would simply invoke regal fix in the given file. One nice thing about this is that editors like VS Code provide options for running all the source.fixAll actions on save.

Some good context here.

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

No branches or pull requests

1 participant