mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-13 13:48:50 +00:00
vscode: add comment on possible UnhandledPromise rejection error
This commit is contained in:
parent
32fc890de8
commit
31ae646448
1 changed files with 3 additions and 1 deletions
|
@ -27,7 +27,9 @@ export function activateInlayHints(ctx: Ctx) {
|
|||
ctx.subscriptions
|
||||
);
|
||||
|
||||
ctx.onDidRestart(_ => hintsUpdater.setEnabled(ctx.config.displayInlayHints));
|
||||
// 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.onDidRestart(async _ => hintsUpdater.setEnabled(ctx.config.displayInlayHints));
|
||||
}
|
||||
|
||||
interface InlayHintsParams {
|
||||
|
|
Loading…
Reference in a new issue