private void FeatureFilesTrackerOnFeatureFileRemoved(FeatureFileInfo featureFileInfo) { List <IStepSuggestion <Completion> > stepSuggestions; if (fileSuggestions.TryGetValue(featureFileInfo, out stepSuggestions)) { stepSuggestions.ForEach(RemoveStepSuggestion); fileSuggestions.Remove(featureFileInfo); } }
private void FeatureFilesTrackerOnFeatureFileUpdated(FeatureFileInfo featureFileInfo) { List <IStepSuggestion <Completion> > stepSuggestions; if (fileSuggestions.TryGetValue(featureFileInfo, out stepSuggestions)) { stepSuggestions.ForEach(RemoveStepSuggestion); stepSuggestions.Clear(); } if (featureFileInfo.ParsedFeature != null) { if (stepSuggestions == null) { stepSuggestions = new List <IStepSuggestion <Completion> >(); fileSuggestions.Add(featureFileInfo, stepSuggestions); } stepSuggestions.AddRange(GetStepSuggestions(featureFileInfo.ParsedFeature)); stepSuggestions.ForEach(AddStepSuggestion); } }