I\'m not sure if this has a git solution or a VSCode solution, but given the following structure:
git
VSCode
+ root_dir (in git repo A) +-+ sub_dir