Skip to content

Hovers for import prefixes should show valid Dart code for the import #57020

Closed
@DanTup

Description

@DanTup

#32735 improved the hovers for import prefixes, but the new text is in a field that usually contains valid Dart code and LSP wraps in triple backticks. This results in syntax highlighting being applied to English text:

image

To maintain consistency, rather than removing the backticks we should update the element descriptions for import prefixes to be the valid Dart code that adds the relevant imports instead.

(cc @FMorschel)

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3A lower priority bug or feature requestdevexp-serverIssues related to some aspect of the analysis serverlegacy-area-analyzerUse area-devexp instead.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions