I have faced an issue with Intellisense (see below) and my question is, when something similar happens in the future, what is the correct way to "reset" intellisense? To force it forget what it did and redo everything?
I've tried rebuilding the project and restarting Visual Studio, but that didn't helped. And after opening and editing some files of the project the issue suddenly dissappears.
Does intellisense stores some files I can delete after closing VS (I guess deleting .vs
folder may do)? Is there a certain operation (e.g. a menu command or performing certain step with project, ide, etc.) which forces intellisense to restart?
Full story.
I've wrote an extension method which overloads extension method from the library. That went well at first, but suddenly in at least one place I noticed, that intellisense behaves, like there were no extension method.
Correct overload:
Incorrect overload
I made last screenshot by removing extension method, instead of overload with Func<T, Task>
Intellisense shows one with Action<T>
. But it is more or less same tooltip Intellisense showed me yesterday with extension method present and working in other places!
It was very confusing and cost me some time. I've copied working code from other place to see what will happens, it worked and then the issue simply disappears.
I don't know what causes the issue nor I was able to reproduce it. It looks to me like some "stale state" of Intellisense, therefore my question.