Skip to content

Commit

Permalink
Only use fsprojs for FSharpProjectOptions
Browse files Browse the repository at this point in the history
  • Loading branch information
Krzysztof-Cieslak committed Dec 22, 2020
1 parent 830caa2 commit 8e60f24
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [0.45.1-preview03] - 2020-12-21
## [0.45.1-preview04] - 2020-12-21

### Fixed

- Fixed a bug with loading same project multiple times at the same time.
- Fix a bug where C# projects were passed as project references when creating `FSharpProjectOptions`


## [0.45.0] - 2020-12-19
Expand Down
7 changes: 5 additions & 2 deletions src/Ionide.ProjInfo.FCS/Library.fs
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,11 @@ module FCS =
|> List.toArray
|> Array.choose
(fun d ->
let findProjOpt = allKnownProjects |> Seq.tryFind (fun n -> n.ProjectFileName = d.ProjectFileName)
findProjOpt |> Option.map (fun p -> p.TargetPath, (mapToFSharpProjectOptions p allKnownProjects)))
if d.ProjectFileName.EndsWith ".fsproj" then
let findProjOpt = allKnownProjects |> Seq.tryFind (fun n -> n.ProjectFileName = d.ProjectFileName)
findProjOpt |> Option.map (fun p -> p.TargetPath, (mapToFSharpProjectOptions p allKnownProjects))
else
None)
IsIncompleteTypeCheckEnvironment = false
UseScriptResolutionRules = false
LoadTime = projectOptions.LoadTime
Expand Down

0 comments on commit 8e60f24

Please sign in to comment.