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 )
|
launch_config = json.load( f )
|
||||||
|
|
||||||
if not configuration:
|
if not configuration:
|
||||||
configuration = utils.SelectFromList( 'Which launch configuration?',
|
if len( launch_config ) == 1:
|
||||||
list( launch_config.keys() ) )
|
configuration = next( iter( launch_config.keys() ) )
|
||||||
|
else:
|
||||||
|
configuration = utils.SelectFromList( 'Which launch configuration?',
|
||||||
|
list( launch_config.keys() ) )
|
||||||
|
|
||||||
if not configuration:
|
if not configuration:
|
||||||
return
|
return
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue