Exemplo n.º 1
0
        public override bool ShouldCreateVimBuffer(ITextView textView)
        {
            if (textView.IsPeekView())
            {
                return(true);
            }

            if (_vsAdapter.IsWatchWindowView(textView))
            {
                return(false);
            }

            if (!_vsAdapter.IsTextEditorView(textView))
            {
                return(false);
            }

            var result = _extensionAdapterBroker.ShouldCreateVimBuffer(textView);

            if (result.HasValue)
            {
                return(result.Value);
            }

            if (!base.ShouldCreateVimBuffer(textView))
            {
                return(false);
            }

            return(!DisableVimBufferCreation);
        }
Exemplo n.º 2
0
        public override bool ShouldCreateVimBuffer(ITextView textView)
        {
            if (textView.Roles.Contains(VsVimConstants.TextViewRoleEmbeddedPeekTextView))
            {
                return(true);
            }

            if (_vsAdapter.IsWatchWindowView(textView))
            {
                return(false);
            }

            var result = _extensionAdapterBroker.ShouldCreateVimBuffer(textView);

            if (result.HasValue)
            {
                return(result.Value);
            }

            if (!base.ShouldCreateVimBuffer(textView))
            {
                return(false);
            }

            return(!DisableVimBufferCreation);
        }