vscode-csharp
vscode-csharp copied to clipboard
Always Show Return Type / Signature For All Items In Suggest Widget
Always show return types.
This is in Dart, and is very useful.
For example, in Dart:
OPTIONS |
---|
1: Full signature, split between left/right |
2: Full signature on left |
3: Full signature on right |
4: Abbreviated params (...), split between left/right |
5: Abbreviated params (...) on left |
6: Abbreviated params (...) on right |
Here is the original issue in Dart:
- https://github.com/Dart-Code/Dart-Code/issues/2462#issuecomment-1561650978
Personally, I like option 5, but would also like if there was a setting to use option 2 instead.
@Number-3434 the image link is 404'ing for me, would you mind trying to attach it again?
@dibarbet Okay, I've reattached it, and given a link to the original issue in Dart.
Thanks, I can see them now. I'm open to this, but there are a few considerations. cc also @genlu
- We already use the right hand side text for showing namespaces in unimported type completion, so we likely can't show signatures there:
- We'll have to be careful on perf here - collecting the signatures could be a bit more expensive (today we only do it during resolve)
- We'll have to figure out what we want to do for overloads since we can only show one signature in the list. We could pick the first, or show multiple items in the list, or something else. Not sure
Likely we could have an experience here, but some details need to be worked out.
To answer your questions:
Unimported Type Completion
These could be shown as usual (i.e. override the signature).
Overloads
I have opened an issue in the VSCode repo about this:
- https://github.com/microsoft/vscode/issues/201285