I have a large .NET Core 2.0 project which uses jQuery. All jQuery in the project works perfectly fine during run-time.
However, something changed that caused my jQuery IntelliSense to stop working in VS2019 (regardless of typing "jQuery" or the "$" shorthand in my code). I unfortunately cannot locate the change.
My jquery.js/jquery.min.js files are located in wwwroot/lib/jquery/dist and referenced throughout the site in _Layout.cshtml.
According to the VS2019 documentation:
By default, the Salsa language service will try to detect which JavaScript libraries are in use and automatically download and reference the corresponding .d.ts file that describes the library in order to provide richer IntelliSense. The files are downloaded to a cache located under the user folder at %LOCALAPPDATA%\Microsoft\TypeScript.
...and yes, jQuery is there as expected:
I've tried restarting VS2019 and my PC, batch clean/rebuild and resetting the JavaScript/Typescript checkboxes in the options and refreshing the Intellisense by deleting the .vs folder and restarting.
Note that JavaScript IntelliSense is working as expected.
Any ideas?
I found the issue to be with including the MDBootsrap Pro (jQuery Version) Library in my project. Once I removed the library and re-added it, the IntelliSense worked again.
I remain uncertain whether this was caused by a script conflict or simply an overload of script for the IntelliSense to try to sort through.
Adding MDBootstrap tag to the question in case it helps anyone else in the future.