Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit8cb7ec2

Browse files
Vasily KirichenkoVasily Kirichenko
Vasily Kirichenko
authored and
Vasily Kirichenko
committed
make matched brace highlighting work exactly as in C# editor
1 parent0b940a4 commit8cb7ec2

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

‎vsintegration/src/FSharp.Editor/Formatting/BraceMatchingService.fs‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,7 @@ type internal FSharpBraceMatchingService
2424
letisPositionInRange range=
2525
match RoslynHelpers.TryFSharpRangeToTextSpan(sourceText, range)with
2626
| None->false
27-
| Some range->
28-
letlength= position- range.Start
29-
length>=0&& length<= range.Length
27+
| Some span-> span.Contains position
3028
return matchedBraces|> Array.tryFind(fun(left,right)-> isPositionInRange left|| isPositionInRange right)
3129
}
3230

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp