提交 f375d8d5 编写于 作者: B Brett V. Forsgren 提交者: Kevin Ransom (msft)

don't update project info if the source file collection is empty (#3792) (#3793)

上级 cc4b678c
......@@ -284,7 +284,9 @@ type internal FSharpProjectOptionsManager
| h when (h.IsCapabilityMatch("CPS")) ->
let project = workspace.CurrentSolution.GetProject(projectId)
let siteProvider = this.ProvideProjectSiteProvider(project)
this.UpdateProjectInfo(tryGetOrCreateProjectId, projectId, siteProvider.GetProjectSite(), userOpName)
let projectSite = siteProvider.GetProjectSite()
if projectSite.CompilationSourceFiles.Length <> 0 then
this.UpdateProjectInfo(tryGetOrCreateProjectId, projectId, projectSite, userOpName)
| _ -> ()
member this.UpdateProjectInfoWithPath(path, userOpName) =
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册