Skip to content

Commit 4257396

Browse files
committed
accept multiple debug scopes
1 parent a8bd27d commit 4257396

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)