Skip to content

Hover range incorrectly includes operands when hovering over operators #62000

@DanTup

Description

@DanTup

This was noted at #61922 (comment)

If you hover over + here:

var a = b + c;

The hover range includes b + c but is supposed to only include the range that has the same hover (this is both what is documented in the original protocol and what clients expect):

  /// The offset of the range of characters that encompasses the cursor
  /// position and has the same hover information as the cursor position.
  int offset;

  /// The length of the range of characters that encompasses the cursor
  /// position and has the same hover information as the cursor position.
  int length;

Metadata

Metadata

Assignees

Labels

area-devexpFor issues related to the analysis server, IDE support, linter, `dart fix`, and diagnostic messages.devexp-serverIssues related to some aspect of the analysis server

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions