Add eager resolve capability

This commit is contained in:
Kirill Bulatov 2020-12-02 23:55:35 +02:00
parent 2a7be4afb0
commit d9bd1f171d
8 changed files with 43 additions and 13 deletions

View file

@ -47,7 +47,7 @@ impl<'a> FunctionRender<'a> {
.set_deprecated(self.ctx.is_deprecated(self.func))
.detail(self.detail())
.add_call_parens(self.ctx.completion, self.name, params)
.add_import(import_to_add)
.add_import(import_to_add, self.ctx.completion.config.should_resolve_immediately())
.build()
}