aboutsummaryrefslogtreecommitdiff
path: root/editors/code/src/config.ts
diff options
context:
space:
mode:
authorWilco Kusee <[email protected]>2019-10-18 12:40:03 +0100
committerWilco Kusee <[email protected]>2019-10-18 12:45:04 +0100
commit3b61acb4ae15a1ec6071db40e09437319795db67 (patch)
tree7aad0029f3f138cc2d6a21a3051c11b57a047cf1 /editors/code/src/config.ts
parentce4fb06dec597207324195ae62db93f53984b890 (diff)
Make inlay hint length configurable
Diffstat (limited to 'editors/code/src/config.ts')
-rw-r--r--editors/code/src/config.ts6
1 files changed, 6 insertions, 0 deletions
diff --git a/editors/code/src/config.ts b/editors/code/src/config.ts
index a4581485c..2578bc6d1 100644
--- a/editors/code/src/config.ts
+++ b/editors/code/src/config.ts
@@ -22,6 +22,7 @@ export class Config {
22 public showWorkspaceLoadedNotification = true; 22 public showWorkspaceLoadedNotification = true;
23 public lruCapacity: null | number = null; 23 public lruCapacity: null | number = null;
24 public displayInlayHints = true; 24 public displayInlayHints = true;
25 public maxInlayHintLength: null | number = null;
25 public excludeGlobs = []; 26 public excludeGlobs = [];
26 public useClientWatching = false; 27 public useClientWatching = false;
27 public featureFlags = {}; 28 public featureFlags = {};
@@ -131,6 +132,11 @@ export class Config {
131 if (config.has('displayInlayHints')) { 132 if (config.has('displayInlayHints')) {
132 this.displayInlayHints = config.get('displayInlayHints') as boolean; 133 this.displayInlayHints = config.get('displayInlayHints') as boolean;
133 } 134 }
135 if (config.has('maxInlayHintLength')) {
136 this.maxInlayHintLength = config.get(
137 'maxInlayHintLength'
138 ) as number;
139 }
134 if (config.has('excludeGlobs')) { 140 if (config.has('excludeGlobs')) {
135 this.excludeGlobs = config.get('excludeGlobs') || []; 141 this.excludeGlobs = config.get('excludeGlobs') || [];
136 } 142 }