提交 108a117b 编写于 作者: I isidor

customDebugRequest api

#15656
上级 451f988c
......@@ -143,6 +143,19 @@ KeybindingsRegistry.registerCommandAndKeybindingRule({
primary: undefined
});
KeybindingsRegistry.registerCommandAndKeybindingRule({
id: 'workbench.customDebugRequest',
weight: KeybindingsRegistry.WEIGHT.workbenchContrib(0),
handler(accessor: ServicesAccessor, request: string, requestArgs: any) {
const process = accessor.get(IDebugService).getViewModel().focusedProcess;
if (process) {
return process.session.custom(request, requestArgs);
}
},
when: CONTEXT_IN_DEBUG_MODE,
primary: undefined
});
// register service
registerSingleton(IDebugService, service.DebugService);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册