public IIntellisenseSessionStack GetStackForTextView(ITextView textView) {
     MockIntellisenseSessionStack stack;
     if (!textView.Properties.TryGetProperty<MockIntellisenseSessionStack>(typeof(MockIntellisenseSessionStack), out stack)) {
         textView.Properties[typeof(MockIntellisenseSessionStack)] = stack = new MockIntellisenseSessionStack();
     }
     return stack;
 }
Ejemplo n.º 2
0
        public IIntellisenseSessionStack GetStackForTextView(ITextView textView)
        {
            MockIntellisenseSessionStack stack;

            if (!textView.Properties.TryGetProperty <MockIntellisenseSessionStack>(typeof(MockIntellisenseSessionStack), out stack))
            {
                textView.Properties[typeof(MockIntellisenseSessionStack)] = stack = new MockIntellisenseSessionStack();
            }
            return(stack);
        }