示例#1
0
 internal void CheckLazyLoadStatus()
 {
     if (Preferences.LocalSettings.GetBool("LazyLoadStatus", false))
     {
         // if lazy laoding, update status of the selected files that haven't had
         // their status loaded
         IList <string> files   = SccService.SelectedFiles;
         IList <string> llfiles = new List <string>(files.Count);
         foreach (string file in files)
         {
             SourceControlStatus status = SccService.GetFileStatus(file);
             if (status.Test(SourceControlStatus.scsUnknown))
             {
                 llfiles.Add(file);
             }
         }
         CurrentScm.UpdateFiles(llfiles, true);
         Glyphs.RefreshFilesAndGlyphs(llfiles);
     }
 }