vscode-docs-view icon indicating copy to clipboard operation
vscode-docs-view copied to clipboard

Automatic pin

Open JCKodel opened this issue 1 year ago • 1 comments

I'm using this amazing plugin for Dart. It's almost perfect, except that it loses the context when there is some invalid doc.

Example:

image

The cursor is on the line 8, just after the Container.

The documentation shows the correct data:

image

Now, just typing ( makes the documentation go away:

image

It would be nice some option to keep the last successfully shown documentation when the new one is empty.

Also (that's harder or even impossible, I guess):

When I have some valid code such as:

image

The documentation is ok:

image

But as soon as the cursor is beyond the alignment:, the documentation again disappears.

I.E.: the documentation for arguments only appear when the cursor is above it (I need to type alignment, then type a :, then go back over alignment to show something). But I guess this behaviour is because VS Code won't even give a valid cursor position in this case.)

In the last case, it would be perfect if the documentation for AlignmentGeometry appeared when typing alignment (even without the :). The rest would be fixed by the option above (if new documentation is empty, then, show the last one).

It would be nice as well if the documentation panel, in this case, show a list of all intellisense options available. (my main use is "what are the parameters of this method?")

JCKodel avatar Jul 05 '24 23:07 JCKodel

I think most of the things above would be solved by having both Signature Information and Hovers. In code like:

myFunc(foo: bar);

When the cursor is in bar, the Hover is always going to show information about bar and never about myFunc/foo. However the Signature Information is for myFunction and foo. So if both of these things were shown, I think you see all the information you want in all of the places you'd expect it.

DanTup avatar Feb 05 '25 12:02 DanTup