mirror of
https://github.com/atom/atom.git
synced 2026-04-06 03:02:13 -04:00
Make TreeSitterLanguageMode.scopeDescriptorForPosition accept arrays
Fixes #16808
This commit is contained in:
@@ -303,6 +303,7 @@ class TreeSitterLanguageMode {
|
||||
}
|
||||
|
||||
scopeDescriptorForPosition (point) {
|
||||
point = Point.fromObject(point)
|
||||
const result = []
|
||||
let node = this.document.rootNode.descendantForPosition(point)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user