Skip to content

Commit 67bad57

Browse files
authored
Merge pull request #255 from JunoLab/avi/multidebugscope
accept multiple debug scopes
2 parents a8bd27d + 4257396 commit 67bad57

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/debugger/breakpoints.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,10 @@ export default class BreakpointManager {
9898
}
9999

100100
appliesToEditor(ed) {
101-
return this.scopes.indexOf(ed.getGrammar().scopeName) > -1
101+
const grammarName = ed.getGrammar().scopeName
102+
return this.scopes.some(scope => {
103+
return scope.indexOf(grammarName) > -1
104+
})
102105
}
103106

104107
init(ed) {

0 commit comments

Comments
 (0)