Skip to content

Like named constructor, add constructor modifier for unnamed constructor #4495

@shujaatak

Description

@shujaatak

[Screenshots Attached Below]
I want to apply distinct color to all types of constructors i.e. named or unnamed so that I can quickly spot them wherever they are declared or used. Currently as named constructor has constructor modifier so I have used the following coloring customization:

"method.constructor:dart": { 
    "bold": true,
    "foreground": "#2e32ff",
  },  

Similar to named constructor, if there was constructor modifier for unnamed constructor then I could have used the following:

"class.constructor:dart": {
    "bold": true,
    "foreground": "#2e32ff",
  },  

First look at the Named Constructor that how nicely it has constructor modifier:

image

Now look at the Unnamed Constructor that it doesn't have constructor modifier:

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    in editorRelates to code editing or language featuresin lsp/analysis serverSomething to be fixed in the Dart analysis serveris bugrelies on sdk changesSomething that requires changes in the Dart/Flutter SDK to ship before it will become available

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions