mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-29 13:25:09 +00:00
Simplify startup
This commit is contained in:
parent
dcdbbddd16
commit
d24e612106
5 changed files with 25 additions and 33 deletions
|
@ -33,9 +33,9 @@ export function activateInlayHints(ctx: Ctx) {
|
|||
}
|
||||
})
|
||||
|
||||
// We pass async function though it will not be awaited when called,
|
||||
// thus Promise rejections won't be handled, but this should never throw in fact...
|
||||
ctx.onStart(async _ => hintsUpdater.setEnabled(ctx.config.displayInlayHints));
|
||||
// XXX: we don't await this, thus Promise rejections won't be handled, but
|
||||
// this should never throw in fact...
|
||||
hintsUpdater.setEnabled(ctx.config.displayInlayHints)
|
||||
}
|
||||
|
||||
interface InlayHintsParams {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue