Store variables supplied _before_ parsing adapter/config varibales
This commit is contained in:
parent
c1851a38e5
commit
309c292413
1 changed files with 6 additions and 6 deletions
|
|
@ -171,6 +171,12 @@ class DebugSession( object ):
|
||||||
# working directory.
|
# working directory.
|
||||||
'cwd': os.getcwd(),
|
'cwd': os.getcwd(),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Pretend that vars passed to the launch command were typed in by the user
|
||||||
|
# (they may have been in theory)
|
||||||
|
USER_CHOICES.update( launch_variables )
|
||||||
|
self._variables.update( launch_variables )
|
||||||
|
|
||||||
self._variables.update(
|
self._variables.update(
|
||||||
utils.ParseVariables( adapter.get( 'variables', {} ),
|
utils.ParseVariables( adapter.get( 'variables', {} ),
|
||||||
self._variables,
|
self._variables,
|
||||||
|
|
@ -180,12 +186,6 @@ class DebugSession( object ):
|
||||||
self._variables,
|
self._variables,
|
||||||
USER_CHOICES ) )
|
USER_CHOICES ) )
|
||||||
|
|
||||||
# Pretend that vars passed to the launch command were typed in by the user
|
|
||||||
# (they may have been in theory)
|
|
||||||
# TODO: Is it right that we do this _after_ ParseVariables, rather than
|
|
||||||
# before ?
|
|
||||||
USER_CHOICES.update( launch_variables )
|
|
||||||
self._variables.update( launch_variables )
|
|
||||||
|
|
||||||
utils.ExpandReferencesInDict( configuration,
|
utils.ExpandReferencesInDict( configuration,
|
||||||
self._variables,
|
self._variables,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue