mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 14:21:44 +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.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 {
|
interface InlayHintsParams {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue