상속: System.EventArgs
예제 #1
0
파일: AD7Thread.cs 프로젝트: Microsoft/RTVS
 private void RSession_BeforeRequest(object sender, RBeforeRequestEventArgs e) {
     ResetStackFrames();
 }
예제 #2
0
 private void OnBeforeRequest(object sender, RBeforeRequestEventArgs e) {
     _enabled = e.Contexts.Count != 1; // Disable command only if prompt is in the top level
 }
예제 #3
0
        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());
            });
        }
예제 #4
0
 private void RSession_BeforeRequest(object sender, RBeforeRequestEventArgs e) {
     _initialPromptCts.Cancel();
     ProcessBrowsePrompt(e.Contexts);
 }