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

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

问题描述

在将 TypeScript 工具从 1.5.3 版更新到 1.5.4 版后,我在 Visual Studio 2015 中失去了对 JavaScript 文件的支持.

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.

对 JavaScript 的支持是指智能感知、语法着色和选项菜单 -> 文本编辑器中的 JavaScript 选项.

By support for JavaScript I mean intellisense, syntax coloring and the JavaScript options inside Options menu -> Text Editor.

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

My js files look like txt files now.

我已经尝试了很多东西:

I have already tried many things:

  1. 此答案中的步骤:Visual Studio 2015 CTP - 缺少 Javascript 支持
  2. 修复 TypeScript 工具
  3. 修复 Microsoft Asp.Net 和 Web Tools 2015
  4. 修复整个 Visual Studio 2015

没有任何效果.

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

Does anyone knows a solution for this problem?

推荐答案

这是我们在 VS 2015 中修复的已知错误,但是如果您在特定期间安装了Universal Windows App Development Tools",您可能会受到影响一段的时间.我们将很快发布一个 KB,并采用以下解决方法:

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:

如果Universal Windows App Development Tools"仍然安装:

If the "Universal Windows App Development Tools" are still installed:

  1. 转到程序和功能",选择 Visual Studio 2105,单击更改".
  2. 在 Visual Studio 设置中,单击修改".
  3. 取消选择通用 Windows 应用开发工具"功能
  4. 再次选择Universal Windows App Development Tools",然后点击更新.

如果您已经卸载了Universal Windows App Development Tools":

If you have already uninstalled the "Universal Windows App Development Tools":

  • 重新安装通用 Windows 应用开发工具"
  • 或者,按照以下步骤重新安装 JavaScript 项目系统和语言服务:
  • Reinstall "Universal Windows App Development Tools"
  • Or, take the following steps to reinstall the JavaScript project system and language service:
  1. 下载适用于您的 Visual Studio 版本的安装程序,例如vs_community.exe.
  2. 打开一个 CMD 窗口,然后运行以下命令:vs_community.exe/modify/installselectableitems JavaScript_Hidden/passive

很抱歉给您带来麻烦.希望有所帮助.

Sorry for the trouble. Hope that helps.

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

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