mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-24 02:28:34 +01:00
color api: remove ColorRange.format
This commit is contained in:
@@ -706,12 +706,10 @@ class ColorProviderAdapter {
|
||||
if (Array.isArray(colors)) {
|
||||
const colorInfos: IRawColorInfo[] = [];
|
||||
colors.forEach(ci => {
|
||||
const format = getCachedId(ci.format);
|
||||
const availableFormats = ci.availableFormats.map(f => getCachedId(f));
|
||||
|
||||
colorInfos.push({
|
||||
color: [ci.color.red, ci.color.green, ci.color.blue, ci.color.alpha],
|
||||
format: format,
|
||||
availableFormats: availableFormats,
|
||||
range: TypeConverters.fromRange(ci.range)
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user