Attempt to detect invocation outside project root and emit warning
varungandhi-src opened this issue · comments
Varun Gandhi commented
Specifically, when given the compilation database path, we can check if the directory with the compilation database or an ancestor contains a .git
directory. If we find one, then we should check if that matches the current directory. If it doesn't, then it's plausible that the indexer was invoked from outside the project root, in which case we should emit a warning.