aboutsummaryrefslogtreecommitdiff
path: root/editors/code
diff options
context:
space:
mode:
authorVeetaha <[email protected]>2020-02-08 19:38:29 +0000
committerVeetaha <[email protected]>2020-02-16 23:39:58 +0000
commit31ae64644864257b2375167df56c0b2e3839a9fd (patch)
treedd6903be67d95caab4c15de0a8d9306550faf3f3 /editors/code
parent32fc890de87e25c342b7c141ef98b07cb1471128 (diff)
vscode: add comment on possible UnhandledPromise rejection error
Diffstat (limited to 'editors/code')
-rw-r--r--editors/code/src/inlay_hints.ts4
1 files changed, 3 insertions, 1 deletions
diff --git a/editors/code/src/inlay_hints.ts b/editors/code/src/inlay_hints.ts
index c317a9213..12d7ddf0d 100644
--- a/editors/code/src/inlay_hints.ts
+++ b/editors/code/src/inlay_hints.ts
@@ -27,7 +27,9 @@ export function activateInlayHints(ctx: Ctx) {
27 ctx.subscriptions 27 ctx.subscriptions
28 ); 28 );
29 29
30 ctx.onDidRestart(_ => hintsUpdater.setEnabled(ctx.config.displayInlayHints)); 30 // We pass async function though it will not be awaited when called,
31 // thus Promise rejections won't be handled, but this should never throw in fact...
32 ctx.onDidRestart(async _ => hintsUpdater.setEnabled(ctx.config.displayInlayHints));
31} 33}
32 34
33interface InlayHintsParams { 35interface InlayHintsParams {