ReSharper TypeScript在我的VS 2015安装中似乎根本不起作用 [英] ReSharper TypeScript seems to be not working at all in my VS 2015 installation

查看:126
本文介绍了ReSharper TypeScript在我的VS 2015安装中似乎根本不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

ReSharper TypeScript在我的VS 2015安装中似乎根本不起作用.尽管正确放置了TypeScript定义,但是ReSharper不能识别定义的类型,给出了不计其数的红色下划线,并且intellisense当然不适用于变量.

ReSharper TypeScript seems to be not working at all in my VS 2015 installation. Despite of the correctly placed TypeScript definitions ReSharper does not recognize the defined types, gives zillion red underlines, and of course intellisense does not work on the variables.

例如,错误消息为:Could not find symbol 'JQuery'

更多诊断信息:

  • 在VS 2015中编译项目可以正确编译.在源代码中故意造成错误,然后构建会生成一条正确的错误消息
  • 有意在类型定义文件路径中进行拼写,正确地用红色下划线.纠正路径时,请在斜边下划线
  • 在VS 2013中打开同一项目,ReSharper正常运行
  • 最初使用ReSharper 9.1.2的地方存在此问题.现在已升级到最新的9.1.3,问题仍然存在.

有什么想法吗?

推荐答案

如果您看到这种行为-很多红色,但是干净地编译,尤其是在升级后-应当尝试清理缓存.转到ReSharper→选项→通用→清理缓存,然后重新启动Visual Studio.

If you see this kind of behaviour - lots of red, but clean compile, especially after an upgrade - you should try to clean the caches. Go to ReSharper → Options → General → Clean caches, then restart Visual Studio.

这篇关于ReSharper TypeScript在我的VS 2015安装中似乎根本不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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