microsoft/vscode

[theming] when completing color keys in settings, fill in current value

bpasero opened this issue ยท 2 comments

That would be very helpful ๐Ÿ‘

Is this hard to implement? Otherwise, I'd love to help here.

@hediet The completions are schema driven. The schema is generated here: https://github.com/microsoft/vscode/blob/main/src/vs/platform/theme/common/colorRegistry.ts#L127
Instead of ff0000, the color value would come from IThemeService.getColorTheme().getColor(id).
onDidChangeSchema needs be triggered whenever the colorTheme changes (IThemeService.onDidColorThemeChange)
I guess the challenge is how to get the IThemeService to the colorRegistry.