Skip to content

Commit

Permalink
Add new config options for extra parameters
Browse files Browse the repository at this point in the history
Add `fsiExtraInteractiveParameters` and `fsiExtraSharedParameters`,
which should both be used in favor of the old `fsiExtraParameters`.

Some fsi parameters are exclusive to the interpreter and have no
compiler equivalent. FSAC will now pass the shared parameters to the
compiler and not the interactive parameters.

Ionide-vim will append all parameters from both options to the execution
of the interpreter (usually `dotnet fsi`).

`fsiExtraParameters` will be deprecated and removed from FSAC, so it is
best to migrate away from that.

See ionide/FsAutoComplete#1210 for more
detail.
  • Loading branch information
greggyb committed May 23, 2024
1 parent 1965d5d commit 4abf4f6
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions autoload/fsharp.vim
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,8 @@ let s:config_keys_camel =
\ {'key': 'UseSdkScripts', 'default': 1},
\ {'key': 'dotNetRoot'},
\ {'key': 'fsiExtraParameters', 'default': []},
\ {'key': 'fsiExtraInteractiveParameters', 'default': ['--readline-']},
\ {'key': 'fsiExtraSharedParameters', 'default': []},
\ {'key': 'fsiCompilerToolLocations', 'default': []},
\ {'key': 'TooltipMode', 'default': 'full'},
\ {'key': 'GenerateBinlog', 'default': 0},
Expand Down Expand Up @@ -557,6 +559,12 @@ function! s:get_fsi_command()
for prm in g:fsharp#fsi_extra_parameters
let cmd = cmd . " " . prm
endfor
for prm in g:fsharp#fsi_extra_interactive_parameters
let cmd = cmd . " " . prm
endfor
for prm in g:fsharp#fsi_extra_shared_parameters
let cmd = cmd . " " . prm
endfor
return cmd
endfunction

Expand Down

0 comments on commit 4abf4f6

Please sign in to comment.