コード例 #1
0
        private void FeatureFilesTrackerOnFeatureFileRemoved(FeatureFileInfo featureFileInfo)
        {
            List <IStepSuggestion <Completion> > stepSuggestions;

            if (fileSuggestions.TryGetValue(featureFileInfo, out stepSuggestions))
            {
                stepSuggestions.ForEach(RemoveStepSuggestion);
                fileSuggestions.Remove(featureFileInfo);
            }
        }
コード例 #2
0
        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);
            }
        }