Added Opening Brace as trigger character for formatAfterKeyStroke - #1042
Open
akshita31 wants to merge 3 commits into
Open
Added Opening Brace as trigger character for formatAfterKeyStroke#1042akshita31 wants to merge 3 commits into
akshita31 wants to merge 3 commits into
Conversation
Contributor
Author
|
omnisharp-vscode side : dotnet/vscode-csharp#1906 |
Contributor
|
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. |
Contributor
Author
DustinCampbell
approved these changes
Dec 5, 2017
DustinCampbell
left a comment
Contributor
There was a problem hiding this comment.
Thanks for verifying the behavior
Contributor
Author
Contributor
|
Maybe debug and see if it's got the correct span for the format? |
Contributor
Author
|
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? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Issue : dotnet/vscode-csharp#1591
Added { as trigger character for formatting changes request.
Please review : @DustinCampbell @TheRealPiotrP @rchande