Exemplo n.º 1
0
        public CommentTagger(ITextView textView, ITextBuffer buffer)
        {
            _textView = textView;
            _buffer   = buffer;

            //Todo refactor this into one place
            var doc = _textView.TextSnapshot.GetOpenDocumentInCurrentContextWithChanges();

            if (doc == null) //happens when comparing code and probably other places I have not come across yet
            {
                return;
            }

            PrestoCoverageCore.AddTagSession(this);

            doc.TryGetTextVersion(out _loadedDocVersion);
        }
Exemplo n.º 2
0
 public void Dispose()
 {
     PrestoCoverageCore.RemoveTagSession(this);
 }
        private void OperationState_StateChanged(object sender, OperationStateChangedEventArgs e)
        {
            switch (e.State)
            {
            case TestOperationStates.None:
                break;

            case TestOperationStates.Starting:
                break;

            case TestOperationStates.Started:
                break;

            case TestOperationStates.Cancel:
                break;

            case TestOperationStates.Canceling:
                break;

            case TestOperationStates.Finished:
                break;

            case TestOperationStates.Canceled:
                break;

            case TestOperationStates.Discovery:
                break;

            case TestOperationStates.TestExecution:
                break;

            case TestOperationStates.ChangeDetection:
                break;

            case TestOperationStates.PlaylistRefresh:
                break;

            case TestOperationStates.ChangeDetectionStarting:
                PrestoCoverageCore.OnChangeDetected(this, e);
                break;

            case TestOperationStates.ChangeDetectionFinished:
                break;

            case TestOperationStates.DiscoveryStarting:
                break;

            case TestOperationStates.DiscoveryStarted:
                break;

            case TestOperationStates.DiscoveryFinished:
                break;

            case TestOperationStates.DiscoveryCanceled:
                break;

            case TestOperationStates.TestExecutionStarting:
                PrestoCoverageCore.OnTestExecutionStarting(this, e);
                break;

            case TestOperationStates.TestExecutionStarted:
                break;

            case TestOperationStates.TestExecutionCanceling:
                break;

            case TestOperationStates.TestExecutionFinished:
                PrestoCoverageCore.OnTestExecutionFinished(this, e);
                break;

            case TestOperationStates.TestExecutionCancelAndFinished:
                break;

            case TestOperationStates.PlaylistRefreshStarting:
                break;

            case TestOperationStates.PlaylistRefreshFinished:
                break;

            case TestOperationStates.OperationSetStarted:
                break;

            case TestOperationStates.OperationSetFinished:
                break;

            default:
                break;
            }
        }