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

Commitf3b947c

Browse files
committed
Shared is default
1 parent73824d2 commitf3b947c

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

‎vsintegration/src/FSharp.Editor/Classification/ClassificationDefinitions.fs‎

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
namespaceMicrosoft.VisualStudio.FSharp.Editor
44

55
openSystem
6-
openSystem.Composition
76
openSystem.ComponentModel.Composition
87
openSystem.Windows.Media
98

@@ -46,11 +45,9 @@ module internal FSharpClassificationTypes =
4645
| SemanticClassificationType.Property-> Property
4746
| SemanticClassificationType.Interface-> Interface
4847

49-
50-
5148
moduleinternalClassificationDefinitions=
5249

53-
[<Export; Shared>]
50+
[<Export>]
5451
typeinternalThemeColors
5552
[<ImportingConstructor>]
5653
(
@@ -99,7 +96,7 @@ module internal ClassificationDefinitions =
9996
do VSColorTheme.add_ThemeChanged handler
10097
interface IDisposablewithmember__.Dispose()= VSColorTheme.remove_ThemeChanged handler
10198

102-
member__.getColor(ctype)=
99+
member__.GetColor(ctype)=
103100
letlight,dark= colorData|> Map.ofList|> Map.find ctype
104101
match getCurrentThemeId()with
105102
| LighTheme-> Nullable light
@@ -127,7 +124,7 @@ module internal ClassificationDefinitions =
127124
inherit ClassificationFormatDefinition()
128125

129126
do self.DisplayName<- SR.FSharpFunctionsOrMethodsClassificationType.Value
130-
self.ForegroundColor<- theme.getColor FSharpClassificationTypes.Function
127+
self.ForegroundColor<- theme.GetColor FSharpClassificationTypes.Function
131128

132129
[<Export(typeof<EditorFormatDefinition>)>]
133130
[<ClassificationType(ClassificationTypeNames= FSharpClassificationTypes.MutableVar)>]
@@ -138,7 +135,7 @@ module internal ClassificationDefinitions =
138135
inherit ClassificationFormatDefinition()
139136

140137
do self.DisplayName<- SR.FSharpMutableVarsClassificationType.Value
141-
self.ForegroundColor<- theme.getColor FSharpClassificationTypes.MutableVar
138+
self.ForegroundColor<- theme.GetColor FSharpClassificationTypes.MutableVar
142139

143140
[<Export(typeof<EditorFormatDefinition>)>]
144141
[<ClassificationType(ClassificationTypeNames= FSharpClassificationTypes.Printf)>]
@@ -149,7 +146,7 @@ module internal ClassificationDefinitions =
149146
inherit ClassificationFormatDefinition()
150147

151148
do self.DisplayName<- SR.FSharpPrintfFormatClassificationType.Value
152-
self.ForegroundColor<- theme.getColor FSharpClassificationTypes.Printf
149+
self.ForegroundColor<- theme.GetColor FSharpClassificationTypes.Printf
153150

154151
[<Export(typeof<EditorFormatDefinition>)>]
155152
[<ClassificationType(ClassificationTypeNames= FSharpClassificationTypes.Property)>]
@@ -160,4 +157,4 @@ module internal ClassificationDefinitions =
160157
inherit ClassificationFormatDefinition()
161158

162159
do self.DisplayName<- SR.FSharpPropertiesClassificationType.Value
163-
self.ForegroundColor<- theme.getColor FSharpClassificationTypes.Property
160+
self.ForegroundColor<- theme.GetColor FSharpClassificationTypes.Property

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp