Example #1
0
#pragma warning restore 169

        void IVimBufferCreationListener.VimBufferCreated(IVimBuffer vimBuffer)
        {
            var wpfTextView = vimBuffer.TextView as IWpfTextView;
            if (wpfTextView == null)
            {
                return;
            }

            var controller = new PasteController(
                vimBuffer,
                wpfTextView,
                _protectedOperations,
                _formatMapService.GetEditorFormatMap(wpfTextView));
        }
Example #2
0
#pragma warning restore 169

        void IVimBufferCreationListener.VimBufferCreated(IVimBuffer vimBuffer)
        {
            var wpfTextView = vimBuffer.TextView as IWpfTextView;

            if (wpfTextView == null)
            {
                return;
            }

            var controller = new PasteController(
                vimBuffer,
                wpfTextView,
                _protectedOperations,
                _formatMapService.GetEditorFormatMap(wpfTextView));
        }