Visual Studio 2015 - Editing TypeScript files

纵然是瞬间 提交于 2020-01-04 05:43:47

问题


For some odd reason, I cannot* edit TypeScript files in Visual Studio 2015. The really weird thing is that I can create new lines and add tabs, but nothing else.

I tried updating to the latest version of TypeScript for VS2015 to no avail. I thought maybe it was project related so I opened a ts file without having a project loaded - same problem. I saw some other posts indicating problems with ReSharper cache, so I tried deleting those as well as disabling Re# - no luck.

Anybody have any ideas?

Thanks.


回答1:


I faced the same problem but fortunately I solved it quite soon.

At some point editing stopped working for ts file in VS 2015 and I noticed that it happened after I updated tsconfig.json file. It turned out that this issue was caused by comments I left at the beginning of the file (I had commented out sample config and added actual config below it).

This looks weird but after playing with the config file all doubts were gone.



来源:https://stackoverflow.com/questions/35807201/visual-studio-2015-editing-typescript-files

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!