Related to https://github.com/dotnet/roslyn/issues/42613.
People can get flighted into the state where the "navigate to decompiled sources" option is enabled. And, at some point we may just decide to enalbe this by default for everyone.
In this state, the user experience for goto-def in VS is terrible if you just want use metadata-as-source (like I do). You get prompted every time if you accept decompilation, and you have to reject it every single time.
We should update the dialog to have three options:
We don't control the UI for this dialog, so it may be difficult to add a button to it. I agree that the third option, if available, should simply turn the feature back off.
We don't control the UI for this dialog
Who controls the UI for this dialog? @mikadumont do you know? We can start the conversation with them to fix this broken experience. Until this can be fixed, i don't think we can flight people into this, or change the default here.
Also, how do we find out how flighting was enabled here? I think we need to have a conversation with that team asap about the experience being pushed down.
tagging @kendrahavens for visibility as well.
I also think the UX of the popup is undesirable from the following perspective:
The options are "Yes, I accept the terms", and "No I do not accept the terms".
I feel like accepting the terms is something I do once. I don't want to have to do it every time.
However what I may want every time is a choice between, "I want to see decompiled source", and "I want to see metadata as source".
There should be an setting to toggle between:
I always want to see decompiled
I always want to see metadata as source
Ask every time
@sharwell can we have the decompiled source view collapse all members by default so it looks the same as the metadata source view:
Decompiled source view:

Metadata source view:

@sharwell Today the dialog only shows up once per session. Is it possible to have 2 options:
@CyrusNajmabadi if decompiled sources showed the metadata view (collapses members by default) would you still want the option to see metadata sources? And if we remove the blank line?
Here are the default options we can use for the dialog: https://docs.microsoft.com/en-us/dotnet/api/microsoft.visualstudio.shell.interop.olemsgbutton?view=visualstudiosdk-2019
@CyrusNajmabadi if decompiled sources showed the metadata view (collapses members by default) would you still want the option to see metadata sources?
I would have to try it out. But tentatively i think i would be ok with not using MAS at that point.
@YairHalberstadt @mikadumont Remembering the 'Yes' option is covered by #33323