feat(context): Interactive Text Slice Highlighting with Fuzzy Anchors
This commit is contained in:
+4
-2
@@ -498,6 +498,7 @@ class FileItem:
|
||||
ast_signatures: bool = False
|
||||
ast_definitions: bool = False
|
||||
ast_mask: dict[str, str] = field(default_factory=dict)
|
||||
custom_slices: list[dict] = field(default_factory=list)
|
||||
injected_at: Optional[float] = None
|
||||
|
||||
def to_dict(self) -> Dict[str, Any]:
|
||||
@@ -511,6 +512,7 @@ class FileItem:
|
||||
"ast_signatures": self.ast_signatures,
|
||||
"ast_definitions": self.ast_definitions,
|
||||
"ast_mask": self.ast_mask,
|
||||
"custom_slices": self.custom_slices,
|
||||
"injected_at": self.injected_at,
|
||||
}
|
||||
|
||||
@@ -526,9 +528,9 @@ class FileItem:
|
||||
ast_signatures=data.get("ast_signatures", False),
|
||||
ast_definitions=data.get("ast_definitions", False),
|
||||
ast_mask=data.get("ast_mask", {}),
|
||||
custom_slices=data.get("custom_slices", []),
|
||||
injected_at=data.get("injected_at"),
|
||||
)
|
||||
|
||||
)
|
||||
@dataclass
|
||||
class Preset:
|
||||
name: str
|
||||
|
||||
Reference in New Issue
Block a user