[json] update service & server

This commit is contained in:
Martin Aeschlimann
2017-11-01 22:51:29 +01:00
parent a6fc53ef6c
commit ff2c299be4
6 changed files with 32 additions and 38 deletions

View File

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