-
Notifications
You must be signed in to change notification settings - Fork 790
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
Make matched brace highlighting work exactly as in C# editor #5049
Make matched brace highlighting work exactly as in C# editor #5049
Conversation
@dotnet-bot test Ubuntu16.04 Release_default Build please |
I tried this in #3849 - unfortunately, it broke smart auto de-indentation (#3313). FWIW, I think that it's the correct way to do it as you've done here. Perhaps the editor formatting feature could be adjusted to call a different routine ( let length = position - range.Start
length >= 0 && length <= range.Length And we keep this so that we correctly match braces when there is nesting. It's also worth double checking that what's raised in #2092 is still addressed (or at least that we think it's reasonable that some of that isn't addressed). |
Yeah... pretty sure the Roslyn tests aren't running so the auto-deindent tests also won't be running. Please can you verify that they pass on your end? |
This reverts commit 5ddaba3.
…race-highlighting Add optional param for formatting
@saul I stumbled upon missing Test attributes at |
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.
Hmm I’m not at a computer so I can’t check blame - I definitely ran then when I wrote them so at some point they must have had the attribute
#3601 had test attributes removed, but they were not previously |
@KevinRansom is looking at these failures (I can reproduce them locally). There is an underlying assumption that a particular VS .dll is present for these tests to execute, and that .dll is not there (nor is it possible to guarantee that it is there) |
Have you pulled @cartermp’s change? |
Hmm, looks like you did get other tests to pass... |
there is an extra test commented out there: |
If I remember correctly @dsyme has been fixing the VS integration tests back then as they were failing in the PR. |
@auduchinok it's me. I'm on the hook for fixing the tests. |
@KevinRansom I took a look at these changes and the test failures mentioned above pass for me:
|
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.
Approving as per:
- The code handling things correctly
- It works when I use it
Confirming that this fixes #4274 as well |
…5049) * make matched brace highlighting work exactly as in C# editor * fix tests * Add optional param for formatting * revert matching braces logic in FSharpEditorFormattingService * add missing test attributes * Revert "revert matching braces logic in FSharpEditorFormattingService" This reverts commit 5ddaba3.
This fixes #3794
F#
C#