コード例 #1
0
        public void ExecuteBackspace(Action executeNextCommandTarget)
        {
            Action action = () => {
                CurrentEditorHandlers?.Execute((view, buffer) => new EC.BackspaceKeyCommandArgs(view, buffer),
                                               executeNextCommandTarget);
            };

            CurrentRoslynHandlers.Execute(_languageBuffer.ContentType,
                                          args: new BackspaceKeyCommandArgs(_textView, _languageBuffer),
                                          lastHandler: action);
        }
コード例 #2
0
        public void ExecuteCommitUniqueCompletionListItemCommand(Action executeNextCommandTarget)
        {
            Action action = () => {
                CurrentEditorHandlers?.Execute((view, buffer) => new EC.CommitUniqueCompletionListItemCommandArgs(view, buffer),
                                               executeNextCommandTarget);
            };

            CurrentRoslynHandlers.Execute(_languageBuffer.ContentType,
                                          args: new CommitUniqueCompletionListItemCommandArgs(_textView, _languageBuffer),
                                          lastHandler: action);
        }
コード例 #3
0
        public void ExecuteTypeCharacter(char typedChar, Action lastHandler)
        {
            Action action = () => {
                CurrentEditorHandlers?.Execute((view, buffer) => new EC.TypeCharCommandArgs(view, buffer, typedChar),
                                               lastHandler);
            };

            CurrentRoslynHandlers?.Execute(_languageBuffer.ContentType,
                                           args: new TypeCharCommandArgs(_textView, _languageBuffer, typedChar),
                                           lastHandler: action);
        }
コード例 #4
0
        public void ExecuteUncommentBlock(Action executeNextCommandTarget)
        {
            Action action = () => {
                CurrentEditorHandlers?.Execute((view, buffer) => new EC.UncommentSelectionCommandArgs(view, buffer),
                                               executeNextCommandTarget);
            };

            CurrentRoslynHandlers.Execute(_languageBuffer.ContentType,
                                          args: new UncommentSelectionCommandArgs(_textView, _languageBuffer),
                                          lastHandler: action);
        }