I have lost the support for JavaScript files inside Visual Studio 2015 after updating the TypeScript tools from version 1.5.3 to 1.5.4.
By support for JavaScript I mean intellisense, syntax coloring and the JavaScript options inside Options menu -> Text Editor.
My js files look like txt files now.
I have already tried many things:
Nothing worked.
Does anyone knows a solution for this problem?
TypeScript support By default, Visual Studio 2022 provides language support for JavaScript and TypeScript files to power IntelliSense without any specific project configuration. For compiling TypeScript, Visual Studio gives you the flexibility to choose which version of TypeScript to use on a per-project basis.
With your project open in Visual Studio, right-click on a folder or your project node in Solution Explorer (right pane), and choose Add > New Item. In the New File dialog box, under the General category, choose the file type that you want to add, such as JavaScript File, and then choose Open.
You can access the IntelliSense page by choosing Tools > Options on the menu bar, and then expanding Text Editor > JavaScript/TypeScript > IntelliSense. Your computer might show different names or locations for some of the Visual Studio user interface elements in this article.
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:
If you have already uninstalled the “Universal Windows App Development Tools”:
vs_community.exe
.vs_community.exe /modify /installselectableitems JavaScript_Hidden /passive
Sorry for the trouble. Hope that helps.
Found a workaround to rollback to TypeScript 1.5.3 and get back support for JS:
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With