Skip to content

Commit

Permalink
Merge pull request #255 from JunoLab/avi/multidebugscope
Browse files Browse the repository at this point in the history
accept multiple debug scopes
  • Loading branch information
pfitzseb authored Feb 15, 2020
2 parents a8bd27d + 4257396 commit 67bad57
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/debugger/breakpoints.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,10 @@ export default class BreakpointManager {
}

appliesToEditor(ed) {
return this.scopes.indexOf(ed.getGrammar().scopeName) > -1
const grammarName = ed.getGrammar().scopeName
return this.scopes.some(scope => {
return scope.indexOf(grammarName) > -1
})
}

init(ed) {
Expand Down

0 comments on commit 67bad57

Please sign in to comment.