vscode show existing method documentation on hover - visual-studio-code

In vs code when i type a dot(.) and then a method a pop-up shows with the method definition.
my question is after i accept that method i no longer get the documentation and i might want to for example verify what the return value is of this particular method.
I have tried highlighting the method, ctrl-space on the method and googling for an answer with no luck

Ctrl+Space for intellisense
Ctrl+Shift+Space to Trigger Parameter Hints
VSCode Intellisense

Related

Disable automatic parameter suggestions in VSCode [duplicate]

This question already has answers here:
Unable to turn off code suggestions in Visual Studio Code
(2 answers)
Closed 17 days ago.
How can I disable the suggestion box for method parameters? (I still want to be able to make it show with the option+space shortcut, if possible)
I write some code, then I type ,. The suggestion box comes up:
I then press Enter to go on the new line, and the suggestion block covers my code:
I tried going through the VSCode settings, but couldn't find the setting for this method parameter suggestion box. I don't know what verbiage is used in the documentation to refer to this box.
These are called "parameter hints". You can turn off the automatic parameter hint popup by putting this in a settings.json file:
"editor.parameterHints.enabled": false
That setting's documentation/description says:
Enables a pop-up that shows parameter documentation and type information as you type.
You can then manually trigger it with the Trigger Parameter Hints command, or the corresponding keyboard shortcut:
Windows: ctrl+shift+space
MacOS: command+shift+space

How to get VS Code to list methods of object when multiple extensions are competing for tab complete

In VS Code, when writing the name of a method on an object, it seems to take a while for the method menu to pop up. I also am using github copilot, which is great, but it's suggestions often show first and I don't see the menu for the methods until I type some more letters.
Example, let's say I have the following line of code:
my_json = My_Class(id=5).
and I want to type the name of the method that returns some json. Gitlab copilot might suggest something like the following, where the 'get_json' portion is in grey and available for tab complete.
my_json = My_Class(id=5).get_json()
But, let's say the correct name for the method is 'get_object_json', I would have to type the following before the object method/attribute menu pops up
my_json = My_Class(id=5).get_o
Is there a way to manually open the object method/attribute menu? A keyboard shortcut? So that I can open it right after I have typed the period?
Similarly, sometimes I DO want the GitHub suggestion but, right as I hit tab, Pylance IntelliSense replaces the tab complete with the name of some variable or library, or global (i.e. some built-in exception class).
It would be great if there was a way to assign a specific key combo for tab complete of GitHub copilot. Like tab-option, or something, that will only complete the github copilot suggestion, if there is one.

vscode shows no function documentation for some functions on hover

I guess vscode is supposed to show the full function documentation in the docstring on hovering over it. At least that is what it does for many functions. However, for some functions it only shows the function with all arguments. For example, the first link shows an example where the full docstring is displayed and the second link an example where it isnt. Both functions are from the same package, so this really does not make any sense to me. Does anyone know if there is a fix or if this is a bug that somehow has to be fixed by vscode or something?

VSCode not showing function parameter list in Dart code

When I edit JavaScript code, VSCode immediately show me a popup with a list of parameters as soon as I have typed a function name followed by (.
When editing Dart code this is not the case. Here I have to use the mouse to hover over the function name to show a popup with information about the function.
Is this normal behaviour? Are there any way to change this behaviour? Does anyone know a shortcut to show the popup?
This is controlled by a VS Code user setting in the Dart extension (dart.triggerSignatureHelpAutomatically). It's not on by default because there are some quirks (that I don't remember exactly off the top of my head).
There's work in progress to move the extension to using the LSP protocol which will push some of this functionality into the Dart analysis server, which may make it easier to make some functionality like this more reliable (since more info is available in the language server than is currently exposed to the VS Code extension).

Visual Studio Code does not add function parentheses in JavaScript

For example, I am writing
console.log
and press tab but Visual Studio Code does not add parentheses. When I look here, VSCode automatically adds open and close parentheses. However, it didn't work for me. How can I fix it? By the way, when I add the open parenthesis, it is adding the closed parenthesis.
One setting which may help is to enable:
"javascript.suggest.completeFunctionCalls": true,
Search for
Javascript > Suggest: Complete Function Calls
Complete Functions with their parameter signature.