简体   繁体   English

打字稿编辑并继续视觉工作室2015

[英]Typescript edit and continue visual studio 2015

I am using Visual Studio 2015 CTP5, and while running the project I am unable to edit typescript, resulting in the error alert box 我正在使用Visual Studio 2015 CTP5,并且在运行项目时我无法编辑打字稿,导致出现错误警告框

---------------------------
Microsoft Visual Studio
---------------------------
Edit and Continue

Changes are not allowed while code is running.
---------------------------
OK   
---------------------------

Edit and continue worked fine for typescript in VS 2013. Is there an option to enable, or workaround for this to work in VS 2015? 编辑并继续在VS 2013中正常处理打字稿。是否可以选择启用或解决此问题,以便在VS 2015中使用? As it stands, VS15 is too cumbersome to use for typescript development. 就目前而言,VS15对于打字稿开发来说太麻烦了。

Edit: As far as I can tell, this is not fixable at the moment, and the issue is currently on Uservoice 编辑:据我所知,目前还无法修复,目前问题出在Uservoice上

Okay so the only workaround (or quasi-workaround, I guess) I have found so far is this: Visual Studio locking files while debugging . 好吧所以我到目前为止找到的唯一解决方法(或者是准解决方法)是这样的: Visual Studio在调试时锁定文件

They suggest while debugging to break all. 他们建议在调试时打破所有。 This does indeed allow me to edit the code and then hitting play resumes the program and allows me to view changes. 这确实允许我编辑代码然后点击播放恢复程序并允许我查看更改。

It's not ideal, but it's slightly more convenient than having to recompile the whole thing. 它并不理想,但它比重新编译整个东西稍微方便一些。 Still searching for a foolproof way to get around this without having to do anything else than saving, but this works okay for now. 仍在寻找一种万无一失的方式来解决这个问题,而不需要做任何其他事情而不是保存,但现在这样做还可以。

Shortcuts help ease the pain. 快捷方式有助于缓解疼痛。 Ctrl + Alt + Break pauses it so you can edit, F5 brings you back out of it and runs the server again. Ctrl + Alt + Break暂停它以便您可以编辑, F5会让您退出并重新运行服务器。

I'd rather deal with this than the buggy compile on save in VS 2013. Hopefully this gets fixed soon. 我宁愿处理这个比在VS 2013中保存的错误编译。希望这很快得到解决。

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

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