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

Commitab2f039

Browse files
vasily-kirichenkoKevinRansom
authored andcommitted
fix printf specifiers highlighting which have dots (dotnet#5051)
1 parent5aa6bc2 commitab2f039

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

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

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ open Microsoft.CodeAnalysis.Text
1919
// IVT, we'll maintain the status quo.
2020
#nowarn"44"
2121

22+
openMicrosoft.FSharp.Compiler.SourceCodeServices
23+
2224
[<ExportLanguageService(typeof<IEditorClassificationService>, FSharpConstants.FSharpLanguageName)>]
2325
typeinternalFSharpClassificationService
2426
[<ImportingConstructor>]
@@ -56,7 +58,10 @@ type internal FSharpClassificationService
5658
match RoslynHelpers.TryFSharpRangeToTextSpan(sourceText, range)with
5759
| None->()
5860
| Some span->
59-
letspan= Tokenizer.fixupSpan(sourceText, span)
61+
letspan=
62+
match classificationTypewith
63+
| SemanticClassificationType.Printf-> span
64+
|_-> Tokenizer.fixupSpan(sourceText, span)
6065
result.Add(ClassifiedSpan(span, FSharpClassificationTypes.getClassificationTypeName(classificationType)))
6166
}
6267
|> Async.Ignore|> RoslynHelpers.StartAsyncUnitAsTask cancellationToken

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp