Fix true/false in JSON when setting up adapter

This commit is contained in:
Ben Jackson 2020-01-09 13:20:08 +00:00
commit bbaab0ebc1

View file

@ -473,10 +473,11 @@ class DebugSession( object ):
if 'cwd' not in self._adapter: if 'cwd' not in self._adapter:
self._adapter[ 'cwd' ] = os.getcwd() self._adapter[ 'cwd' ] = os.getcwd()
vim.vars[ '_vimspector_adapter_spec' ] = self._adapter
channel_send_func = vim.bindeval( channel_send_func = vim.bindeval(
"vimspector#internal#{}#StartDebugSession( {} )".format( "vimspector#internal#{}#StartDebugSession( "
self._connection_type, " g:_vimspector_adapter_spec "
json.dumps( self._adapter ) ) ) ")".format( self._connection_type ) )
if channel_send_func is None: if channel_send_func is None:
self._logger.error( "Unable to start debug server" ) self._logger.error( "Unable to start debug server" )