mirror of
https://github.com/Microsoft/vscode
synced 2024-08-27 13:00:58 +00:00
fixes #5599
This commit is contained in:
parent
dd737b0b5b
commit
4922eb1800
|
@ -255,6 +255,7 @@ export class DebugService implements debug.IDebugService {
|
|||
// focus first stack frame from top that has source location
|
||||
const stackFrameToFocus = arrays.first(callStack, sf => sf.source && sf.source.available, callStack[0]);
|
||||
this.setFocusedStackFrameAndEvaluate(stackFrameToFocus).done(null, errors.onUnexpectedError);
|
||||
this.windowService.getWindow().focus();
|
||||
aria.alert(nls.localize('debuggingPaused', "Debugging paused, reason {0}, {1} {2}", event.body.reason, stackFrameToFocus.source ? stackFrameToFocus.source.name : '', stackFrameToFocus.lineNumber));
|
||||
|
||||
return this.openOrRevealSource(stackFrameToFocus.source, stackFrameToFocus.lineNumber, false, false);
|
||||
|
@ -400,7 +401,6 @@ export class DebugService implements debug.IDebugService {
|
|||
|
||||
public setFocusedStackFrameAndEvaluate(focusedStackFrame: debug.IStackFrame): TPromise<void> {
|
||||
this.viewModel.setFocusedStackFrame(focusedStackFrame);
|
||||
this.windowService.getWindow().focus();
|
||||
if (focusedStackFrame) {
|
||||
return this.model.evaluateWatchExpressions(this.session, focusedStackFrame);
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue