Example #1
0
        private void ReParseEntireFile()
        {
            if (lastGherkinFileScope == null || lastGherkinFileScope.TextSnapshot == null)
            {
                return;
            }

            TextBufferChanged(GherkinTextBufferChange.CreateEntireBufferChange(lastGherkinFileScope.TextSnapshot.TextBuffer.CurrentSnapshot));
        }
Example #2
0
        private void Initialize(ITextBuffer textBuffer)
        {
            // do initial parsing
            TextBufferChanged(GherkinTextBufferChange.CreateEntireBufferChange(textBuffer.CurrentSnapshot));

            projectScope.GherkinDialectServicesChanged += ReParseEntireFile;

            if (enableStepMatchColoring)
            {
                projectScope.StepSuggestionProvider.Ready           += ReParseEntireFile;
                projectScope.StepSuggestionProvider.BindingsChanged += ReParseEntireFile;
            }
        }