go back to doCodeActions from doCodeActions2

This commit is contained in:
Martin Aeschlimann
2018-08-29 12:17:31 +02:00
parent e5cf46d58d
commit 16fc8709ee

View File

@@ -283,7 +283,7 @@ connection.onCodeAction((codeActionParams, token) => {
const document = documents.get(codeActionParams.textDocument.uri);
if (document) {
const stylesheet = stylesheets.get(document);
return getLanguageService(document).doCodeActions2(document, codeActionParams.range, codeActionParams.context, stylesheet);
return getLanguageService(document).doCodeActions(document, codeActionParams.range, codeActionParams.context, stylesheet);
}
return [];
}, [], `Error while computing code actions for ${codeActionParams.textDocument.uri}`, token);