If Visual Assist finds a .git subdirectory in a parent directory of the current solution, Visual Assist assumes the current solution is one module of a set maintained by a single git repo. Hence, Open File in Solution (OFIS) searches all files under that parent directory when include-all-files-in-solution-directories is enabled in the context menu of the OFIS dialog.
![](/~/media/wholetomato/kb/prevent-open-file-in-solution-ofis-from-searching-all-files-under-control-of-a-git-repo/ofisgit.ashx?la=zh&hash=960CD06A2180DF4B125AB1A2B68EA429C0A76F68)
Prevent Visual Assist from expanding the set of searched files, i.e. retaining the solution directory as the root of OFIS searches, by modifying the registry:
HKCU\Software\Whole Tomato\Visual Assist X\<IDE spec>\UseGitRootForAugmentSolution = 00
Set to 01 to restore default behavior.