remove truncate
This commit is contained in:
@@ -3127,12 +3127,6 @@ def find_context_boundaries(lines: List[str], start: int, end: int, language: st
|
|||||||
context_start = decorator_start + 1
|
context_start = decorator_start + 1
|
||||||
context_info.append("decorators")
|
context_info.append("decorators")
|
||||||
|
|
||||||
# Limit expansion to reasonable bounds (max 100 lines of context)
|
|
||||||
max_context = 100
|
|
||||||
if context_end - context_start > max_context:
|
|
||||||
context_end = context_start + max_context
|
|
||||||
context_info.append("truncated to 100 lines")
|
|
||||||
|
|
||||||
info_str = " + ".join(context_info) if context_info else "no additional context"
|
info_str = " + ".join(context_info) if context_info else "no additional context"
|
||||||
|
|
||||||
return context_start, context_end, info_str
|
return context_start, context_end, info_str
|
||||||
|
|||||||
Reference in New Issue
Block a user