focus moving to Solution Explorer in Visual Studio 2005

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

Moderator: SourceGear

Post Reply
yellowfog
Posts: 4
Joined: Fri Oct 22, 2010 7:18 am

focus moving to Solution Explorer in Visual Studio 2005

Post by yellowfog » Thu Aug 04, 2011 1:58 am

A search shows a similar support request raised, but no resolution.

I have four people using Visual Studio 2005 with the Vault Enhanced Client, we're on version 5.0.3. Occasionallywhen typing code (I think on class libraries as well as ASP.NET web applications) the focus will unexpectedly and annoyingly move from the code window to the Solution Explorer. One of the developers happened to have Fiddler open one time when it happened, and he said that he spotted a call into the Vault server at the time. He didn't make a note of what the call was, however (I really don't know why not).

This is happening on both XP machines and a 64 bit windows 7 machine. Is there a fix for this in version 5.1.1?

Thanks for any help.

lbauer
Posts: 9736
Joined: Tue Dec 16, 2003 1:25 pm
Location: SourceGear

Re: focus moving to Solution Explorer in Visual Studio 2005

Post by lbauer » Thu Aug 04, 2011 9:19 am

We were unable to reproduce it, so most likely it hasn't been fixed. Can you reliably reproduce this? Or at least give us a little more indication under what circumstances it happens?

What type of file are you modifying when this happens?

Are you typing in a file that is not checked out, so that the modification triggers a checkout? Maybe that could be changing focus?
Linda Bauer
SourceGear
Technical Support Manager

yellowfog
Posts: 4
Joined: Fri Oct 22, 2010 7:18 am

Re: focus moving to Solution Explorer in Visual Studio 2005

Post by yellowfog » Fri Aug 05, 2011 6:21 am

I've confirmed a problem case. Noting that every ten minutes Visual Studio makes a couple of calls into our source code server, I got a colleague to check in a change to file, then left the focus on the code page while I twiddled my thumbs. At the expected time the icon on the changed file was updated in Solution Explorer, and that window received the focus.

BigBrett
Posts: 218
Joined: Wed Feb 01, 2006 8:45 am

Re: focus moving to Solution Explorer in Visual Studio 2005

Post by BigBrett » Fri Aug 05, 2011 8:02 am

Try turning off "Track Active Item in Solution Explorer" under "Projects and Solutions" in the Options dialog.

Regards,
Brett

yellowfog
Posts: 4
Joined: Fri Oct 22, 2010 7:18 am

Re: focus moving to Solution Explorer in Visual Studio 2005

Post by yellowfog » Fri Aug 05, 2011 9:49 am

I would, but it isn't on.

lbauer
Posts: 9736
Joined: Tue Dec 16, 2003 1:25 pm
Location: SourceGear

Re: focus moving to Solution Explorer in Visual Studio 2005

Post by lbauer » Fri Aug 05, 2011 1:48 pm

I'm still not able to get the focus to change to the Solution Explorer, either in Vault 5.0.3 or 5.1.1.

By default, the client refresh is every 10 minutes. Does this change in focus co-incide with the refresh?

You can test this out by changing the refresh value in VS 2005 under Tools->Options->Source Control->Vault Options->Advanced Options->General->Automatically refresh every ___ minutes.
Linda Bauer
SourceGear
Technical Support Manager

yellowfog
Posts: 4
Joined: Fri Oct 22, 2010 7:18 am

Re: focus moving to Solution Explorer in Visual Studio 2005

Post by yellowfog » Mon Aug 08, 2011 2:18 am

Yes, the change in focus coincides with the refresh. I've changed the update rate to one minute, and it's now easier to test (if nothing else I'm learning some interesting configuration settings here). I've had my colleagues update and check in both .html and .cs pages, and solution explorer takes focus (from my .cs page) when the icon changes for me on the updated file.

Versions:

Studio: 8.0.50727.762 (SP.050727-7600)
.Net: 2.0.50727 SP2
Vault Visual Studio Enhanced Client: 5.0.3.18802

I've got a couple of other extra addins in there, but nothing in common with the other team members who are also experiencing the problem.

Incidentally, a colleague has asked me to point out that once when he was developing he managed to narrowly avoid moving files as a result of the focus changing while he was making the appropriate keystrokes. So it's potentially more than just an irritation.

lbauer
Posts: 9736
Joined: Tue Dec 16, 2003 1:25 pm
Location: SourceGear

Re: focus moving to Solution Explorer in Visual Studio 2005

Post by lbauer » Mon Aug 08, 2011 3:37 pm

I still haven't been able to reproduce this.

I'd suggest we schedule a remote assist session where I can take a closer look. Email support at sourcegear.com, Attn: Linda and we'll set something up. Please include a link to this forum post.
Linda Bauer
SourceGear
Technical Support Manager

Post Reply