protected override void Dispose(bool disposing) { base.Dispose(disposing); var solutionEvents = ProjectMgr.Site.GetSolutionEvents(); solutionEvents.ActiveSolutionConfigurationChanged -= EventListener_AfterActiveSolutionConfigurationChange; solutionEvents.BuildCompleted -= EventListener_BuildCompleted; solutionEvents.ProjectLoaded -= PythonProjectReferenceNode_ProjectLoaded; _fileChangeListener.FileChangedOnDisk -= FileChangedOnDisk; _fileChangeListener.Dispose(); }
/// <summary> /// Unregisters this node from file change notifications. /// </summary> private void UnregisterFromFileChangeService() { _fileChangeListener.FileChangedOnDisk -= OnExtensionChangedOnDisk; _fileChangeListener.Dispose(); }