mirror of
https://github.com/Microsoft/vscode
synced 2024-09-15 00:15:06 +00:00
Merge pull request #23878 from QwertyZW/setState
Let the widgetactions debug UI reflect the state of a focused thread
This commit is contained in:
commit
b01632798d
|
@ -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());
|
||||
|
|
Loading…
Reference in a new issue