If there's only one config, just use it
This commit is contained in:
parent
73f8a66d2c
commit
dd17f3f6f6
1 changed files with 5 additions and 2 deletions
|
|
@ -96,8 +96,11 @@ class DebugSession( object ):
|
|||
launch_config = json.load( f )
|
||||
|
||||
if not configuration:
|
||||
configuration = utils.SelectFromList( 'Which launch configuration?',
|
||||
list( launch_config.keys() ) )
|
||||
if len( launch_config ) == 1:
|
||||
configuration = next( iter( launch_config.keys() ) )
|
||||
else:
|
||||
configuration = utils.SelectFromList( 'Which launch configuration?',
|
||||
list( launch_config.keys() ) )
|
||||
|
||||
if not configuration:
|
||||
return
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue