microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
164.45k stars 29.35k forks source link

Allow parameter hints and completion documentation to appear in a docked panel instead of floating over the code #149270

Open DanTup opened 2 years ago

DanTup commented 2 years ago

Parameter hints and the documentation popup in code completion can be useful, but sometimes they completely obscure the code being typed:

Screenshot 2022-05-11 at 16 52 13

It would be nice if these could be shown in an alternative location (such as a dockable panel that can be put in a sidebar or along the bottom) to avoid covering so much of the code.

I'm aware both can quickly be toggled with their respective shortcuts (and that I can control whether they open automatically), but those aren't perfect solutions - sometimes you're trying to compare the parameters you've written to the signature to understand what's wrong, and having to flick them on and off is less convenient than being able to see both on the screen at the same time.

gjsjohnmurray commented 2 years ago

See https://github.com/microsoft/vscode/issues/51253#issuecomment-703007542

DanTup commented 2 years ago

@gjsjohnmurray that's good to know, although it doesn't seem like that would be language-agnostic. It doesn't seem like an ideal solution for every language to implement the same thing here in the same way (or not, and then give users inconsistent experiences for the same functionality/data)?

gjsjohnmurray commented 2 years ago

@DanTup the extension README says "Language independent. Works in any language that supports hovers."

DanTup commented 2 years ago

Ah sorry, didn't see the extension - only the APIs. I wonder whether it'll be able to handle the documentation window noted above though - for hovers/param hints you could just turn them off and the extension can invoke those commands itself. But for the documentation popup on completions, the extension would need to know which completion item is selected, and I can't see any APIs that would allow this?

vscodenpa commented 2 years ago

This feature request is now a candidate for our backlog. The community has 60 days to upvote the issue. If it receives 20 upvotes we will move it to our backlog. If not, we will close it. To learn more about how we handle feature requests, please see our documentation.

Happy Coding!

oldmansutton commented 2 years ago

Not having the code suggestions pop up over the code you're working on would be amazing. I wish that it was

A) More obvious how to upvote this B) That feature requests and this whole process even existed. Never knew it did before today, despite using VSCode for years. I feel like this is a much desired request, but most people will never even knew it existed.

gjsjohnmurray commented 2 years ago

More obvious how to upvote this

https://github.com/microsoft/vscode/wiki/Submitting-Bugs-and-Suggestions#before-submitting-an-issue which also links to https://github.com/microsoft/vscode/wiki/Issues-Triaging#up-voting-a-feature-request

oldmansutton commented 2 years ago

@gjsjohnmurray Which is great if you're in the habit of actually visiting GitHub for VSCode (I'm not), but would be better if there was something actually IN VSCode to point you here. Like a "Feature Request Voting" menu item somewhere or something.

vscodenpa commented 2 years ago

:slightly_smiling_face: This feature request received a sufficient number of community upvotes and we moved it to our backlog. To learn more about how we handle feature requests, please see our documentation.

Happy Coding!

byehack commented 2 years ago

in-editor panel would be good for this issue. somethings like peek view but compact.

Tyriar commented 11 months ago

Closely related to https://github.com/microsoft/vscode/issues/33752, trying to solve the same problem

organizedslop commented 4 months ago

Any update on this? I'm really eager for this to be implemented.