diff options
Diffstat (limited to 'crates/ra_ide_api/src/lib.rs')
-rw-r--r-- | crates/ra_ide_api/src/lib.rs | 4 |
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 af163088a..32168f12d 100644 --- a/crates/ra_ide_api/src/lib.rs +++ b/crates/ra_ide_api/src/lib.rs | |||
@@ -399,8 +399,8 @@ impl Analysis { | |||
399 | } | 399 | } |
400 | 400 | ||
401 | /// Returns a list of the places in the file where type hints can be displayed. | 401 | /// Returns a list of the places in the file where type hints can be displayed. |
402 | pub fn inlay_hints(&self, file_id: FileId) -> Vec<InlayHint> { | 402 | pub fn inlay_hints(&self, file_id: FileId) -> Cancelable<Vec<InlayHint>> { |
403 | inlay_hints::inlay_hints(&self.db.parse(file_id).tree()) | 403 | self.with_db(|db| inlay_hints::inlay_hints(&db.parse(file_id).tree())) |
404 | } | 404 | } |
405 | 405 | ||
406 | /// Returns the set of folding ranges. | 406 | /// Returns the set of folding ranges. |