Skip to content

Conversation

@dawedawe
Copy link
Contributor

@dawedawe dawedawe commented Feb 14, 2024

Description

This makes the UsesTransparentCompiler member from FSharpChecker available to all interested parties (Rider, FSAC, etc.).

(No release notes needed)

Checklist

  • Test cases added

  • Performance benchmarks added in case of performance changes

  • Release notes entry updated:

    Please make sure to add an entry with short succinct description of the change as well as link to this pull request to the respective release notes file, if applicable.

    Release notes files:

    • If anything under src/Compiler has been changed, please make sure to make an entry in docs/release-notes/.FSharp.Compiler.Service/<version>.md, where <version> is usually "highest" one, e.g. 42.8.200
    • If language feature was added (i.e. LanguageFeatures.fsi was changed), please add it to docs/releae-notes/.Language/preview.md
    • If a change to FSharp.Core was made, please make sure to edit docs/release-notes/.FSharp.Core/<version>.md where version is "highest" one, e.g. 8.0.200.

    Information about the release notes entries format can be found in the documentation.
    Example:

    If you believe that release notes are not necessary for this PR, please add NO_RELEASE_NOTES label to the pull request.

@dawedawe dawedawe requested a review from a team as a code owner February 14, 2024 16:16
@github-actions
Copy link
Contributor

github-actions bot commented Feb 14, 2024

⚠️ Release notes required, but author opted out

Warning

Author opted out of release notes, check is disabled for this pull request.
cc @dotnet/fsharp-team-msft

@psfinaki psfinaki added the NO_RELEASE_NOTES Label for pull requests which signals, that user opted-out of providing release notes label Feb 14, 2024
@vzarytovskii
Copy link
Member

Why does this need to be in the public surface? It seems like it's an implementation detail. If we need to log it, we should just do it inside, otherwise caller always knows whether transparent compiler is used, because it needs to set it.

@dawedawe
Copy link
Contributor Author

Mmh, isn't simple ergonomic stuff like this only possible because of the privilige granted here?

@vzarytovskii
Copy link
Member

Mmh, isn't simple ergonomic stuff like this only possible because of the privilige granted here?

This as well feels like exposing too much implementation details. We should hide it. But again, caller of the checker should know whatever transparent compiler is used or not.

Copy link
Member

@vzarytovskii vzarytovskii left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On the second though, I think it's fine as long as we keep it experimental

@dawedawe
Copy link
Contributor Author

On the second though, I think it's fine as long as we keep it experimental

Thanks for giving this a second thought.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

NO_RELEASE_NOTES Label for pull requests which signals, that user opted-out of providing release notes

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

4 participants