Skip to content

Missing | null annotation from tooltip #2073

Open
@MangelMaxime

Description

@MangelMaxime

Describe the bug

When a type is annotated as T | null I would expect to see | null in the tooltip too.

Steps to reproduce

Create an F# project, with <Nullable>enable</Nullable> set.

type MyEnum2 =
    | Foo = 1
    | Bar = 5
    | Baz = 8

let x: string | null = typedefof<MyEnum>.Namespace

Expected behaviour

Tooltip should display string | null

Screenshots

Code_a8MqhQBh5V.mp4

Machine infos

  • Operating system: Windows_NT
  • Arch: x64
  • VSCode: 1.97.2
  • UI Kind: Desktop
  • Ionide: 7.25.3
  • Runtime: netcore
  • Dotnet version: 9.0.103

Additional context

Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    language servicesProblems related to language services - FSAC or FCS

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions