private static string GetSource(IVsProject project, string source)
 {
     var directory = Directory.Exists(source) ? source : Path.GetDirectoryName(source);
     var candidates = new[]{
         Path.Combine(directory, Globals.SettingsFilename)
     };
     return candidates.FirstOrDefault(f => project.HasFile(f));
 }
        private static string GetSource(IVsProject project, string source)
        {
            var directory  = Directory.Exists(source) ? source : Path.GetDirectoryName(source);
            var candidates = new[] {
                Path.Combine(directory, Globals.SettingsFilename),
                Path.Combine(directory, Globals.KarmaConfigFilename)
            };

            return(candidates.FirstOrDefault(f => project.HasFile(f)));
        }