mirror of
https://github.com/atom/atom.git
synced 2026-01-15 01:48:15 -05:00
Make first-mate scope ids always larger than built-in ones
This commit is contained in:
@@ -2,10 +2,10 @@ module.exports = {
|
||||
fromFirstMateScopeId (firstMateScopeId) {
|
||||
let atomScopeId = -firstMateScopeId
|
||||
if ((atomScopeId & 1) === 0) atomScopeId--
|
||||
return atomScopeId
|
||||
return atomScopeId + 256
|
||||
},
|
||||
|
||||
toFirstMateScopeId (atomScopeId) {
|
||||
return -atomScopeId
|
||||
return -(atomScopeId - 256)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -214,7 +214,7 @@ class TextEditor extends Model
|
||||
@disposables.add new Disposable =>
|
||||
cancelIdleCallback(@backgroundWorkHandle) if @backgroundWorkHandle?
|
||||
|
||||
@displayLayer.addTextDecorationLayer(@tokenizedBuffer)
|
||||
@displayLayer.setTextDecorationLayer(@tokenizedBuffer)
|
||||
@defaultMarkerLayer = @displayLayer.addMarkerLayer()
|
||||
@disposables.add(@defaultMarkerLayer.onDidDestroy =>
|
||||
@assert(false, "defaultMarkerLayer destroyed at an unexpected time")
|
||||
|
||||
Reference in New Issue
Block a user