Skip to content

Commit

Permalink
debug: render action bar for function breakpoints.
Browse files Browse the repository at this point in the history
  • Loading branch information
isidorn committed Nov 27, 2015
1 parent c48286a commit b04ab81
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/vs/workbench/parts/debug/browser/debugViewer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -796,7 +796,7 @@ export class BreakpointsRenderer implements tree.IRenderer {

public renderTemplate(tree: tree.ITree, templateId: string, container: HTMLElement): any {
var data: IBreakpointTemplateData = Object.create(null);
if (templateId === BreakpointsRenderer.BREAKPOINT_TEMPLATE_ID) {
if (templateId === BreakpointsRenderer.BREAKPOINT_TEMPLATE_ID || templateId === BreakpointsRenderer.FUNCTION_BREAKPOINT_TEMPLATE_ID) {
data.actionBar = new actionbar.ActionBar(container, { actionRunner: this.actionRunner });
data.actionBar.push(this.actionProvider.getBreakpointActions(), { icon: true, label: false });
}
Expand Down Expand Up @@ -848,6 +848,7 @@ export class BreakpointsRenderer implements tree.IRenderer {
data.name.textContent = functionBreakpoint.name;
data.checkbox.checked = functionBreakpoint.enabled;
}
data.actionBar.context = functionBreakpoint;
}

private renderBreakpoint(tree: tree.ITree, breakpoint: debug.IBreakpoint, data: IBreakpointTemplateData): void {
Expand Down
2 changes: 2 additions & 0 deletions src/vs/workbench/parts/debug/electron-browser/debugService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -389,6 +389,8 @@ export class DebugService extends ee.EventEmitter implements debug.IDebugService
if (element instanceof model.Breakpoint) {
var breakpoint = <model.Breakpoint> element;
return this.sendBreakpoints(breakpoint.source.uri);
} else if (element instanceof model.FunctionBreakpoint) {
// TODO@Isidor send function breakpoints and return
}

return this.sendExceptionBreakpoints();
Expand Down

0 comments on commit b04ab81

Please sign in to comment.