mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-28 09:44:08 +00:00
vscode: add comment on possible UnhandledPromise rejection error
This commit is contained in:
parent
32fc890de8
commit
31ae646448
@ -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 New Issue
Block a user