Skip to content

Commit

Permalink
[css] Request textDocument/foldingRanges failed. Fixes #46640
Browse files Browse the repository at this point in the history
  • Loading branch information
aeschli committed Mar 27, 2018
1 parent 666e95e commit 0a42355
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions extensions/css-language-features/server/src/cssServerMain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -279,10 +279,10 @@ connection.onRenameRequest(renameParameters => {

connection.onRequest(FoldingRangesRequest.type, (params, token) => {
return runSafe(() => {
let document = documents.get(params[0].textDocument.uri);
let document = documents.get(params.textDocument.uri);
let stylesheet = stylesheets.get(document);
return getLanguageService(document).findFoldingRegions(document, stylesheet);
}, null, `Error while computing folding ranges for ${params[0].textDocument.uri}`);
}, null, `Error while computing folding ranges for ${params.textDocument.uri}`);
});

// Listen on the connection
Expand Down

0 comments on commit 0a42355

Please sign in to comment.