Skip to content

Commit 0f9d6ea

Browse files
authored
Tooltips: fix null annotation highlighting (#18457)
* Tooltips: fix `null` annotation highlighting * Release notes
1 parent 71691a7 commit 0f9d6ea

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

docs/release-notes/.FSharp.Compiler.Service/9.0.300.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
* Fix checking bug in unpickling [PR #18430](https://github.com/dotnet/fsharp/pull/18430)
2424
* Reenable β-reduction and subsequent reoptimization of immediately-invoked F#-defined generic delegates. ([PR #18401](https://github.com/dotnet/fsharp/pull/18401))
2525
* Fixed [#18433](https://github.com/dotnet/fsharp/issues/18433), a rare case of an internal error in xml comment processing. ([PR #18436](https://github.com/dotnet/fsharp/pull/18436))
26+
* Fix missing `null` highlighting in tooltips ([PR #18457](https://github.com/dotnet/fsharp/pull/18457))
2627

2728
### Added
2829
* Added missing type constraints in FCS. ([PR #18241](https://github.com/dotnet/fsharp/pull/18241))

src/Compiler/Checking/NicePrint.fs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -944,7 +944,7 @@ module PrintTypes =
944944
// Show nullness annotations unless explicitly turned off
945945
if denv.showNullnessAnnotations <> Some false then
946946
match nullness.Evaluate() with
947-
| NullnessInfo.WithNull -> part2 ^^ wordL (tagText "| null")
947+
| NullnessInfo.WithNull -> part2 ^^ wordL (tagPunctuation "|") ^^ wordL (tagKeyword "null")
948948
| NullnessInfo.WithoutNull -> part2
949949
| NullnessInfo.AmbivalentToNull -> part2 //^^ wordL (tagText "__maybenull")
950950
else

0 commit comments

Comments
 (0)