Source

Sublime TFS / sublime_tfs.py

Diff from to

sublime_tfs.py

     def run(self, edit):
         path = self.view.file_name()
         if not (path is None):
+            self.view.run_command('save')
             manager = TfsManager()
             thread = TfsRunnerThread(path, manager.checkin)
             thread.start()
     def run(self, edit):
         path = self.view.file_name()
         if not (path is None):
+            self.view.run_command('save')
             manager = TfsManager()
             thread = TfsRunnerThread(path, manager.get_latest)
             thread.start()
     def run(self, edit):
         path = self.view.file_name()
         if not (path is None):
+            self.view.run_command('save')
             manager = TfsManager()
             thread = TfsRunnerThread(path, manager.difference)
             thread.start()