Lost JavaScript support in VS2015 RTM after updating to TypeScript 1.5.4
I completely lost JavaScript support in Visual Studio after updating to TypeScript 1.5.4:
- Code inside script tags gets no colorization and no IntelliSense at all
- In the VS options menu > Text Editor > JavaScript is missing
- In the output console, the "JavaScript Language Service" is missing in the dropdown.
Seems I'm not the only one: http://stackoverflow.com/questions/31888115/visual-studio-2015-rtm-lost-js-support-after-update-typesript-tools
Same. JavaScriptWebExtensionsPackage fails to load. ActivityLog.xml shows:
SetSite failed for package [JavaScriptWebExtensionsPackage]
Does the IntelliSense work in a stand alone javascript file?
Hi,
This is a known bug that we have fixed, however you could have been affected if you installed the "tools for universal apps development" during a specific period of time. There is a post on our MSDN forums with some steps, and we will soon be publishing a KB with the following workaround:
If the “Tools for Universal Windows Apps Development” are still installed:
- Go to Programs and Features, select Visual Studio 2105, click Change.
- In Visual Studio setup, click Modify.
- Deselect the feature “Tools for Universal Windows App Development”
- Select “Tools for Universal Windows App Development” again, and click Update.
If you have already uninstalled the “Tools for Universal Windows Apps Development”:
- Reinstall “Tools for Universal Windows App Development”
- Or, take the following steps to reinstall the JavaScript project system and language service:
- Download the installer for your edition of Visual Studio, e.g., vs_community.exe.
- Open a CMD window, and run the following command: vs_community.exe /modify /installselectableitems JavaScript_Hidden /passive
Sorry for the trouble. Hope that helps.
Do you mean this option? That's what I have seen when have run the VS installer again (because I was not able to find VS2015 in the programs and features - Win 8.1 x64)

Yep, that's it.
After installing the missing Emulators for Windows Mobile 10.0.10240 I'm seeing the following:

Seems that it will work. Thank you!
UPD1: It works)
The re-installation of "Tools and Windows SDK 10.0.10240" brings back the JavaScript support and seems to work.
If i open a project, now i get this error:

