Update src/vs/editor/contrib/colorPicker/browser/defaultDocumentColorProvider.ts

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Dmitriy Vasyura 2025-12-24 02:44:57 -08:00 committed by GitHub
parent b41b3d5cc7
commit b42058b799
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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