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

Commit844fc51

Browse files
jackpappasKevinRansom
jackpappas
authored andcommitted
Use KeyValuePair to represent items in the DebuggerTypeProxy for the Map type. This makes it easier to view the items at a glance, rather than having to expand each item to view it's contents. The maximum number of items viewable in the debugger window is also increased from 1k to 10k.
1 parent571841f commit844fc51

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

‎src/fsharp/FSharp.Core/map.fs‎

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -630,13 +630,7 @@ namespace Microsoft.FSharp.Collections
630630
MapDebugView<'Key,'Value when 'Key:comparison>(v:Map<'Key,'Value>)=
631631

632632
[<System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.RootHidden)>]
633-
memberx.Items= v|> Seq.truncate1000|> Seq.map(fun kvp->{ key= kvp.Key; value=kvp.Value})|> Seq.toArray
634-
635-
and
636-
[<DebuggerDisplay("{value}", Name="[{key}]", Type="")>]
637-
[<NoEquality; NoComparison>]
638-
MapDebugViewKeyValuePair={ key:obj; value:obj}
639-
633+
memberx.Items= v|> Seq.truncate10000|> Seq.toArray
640634
#endif
641635

642636

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp