Inheritance: System.EventArgs
Beispiel #1
0
 private void RSession_BeforeRequest(object sender, RBeforeRequestEventArgs e) {
     ResetStackFrames();
 }
Beispiel #2
0
 private void OnBeforeRequest(object sender, RBeforeRequestEventArgs e) {
     _enabled = e.Contexts.Count != 1; // Disable command only if prompt is in the top level
 }
        private void SessionOnBeforeRequest(object sender, RBeforeRequestEventArgs e) {
            if (CurrentWindow == null || CurrentWindow.IsRunning) {
                return;
            }

            _coreShell.DispatchOnUIThread(() => {
                if (CurrentWindow == null || CurrentWindow.IsRunning) {
                    return;
                }

                var projectionBuffer = CurrentWindow.TextView.TextBuffer as IProjectionBuffer;
                if (projectionBuffer == null) {
                    return;
                }

                var spanCount = projectionBuffer.CurrentSnapshot.SpanCount;
                projectionBuffer.ReplaceSpans(spanCount - 2, 1, new List<object> { GetPrompt() }, EditOptions.None, new object());
            });
        }
Beispiel #4
0
 private void RSession_BeforeRequest(object sender, RBeforeRequestEventArgs e) {
     _initialPromptCts.Cancel();
     ProcessBrowsePrompt(e.Contexts);
 }