Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parameter hints should prefer to not obscure code above the typed code #224608

Closed
AndrejMitrovic opened this issue Aug 2, 2024 · 1 comment
Closed
Assignees
Labels
*duplicate Issue identified as a duplicate of another issue(s) editor-parameter-hints Function, method and class parameter hint widget

Comments

@AndrejMitrovic
Copy link

Here is an example of two pop-ups based on the scrolling position in the buffer:

Example 1:

Capture

This is the most common example that occurs for me. Here I wanted to log out the parameters of a function but the popup obscures the list of parameter names.

Example 2:

Capture2

In this example the pop-up happened to occur below the code.

But this version is fine. It makes sense to show the popup below the code. Because I typically can't pass in arguments that are declared below or after the piece of code I'm writing. At least this is true in most procedural languages like Javascript.

There's a few reasons this is a nagging problem:

  • The Escape key doesn't make the popup go away. Instead I have to either physically click on it before I can press Escape to hide it, or just click somewhere else to hide it. It's annoying.
  • There is no transparency options for the popup. At least this would alleviate the issue a bit.

I do not want to disable parameter hints because they're very useful. But when the popup constantly obscures variables and symbols that I'm trying to pass into the function it makes this feature annoying to use.

@jrieken jrieken assigned mjbvz and unassigned jrieken Aug 5, 2024
@mjbvz mjbvz added the editor-parameter-hints Function, method and class parameter hint widget label Aug 5, 2024
@mjbvz
Copy link
Collaborator

mjbvz commented Aug 5, 2024

Duplicate of #33752

@mjbvz mjbvz marked this as a duplicate of #33752 Aug 5, 2024
@mjbvz mjbvz closed this as completed Aug 5, 2024
@mjbvz mjbvz added the *duplicate Issue identified as a duplicate of another issue(s) label Aug 5, 2024
@vs-code-engineering vs-code-engineering bot locked and limited conversation to collaborators Sep 19, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
*duplicate Issue identified as a duplicate of another issue(s) editor-parameter-hints Function, method and class parameter hint widget
Projects
None yet
Development

No branches or pull requests

3 participants