@@ -34,23 +34,20 @@ module internal rec Microsoft.VisualStudio.FSharp.LanguageService.SiteProvider
34
34
35
35
open System
36
36
open System.Collections .Concurrent
37
- open System.ComponentModel .Composition
38
- open System.IO
39
37
open System.Diagnostics
40
- open Microsoft.VisualStudio
41
- open Microsoft.VisualStudio .TextManager .Interop
42
- open Microsoft.VisualStudio .Shell .Interop
43
- open Microsoft.FSharp .Compiler .SourceCodeServices
38
+ open System.IO
44
39
45
40
open Microsoft.CodeAnalysis
46
- open Microsoft.VisualStudio .LanguageServices
41
+ open Microsoft.FSharp .Compiler .SourceCodeServices
42
+
43
+ open Microsoft.VisualStudio
44
+ open Microsoft.VisualStudio .FSharp .LanguageService
47
45
open Microsoft.VisualStudio .LanguageServices .Implementation .ProjectSystem
48
46
open Microsoft.VisualStudio .LanguageServices .Implementation .TaskList
49
- open VSLangProj
50
- open System.ComponentModel .Composition .Primitives
51
- open Microsoft.VisualStudio .Shell
52
- open System.Collections .Immutable
47
+ open Microsoft.VisualStudio .Shell .Interop
48
+ open Microsoft.VisualStudio .TextManager .Interop
53
49
50
+ open VSLangProj
54
51
55
52
/// An additional interface that an IProjectSite object can implement to indicate it has an FSharpProjectOptions
56
53
/// already available, so we don't have to recreate it
@@ -274,7 +271,7 @@ type internal ProjectSitesAndFiles() =
274
271
if not ( isNull project) then
275
272
for reference in project.ProjectReferences do
276
273
let project = workspace.CurrentSolution.GetProject( reference.ProjectId)
277
- if not ( isNull project) then
274
+ if not ( isNull project) && project.Language = LanguageServiceConstants.FSharpLanguageName then
278
275
let siteProvider = provideProjectSiteProvider ( workspace, project, serviceProvider, projectOptionsTable)
279
276
let referenceProject = workspace.ProjectTracker.GetProject( reference.ProjectId)
280
277
let outputPath = referenceProject.BinOutputPath
0 commit comments