未验证 提交 3e9c6eaf 编写于 作者: C Connor Peet

debug: fix parent session badge not hiding correctly

Fixes https://github.com/microsoft/vscode-js-debug/issues/664
上级 467f0146
......@@ -545,7 +545,7 @@ class SessionsRenderer implements ICompressibleTreeRenderer<IDebugSession, Fuzzy
};
setActionBar();
data.elementDisposable.push(this.menu.onDidChange(() => setActionBar()));
data.stateLabel.hidden = false;
data.stateLabel.style.display = '';
if (thread && thread.stoppedDetails) {
data.stateLabel.textContent = thread.stoppedDetails.description || nls.localize('debugStopped', "Paused on {0}", thread.stoppedDetails.reason || '');
......@@ -557,7 +557,7 @@ class SessionsRenderer implements ICompressibleTreeRenderer<IDebugSession, Fuzzy
if (!hasChildSessions) {
data.stateLabel.textContent = nls.localize({ key: 'running', comment: ['indicates state'] }, "Running");
} else {
data.stateLabel.hidden = true;
data.stateLabel.style.display = 'none';
}
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册