In the log file, this exceptions appear:
707 Begin package load [Microsoft.VisualStudio.JSLS.JavaScriptLanguageServicePackage, Microsoft.VisualStudio.JSLS, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a]
708 End package load [Microsoft.VisualStudio.JSLS.JavaScriptLanguageServicePackage, Microsoft.VisualStudio.JSLS, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a]
709 ERROR (2x times)
Microsoft.VisualStudio.Composition.CompositionFailedException: Expected 1 export(s) with contract name "Microsoft.VisualStudio.JavaScript.Web.Extensions.ReferenceAutoSync.IReferencesFilePathProvider" but found 0 after applying applicable constraints. at
Microsoft.VisualStudio.Composition.ExportProvider.GetExports(ImportDefinition importDefinition) at
Microsoft.VisualStudio.Composition.ExportProvider.GetExports[T,TMetadataView](String contractName, ImportCardinality cardinality) at
Microsoft.VisualStudio.Composition.ExportProvider.GetExport[T,TMetadataView](String contractName) at
Microsoft.VisualStudio.Composition.ExportProvider.GetExport[T](String contractName) at
Microsoft.VisualStudio.Composition.ExportProvider.GetExport[T]() at
Microsoft.VisualStudio.Composition.ExportProvider.GetExportedValue[T]() at
Microsoft.VisualStudio.ComponentModelHost.ComponentModel.GetService[T]() at
Microsoft.VisualStudio.JavaScript.Web.Extensions.Shared.ComponentModelServiceProvider.GetService[T]() at
Microsoft.VisualStudio.JavaScript.Web.Extensions.ReferenceAutoSync.ProjectData..ctor(IVsHierarchy project) at
Microsoft.VisualStudio.JavaScript.Web.Extensions.ReferenceAutoSync.ProjectData.<>c__DisplayClass31_0.<GetOrCreate>b__0() at
Microsoft.VisualStudio.Utilities.PropertyCollection.GetOrCreateSingletonProperty[T](Object key, Func`1 creator) at
Microsoft.VisualStudio.JavaScript.Web.Extensions.ReferenceAutoSync.ProjectData.GetOrCreate(IVsHierarchy webProject, IWebProjectServices webProjectServices) at
Microsoft.VisualStudio.JavaScript.Web.Extensions.Commands.CommandFilter..ctor(ITextView textView) at
Microsoft.VisualStudio.JavaScript.Web.Extensions.Commands.WpfTextViewConnectionListener.HookupCommandFilter(IWpfTextView textView, IVsTextView textViewAdapter) at
Microsoft.VisualStudio.JavaScript.Web.Extensions.Commands.WpfTextViewConnectionListener.SubjectBuffersConnected(IWpfTextView textView, ConnectionReason reason, Collection`1 subjectBuffers) at Microsoft.VisualStudio.Text.Editor.Implementation.ConnectionManager.<>c__DisplayClass4_1.<.ctor>b__1() at
Microsoft.VisualStudio.Text.Utilities.GuardedOperations.CallExtensionPoint(Object errorSource, Action call)
711 Entering function CVsPackageInfo::HrInstantiatePackage
712 Begin package load [CssPackage]
713 End package load [CssPackage]
714 ERROR (2x times)
Microsoft.VisualStudio.Composition.CompositionFailedException: Expected 1 export(s) with contract name "Microsoft.VisualStudio.JavaScript.Web.Extensions.ReferenceAutoSync.IReferencesFilePathProvider" but found 0 after applying applicable constraints. at
Microsoft.VisualStudio.Composition.ExportProvider.GetExports(ImportDefinition importDefinition) at
Microsoft.VisualStudio.Composition.ExportProvider.GetExports[T,TMetadataView](String contractName, ImportCardinality cardinality) at
Microsoft.VisualStudio.Composition.ExportProvider.GetExport[T,TMetadataView](String contractName) at
Microsoft.VisualStudio.Composition.ExportProvider.GetExport[T](String contractName) at
Microsoft.VisualStudio.Composition.ExportProvider.GetExport[T]() at
Microsoft.VisualStudio.Composition.ExportProvider.GetExportedValue[T]() at
Microsoft.VisualStudio.ComponentModelHost.ComponentModel.GetService[T]() at
Microsoft.VisualStudio.JavaScript.Web.Extensions.Shared.ComponentModelServiceProvider.GetService[T]() at
Microsoft.VisualStudio.JavaScript.Web.Extensions.ReferenceAutoSync.ProjectData..ctor(IVsHierarchy project) at Microsoft.VisualStudio.JavaScript.Web.Extensions.ReferenceAutoSync.ProjectData.<>c__DisplayClass31_0.<GetOrCreate>b__0() at
Microsoft.VisualStudio.Utilities.PropertyCollection.GetOrCreateSingletonProperty[T](Object key, Func`1 creator) at
Microsoft.VisualStudio.JavaScript.Web.Extensions.ReferenceAutoSync.ProjectData.GetOrCreate(IVsHierarchy webProject, IWebProjectServices webProjectServices) at
Microsoft.VisualStudio.JavaScript.Web.Extensions.Commands.CommandFilter..ctor(ITextView textView) at
Microsoft.VisualStudio.JavaScript.Web.Extensions.Commands.WpfTextViewConnectionListener.HookupCommandFilter(IWpfTextView textView, IVsTextView textViewAdapter) at
Microsoft.VisualStudio.JavaScript.Web.Extensions.Commands.WpfTextViewConnectionListener.SubjectBuffersConnected(IWpfTextView textView, ConnectionReason reason, Collection`1 subjectBuffers) at
Microsoft.VisualStudio.Text.Editor.Implementation.ConnectionManager.<>c__DisplayClass7_0.<OnGraphBuffersChanged>b__0() at
Microsoft.VisualStudio.Text.Utilities.GuardedOperations.CallExtensionPoint(Object errorSource, Action call)
My guess is that only reinstalling the SDK didn't update the MEF cache. You can do this manually by following these steps:
- Open a command prompt as administrator.
- CD into C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE
- Run devenv /updateconfiguration
- Run devenv /clearcache
If that doesn't fix it, please redo the steps I outlined above, but toggle the outer 'Universal App Development Tools' as in the screenshot above - not just the SDK. If you don't want the emulators you should be able to uncheck that option afterwards.
@mbraude Thank you, /updateconfiguration & /clearcache worked, error is gone.
Faced the issue and got it fixed following the given steps.
Thanks.
After updating the windows universal app development tools, I was still getting the same error. I had to delete the directory: %localappdata%\Microsoft\VisualStudio\14.0\ComponentModelCache
Everything seems to be working again. Thanks.
Хорошо иметь Google Translate близ.
@YuryStrozhevsky @sguryev could you limit discussion to English and keep things on topic with the issue? Translators only go so far, so it's difficult for most of us on the team to follow. :smile:
Faced this issue and fixed now.. Thanks.
Same stuff after latest TypeScript update: same solution suggested worked for me, too.
Great, doing the devenv /updateconfiguration and devenv /clearcache finally solved it for me after weeks of frustration
Hi, I'm having similar issue, i.e. opening any TypeScript file in VS2015 (TS 1.5.4.0) causes the error which is followed by automatic VS restart. The thing is I haven't installed any of the Universal Windows App Dev Tools at all.
I've also tried updateconfiguration and clearcache, no luck ufortunately
System.Runtime.InteropServices.COMException (0x80020006): Nieznana nazwa. (Exception from HRESULT: 0x80020006 (DISP_E_UNKNOWNNAME))
 at
