Visual Studio 2015 RTM - 更新TypeSript工具后失去JavaScript支持 [英] Visual Studio 2015 RTM - Lost JavaScript support after update TypeSript Tools

查看:262
本文介绍了Visual Studio 2015 RTM - 更新TypeSript工具后失去JavaScript支持的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在将TypeScript工具从1.5.3升级到1.5.4后,我在Visual Studio 2015中失去了对JavaScript文件的支持。



支持JavaScript I意味着intellisense,语法着色和选项菜单 - >文本编辑器中的JavaScript选项。



我的js文件现在看起来像txt文件。



我已经尝试了很多东西:


  1. 这个答案中的步骤: Visual Studio 2015 CTP - 缺少Javascript支持

  2. 修复TypeScript工具

  3. 修复Microsoft Asp.Net和Web Tools 2015

  4. 修复整个Visual Studio 2015

没有任何效果。



有谁知道这个问题的解决方案?

解决方案

这是我们在VS 2015中修复过的已知错误,但是如果您安装了通用Windows应用程序开发,则可能会受到影响pment工具在特定的时间段内。我们很快将发布一个KB,其解决方法如下:



如果仍然安装了通用Windows应用开发工具:


  1. 转到程序和功能,选择Visual Studio 2105,单击更改。

  2. 在Visual Studio安装程序中,单击修改。

  3. 取消选择通用Windows应用开发工具功能

  4. 再次选择通用Windows应用开发工具,然后单击更新。

如果您已经卸载了通用Windows应用开发工具:




  • 重新安装通用Windows应用程序开发工具

  • 或者,按照以下步骤重新安装JavaScript项目系统和语言服务:


    1. 下载适用于您的Visual Studio版本的安装程序,例如 vs_community.exe

    2. 打开CMD窗口,然后运行以下命令: vs_community.exe / modify / installselectableitems JavaScript_Hidden /被动




很抱歉的麻烦。希望有所帮助。


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:

  1. The steps in this answer: Visual Studio 2015 CTP - Javascript support missing
  2. Repair TypeScript Tools
  3. Repair Microsoft Asp.Net and Web Tools 2015
  4. Repair entire Visual Studio 2015

Nothing worked.

Does anyone knows a solution for this problem?

解决方案

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:

  1. Go to Programs and Features, select Visual Studio 2105, click Change.
  2. In Visual Studio setup, click Modify.
  3. Deselect the feature "Universal Windows App Development Tools"
  4. 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:

    1. Download the installer for your edition of Visual Studio, e.g. vs_community.exe.
    2. Open a CMD window, and run the following command: vs_community.exe /modify /installselectableitems JavaScript_Hidden /passive

Sorry for the trouble. Hope that helps.

这篇关于Visual Studio 2015 RTM - 更新TypeSript工具后失去JavaScript支持的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