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

Commitde2a06e

Browse files
saulKevinRansom
authored andcommitted
Highlight structs and use a higher contrast colour scheme in FSI (dotnet#2196)
* Highlight structs in FSI.Closesdotnet#2193* Use Vasily's suggestions for FSI colours as they have better contrast with default colour schemes* Match UnknownType to type colour so records and DUs are colourised* Removed ModuleBinding from type colouring - TaggedTextToRoslyn maps this to Property* Fix the build
1 parent2a91f41 commitde2a06e

File tree

1 file changed

+14
-6
lines changed

1 file changed

+14
-6
lines changed

‎src/fsharp/fsi/fsi.fs‎

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -157,12 +157,20 @@ module internal Utilities =
157157
memberr.AddText z s=
158158
letcolor=
159159
match swith
160-
| Keyword_-> ConsoleColor.Blue
161-
| TypeParameter_
162-
| Alias_
163-
| Class_-> ConsoleColor.Cyan
164-
| StringLiteral_-> ConsoleColor.Red
165-
| NumericLiteral_-> ConsoleColor.Magenta
160+
| TaggedText.Keyword_-> ConsoleColor.White
161+
| TaggedText.TypeParameter_
162+
| TaggedText.Alias_
163+
| TaggedText.Class_
164+
| TaggedText.Module_
165+
| TaggedText.Interface_
166+
| TaggedText.Record_
167+
| TaggedText.Struct_
168+
| TaggedText.Union_
169+
| TaggedText.UnknownType_-> ConsoleColor.Cyan
170+
| TaggedText.UnionCase_
171+
| TaggedText.ActivePatternCase_-> ConsoleColor.Magenta
172+
| TaggedText.StringLiteral_-> ConsoleColor.Yellow
173+
| TaggedText.NumericLiteral_-> ConsoleColor.Green
166174
|_-> Console.ForegroundColor
167175

168176
DoWithColor color(fun()-> outWriter.Write s.Value)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp