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

Better formatting for complex signature hints #830

Closed
Yura52 opened this issue Jan 13, 2021 · 1 comment
Closed

Better formatting for complex signature hints #830

Yura52 opened this issue Jan 13, 2021 · 1 comment
Labels
duplicate This issue or pull request already exists

Comments

@Yura52
Copy link

Yura52 commented Jan 13, 2021

When hovering over functions/method with complex signatures with a goal like "learn the exact name of some argument" it can be hard to read the hint since VSCode applies no formatting to the signature. Hints become especially difficult to parse when overloading is involved. For example, this is what I saw when trying to check if there are any arguments like "env" for the subprocess.run function:

Screenshot 2021-01-13 at 15 45 44

At the same time, when I did Cmd+click on the function, I saw a well-formatted signature and quickly found the argument I was looking for:

Screenshot 2021-01-13 at 15 52 05

So, the question is if it is possible to format complex hints in a way that enhances their readability?

@karthiknadig karthiknadig changed the title Better formatting for complext signature hints Better formatting for complex signature hints Jan 13, 2021
@karthiknadig karthiknadig transferred this issue from microsoft/vscode-python Jan 13, 2021
@judej judej added the duplicate This issue or pull request already exists label Jan 13, 2021
@judej
Copy link
Contributor

judej commented Jan 13, 2021

Dupe of #612

@judej judej closed this as completed Jan 13, 2021
@github-actions github-actions bot removed the triage label Jan 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants