Skip to content

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

Closed

Description

@gonghenghai

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

Activity

  1. added
    bugIssue identified by VS Code Team member as probable bug
    triage-neededNeeds assignment to the proper sub-team
    on Nov 15, 2021
  2. karthiknadig commented on Nov 15, 2021

    @karthiknadig
    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.

  3. locked as resolved and limited conversation to collaborators on Dec 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

area-lintingbugIssue identified by VS Code Team member as probable bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions