Microsoft.R.Debugger.AD7Engine.Continue C# (CSharp) Method

Continue() private method

private Continue ( IDebugThread2 pThread ) : int
pThread IDebugThread2
return int
        private int Continue(IDebugThread2 pThread) {
            ThrowIfDisposed();

            if (_firstContinue) {
                _firstContinue = false;
            } else {
                // If _sentContinue is true, then this is a dummy Continue issued to notify the
                // debugger that user has explicitly entered something at the Browse prompt, and
                // we don't actually need to issue the command to R debugger.

                Func<CancellationToken, Task> continueMethod = null;
                lock (_browseLock) {
                    if (_sentContinue != true) {
                        _sentContinue = true;
                        continueMethod = ct => Tracer.ContinueAsync(ct);
                    }
                }

                if (continueMethod != null) {
                    TaskExtensions.RunSynchronouslyOnUIThread(continueMethod);
                }
            }

            return VSConstants.S_OK;
        }