mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-23 01:58:53 +01:00
color space 0...1
This commit is contained in:
@@ -127,7 +127,7 @@ export function activate(context: ExtensionContext) {
|
||||
return client.sendRequest(DocumentColorRequest.type, params).then(symbols => {
|
||||
return symbols.map(symbol => {
|
||||
let range = client.protocol2CodeConverter.asRange(symbol.range);
|
||||
let color = new Color(symbol.color.red * 255, symbol.color.green * 255, symbol.color.blue * 255, symbol.color.alpha);
|
||||
let color = new Color(symbol.color.red, symbol.color.green, symbol.color.blue, symbol.color.alpha);
|
||||
return new ColorInformation(range, color);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user