mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-22 03:09:13 +00:00
[css] update service (for #47788)
This commit is contained in:
@@ -279,8 +279,7 @@ connection.onRenameRequest((renameParameters, token) => {
|
||||
connection.onRequest(FoldingRangesRequest.type, (params, token) => {
|
||||
return runSafe(() => {
|
||||
let document = documents.get(params.textDocument.uri);
|
||||
let stylesheet = stylesheets.get(document);
|
||||
return getLanguageService(document).findFoldingRegions(document, stylesheet);
|
||||
return getLanguageService(document).getFoldingRanges(document, { maxRanges: params.maxRanges });
|
||||
}, null, `Error while computing folding ranges for ${params.textDocument.uri}`, token);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user