color api: remove ColorRange.format

This commit is contained in:
Joao Moreno
2017-08-11 11:45:52 +02:00
parent 0f5272afe9
commit 13a6a7a9c3
11 changed files with 31 additions and 52 deletions

View File

@@ -149,7 +149,7 @@ export class ColorProvider implements DocumentColorProvider {
let color = Color.fromHex(value);
if (color) {
let r = new Range(range.start.line, range.start.character + 1, range.end.line, range.end.character - 1);
result.push(new ColorRange(r, color, ColorFormat_HEX, [ColorFormat_HEX]));
result.push(new ColorRange(r, color, [ColorFormat_HEX]));
}
}
return result;