OneDark-Pro icon indicating copy to clipboard operation
OneDark-Pro copied to clipboard

Semantic token customization for Dart parameter labels ignored in One Dark Pro theme

Open Alec269 opened this issue 1 year ago • 1 comments

Describe the bug: The theme does not respect semantic token color customization for Dart parameter labels in Flutter projects. Specifically, customizing colors in settings.json for semantic tokens like parameter.label or parameter has no effect in the One Dark Pro theme. Whereas in Dark+ (vscode's default theme) both of them have the intended effect.

To Reproduce: Steps to reproduce the behavior:

  1. Create a Flutter project in VSCode.

  2. Open lib/main.dart.

  3. Inside the Widget build(BuildContext context) method, locate lines like:

    title: 'Flutter Demo',
    theme: ThemeData(...),
    
  4. Customize semantic token colors in settings.json using:

    "editor.semanticTokenColorCustomizations": {
        "enabled": true,
        "rules": {
            "parameter.label": {
                "foreground": "#6CE0B3",
                "fontStyle": "italic"
            }
        }
    }
    
  5. Observe the color of title and theme.

Expected behavior: The Dart parameter labels (title, theme, etc.) should display the color defined in settings.json.

Actual behavior: The labels remain the default grey color in One Dark Pro, ignoring the semantic token customization.

Screenshots & Example Code:

  • What should happen:

    Image
  • What actually happens:

    Image

Desktop (please complete the following information):

  • OS: Windows 10 x64 10.0.19045
  • VSCode Version: 1.104.1
  • Theme version: 3.19.0

Additional context / More Info about setup:

  • Version: 1.104.1 (system setup)
  • Commit: 0f0d87fa9e96c856c5212fc86db137ac0d783365
  • Date: 2025-09-17T23:36:24.973Z
  • Electron: 37.3.1
  • ElectronBuildId: 12404162
  • Chromium: 138.0.7204.235
  • Node.js: 22.18.0
  • OS: Windows_NT x64 10.0.19045

Alec269 avatar Sep 24 '25 14:09 Alec269

It works in the latest version of VS Code. The update must've done something to theming logic.

Alec269 avatar Oct 23 '25 18:10 Alec269