Bug report: #region expansion upon checkin (C#, VS2005)

If you are having a problem using Vault, post a message here.

Moderator: SourceGear

Post Reply
gmagana
Posts: 145
Joined: Wed Feb 18, 2004 10:51 am
Location: Santa Ana, CA, USA

Bug report: #region expansion upon checkin (C#, VS2005)

Post by gmagana » Thu Oct 11, 2007 6:09 pm

This happens with 4.0.5 beta as well. If you do a checkin from VS2005, any C# files that are open will have all their #regions expanded. you then have to manually collapse any #regions you wanted to collapse. Any files that are closed at the time of checkin are not affected.

I don't program in VB, so I don't know if it is affected as well.

EDIT: Here is a macro for collapsing/expanding just the #regions in a C#/VB file. This is useful because the built-in functionality of VS (all versions so far) is to collapse all collapsible elements (classes, namespaces, etc...). So these macros help since they collapse/expand just the #region elements: http://blog.wouterdeboer.nl/archive/2006/07/24/17.aspx
gabriel magana-gonzalez

Beth
Posts: 8550
Joined: Wed Jun 21, 2006 8:24 pm
Location: SourceGear
Contact:

Post by Beth » Fri Oct 12, 2007 4:06 pm

We'll look into this and let you know what we find.

gmagana
Posts: 145
Joined: Wed Feb 18, 2004 10:51 am
Location: Santa Ana, CA, USA

Post by gmagana » Mon Oct 15, 2007 9:45 am

ADDENDUM / CORRECTION: This only happens on the file currently being edited. Any other open files are not affected.
gabriel magana-gonzalez

Beth
Posts: 8550
Joined: Wed Jun 21, 2006 8:24 pm
Location: SourceGear
Contact:

Post by Beth » Fri Oct 19, 2007 3:24 pm

We've reproduced this and have a bug logged. It won't make the 4.0.5 release (it's already in beta), but it will be scheduled for a future release.

gmagana
Posts: 145
Joined: Wed Feb 18, 2004 10:51 am
Location: Santa Ana, CA, USA

Post by gmagana » Fri Oct 19, 2007 3:39 pm

Thanks!
gabriel magana-gonzalez

Post Reply