mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-28 06:31:58 +00:00
Update src/vs/editor/contrib/colorPicker/browser/defaultDocumentColorProvider.ts
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
parent
b41b3d5cc7
commit
b42058b799
@ -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);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user