Skip to content

Color preview not working properly. #2606

Closed

Description

@brc-dd

I am experiencing some issues with the preview boxes showing colors left to any Color object.

What I am getting:

image
image

What I should be getting:

image

Clearly the issue is because whatever code you guys are using to generate color in that square box is not checking if the Color object is there in comment. It is simply finding all Color objects as if in plaintext and mapping them to line numbers; the color which is found last in a line is retained as the key and rest are discarded.

VS Code Setup Information:

Version: 1.47.0-insider (user setup)
Commit: 376d9d9d785ccca128fdbb16f001446d0ad64d32
OS: Windows_NT x64 10.0.19041

Extension Versions:

dart-code.dart-code : v3.12.1
dart-code.flutter : v3.12.1

Activity

  1. added this to the v3.13.0 milestone on Jul 6, 2020
  2. added
    in editorRelates to code editing or language features
    in flutterRelates to running Flutter apps
    on Jul 6, 2020
  3. added a commit that references this issue on Jul 8, 2020
    b6aac60
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    in editorRelates to code editing or language featuresin flutterRelates to running Flutter appsis bug

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions