fix: ycmd don't search for compilation DB in subfolders

This commit is contained in:
Alexander Dalshov 2018-02-01 14:28:54 +03:00 committed by syl20bnr
parent a72a9aa26c
commit c4008169c6
1 changed files with 1 additions and 1 deletions

View File

@ -144,7 +144,7 @@ def FindNearest(path, target, filename, subdirs=[]):
parent = os.path.dirname(os.path.abspath(path))
if(parent == path):
raise RuntimeError("could not find %s" % target)
return FindNearest(parent, target, filename)
return FindNearest(parent, target, filename, subdirs)
def FindFileInDb(database, filename):
logging.info("%s: Trying to find file in database..."