Skip to content

Commit 4954d0c

Browse files
committed
Update CodeContextStructure to categorize raw elements under "PACKAGES" and improve wrap_content formatting
1 parent 4a5e00e commit 4954d0c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

codetide/core/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ def as_list_str(self)->List[str]:
299299

300300
# Assuming each entry has a `.raw` (str) and `.filepath` (str) attribute
301301
for entry in self.imports.values():
302-
raw_elements_by_file[entry.file_path].append(entry.raw)
302+
raw_elements_by_file["PACKAGES"].append(entry.raw)
303303

304304
for entry in self.variables.values():
305305
raw_elements_by_file[entry.file_path].append(entry.raw)

0 commit comments

Comments
 (0)