mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-11-18 20:11:14 +00:00
Fix a crash in an anonymous buffer that copilot is writing to. (#60377)
This commit is contained in:
1 parent
21618934bf
commit
da15ef2841
1 file changed
+1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user