aboutsummaryrefslogtreecommitdiff
path: root/helix-view/src
diff options
context:
space:
mode:
authorwojciechkepka2021-06-18 03:39:37 +0000
committerBlaž Hrastnik2021-06-18 08:42:38 +0000
commita6d39585d8a1cf260262e7f3e3c4741791582049 (patch)
tree6b494962f5a1ad4f88ef5bb9ff00c9f94c9f316c /helix-view/src
parent52fb90b81eb6eb48ed64aceb7e6e1527b25cd998 (diff)
Add `work_done_token` as parameter to lsp methods
Diffstat (limited to 'helix-view/src')
-rw-r--r--helix-view/src/document.rs9
1 files changed, 5 insertions, 4 deletions
diff --git a/helix-view/src/document.rs b/helix-view/src/document.rs
index fe9c87f7..e9a8097c 100644
--- a/helix-view/src/document.rs
+++ b/helix-view/src/document.rs
@@ -263,10 +263,11 @@ impl Document {
pub fn format(&mut self, view_id: ViewId) {
if let Some(language_server) = self.language_server() {
// TODO: await, no blocking
- let transaction = helix_lsp::block_on(
- language_server
- .text_document_formatting(self.identifier(), lsp::FormattingOptions::default()),
- )
+ let transaction = helix_lsp::block_on(language_server.text_document_formatting(
+ self.identifier(),
+ lsp::FormattingOptions::default(),
+ None,
+ ))
.map(|edits| {
helix_lsp::util::generate_transaction_from_edits(
self.text(),