Beispiel #1
0
 /// <summary>
 /// Refresh the template folders if a template.json file is removed or a
 /// .template.config folder is removed.
 /// </summary>
 void OnFileRemoved(FileEventInfo file)
 {
     if (file.FileName.IsTemplateJsonFile() || file.FileName.IsTemplateConfigDirectory())
     {
         TemplatingServices.EventsService.OnTemplateFoldersChanged();
     }
 }
Beispiel #2
0
 /// <summary>
 /// Refresh the template folders if a template.json file has changed.
 /// </summary>
 void OnFileChanged(FileEventInfo file)
 {
     if (file.FileName.IsTemplateJsonFile())
     {
         TemplatingServices.EventsService.OnTemplateFoldersChanged();
     }
 }
Beispiel #3
0
        bool IsNuGetConfigFile(FileEventInfo fileInfo)
        {
            if (fileInfo.FileName.IsNull)
            {
                return(false);
            }

            return(StringComparer.OrdinalIgnoreCase.Equals(Settings.DefaultSettingsFileName, fileInfo.FileName.FileName));
        }
Beispiel #4
0
 public MergeView(VersionControlDocumentInfo info) : base(GettextCatalog.GetString("Merge"), GettextCatalog.GetString("Shows the merge view for the current file"))
 {
     this.info             = info;
     fileEventInfo         = new FileEventInfo(info.Item.Path.FullPath, info.Item.IsDirectory);
     widgetContainer       = new MergeWidgetContainer();
     NoMergeConflictsLabel = new Gtk.Label()
     {
         Text = GettextCatalog.GetString("No merge conflicts detected.")
     };
     FileService.FileChanged += FileService_FileChanged;
 }
Beispiel #5
0
 bool MatchesEvent(FilePath filePath, FileEventInfo e) => e.IsDirectory && filePath.IsChildPathOf(e.FileName) || !e.IsDirectory && filePath == e.FileName;
Beispiel #6
0
 public MergeView(VersionControlDocumentInfo info)
 {
     this.info     = info;
     fileEventInfo = new FileEventInfo(info.Item.Path.FullPath, info.Item.IsDirectory);
 }
Beispiel #7
0
 bool HasTaskRunner(FileEventInfo eventInfo)
 {
     return(taskRunnerProvider.GetTaskRunner(eventInfo.FileName) != null);
 }