Skip to content

Commit

Permalink
more pending open in debugger pane
Browse files Browse the repository at this point in the history
  • Loading branch information
aviatesk committed Sep 20, 2019
1 parent 35ed76c commit 8c70990
Showing 1 changed file with 20 additions and 14 deletions.
34 changes: 20 additions & 14 deletions lib/debugger/debugger-pane.js
Expand Up @@ -159,19 +159,23 @@ export default class DebuggerPane extends PaneItem {
</div>
<div className="flex-table-container">
{this.stack.map(item => {
return <div className={`flex-table row ${item.level == this.activeLevel ? "active" : ""}`}>
<div className="flex-row first">
<a onclick={() => setLevel(item.level)}>
{item.level}
</a>
</div>
<div className="flex-row second code">
{item.name}
</div>
<div className="flex-row third">
<a onclick={() => open(item.file, item.line-1)}>{item.shortpath}:{item.line || '?'}</a>
</div>
</div>
return <div className={`flex-table row ${item.level == this.activeLevel ? "active" : ""}`}>
<div className="flex-row first">
<a onclick={() => setLevel(item.level)}>
{item.level}
</a>
</div>
<div className="flex-row second code">
{item.name}
</div>
<div className="flex-row third">
<a onclick={() => open(item.file, item.line - 1, {
pending: atom.config.get('core.allowPendingPaneItems')
})}>
{item.shortpath}:{item.line || '?'}
</a>
</div>
</div>
})}
</div>
</div>
Expand Down Expand Up @@ -267,7 +271,9 @@ export default class DebuggerPane extends PaneItem {
breakpointView (bp) {
const item = bp
item.toggleActive = () => this.breakpointManager.toggleActive(bp)
item.onclick = () => open(bp.file, bp.line-1)
item.onclick = () => open(bp.file, bp.line - 1, {
pending: atom.config.get('core.allowPendingPaneItems')
})
item.remove = () => this.breakpointManager.remove(bp)
if (item.typ === 'source') {
item.tooltip = bp.file || ''
Expand Down

0 comments on commit 8c70990

Please sign in to comment.