Enable modules support

This commit is contained in:
Karthik Nadig 2018-03-21 23:23:43 -07:00 committed by Karthik Nadig
parent 314211d17c
commit b65884c7b4
5 changed files with 7 additions and 1 deletions

View file

@ -80,6 +80,7 @@ class Capabilities(FieldsNamespace):
Field('supportsDelayedStackTraceLoading', bool),
Field('supportsLoadedSourcesRequest', bool),
Field('supportsSetExpression', bool),
Field('supportsModulesRequest', bool),
]

View file

@ -678,6 +678,7 @@ class VSCodeMessageProcessor(ipcjson.SocketIO, ipcjson.IpcChannel):
supportsEvaluateForHovers=True,
supportsValueFormattingOptions=True,
supportsSetExpression=True,
supportsModulesRequest=True,
exceptionBreakpointFilters=[
{
'filter': 'raised',
@ -1081,7 +1082,7 @@ class VSCodeMessageProcessor(ipcjson.SocketIO, ipcjson.IpcChannel):
cmd_args = (pyd_tid, pyd_fid, 'LOCAL', expr, '1')
msg = '\t'.join(str(s) for s in cmd_args)
with (yield self.using_format(fmt)):
_, _, _ = yield self.pydevd_request(
yield self.pydevd_request(
pydevd_comm.CMD_EXEC_EXPRESSION,
msg)

View file

@ -71,6 +71,7 @@ class LifecycleTests(HighlevelTest, unittest.TestCase):
],
supportsEvaluateForHovers=True,
supportsSetExpression=True,
supportsModulesRequest=True,
)),
self.new_event('initialized'),
self.new_response(req_attach),
@ -135,6 +136,7 @@ class LifecycleTests(HighlevelTest, unittest.TestCase):
],
supportsEvaluateForHovers=True,
supportsSetExpression=True,
supportsModulesRequest=True,
)),
self.new_event('initialized'),
self.new_response(req_launch),

View file

@ -125,6 +125,7 @@ class LifecycleTests(TestBase, unittest.TestCase):
],
supportsEvaluateForHovers=True,
supportsSetExpression=True,
supportsModulesRequest=True,
)),
self.new_event('initialized'),
self.new_response(req_attach),

View file

@ -124,6 +124,7 @@ class InitializeTests(LifecycleTest, unittest.TestCase):
],
supportsEvaluateForHovers=True,
supportsSetExpression=True,
supportsModulesRequest=True,
)),
self.new_event(1, 'initialized'),
])