Ejemplo n.º 1
0
 public void Reload(string path)
 {
     path = path.Replace('\\', '/');
     if (File.Exists(path) == false)
     {
         return;
     }
     LspLoader.LoadFile(path);
     GUI.HasReloaded(path);
 }
Ejemplo n.º 2
0
 /// <summary>
 ///     Reloads using <see cref="LspLoader"/>
 /// </summary>
 public void Reload(bool reload_referencers = true, List <LspFile> alreadyReloaded = null)
 {
     if (alreadyReloaded != null && alreadyReloaded.Contains(this))
     {
         return;
     }
     LspLoader.LoadFile(FullPath);
     if (reload_referencers)
     {
         List <LspFile> AlreadyReloaded = alreadyReloaded ?? new List <LspFile>();
         AlreadyReloaded.Add(this);
         Manager?.FindReferencingFiles(this).ForEach(f => f.Reload(true, AlreadyReloaded));
     }
 }