Skip to content

Can I customize the display order of Linting #159247

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

Closed
ydmykr opened this issue Aug 26, 2022 · 6 comments
Closed

Can I customize the display order of Linting #159247

ydmykr opened this issue Aug 26, 2022 · 6 comments
Assignees
Labels
under-discussion Issue is under discussion for relevance, priority, approach

Comments

@ydmykr
Copy link

ydmykr commented Aug 26, 2022

I'm using linting on vscode. I install the python mypy.

Now, if I meet an error on the definition, I'll get the following result :

image

image

Is there any way to get the second then the first.

@ydmykr ydmykr added the feature-request Request for new features or functionality label Aug 26, 2022
@karthiknadig
Copy link
Member

This is possibly a feature request on VS Code core. Python extension does not control the order of items here. Since this view can be filled in from multiple sources not just the python extension.

@karthiknadig karthiknadig removed triage-needed feature-request Request for new features or functionality labels Aug 26, 2022
@karthiknadig karthiknadig transferred this issue from microsoft/vscode-python Aug 26, 2022
@yume-chan
Copy link
Contributor

Duplicate of #73120

@alexdima
Copy link
Member

@karthiknadig IMHO the Python hover shown here is too long and is not helpful. I believe the root cause of this issue is not the UX of hovers, but that Python decides to show snippets from the Python language specification in the hover. IMHO we could provide a much better user experience here by focusing on the hover contents and presenting something useful to users.

@luabud
Copy link
Member

luabud commented Sep 30, 2022

It seems this is the behaviour when using Jedi. Pylance shows only the warning:

pylance-jedi-hover-behaviour

@ydmykr would you mind opening this issue on https://github.com/pappasam/jedi-language-server, as it looks like that's where this behaviour is coming from?

@alexdima
Copy link
Member

@luabud Thank you for figuring that out! I've created pappasam/jedi-language-server#227 for the jedi language server.

@alexdima
Copy link
Member

alexdima commented Oct 7, 2022

Given we could fix this in the extension by removing the specification from the keyword hover, let's optimistically close this.

@alexdima alexdima closed this as completed Oct 7, 2022
@github-actions github-actions bot locked and limited conversation to collaborators Nov 21, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
under-discussion Issue is under discussion for relevance, priority, approach
Projects
None yet
Development

No branches or pull requests

8 participants