简体   繁体   English

Visual Studio 2015 Typescript自动列表成员停止工作

[英]Visual Studio 2015 Typescript auto list members stopped working

I'm working on an Angular2 project; 我正在研究一个Angular2项目; all of a sudden the auto list members for typescript files stopped working. 突然出现打字稿文件的自动列表成员停止工作。 Obviously I realized that after a while and I'm not able to say what caused the problem. 显然我意识到过了一段时间后我无法说出导致问题的原因。

I tried the uninstall/reinstall Visual Studio, with no result. 我尝试卸载/重新安装Visual Studio,没有结果。 I'd say it's not some project configuration, because opening the same solution on a brand new installation of Visual Studio on another laptop, intellisense works perfectly. 我说这不是一些项目配置,因为在另一台笔记本电脑上的全新Visual Studio安装上打开相同的解决方案,intellisense工作得很好。

The version of Visual Studio is 2015 update 3. The version of typescript is 2.1.4. Visual Studio的版本是2015年更新3.打字稿的版本是2.1.4。

Is there some kind of log file I could read? 我能阅读某种日志文件吗?

Like you said, this issue appears recently, did you install any update under windows update or VS install any extensions or updates? 就像你说的,这个问题最近出现了,你是否在Windows更新或VS安装任何扩展或更新? If so, you can try to remove them one by one to locate this issue. 如果是这样,您可以尝试逐个删除它们以找到此问题。

Since this same solution works fine in another VS and laptop, this issue should have caused by the VS or computer which has this issue, you can have a try the following to troubleshot this issue: 由于这个相同的解决方案在另一个VS和笔记本电脑上工作正常,这个问题应该由VS或计算机引起这个问题,你可以尝试以下方法来解决这个问题:

  1. Run VS using different commands, open an administrative CMD window and navigate to C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\Common7\\IDE and run the commands as below: 使用不同的命令运行VS,打开管理CMD窗口并导航到C:\\ Program Files(x86)\\ Microsoft Visual Studio 14.0 \\ Common7 \\ IDE并运行如下命令:

• devenv /resetuserdata: clean up the old user data •devenv / resetuserdata:清理旧用户数据

• devenv /resetsettings: reset the customized setting to the default setting, if you want to keep the current setting, you need to export it before resetting it, please go to Tool-Import and Export Settings… •devenv / resetsettings:将自定义设置重置为默认设置,如果要保留当前设置,需要在重置前将其导出,请转到工具导入和导出设置...

After each command, reopen VS and check it again. 在每个命令之后,重新打开VS并再次检查它。

  1. Perform a clean boot follow the steps from here: https://support.microsoft.com/en-us/kb/929135 then re-run the VS as administrator and check this issue again. 执行干净启动请按照此处的步骤操作: https//support.microsoft.com/en-us/kb/929135然后以管理员身份重新运行VS并再次检查此问题。

[Edit] [编辑]

The workaround from Gio: Finally I fixed that! 来自Gio的解决方法:最后我解决了这个问题! Just replaced the "C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\Common7\\IDE\\CommonExtensions\\Microsoft\\TypeScript" folder with the one on the working laptop. 刚刚将“C:\\ Program Files(x86)\\ Microsoft Visual Studio 14.0 \\ Common7 \\ IDE \\ CommonExtensions \\ Microsoft \\ TypeScript”文件夹替换为工作笔记本电脑上的文件夹。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM