protected void UpdateProjectUnsafe(HostProject project) { var projectManager = GetProjectManager(); if (Current == null && project == null) { // This is a no-op. This project isn't using Razor. } else if (Current == null && project != null) { // Just in case we somehow got in a state where VS didn't tell us that solution close was finished, lets just // ensure we're going to actually do something with the new project that we've just been told about. // If VS did tell us, then this is a no-op. projectManager.SolutionOpened(); projectManager.ProjectAdded(project); } else if (Current != null && project == null) { Debug.Assert(_currentDocuments.Count == 0); projectManager.ProjectRemoved(Current); ProjectConfigurationFilePathStore.Remove(Current.FilePath); } else { projectManager.ProjectConfigurationChanged(project); } Current = project; }
protected void UpdateProjectUnsafe(HostProject project) { var projectManager = GetProjectManager(); if (Current == null && project == null) { // This is a no-op. This project isn't using Razor. } else if (Current == null && project != null) { projectManager.ProjectAdded(project); } else if (Current != null && project == null) { Debug.Assert(_currentDocuments.Count == 0); projectManager.ProjectRemoved(Current); _projectConfigurationFilePathStore.Remove(Current.FilePath); } else { projectManager.ProjectConfigurationChanged(project); } Current = project; }