simplify check before saving state.

This commit is contained in:
Haneef Mohammed 2019-07-03 09:47:03 -07:00
parent 003fb37af9
commit 7ca5158461

View file

@ -62,7 +62,7 @@ export class VariablesView extends ViewletPanel {
this.tree.setInput(this.debugService.getViewModel(), this.savedViewState).then(null, onUnexpectedError);
this.savedViewState = undefined;
} else {
if (!stackFrame && !this.savedViewState) {
if (!stackFrame) {
// We have no stackFrame, save tree state before it is cleared
this.savedViewState = this.tree.getViewState();
}