Skip to content

New constructors highlightingΒ #60176

@FMorschel

Description

@FMorschel

After Dart-Code/Dart-Code#4454 was closed, we have a different behaviour than we had previously:

/// This is a doc for [MyClass] and [MyClass.new]
class MyClass {
  MyClass(); // Constructor

  MyClass myMethod<T extends MyClass>() {
    return MyClass();
  }
}

Image

Image

IIRC, previously we had implicit new constructors highlighting the class name too.

But that may be hard to solve. Like, when you hover the explicit new, to only highlight the current cases but then when hovering the actual constructor, it would make both the class name and the explicit new to highlight without . (at least the way we have it currently). I'm not sure what to do here, WDYT?

CC @DanTup @bwilkerson

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3A lower priority bug or feature requestarea-devexpFor issues related to the analysis server, IDE support, linter, `dart fix`, and diagnostic messages.devexp-uxtype-design

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions