This commit is contained in:
isidor 2020-05-18 12:20:26 +02:00
parent fd9d65bc7b
commit 1fc148b254

View file

@ -142,7 +142,10 @@ export class StartAction extends AbstractDebugAction {
if (debugService.state === State.Initializing) {
return false;
}
if ((sessions.length > 0) && !debugService.getConfigurationManager().selectedConfiguration.name) {
let { name, config } = debugService.getConfigurationManager().selectedConfiguration;
let nameToStart = name || config?.name;
if (sessions.some(s => s.configuration.name === nameToStart)) {
// There is already a debug session running and we do not have any launch configuration selected
return false;
}