Example #1
0
 private void OnChanged(object sender, FileSystemEventArgs e)
 {
     if ((Directory.Exists(e.FullPath) &&
          !PathUtils.GetFileOrDirectoryName(e.FullPath).Equals("__pycache__", StringComparison.OrdinalIgnoreCase)) ||
         ModulePath.IsPythonFile(e.FullPath, false, true, false)
         )
     {
         try {
             _refreshIsCurrentTrigger.Change(1000, Timeout.Infinite);
         } catch (ObjectDisposedException) {
         }
     }
 }