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

Commit66123c8

Browse files
vasily-kirichenkoKevinRansom
authored andcommitted
add FSharpDisposableFormat (dotnet#2541)
1 parenteb63b23 commit66123c8

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

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

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,3 +171,15 @@ module internal ClassificationDefinitions =
171171

172172
do self.DisplayName<- SR.FSharpPropertiesClassificationType.Value
173173
self.ForegroundColor<- theme.GetColor FSharpClassificationTypes.Property
174+
175+
176+
[<Export(typeof<EditorFormatDefinition>)>]
177+
[<ClassificationType(ClassificationTypeNames= FSharpClassificationTypes.Disposable)>]
178+
[<Name(FSharpClassificationTypes.Disposable)>]
179+
[<UserVisible(true)>]
180+
[<Order(After= PredefinedClassificationTypeNames.Keyword)>]
181+
typeinternalFSharpDisposableFormat[<ImportingConstructor>](theme: ThemeColors)asself=
182+
inherit ClassificationFormatDefinition()
183+
184+
do self.DisplayName<- SR.FSharpDisposablesClassificationType.Value
185+
self.ForegroundColor<- theme.GetColor FSharpClassificationTypes.Disposable

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp