fix: better file/content return

This commit is contained in:
Adam
2025-09-04 12:39:34 -05:00
parent d440ba32ab
commit f171250033
4 changed files with 61 additions and 18 deletions

View File

@@ -527,10 +527,10 @@ export namespace Session {
break
}
}
offset = Math.max(start - 2, 0)
if (end) {
limit = end - offset + 2
}
}
offset = Math.max(start - 1, 0)
if (end) {
limit = end - offset
}
}
const args = { filePath, offset, limit }