chore: Add typescript support to eslint, fix errors (#2923)
This commit is contained in:
parent
e3030bfcc8
commit
4235c8b491
16 changed files with 309 additions and 31 deletions
|
|
@ -94,7 +94,7 @@ export function applyEdits(text: string, edits: TextEdit[]) {
|
|||
const chunks: TextChunk[] = [];
|
||||
let currentIndex = 0;
|
||||
|
||||
for (let edit of edits) {
|
||||
for (const edit of edits) {
|
||||
if (edit.startIndex < currentIndex) {
|
||||
console.warn("discarding overlapping edit", edit);
|
||||
continue;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue