ionide / ionide-vscode-fsharp

VS Code plugin for F# development
http://ionide.io
MIT License
864 stars 279 forks source link

Type not recognized and/or hints not working #2030

Open inwenis opened 3 months ago

inwenis commented 3 months ago

Describe the bug

On L10 parameter hints (Ctrl+Shift+Space) stop working. Type of variable x is not recognized.

Steps to reproduce

  1. Create new proj
  2. Paste code into Program.fs:
    
    let amazingFun x = ()

let main argv = if false then "xx" |> ignore

"aa" |> amazingFun
"aa" |> amazingFun
let x = "asdf"
x.Replace("asdf", "a")

0

On L10 type is not recognized.
If you remove L8 it starts working. #magic

### Expected behaviour
I expect hints to work at L10 and further

### Screenshots
![image](https://github.com/user-attachments/assets/ca7435e1-eb67-4e10-8512-28d6a3fe674b)

## Machine info
 - OS: Windows
 - .NET SDK version: 8.0.303
 - Ionide version: v7.20.3