Semantic token customization for Dart parameter labels ignored in One Dark Pro theme
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:
-
Create a Flutter project in VSCode.
-
Open
lib/main.dart. -
Inside the
Widget build(BuildContext context)method, locate lines like:title: 'Flutter Demo', theme: ThemeData(...), -
Customize semantic token colors in
settings.jsonusing:"editor.semanticTokenColorCustomizations": { "enabled": true, "rules": { "parameter.label": { "foreground": "#6CE0B3", "fontStyle": "italic" } } } -
Observe the color of
titleandtheme.
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:
-
What actually happens:
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
It works in the latest version of VS Code. The update must've done something to theming logic.