Skip to content

Commit 97626e7

Browse files
TessenRintellij-monorepo-bot
authored andcommitted
[dotnet] Normalize project type guids handling - always store any non-empty project type guid as 'main' one and look up additional guids in project properties' factories, fixes RSRP-502286
GitOrigin-RevId: ef1ec7e499379c1d708ae785fb483ec7b41d1493
1 parent 24f8882 commit 97626e7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ReSharper.FSharp/src/FSharp/FSharp.Common/src/ProjectModel/ProjectProperties.fs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ namespace rec JetBrains.ReSharper.Plugins.FSharp.ProjectModel
22

33
open System
44
open System.Collections.Generic
5+
open System.Linq
56
open System.Runtime.InteropServices
67
open JetBrains.Application
78
open JetBrains.Application.BuildScript.Application.Zones
@@ -147,7 +148,7 @@ type FSharpProjectPropertiesFactory() =
147148
override x.FactoryGuid = factoryGuid
148149

149150
override x.IsApplicable(parameters) =
150-
isFSharpProject parameters.ProjectFilePath parameters.ProjectTypeGuid
151+
parameters.ProjectTypeGuids |> Seq.exists (isFSharpProject parameters.ProjectFilePath)
151152

152153
override x.IsKnownProjectTypeGuid(projectTypeGuid) =
153154
FSharpProjectPropertiesFactory.IsKnownProjectTypeGuid(projectTypeGuid)

0 commit comments

Comments
 (0)