Merge pull request #23878 from QwertyZW/setState

Let the widgetactions debug UI reflect the state of a focused thread
This commit is contained in:
Isidor Nikolic 2017-04-13 16:12:51 +02:00 committed by GitHub
commit b01632798d

View file

@ -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());