diff options
Diffstat (limited to 'editors/code/src/inlay_hints.ts')
-rw-r--r-- | editors/code/src/inlay_hints.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/editors/code/src/inlay_hints.ts b/editors/code/src/inlay_hints.ts index f82df66ae..26705067a 100644 --- a/editors/code/src/inlay_hints.ts +++ b/editors/code/src/inlay_hints.ts | |||
@@ -29,13 +29,13 @@ export function activateInlayHints(ctx: Ctx) { | |||
29 | 29 | ||
30 | ctx.pushCleanup({ | 30 | ctx.pushCleanup({ |
31 | dispose() { | 31 | dispose() { |
32 | hintsUpdater.clear() | 32 | hintsUpdater.clear(); |
33 | } | 33 | } |
34 | }) | 34 | }); |
35 | 35 | ||
36 | // XXX: we don't await this, thus Promise rejections won't be handled, but | 36 | // XXX: we don't await this, thus Promise rejections won't be handled, but |
37 | // this should never throw in fact... | 37 | // this should never throw in fact... |
38 | hintsUpdater.setEnabled(ctx.config.displayInlayHints) | 38 | void hintsUpdater.setEnabled(ctx.config.displayInlayHints); |
39 | } | 39 | } |
40 | 40 | ||
41 | interface InlayHintsParams { | 41 | interface InlayHintsParams { |
@@ -57,7 +57,7 @@ const typeHintDecorationType = vscode.window.createTextEditorDecorationType({ | |||
57 | const parameterHintDecorationType = vscode.window.createTextEditorDecorationType({ | 57 | const parameterHintDecorationType = vscode.window.createTextEditorDecorationType({ |
58 | before: { | 58 | before: { |
59 | color: new vscode.ThemeColor('rust_analyzer.inlayHint'), | 59 | color: new vscode.ThemeColor('rust_analyzer.inlayHint'), |
60 | } | 60 | }, |
61 | }); | 61 | }); |
62 | 62 | ||
63 | class HintsUpdater { | 63 | class HintsUpdater { |