Open MangelMaxime opened 5 months ago
If I have type definition like this one in a file:
[<RequireQualifiedAccess>] module Response = module Read = type Question = { Id: System.Guid } [<RequireQualifiedAccess>] type Read = | Found of Read.Question | NotFound
Then trying to define the type a variable will show the cases names instead of the Question record type.
Question
Accessing intellisense from inside of the body of a variable declaration will however show the cases + record name/reference:
https://github.com/ionide/ionide-vscode-fsharp/assets/4760796/db7b5030-82b9-4002-bf51-78bff3e20651
Create an F# file with the following content:
let x : Response.Read. Try to get intellisense while typing and see that the record name/reference is not here.
let x : Response.Read.
Intellisense in this context should only report the record name/reference because cases cannot be used for type definition.
record
Add any other context about the problem here.
Describe the bug
If I have type definition like this one in a file:
Then trying to define the type a variable will show the cases names instead of the
Question
record type.Accessing intellisense from inside of the body of a variable declaration will however show the cases + record name/reference:
https://github.com/ionide/ionide-vscode-fsharp/assets/4760796/db7b5030-82b9-4002-bf51-78bff3e20651
Steps to reproduce
Create an F# file with the following content:
let x : Response.Read.
Try to get intellisense while typing and see that the record name/reference is not here.Expected behaviour
Intellisense in this context should only report the
record
name/reference because cases cannot be used for type definition.Machine info
Additional context
Add any other context about the problem here.