Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -273,9 +273,13 @@ type internal FSharpProjectOptionsManager
}

member this.UpdateProjectInfoWithProjectId(projectId:ProjectId, userOpName) =
Copy link
Contributor

@dsyme dsyme Sep 19, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder if we should systematically clarify between "LegacyProject" and "ModernProject" throughout the naming of method like this, so

UpdateProjectInfoWithProjectId --> UpdateModernProjectInfoWithProjectId 
SetupProject --> SetupLegacyProject

etc. That may help us reason correctly about the two separate paths

let project = workspace.CurrentSolution.GetProject(projectId)
let siteProvider = this.ProvideProjectSiteProvider(project)
this.UpdateProjectInfo(tryGetOrCreateProjectId, projectId, siteProvider.GetProjectSite(), userOpName)
let hier = workspace.GetHierarchy(projectId)
match hier with
| h when (h.IsCapabilityMatch("CPS")) ->
let project = workspace.CurrentSolution.GetProject(projectId)
let siteProvider = this.ProvideProjectSiteProvider(project)
this.UpdateProjectInfo(tryGetOrCreateProjectId, projectId, siteProvider.GetProjectSite(), userOpName)
| _ -> ()

member this.UpdateProjectInfoWithPath(path, userOpName) =
let projectId = workspace.ProjectTracker.GetOrCreateProjectIdForPath(path, projectDisplayNameOf path)
Expand Down