fixes #98035
This commit is contained in:
parent
fd9d65bc7b
commit
1fc148b254
1 changed files with 4 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue