Skip to content

Commit f375d8d

Browse files
brettfoKevinRansom
authored andcommitted
don't update project info if the source file collection is empty (#3792) (#3793)
1 parent cc4b678 commit f375d8d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

vsintegration/src/FSharp.Editor/LanguageService/LanguageService.fs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,9 @@ type internal FSharpProjectOptionsManager
284284
| h when (h.IsCapabilityMatch("CPS")) ->
285285
let project = workspace.CurrentSolution.GetProject(projectId)
286286
let siteProvider = this.ProvideProjectSiteProvider(project)
287-
this.UpdateProjectInfo(tryGetOrCreateProjectId, projectId, siteProvider.GetProjectSite(), userOpName)
287+
let projectSite = siteProvider.GetProjectSite()
288+
if projectSite.CompilationSourceFiles.Length <> 0 then
289+
this.UpdateProjectInfo(tryGetOrCreateProjectId, projectId, projectSite, userOpName)
288290
| _ -> ()
289291

290292
member this.UpdateProjectInfoWithPath(path, userOpName) =

0 commit comments

Comments
 (0)