mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-12-11 17:41:26 -06:00
Fix a crash in an anonymous buffer that copilot is writing to. (#60377)
This commit is contained in:
parent
21618934bf
commit
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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user