Load hints for part of the file only

This commit is contained in:
Kirill Bulatov 2022-02-12 00:48:01 +02:00 committed by Laurențiu Nicola
parent 9c0c199e96
commit b1d8dae930
5 changed files with 107 additions and 20 deletions

View file

@ -358,8 +358,9 @@ impl Analysis {
&self,
config: &InlayHintsConfig,
file_id: FileId,
range: Option<FileRange>,
) -> Cancellable<Vec<InlayHint>> {
self.with_db(|db| inlay_hints::inlay_hints(db, file_id, config))
self.with_db(|db| inlay_hints::inlay_hints(db, file_id, range, config))
}
/// Returns the set of folding ranges.