private void OnSources(SourcesEventArgs e) { var s = Sources; if (s != null) { s(this, e); } }
private void HostSources(object sender, SourcesEventArgs e) { var proj = _state.Workspace.Projects.SingleOrDefault(p => p.Id == e.ContextId); if (proj == null) { return; } UpdateNode <ProjectEntry>(proj.RelativePath, (p, c) => p.WithSources(e)); _compilations.AddOrUpdate(proj.Id, id => ProjectCompilation.Create(proj.Name, proj.Id), (id, old) => old.InvalidateSources()); }
public ProjectEntry WithSources(SourcesEventArgs e) { return(new ProjectEntry(RelativePath, IsOpen, _dir, _directories, _files, _references, _diagnostics, _id, e.Files, e.GeneratedFiles, _configurations)); }
public ProjectEntry WithSources(SourcesEventArgs e) { return new ProjectEntry(RelativePath, IsOpen, _dir, _directories, _files, _references, _diagnostics, _id, e.Files, e.GeneratedFiles, _configurations); }