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

Only highlights the "first letter" instead of the whole words #18027

Closed
1 task done
gonghenghai opened this issue Nov 15, 2021 · 1 comment
Closed
1 task done

Only highlights the "first letter" instead of the whole words #18027

gonghenghai opened this issue Nov 15, 2021 · 1 comment
Assignees
Labels
area-linting bug Issue identified by VS Code Team member as probable bug

Comments

@gonghenghai
Copy link

VS Code version

1.62.2

Extension version

v2021.11.1422169775

OS type

Windows

OS version

Win10

Python distribution

python.org

Python version

3.9.5

Language server

Pylance

Expected behaviour

highlights the whole words and provides the python.linting message in the popover.

Capture

Screenshot (100)_LI

Actual behaviour

Only highlights the "first letter" instead of the whole words and does not provide the python.linting message in the popover.

Capture1

Screenshot (99)_LI

Steps to reproduce

Using 1.62.2 version of the VSCode.

Logs

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@gonghenghai gonghenghai added bug Issue identified by VS Code Team member as probable bug triage-needed Needs assignment to the proper sub-team labels Nov 15, 2021
@karthiknadig karthiknadig self-assigned this Nov 15, 2021
@karthiknadig karthiknadig added area-linting triage and removed triage-needed Needs assignment to the proper sub-team labels Nov 15, 2021
@karthiknadig
Copy link
Member

@gonghenghai There is a limitation from the linters themselves here, we don't get the full range from the linters. So, we have no way to know should we cover the entire line or just the character.
image

The pop-over linter message issue is due to a VS Code UI bug. the hit box size apparently go changed in a recent release, and it does not show that correctly in some scenarios. see here microsoft/vscode#136711

Note that with #17235 we are plaining on making it easier for python community to contribute to linting in the extension.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 16, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-linting bug Issue identified by VS Code Team member as probable bug
Projects
None yet
Development

No branches or pull requests

2 participants