Visual Studio 2015 crashes when opening Javascript files

后端 未结 7 1835
隐瞒了意图╮
隐瞒了意图╮ 2021-02-20 08:35

Every time I open a Javascript file with Visual Studio 2015 Pro RTM it crashes and restarts. No error messages.

I did a repair but I haven\'t tried uninstalling and rei

7条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-02-20 08:42

    Ok I finally figured it out. It does have something to do with the _references.js file.

    I had to clear out my _references.js file. After I had cleared out the contents of that file, visual studio would no longer crash when opening up javascript files.

    This does work but you could lose your some of your intellisense in javascript. The issue occurs when I opened a js file that was not included in the _references.js file if there are entries in there. All I had to do is right click the _references.js file and click "Update Javascript References" and it worked fine.

    Thanks everyone for your help.

提交回复
热议问题