[html] update server

This commit is contained in:
Martin Aeschlimann
2017-11-01 23:19:23 +01:00
parent 8326351ee0
commit 5ed577b00c
8 changed files with 44 additions and 42 deletions

View File

@@ -86,7 +86,8 @@ export function activate(context: ExtensionContext) {
provideColorPresentations(color, context): Thenable<ColorPresentation[]> {
let params: ColorPresentationParams = {
textDocument: client.code2ProtocolConverter.asTextDocumentIdentifier(context.document),
colorInfo: { range: client.code2ProtocolConverter.asRange(context.range), color }
color,
range: client.code2ProtocolConverter.asRange(context.range)
};
return client.sendRequest(ColorPresentationRequest.type, params).then(presentations => {
return presentations.map(p => {