Skip to content

Commit

Permalink
fix binding of types from configuration for FSI parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
baronfel committed Jun 19, 2024
1 parent 10e7471 commit 3f9cf1b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/Components/Fsi.fs
Original file line number Diff line number Diff line change
Expand Up @@ -358,10 +358,13 @@ module Fsi =
let addWatcher = "FSharp.addFsiWatcher" |> Configuration.get false

let parms: string array =
let getOptionalArray key : string[] option = Configuration.get None key

let fsiParams =
Array.append
(Configuration.get None "FSharp.fsiExtraParameters" |> Option.toArray)
(Configuration.get None "FSharp.FSIExtraInteractiveParameters" |> Option.toArray)
(getOptionalArray "FSharp.fsiExtraParameters" |> Option.defaultValue [||])
(getOptionalArray "FSharp.FSIExtraInteractiveParameters"
|> Option.defaultValue [||])
|> Array.toList

let p =
Expand Down

0 comments on commit 3f9cf1b

Please sign in to comment.