Expand Selection not working as intended. Fixes #77194. Fixes #77087

This commit is contained in:
Martin Aeschlimann
2019-07-18 13:57:45 +02:00
parent 7ec1707aa9
commit bd57ca7066
6 changed files with 11 additions and 70 deletions

View File

@@ -433,7 +433,8 @@ connection.onFoldingRanges((params, token) => {
}, null, `Error while computing folding ranges for ${params.textDocument.uri}`, token);
});
connection.onRequest('$/textDocument/selectionRanges', async (params, token) => {
connection.onSelectionRanges((params, token) => {
return runSafe(() => {
const document = documents.get(params.textDocument.uri);
if (document) {