Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Split fsiextraparameters for fsac #83

Merged
merged 4 commits into from
May 24, 2024

Conversation

greggyb
Copy link
Contributor

@greggyb greggyb commented May 23, 2024

  • Add conditional check and warning for use of old fsi_extra_parameters
  • Update README.mkd for new parameters
  • Remove default empty string for FSIExtraParameters
    • This gets sent to FSAC and, despite being a no-op, it is different than a None in the FSAC options.
      We do not want to mix old and new fsi extra parameters.
  • Add new config options for extra parameters
    • 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 fsiExtraParameters break error hints in editor while editing .fsx files FsAutoComplete#1210 for more detail.

implements #82

greggyb added 4 commits May 23, 2024 00:09
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.
This gets sent to FSAC and, despite being a no-op, it is different than
a `None` in the FSAC options. We do not want to mix old and new fsi
extra parameters.
Removing the default for `fsi_extra_parameters` causes an error when
concatenating command line args for the interpreter. Wrap in a
conditional check for existence. Add a warning message to migrate to the
new parameters

Implements ionide#82
@cannorin cannorin merged commit 00099c3 into ionide:master May 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants