mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 21:05:02 +00:00
Make inlay hint length configurable
This commit is contained in:
parent
ce4fb06dec
commit
3b61acb4ae
3 changed files with 37 additions and 14 deletions
|
@ -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') || [];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue