Visual-studio – TFS2008 & VS2008 : File deleted from Solution Explorer still appears in Source Control Explorer

tfsvisual studiovisual-studio-2008

I'm seeing some weird behavior from VS2008 integrate with TFS 2008. When I delete a file from a solution from within the Solution Explorer and check it in, the file still appears in the Source Control Explorer.

In the Source Control Explorer the file appears having the value 'delete' under the Pending Change column. It also appears in the Pending Changes window with the same status and I'm forced to check it in from there.

Any idea whether this is "normal" and if it is, what the rationale behind it is? How can I avoid having to twice check-in the file deletion?

Best Answer

How did you check in, exactly? My guess is you did it from the Solution Explorer context menu. When the Checkin modal dialog pops up, even though it shows your entire list of pending changes, by default only items that are currently in the solution will be checked.

This is another reason why I don't recommend invoking important operations from Solution Explorer. Automatically pending changes for you is convenient, but operations that modify state (eg Get, Checkin, Shelve) deserve more care.