mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-28 04:45:05 +00:00
Merge #10965
10965: minor: Remove dead assists-related function r=Veykril a=lnicola Unless I'm missing something, `assists_with_fixes` seems to be always used and ends up in the same code path. Co-authored-by: Laurențiu Nicola <lnicola@dend.ro>
This commit is contained in:
commit
4f04d8477a
1 changed files with 0 additions and 18 deletions
|
@ -555,24 +555,6 @@ impl Analysis {
|
||||||
.unwrap_or_default())
|
.unwrap_or_default())
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Computes assists (aka code actions aka intentions) for the given
|
|
||||||
/// position. If `resolve == false`, computes enough info to show the
|
|
||||||
/// lightbulb list in the editor, but doesn't compute actual edits, to
|
|
||||||
/// improve performance.
|
|
||||||
pub fn assists(
|
|
||||||
&self,
|
|
||||||
config: &AssistConfig,
|
|
||||||
resolve: AssistResolveStrategy,
|
|
||||||
frange: FileRange,
|
|
||||||
) -> Cancellable<Vec<Assist>> {
|
|
||||||
self.with_db(|db| {
|
|
||||||
let ssr_assists = ssr::ssr_assists(db, &resolve, frange);
|
|
||||||
let mut acc = ide_assists::assists(db, config, resolve, frange);
|
|
||||||
acc.extend(ssr_assists.into_iter());
|
|
||||||
acc
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Computes the set of diagnostics for the given file.
|
/// Computes the set of diagnostics for the given file.
|
||||||
pub fn diagnostics(
|
pub fn diagnostics(
|
||||||
&self,
|
&self,
|
||||||
|
|
Loading…
Reference in a new issue