This morning, after updating to Visual Studio 2015 Update 3, I encountered a warning message in my main web solution. The warning persisted when opening TypeScript files, causing issues such as the inability to comment or uncomment code using shortcuts or the toolbar, and a lack of IntelliSense functionality.
https://i.sstatic.net/HsV9w.jpg
Upon inspection of the xml file, the following error was documented:
<entry>
<record>851</record>
<time>2016/07/04 11:40:28.893</time>
<type>Error</type>
<source>VisualStudio</source>
<description>LegacySitePackage failed for package [Microsoft.VisualStudio.LanguageServices.TypeScript.TypeScriptPackage, Microsoft.VisualStudio.LanguageServices.TypeScript, Version=14.0.0.0, Culture=neutral]Source: 'Microsoft.VisualStudio.LanguageServices.TypeScript' Description: Field not found: 'Microsoft.CodeAnalysis.Shared.Options.ServiceFeatureOnOffOptions.ClosedFileDiagnostic'. System.MissingFieldException: Field not found: 'Microsoft.CodeAnalysis.Shared.Options.ServiceFeatureOnOffOptions.ClosedFileDiagnostic'. at Microsoft.VisualStudio.LanguageServices.TypeScript.TypeScriptPackage.Initialize() at Microsoft.VisualStudio.Shell.Package.Microsoft.VisualStudio.Shell.Interop.IVsPackage.SetSite(IServiceProvider sp)</description>
<guid>{2FFE45C4-5C73-493C-B187-F2E955FF875E}</guid>
<hr>80131511</hr>
<errorinfo></errorinfo>
</entry>
<entry>
<record>852</record>
<time>2016/07/04 11:40:28.895</time>
<type>Error</type>
<source>VisualStudio</source>
<description>SetSite failed for package [Microsoft.VisualStudio.LanguageServices.TypeScript.TypeScriptPackage, Microsoft.VisualStudio.LanguageServices.TypeScript, Version=14.0.0.0, Culture=neutral](null)</description>
<guid>{2FFE45C4-5C73-493C-B187-F2E955FF875E}</guid>
<hr>80131511</hr>
<errorinfo></errorinfo>
</entry>
<entry>
Attempted solutions so far:
- Repairing Update 3
- Reinstalling TypeScript and removing older versions (link)
- Running devenv.exe /updateconfiguration & devenv.exe /clearcache
- Deleting %localappdata%\Microsoft\VisualStudio\14.0\ComponentModelCache
- Updating project TypeScript version to 1.8
- Setting path environment variable of TypeScript to 1.8 instead of 1.0
The current status shows my Visual Studio detecting TypeScript version 1.8.30 installed. https://i.sstatic.net/eX3xB.jpg However, Programs and Features only list version 1.8.6.0 as installed (which is the latest). https://i.sstatic.net/MRh5k.jpg
The last resort seems to be reinstalling Visual Studio altogether.
Any insights or recommendations would be greatly appreciated! Thank you!