-
Notifications
You must be signed in to change notification settings - Fork 419
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
Added Opening Brace as trigger character for formatAfterKeyStroke #1042
base: master
Are you sure you want to change the base?
Conversation
omnisharp-vscode side : dotnet/vscode-csharp#1906 |
I'm a little worried about this change. What happens in the following case?
Does the declaration of M2() get indented? If so, this might not be the right approach. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for verifying the behavior
Maybe debug and see if it's got the correct span for the format? |
Tried to edit the span on hitting enter (for this particular case) to include three lines - the previous line(opening brace) , the current line and the nextLine (closing brace), but doing that deletes the spaces in the current line. I think this is related to auto-indent in vscode. Hence I have filed a bug in vscode here cc @rchande |
Any updates on this? |
Issue : dotnet/vscode-csharp#1591
Added { as trigger character for formatting changes request.
Please review : @DustinCampbell @TheRealPiotrP @rchande