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

Code analysis fix formatting. #9661

Merged
merged 5 commits into from
Aug 3, 2022
Merged

Code analysis fix formatting. #9661

merged 5 commits into from
Aug 3, 2022

Conversation

sean-mcmanus
Copy link
Collaborator

@sean-mcmanus sean-mcmanus commented Jul 29, 2022

Fixes #9322 .

Code action fixes are applied and then formatting is applied. The first undo undoes any formatting if any was done, otherwise it undoes the fix. If formatting was done, a 2nd undo will undo the fix. The operations apply across all files that have fixes generated for them.

@sean-mcmanus
Copy link
Collaborator Author

sean-mcmanus commented Jul 30, 2022

Not 100% ready yet, still fixing bugs.

UPDATE: Bugs have been fixed.

@sean-mcmanus
Copy link
Collaborator Author

sean-mcmanus commented Aug 1, 2022

I'm investigating if there's a way to combine multiple "onChange" documentFormat requests into a single edit so they can be undone with a single undo instead of 1 per file.

UPDATE: It was easy to fix.

@sean-mcmanus
Copy link
Collaborator Author

sean-mcmanus commented Aug 1, 2022

I need to set tabSize and insertSpaces somehow when I invoke the format command...

UPDATE: I added a fix.

@sean-mcmanus sean-mcmanus marked this pull request as ready for review August 3, 2022 01:28
@sean-mcmanus sean-mcmanus requested a review from a team August 3, 2022 01:28
@sean-mcmanus sean-mcmanus merged commit 853a4f3 into main Aug 3, 2022
@sean-mcmanus sean-mcmanus deleted the seanmcm/formatFixes branch August 3, 2022 03:44
@github-actions github-actions bot locked and limited conversation to collaborators Sep 17, 2022
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.

Add auto-formatting support for clang-tidy fixes
3 participants