Resolve types on the server

This commit is contained in:
Kirill Bulatov 2019-07-21 23:28:05 +03:00
parent 24784c60df
commit 09c7c86696
3 changed files with 84 additions and 79 deletions

View file

@ -400,7 +400,7 @@ impl Analysis {
/// Returns a list of the places in the file where type hints can be displayed.
pub fn inlay_hints(&self, file_id: FileId) -> Cancelable<Vec<InlayHint>> {
self.with_db(|db| inlay_hints::inlay_hints(&db.parse(file_id).tree()))
self.with_db(|db| inlay_hints::inlay_hints(db, file_id, &db.parse(file_id).tree()))
}
/// Returns the set of folding ranges.