internal static void LoadStylesAndModes(string path)
 {
     foreach (string file in Directory.GetFiles(path))
     {
         if (file.EndsWith(".json", StringComparison.Ordinal))
         {
             using (var stream = File.OpenRead(file)) {
                 string styleName = ScanStyle(stream);
                 if (!string.IsNullOrEmpty(styleName))
                 {
                     styleLookup [styleName] = new UrlStreamProvider(file);
                 }
                 else
                 {
                     Console.WriteLine("Invalid .json syntax sheme file : " + file);
                 }
             }
         }
         else if (file.EndsWith(".vssettings", StringComparison.Ordinal))
         {
             using (var stream = File.OpenRead(file)) {
                 string styleName = Path.GetFileNameWithoutExtension(file);
                 styleLookup [styleName] = new UrlStreamProvider(file);
             }
         }
     }
 }
		internal static void LoadStylesAndModes (string path)
		{
			foreach (string file in Directory.GetFiles (path)) {
				if (file.EndsWith (".json", StringComparison.Ordinal)) {
					using (var stream = File.OpenRead (file)) {
						string styleName = ScanStyle (stream);
						if (!string.IsNullOrEmpty (styleName)) {
							styleLookup [styleName] = new UrlStreamProvider (file);
						} else {
							Console.WriteLine ("Invalid .json syntax sheme file : " + file);
						}
					}
				} else if (file.EndsWith (".vssettings", StringComparison.Ordinal)) {
					using (var stream = File.OpenRead (file)) {
						string styleName = Path.GetFileNameWithoutExtension (file);
						styleLookup [styleName] = new UrlStreamProvider (file);
					}
				}
			}
		}