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

Commitcb9e692

Browse files
authored
Merge pull requestdotnet#4693 from brettfo/quick-info-colors
use Roslyn-style text classification colors in QuickInfo where appropriate
2 parents37487c3 +0ad5ab2 commitcb9e692

File tree

1 file changed

+13
-13
lines changed
  • vsintegration/src/FSharp.Editor/QuickInfo

1 file changed

+13
-13
lines changed

‎vsintegration/src/FSharp.Editor/QuickInfo/Views.fs‎

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ namespace Microsoft.VisualStudio.FSharp.Editor
44

55
openSystem.Collections.Generic
66
openInternal.Utilities.StructuredFormat
7-
openMicrosoft.CodeAnalysis
7+
openMicrosoft.CodeAnalysis.Classification
88
openMicrosoft.FSharp.Compiler
99
openMicrosoft.VisualStudio.Core.Imaging
1010
openMicrosoft.VisualStudio.Language.StandardClassification
@@ -15,38 +15,38 @@ module internal QuickInfoViewProvider =
1515
letlayoutTagToClassificationTag(layoutTag:LayoutTag)=
1616
match layoutTagwith
1717
| ActivePatternCase
18-
| UnionCase-> PredefinedClassificationTypeNames.SymbolDefinition
1918
| ActivePatternResult
19+
| UnionCase
20+
| Enum-> ClassificationTypeNames.EnumName// Roslyn-style classification name
2021
| Alias
2122
| Class
22-
| Enum
23-
| Interface
2423
| Module
2524
| Record
2625
| Struct
2726
| TypeParameter
2827
| Union
29-
| UnknownType
30-
| UnknownEntity-> PredefinedClassificationTypeNames.Type
28+
| UnknownType-> PredefinedClassificationTypeNames.Type
29+
| Interface-> ClassificationTypeNames.InterfaceName// Roslyn-style classification name
30+
| Keyword-> PredefinedClassificationTypeNames.Keyword
31+
| Delegate
3132
| Event
3233
| Field
3334
| Local
34-
| Method
3535
| Member
36+
| Method
3637
| ModuleBinding
3738
| Namespace
3839
| Parameter
3940
| Property
4041
| RecordField-> PredefinedClassificationTypeNames.Identifier
41-
| StringLiteral-> PredefinedClassificationTypeNames.String
42-
| NumericLiteral-> PredefinedClassificationTypeNames.Number
43-
| Operator-> PredefinedClassificationTypeNames.Operator
44-
| Keyword-> PredefinedClassificationTypeNames.Keyword
4542
| LineBreak
4643
| Space-> PredefinedClassificationTypeNames.WhiteSpace
47-
| Delegate
44+
| NumericLiteral-> PredefinedClassificationTypeNames.Number
45+
| Operator-> PredefinedClassificationTypeNames.Operator
46+
| StringLiteral-> PredefinedClassificationTypeNames.String
4847
| Punctuation
49-
| Text-> PredefinedClassificationTypeNames.Other
48+
| Text
49+
| UnknownEntity-> PredefinedClassificationTypeNames.Other
5050

5151
letprovideContent
5252
(

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp