Exemplo n.º 1
0
        private void PopSession()
        {
            IBraceCompletionSession session           = _stack.Pop();
            ITextBuffer             nextSubjectBuffer = null;

            _guardedOperations.CallExtensionPoint(() => {
                // call finish to allow the session to do any cleanup
                session.Finish();

                if (TopSession != null)
                {
                    nextSubjectBuffer = TopSession.SubjectBuffer;
                }
            });

            SetCurrentBuffer(nextSubjectBuffer);
        }