Fix a crash in an anonymous buffer that copilot is writing to. (#60377)
This commit is contained in:
Родитель
21618934bf
Коммит
da15ef2841
|
@ -632,6 +632,7 @@ export class LineNode implements LineCollection {
|
|||
|
||||
walk(rangeStart: number, rangeLength: number, walkFns: LineIndexWalker): void {
|
||||
// assume (rangeStart < this.totalChars) && (rangeLength <= this.totalChars)
|
||||
if (this.children.length === 0) return;
|
||||
let childIndex = 0;
|
||||
let childCharCount = this.children[childIndex].charCount();
|
||||
// find sub-tree containing start
|
||||
|
|
Загрузка…
Ссылка в новой задаче