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;
 }
Пример #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);
        }