Open geebotron opened 11 years ago
When you are using vim as your editor it is going to open the file honoring the filesystem's permissions. Any eclipse editor plugins are presumably going to be unaware of any changes that are taking place while you are in vim. Eclim/vimplugin with send some basic events back to eclipse, but for the most part you are editing the file in a different program.
I don't know how the tfs plugin hooks into the eclipse editor so I'm not sure what changes would need to occur or if eclim would need to integrate with the tfs plugin directly for it to trigger a checkout automatically like you're use to, but it may be easier and quicker to just add a couple commands to your vimrc, or install a vim plugin, to give you the ability to checkout/checking files from within vim (perhaps even an autocmd which will auto checkout the file for you).
I'll mark this issue as a feature request, but I don't know if/when it will ever be implemented unless you or someone else with a similar setup can dig into the source (does microsoft even provide the source for their plugin?) and provide a patch for this.
OK Eric, thanks for the response. I understand what you are saying.
After 2 mins googlization I can't see any reference to the source code to the TFS plugin, and well, it is a M$ product. M$ have never been comfortable with non-employees being privy to how lame their code is ;-)
I may well email them to inquire about how the TFS plugin interacts with Eclipse's editor, but I don't hold out much hope of an informative response....
Hi, In their wisdom my employers unfortunately use M$ Team Foundation Server (TFS) as their source control system.
I don't know if this is a bug or a feature ;-) but when using Vim + Eclim to edit a file under the source control of TFS it retains its read-only state, and isn't automatically checked out of the source control. You need to remember to manually check the file out before you start, which is mildly annoying.
In contrast, the Eclipse built-in editor will automatically checks the file out of TFS as soon as one makes any change to that file.
I don't know if perhaps it's Vim itself that is behaving differently from the inbuilt Eclipse editor, and Eclim is completely innocent in this respect.
Thanks.
BTW, to use TFS in conjunction with Eclipse you have to install the TFS plugin found here: http://dl.microsoft.com/eclipse/tfs