From 9b2d30c83f6ea1a21dd38745b1d25cbbd9cb865b Mon Sep 17 00:00:00 2001 From: Dmitriy Vasyura Date: Wed, 24 Dec 2025 03:45:20 -0800 Subject: [PATCH] Revert one more change. --- .../contrib/colorPicker/browser/defaultDocumentColorProvider.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vs/editor/contrib/colorPicker/browser/defaultDocumentColorProvider.ts b/src/vs/editor/contrib/colorPicker/browser/defaultDocumentColorProvider.ts index ada61595db1..e1914f3031c 100644 --- a/src/vs/editor/contrib/colorPicker/browser/defaultDocumentColorProvider.ts +++ b/src/vs/editor/contrib/colorPicker/browser/defaultDocumentColorProvider.ts @@ -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);