public void VsTextViewCreated(IVsTextView textViewAdapter)
        {
            _textView = _editorFactory.GetWpfTextView(textViewAdapter);
            if (_textView == null) return;

            var generalOptions = Setting.getGeneralOptions(_serviceProvider);
            if (generalOptions == null || !generalOptions.TaskListCommentsEnabled) return;

            _taskCommentFilter = new TaskListCommentFilter(_textView, _serviceProvider, _taskListManager, _openDocumentTracker);
        }
        public void VsTextViewCreated(IVsTextView textViewAdapter)
        {
            textView = editorFactory.GetWpfTextView(textViewAdapter);
            if (textView == null) return;

            var generalOptions = Setting.getGeneralOptions(serviceProvider);
            if (generalOptions == null || !generalOptions.TaskListCommentsEnabled) return;

            taskCommentFilter = new TaskListCommentFilter(textView, serviceProvider, taskListManager);
        }
        public void VsTextViewCreated(IVsTextView textViewAdapter)
        {
            _textView = _editorFactory.GetWpfTextView(textViewAdapter);
            if (_textView == null)
            {
                return;
            }

            var generalOptions = Setting.getGeneralOptions(_serviceProvider);

            if (generalOptions == null || !generalOptions.TaskListCommentsEnabled)
            {
                return;
            }

            _taskCommentFilter = new TaskListCommentFilter(_textView, _serviceProvider, _taskListManager, _openDocumentTracker);
        }
示例#4
0
        public void VsTextViewCreated(IVsTextView textViewAdapter)
        {
            textView = editorFactory.GetWpfTextView(textViewAdapter);
            if (textView == null)
            {
                return;
            }

            var generalOptions = Setting.getGeneralOptions(serviceProvider);

            if (generalOptions == null || !generalOptions.TaskListCommentsEnabled)
            {
                return;
            }

            taskCommentFilter = new TaskListCommentFilter(textView, serviceProvider, taskListManager);
        }
示例#5
0
        public void VsTextViewCreated(IVsTextView textViewAdapter)
        {
            textView = editorFactory.GetWpfTextView(textViewAdapter);
            if (textView == null)
            {
                return;
            }

            var generalOptions = Utils.GetGeneralOptionsPage(serviceProvider);

            if (!generalOptions.TaskListCommentsEnabled)
            {
                return;
            }

            taskCommentFilter = new TaskListCommentFilter(textView, serviceProvider, openDocsTracker);
            textView.Closed  += OnViewClosed;
        }