提交 91f46518 编写于 作者: I isidor

callstack: polish tree selection updating

上级 635a9f47
......@@ -313,10 +313,21 @@ export class CallStackView extends CollapsibleViewletView {
}
private updateTreeSelection(): TPromise<void> {
if (!this.tree.getInput()) {
// Tree not initialitized yet
return TPromise.as(null);
}
const stackFrame = this.debugService.getViewModel().focusedStackFrame;
const process = this.debugService.getViewModel().focusedProcess;
if (!stackFrame) {
this.tree.clearSelection();
return TPromise.as(null);
if (!process) {
this.tree.clearSelection();
return TPromise.as(null);
}
this.tree.setSelection([process]);
return this.tree.reveal(process);
}
const thread = stackFrame.thread;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册