VS 2015 Freezes when editing cshtml page with JS reference

James Hubbard 1 Reputation point
2020-08-21T13:16:53.417+00:00

Hey everyone,

I am not sure if anyone else has encountered an issue where VS 2015 freezes when editing an html page using the google js map api script referenced inside a .cshtml page. This only happens if you edit the file in the IDE with the script being referenced and it seems the JLS (Javascript Language Service) is the cause as it continuously stutters and mentions it fails to perform auto indent and so forth after a 250 ms timeout. I have googled for answers and performed all the following fixes:

Clear the "_references.js" file of all references in the project
Cleared the VS folder at the following location: C:\Users\xxxx\AppData\Local\Microsoft\Visual Studio\14.0
Add the registry DWORD 32-bit for maximum references load to the value 0 (found at: Computer\HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\14.0\JavaScriptLanguageService)
Deleted the .vs folder for the project
Ran VS 2015 as an administrator
Ran VS 2015 in safe mode
Ran VS 2015 under a new user's profile
Ran VS 2015 on a freshly imaged machine
Removed almost all 3rd party extensions from VS 2015
Disabled my organization's AV
Ran VS 2015 outside my organization's corporate network

The only solutions I have found is running VS 2017 with the new JLS or removing the script reference from the file with VS 2015. Nothing else I have tried works. I am running VS 2015 with Update 3.

The project is an MVC 5 application using .NET Framework 4.5.

Thanks for your time!

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,827 questions
{count} votes