Revert one more change.

This commit is contained in:
Dmitriy Vasyura 2025-12-24 03:45:20 -08:00
parent f5422b129a
commit 9b2d30c83f

View File

@ -24,7 +24,7 @@ export class DefaultDocumentColorProvider implements DocumentColorProvider {
provideColorPresentations(_model: ITextModel, colorInfo: IColorInformation, _token: CancellationToken): IColorPresentation[] {
const range = colorInfo.range;
const colorFromInfo: IColor = colorInfo.color;
const color = new Color(new RGBA(Math.round(255 * colorFromInfo.red), Math.round(255 * colorFromInfo.green), Math.round(255 * colorFromInfo.blue), Math.round(255 * colorFromInfo.alpha)));
const color = new Color(new RGBA(Math.round(255 * colorFromInfo.red), Math.round(255 * colorFromInfo.green), Math.round(255 * colorFromInfo.blue), colorFromInfo.alpha));
const rgb = Color.Format.CSS.formatRGB(color);
const hsl = Color.Format.CSS.formatHSL(color);