Skip to content

Commit

Permalink
Allow execute selection while paused
Browse files Browse the repository at this point in the history
  • Loading branch information
jmthomas committed Oct 18, 2024
1 parent 6c85e08 commit 777d939
Showing 1 changed file with 28 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,6 @@
v-for="item in executeSelectionMenuItems"
link
:key="item.label"
:disabled="scriptId"
>
<v-list-item-title @click="item.command">
{{ item.label }}
Expand Down Expand Up @@ -887,20 +886,34 @@ export default {
]
},
executeSelectionMenuItems: function () {
return [
{
label: 'Execute selection',
command: this.executeSelection,
},
{
label: 'Run from here',
command: this.runFromCursor,
},
{
label: 'Clear local breakpoints',
command: this.clearBreakpoints,
},
]
if (this.scriptId) {
return [
{
label: 'Execute selection',
command: this.executeSelection,
},
{
label: 'Run from here',
command: this.runFromCursor,
},
// Can't clear local breakpoints in a running script
]
} else {
return [
{
label: 'Execute selection',
command: this.executeSelection,
},
{
label: 'Run from here',
command: this.runFromCursor,
},
{
label: 'Clear local breakpoints',
command: this.clearBreakpoints,
},
]
}
},
},
watch: {
Expand Down

0 comments on commit 777d939

Please sign in to comment.