ionide-vscode-fsharp
ionide-vscode-fsharp copied to clipboard
Errors persist even if the code is fine again
Describe the bug
Since upgrading to version of Ionide 7.1.0, I am experimenting some strange behaviour from the intellisense and diagnostics.
See this error message:
It is complaining about a projlet
variable while the actual variable name is proj
. If I reload Ionide the problem disappear.
One way to produce a similar problem is to type a bunch of random text very quickly. And then clean the random text and see that even if the code should be fine there are errors persisting.
https://user-images.githubusercontent.com/4760796/185741028-b94f8ff5-5599-4d12-bbde-67c084e000af.mp4
See how once Ionide is related the code is indeed valid
Here I demonstrated it for errors, but this also impact the intellisense because it doesn't auto complete what we would expect it to. Something providing no intellisense at all or something result for another line.
I suspect that this is related to the introduction of Incremental text sync
Machine info
- OS: Windows
- .NET SDK version: [e.g. 5.0.100]
- Ionide version: 7.1.0
Additional context
Add any other context about the problem here.
I have registered a related FSAC issue here:
- https://github.com/fsharp/FsAutoComplete/issues/996
I am seeing a similar behavior since upgrading to 7.1.0
I think this issue has been fixed