diff options
author | Steffen Lyngbaek <[email protected]> | 2020-03-12 03:14:39 +0000 |
---|---|---|
committer | Steffen Lyngbaek <[email protected]> | 2020-03-12 03:14:39 +0000 |
commit | 58248e24cd45adcbfd7bfd00e1487df196b4a8c6 (patch) | |
tree | 7221dea8daa9dcede6ffaede88c890de17586c51 /editors/code/src/inlay_hints.ts | |
parent | 974ed7155acccb5da0c2aeac09d7052c4f75902d (diff) |
Switch from Vec<InlayKind> to object with props
- Instead of a single object type, use several individual nested types
to allow toggling from the settings GUI
- Remove unused struct definitions
- Install and test that the toggles work
Diffstat (limited to 'editors/code/src/inlay_hints.ts')
-rw-r--r-- | editors/code/src/inlay_hints.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editors/code/src/inlay_hints.ts b/editors/code/src/inlay_hints.ts index 8d291406d..b19b09ad5 100644 --- a/editors/code/src/inlay_hints.ts +++ b/editors/code/src/inlay_hints.ts | |||
@@ -10,7 +10,7 @@ export function activateInlayHints(ctx: Ctx) { | |||
10 | const maybeUpdater = { | 10 | const maybeUpdater = { |
11 | updater: null as null | HintsUpdater, | 11 | updater: null as null | HintsUpdater, |
12 | onConfigChange() { | 12 | onConfigChange() { |
13 | if (ctx.config.inlayHintOpts.displayType === 'off') { | 13 | if (!ctx.config.inlayHints.typeHints && !ctx.config.inlayHints.parameterHints) { |
14 | return this.dispose(); | 14 | return this.dispose(); |
15 | } | 15 | } |
16 | if (!this.updater) this.updater = new HintsUpdater(ctx); | 16 | if (!this.updater) this.updater = new HintsUpdater(ctx); |