debug API to create/remove breakpoints; fixes #42173

This commit is contained in:
Andre Weinand
2018-01-26 01:07:56 +01:00
parent 795fd25516
commit eba681fed8
9 changed files with 280 additions and 75 deletions

View File

@@ -538,7 +538,13 @@ export function createApiFactory(
},
registerDebugConfigurationProvider(debugType: string, provider: vscode.DebugConfigurationProvider) {
return extHostDebugService.registerDebugConfigurationProvider(debugType, provider);
}
},
addBreakpoints: proposedApiFunction(extension, (breakpoints: vscode.Breakpoint[]) => {
return extHostDebugService.addBreakpoints(breakpoints);
}),
removeBreakpoints: proposedApiFunction(extension, (breakpoints: vscode.Breakpoint[]) => {
return extHostDebugService.removeBreakpoints(breakpoints);
})
};