summaryrefslogtreecommitdiff
path: root/support/texlab/crates/texlab/src/server.rs
diff options
context:
space:
mode:
Diffstat (limited to 'support/texlab/crates/texlab/src/server.rs')
-rw-r--r--support/texlab/crates/texlab/src/server.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/support/texlab/crates/texlab/src/server.rs b/support/texlab/crates/texlab/src/server.rs
index 5d3fc4a2b4..8f58bb3826 100644
--- a/support/texlab/crates/texlab/src/server.rs
+++ b/support/texlab/crates/texlab/src/server.rs
@@ -605,8 +605,9 @@ impl Server {
fn folding_range(&self, id: RequestId, params: FoldingRangeParams) -> Result<()> {
let mut uri = params.text_document.uri;
normalize_uri(&mut uri);
+ let client_capabilities = Arc::clone(&self.client_capabilities);
self.run_query(id, move |db| {
- folding::find_all(db, &uri).unwrap_or_default()
+ folding::find_all(db, &uri, &client_capabilities).unwrap_or_default()
});
Ok(())
}