mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-24 04:09:28 +00:00
go back to doCodeActions from doCodeActions2
This commit is contained in:
@@ -283,7 +283,7 @@ connection.onCodeAction((codeActionParams, token) => {
|
|||||||
const document = documents.get(codeActionParams.textDocument.uri);
|
const document = documents.get(codeActionParams.textDocument.uri);
|
||||||
if (document) {
|
if (document) {
|
||||||
const stylesheet = stylesheets.get(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 [];
|
return [];
|
||||||
}, [], `Error while computing code actions for ${codeActionParams.textDocument.uri}`, token);
|
}, [], `Error while computing code actions for ${codeActionParams.textDocument.uri}`, token);
|
||||||
|
|||||||
Reference in New Issue
Block a user