提交 b0163279 编写于 作者: I Isidor Nikolic 提交者: GitHub

Merge pull request #23878 from QwertyZW/setState

Let the widgetactions debug UI reflect the state of a focused thread
......@@ -445,6 +445,10 @@ export class DebugService implements debug.IDebugService {
}
public get state(): debug.State {
const focusedThread = this.viewModel.focusedThread;
if (focusedThread && focusedThread.stopped) {
return debug.State.Stopped;
}
const focusedProcess = this.viewModel.focusedProcess;
if (focusedProcess) {
return this.sessionStates.get(focusedProcess.getId());
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册