CDuke / sublime-tfs

Use TFS inside Sublime Text 2/3
5 stars 4 forks source link

Add ability to auto get latest #13

Closed CDuke closed 8 years ago

CDuke commented 10 years ago

Originally reported by: Eric Ness (Bitbucket: eric_ness, GitHub: eric_ness)


I'd love the ability to auto get latest before checkout.


CDuke commented 10 years ago

Original comment by Konstantin Kabanov (Bitbucket: DarkOverlord, GitHub: DarkOverlord):


It's not a feature of Sublime TFS.

It can be configured in Visual Studio Tools -> Options menu, like this:

SNAG-0030.png

marknadig commented 8 years ago

@CDuke I know this is an old issue. But, I've been testing this out with ST3 build 3103 and VS2015 on Windows 7. I confirmed Tools: Options: Source Control: VSTFS: "Get latest version.. on checkout" is checked. I confirmed checking out from a VS command line gets latest. But if I rely on autocheckout, I'm not seeing the latest,

  1. From VS, select a file, go to version history and select "get this version" from a prior changeset.
  2. from ST3, open that file and type a comment. I do see the file is checked out, but I'm still seeing the older code. I would expect the file to reflect the latest version. I'm sure that could be a jerky UX, but that's what the user asked for when the said "get latest version on checkout".

Looking a bit at the code it seems the issue is that checkout is happening on a pre save event handler. So, ST is writing whatever it already has in memory to disk after TFS got the latest. Really need a "before edit" event :)...