add extra field for report

This commit is contained in:
shenchucheng 2024-05-21 10:28:24 +08:00
parent 7745e09c39
commit 76e3a14d38
2 changed files with 27 additions and 14 deletions

View file

@ -100,7 +100,8 @@ class Editor:
file_path=file_path,
block_content=block_content,
)
self.resource.report(result.file_path, "path")
self.resource.report(result.file_path, "path",
extra={"type": "search", "line_range": {"start": start, "end": end}})
return result
return None