System.RuntimeType.InvokeDispMethod(String name, BindingFlags invokeAttr, Object target, Object[] args, Boolean[] byrefModifiers, Int32 culture, String[] namedParameters)
 at
System.RuntimeType.InvokeMember(String name, BindingFlags bindingFlags, Binder binder, Object target, Object[] providedArgs, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParams)
 at
Microsoft.CodeAnalysis.Editor.TypeScript.ScriptServices.Proxies.Reflection.InvokeMethod[T](Object languageService, String methodName, Object[] arguments)
 at
Microsoft.CodeAnalysis.Editor.TypeScript.ScriptServices.Proxies.AbstractProxy`1.InvokeShimMethod[T](String methodName, Object[] arguments)
 at
Microsoft.CodeAnalysis.Editor.TypeScript.ScriptServices.Proxies.ClassifierProxy.GetLexicalClassifications(String text, Int32 lexState)
 at
Microsoft.CodeAnalysis.Editor.TypeScript.Features.Classifier.LexicalClassificationTaggerProvider.Classifier.GetLexicalClassifications(ClassifierProxy classifier, String text, Int32 lineNum)
 at
Microsoft.CodeAnalysis.Editor.TypeScript.Features.Classifier.LexicalClassificationTaggerProvider.Classifier.GetClassifications(NormalizedSnapshotSpanCollection spans, List`1 result)
 at
Microsoft.CodeAnalysis.Editor.TypeScript.Features.Classifier.LexicalClassificationTaggerProvider.Classifier.GetTags(NormalizedSnapshotSpanCollection spans)
 at
Microsoft.VisualStudio.Text.Tagging.Implementation.TagAggregator`1.<GetTagsForBuffer>d__38.MoveNext()
@migajek - I'm sorry for your trouble but this sounds like a different problem than what's discussed in this issue.
@mbraude ok I've created https://github.com/Microsoft/TypeScript/issues/4752 thank you!
@mbraude Thanks a lot!
I didn't have to do the uninstall / reinstall. Just the /updateconfiguration and /clearcache switches.
Fixed other problems for me as well, so bonus! Recent projects now show up in the recent projects list and my source control plugin now correctly flags the solution node when its status changes.