aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_ide_api/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_ide_api/src/lib.rs')
-rw-r--r--crates/ra_ide_api/src/lib.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/ra_ide_api/src/lib.rs b/crates/ra_ide_api/src/lib.rs
index ea5267ad9..3a0d2dbbe 100644
--- a/crates/ra_ide_api/src/lib.rs
+++ b/crates/ra_ide_api/src/lib.rs
@@ -429,7 +429,7 @@ impl Analysis {
429 /// Computes syntax highlighting for the given file. 429 /// Computes syntax highlighting for the given file.
430 pub fn highlight(&self, file_id: FileId) -> Cancelable<Vec<HighlightedRange>> { 430 pub fn highlight(&self, file_id: FileId) -> Cancelable<Vec<HighlightedRange>> {
431 self.db 431 self.db
432 .catch_canceled(|db| syntax_highlighting::highlight(db, file_id))? 432 .catch_canceled(|db| syntax_highlighting::highlight(db, file_id))
433 } 433 }
434 434
435 /// Computes completions at the given position. 435 /// Computes completions at the given position.
@@ -448,7 +448,7 @@ impl Analysis {
448 448
449 /// Computes the set of diagnostics for the given file. 449 /// Computes the set of diagnostics for the given file.
450 pub fn diagnostics(&self, file_id: FileId) -> Cancelable<Vec<Diagnostic>> { 450 pub fn diagnostics(&self, file_id: FileId) -> Cancelable<Vec<Diagnostic>> {
451 self.with_db(|db| db.diagnostics(file_id))? 451 self.with_db(|db| db.diagnostics(file_id))
452 } 452 }
453 453
454 /// Computes the type of the expression at the given position. 454 /// Computes the type of the expression at the given position.