Skip to content
This repository was archived by the owner on Sep 6, 2021. It is now read-only.
This repository was archived by the owner on Sep 6, 2021. It is now read-only.

Selector width info is wrong when no space before '{' #1863

@peterflynn

Description

@peterflynn

Put this code into a .css file:

div {
    color: blue;
}

div{
    color: green;
}
  1. Open 'Go to Definition' (Ctrl+T)
  2. Select each of the results in turn

Result:
For the first rule, the entire "div" is selected in the editor.
For the second rule, only "di" is selected -- the "v" lies outside the selection.
(Similar bug happens for longer selectors too; the last 1 char is always left out)

Expected:
Entire text of selector is selected in both cases.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions