[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

@@ -324,7 +324,7 @@ connection.onRequest(ColorPresentationRequest.type, params => {
let document = documents.get(params.textDocument.uri);
if (document) {
let jsonDocument = getJSONDocument(document);
return languageService.getColorPresentations(document, jsonDocument, params.colorInfo);
return languageService.getColorPresentations(document, jsonDocument, params.color, params.range);
}
return [];
});