Esempio n. 1
0
        /// <summary>
        /// Raises the <see cref="ProjectDirtied"/> event.
        /// </summary>
        /// <param name="sender">The dirtied project.</param>
        /// <param name="e">Details on the Project and the change.</param>
        internal void OnProjectDirtied(Project sender, ProjectChangedEventArgs e)
        {
            var projectDirtied = this.ProjectDirtied;

            if (projectDirtied != null)
            {
                projectDirtied(sender, e);
            }
        }
Esempio n. 2
0
        internal virtual void OnProjectDirtied(Project sender, ProjectChangedEventArgs e)
        {
            var projectDirtied = ProjectDirtied;

            projectDirtied?.Invoke(sender, e);
        }
Esempio n. 3
0
 /// <summary>
 /// Raises the <see cref="ProjectDirtied"/> event.
 /// </summary>
 /// <param name="sender">The dirtied project.</param>
 /// <param name="e">Details on the Project and the change.</param>
 internal void OnProjectDirtied(Project sender, ProjectChangedEventArgs e)
 {
     var projectDirtied = this.ProjectDirtied;
     if (projectDirtied != null)
     {
         projectDirtied(sender, e);
     }
 }
 internal override void OnProjectDirtied(Project sender, ProjectChangedEventArgs e)
 {
     throw new NotImplementedException();
 }
        private void ProviderValue_ProjectChanged(object sender, ProjectChangedEventArgs e) {
            string filename = e.Project as string;
            if (filename == null) {
                var proj = e.Project as MSBuild.Project;
                if (proj != null) {
                    filename = proj.FullPath;
                }
            }

            RediscoverInterpreters(filename);
        }
Esempio n. 6
0
        private void Provider_ProjectChanged(object sender, ProjectChangedEventArgs e)
        {
            string filename = e.Project as string;
            if (filename == null) {
                var proj = e.Project as MSBuild.Project;
                if (proj != null) {
                    filename = proj.FullPath;
                }
            }

            ProjectInfo projInfo;
            if (filename != null && _projects.TryGetValue(filename, out projInfo)) {
                if (DiscoverInterpreters(projInfo)) {
                    OnInterpreterFactoriesChanged();
                }
            }
        }