Add autoselect to configs - set to false to prevent being used when no other configs are defined

This commit is contained in:
Ben Jackson 2020-03-10 14:03:35 +00:00
commit 93edbe468b

View file

@ -120,7 +120,8 @@ class DebugSession( object ):
if 'configuration' in launch_variables:
configuration_name = launch_variables.pop( 'configuration' )
elif len( configurations ) == 1:
elif ( len( configurations ) == 1 and
next( iter( configurations.values() ) ).get( "autoselect", True ) ):
configuration_name = next( iter( configurations.keys() ) )
else:
configuration_name = utils.SelectFromList(