Skip to content

Commit 6822ada

Browse files
committed
use incremental id in the modules response
1 parent ab7ed49 commit 6822ada

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

ipykernel/debugger.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -603,8 +603,9 @@ async def modules(self, message):
603603
filename = getattr(getattr(module, '__spec__', None), 'origin', None)
604604
if filename and filename.endswith('.py'):
605605
mods.append({
606-
'id': module.__name__,
607-
'name': filename
606+
'id': i,
607+
'name': module.__name__,
608+
'path': filename
608609
})
609610

610611
reply = {'body': {'modules': mods, 'totalModules': len(modules)}}

0 commit comments

Comments
 (0)