mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-27 22:21:24 +00:00
Revert one more change.
This commit is contained in:
parent
f5422b129a
commit
9b2d30c83f
@ -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);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user