Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing | null annotation from tooltip #2073

Open
MangelMaxime opened this issue Mar 5, 2025 · 1 comment
Open

Missing | null annotation from tooltip #2073

MangelMaxime opened this issue Mar 5, 2025 · 1 comment
Labels
language services Problems related to language services - FSAC or FCS

Comments

@MangelMaxime
Copy link
Contributor

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.

@baronfel
Copy link
Contributor

baronfel commented Mar 5, 2025

Yeah - I started on this bug have a blocked PR at ionide/FsAutoComplete#1353. I'd love to get your opinion on it.

@TheAngryByrd TheAngryByrd added the language services Problems related to language services - FSAC or FCS label Mar 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
language services Problems related to language services - FSAC or FCS
Projects
None yet
Development

No branches or pull requests

3 participants