Visual Studio 2015 RTM - Lost JavaScript support after update TypeScript Tools
Found a workaround to rollback to TypeScript 1.5.3 and get back support for JS:
- From Programs and Features, uninstall TypeScript Tools 1.5.4 and Microsoft Asp.Net and Web Tools 2015
- Download VS 2015 offline installer (Reference: How to install VS2015 Community Edition offline)
- Inside the download directory from step 2, navigate to "packages\WPT" and install "webtoolsextensionsvs14.msi" (Microsoft Asp.Net and Web Tools 2015)
- Then navigate to the folder (inside the download directory) "OfflineCache\installers". You will see two TS folders: "TypeScriptV1" and "TypeScriptV2". They are the installers for the versions 1.5.3 and 1.5.4 respectively.
- Install TypeScript Tools 1.5.3 (using the installer inside the folder "TypeScriptV1")
Now, start Visual Studio. At this point JavaScript support should be back, and TS support still available.
NOTE: there is no independent installer for TypeScript Tools for VS 2015 (Reference: Typescript 1.5 for VS2015 without internet access)
UPDATE:
As Mohamed Hegazy noted, the TypeScript installers are available to download on: TypeScript for Visual Studio 2015
In my case, here is the way I fixed it:
Tools > Options > Text Editor > JavaScript > Intellisense > References
- Make sure you Implicit (Web) is selected under Reference Group
- Make sure that
~/Scripts/references.js
is added in the include files list
Hope it will help you
This is a known bug that we have fixed in VS 2015, however you could have been affected if you installed the "Universal Windows App Development Tools" during a specific period of time. We will soon be publishing a KB with the following workaround:
If the “Universal Windows App Development Tools” are still installed:
- Go to Programs and Features, select Visual Studio 2105, click Change.
- In Visual Studio setup, click Modify.
- Deselect the feature “Universal Windows App Development Tools”
- Select “Universal Windows App Development Tools” again, and click Update.
If you have already uninstalled the “Universal Windows App Development Tools”:
- Reinstall “Universal Windows App Development Tools”
- 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
- Download the installer for your edition of Visual Studio, e.g.
Sorry for the trouble. Hope that helps.