Esempio n. 1
0
        public void Initialize(ITextBuffer textBuffer)
        {
            // do initial parsing
            TextBufferChanged(GherkinTextBufferChange.CreateEntireBufferChange(textBuffer.CurrentSnapshot));

            projectScope.GherkinDialectServicesChanged += GherkinDialectServicesChanged;
        }
        private void ReParseEntireFile()
        {
            if (lastGherkinFileScope == null || lastGherkinFileScope.TextSnapshot == null)
            {
                return;
            }

            TextBufferChanged(GherkinTextBufferChange.CreateEntireBufferChange(lastGherkinFileScope.TextSnapshot.TextBuffer.CurrentSnapshot));
        }
Esempio n. 3
0
        private void GherkinDialectServicesChanged(object sender, EventArgs eventArgs)
        {
            if (lastGherkinFileScope == null || lastGherkinFileScope.TextSnapshot == null)
            {
                return;
            }

            TextBufferChanged(GherkinTextBufferChange.CreateEntireBufferChange(lastGherkinFileScope.TextSnapshot.TextBuffer.CurrentSnapshot));
        }
        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;
            }
        }