Make inlay hint length configurable

This commit is contained in:
Wilco Kusee 2019-10-18 13:40:03 +02:00
parent ce4fb06dec
commit 3b61acb4ae
No known key found for this signature in database
GPG key ID: D5B2BB5CDC3334BC
3 changed files with 37 additions and 14 deletions

View file

@ -22,6 +22,7 @@ export class Config {
public showWorkspaceLoadedNotification = true;
public lruCapacity: null | number = null;
public displayInlayHints = true;
public maxInlayHintLength: null | number = null;
public excludeGlobs = [];
public useClientWatching = false;
public featureFlags = {};
@ -131,6 +132,11 @@ export class Config {
if (config.has('displayInlayHints')) {
this.displayInlayHints = config.get('displayInlayHints') as boolean;
}
if (config.has('maxInlayHintLength')) {
this.maxInlayHintLength = config.get(
'maxInlayHintLength'
) as number;
}
if (config.has('excludeGlobs')) {
this.excludeGlobs = config.get('excludeGlobs') || [];
}