-
Notifications
You must be signed in to change notification settings - Fork 160
Support rendering | null
syntax for nullable values in tooltips
#1353
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
base: main
Are you sure you want to change the base?
Conversation
…ad in test result view
…nfo for FSharpType instances
cb2f2be
to
de0b1ec
Compare
de0b1ec
to
e38caff
Compare
34e368c
to
cfe80b7
Compare
This got really hairy. The code seems to work, but for scripts specifically it requires passing |
We may enable nulls for all .NET 9 usage of scripts as a result. |
If I understand correctly, for F# project FSAC will respect the But for scripts we don't have an equivalent out of the box from FCS? If yes, instead of always passing Even, if we require a restart of the LSP/Ionide for it to be considered I think this is fine. |
We already do have FSharp.fsiExtraParameters which I think all you have to do is close and reopen the Though it would be "cute" if there was some metadata we could store at the top of the file that passed in the config flags too. Kind of like a shebang. |
True, not sure how many people would be comfortable with this setting versus a checkbox. But at the same time, I am not sure how many people are making changes to their Ionide settings either.
Indeed, but this the job of FCS no? Or you want for FSAC do detect a certain metadata by reading the script file? |
A new setting has to exist for a long time and can get confusing when this setting is a union of it and another setting. Like what happens when you set the checkbox to true but explicitly write
Probably yes, but I think they'd get to a chicken/egg problem where the script is already started via fsi so it might be hard to change settings. (I'm not too clear with their pipeline though to know). If someone did have a shebang of like |
I would expect the checkbox to have priority and hopefully passing it last would get precedence. But, I agree this could be confusing. Having documentation is fine to me, and we could also have a command in Ionide to add/remove the setting from |
Fixes #1352 by checking the nullability information on FSharpType and using that to determine if we should slap a
| null
on the formatted type.