Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

---------------------------
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? As it stands, VS15 is too cumbersome to use for typescript development.

Edit: As far as I can tell, this is not fixable at the moment, and the issue is currently on Uservoice

like image 212
Kyle Avatar asked Feb 17 '15 22:02

Kyle


People also ask

How do I turn off break mode in Visual Studio?

There is a free extension to resolve this issue: Disable No Source Available Tab available for from the VS Market Place. This small extension will prevent the tool window with title "No Source Available" from appearing in Visual Studio, and preserve the focus on the currently active tab.


1 Answers

Okay so the only workaround (or quasi-workaround, I guess) I have found so far is this: Visual Studio locking files while debugging.

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.

I'd rather deal with this than the buggy compile on save in VS 2013. Hopefully this gets fixed soon.

like image 76
Brandon Tassone Avatar answered Oct 26 '22 23:10

Brandon Tassone