Skip to content

Commit cb50768

Browse files
committed
Add 'slim' parameter to CodeTide.get method for enhanced context retrieval
1 parent b80a21d commit cb50768

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

codetide/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -485,7 +485,7 @@ def _precheck_id_is_file(self, unique_ids : List[str])->Dict[Path, str]:
485485
if self.rootpath / unique_id in self.files
486486
}
487487

488-
def get(self, unique_id :Union[str, List[str]], degree :int=1, as_string :bool=True, as_list_str :bool=False)->Union[CodeContextStructure, str, List[str]]:
488+
def get(self, unique_id :Union[str, List[str]], degree :int=1, slim :bool=False, as_string :bool=True, as_list_str :bool=False)->Union[CodeContextStructure, str, List[str]]:
489489
"""
490490
Retrieve context around code by unique ID(s).
491491
@@ -513,6 +513,7 @@ def get(self, unique_id :Union[str, List[str]], degree :int=1, as_string :bool=T
513513
return self.codebase.get(
514514
unique_id=unique_id,
515515
degree=degree,
516+
slim=slim,
516517
as_string=as_string,
517518
as_list_str=as_list_str,
518519
preloaded_files=requestedFiles

0 commit comments

Comments
 (0)