make LRU cache configurable

This commit is contained in:
Aleksey Kladov 2019-06-07 20:49:29 +03:00
parent 15668119de
commit fed52706de
8 changed files with 48 additions and 11 deletions

View file

@ -19,6 +19,7 @@ export class Config {
public enableEnhancedTyping = true;
public raLspServerPath = RA_LSP_DEBUG || 'ra_lsp_server';
public showWorkspaceLoadedNotification = true;
public lruCapacity: null | number = null;
public cargoWatchOptions: CargoWatchOptions = {
enableOnStartup: 'ask',
trace: 'off',
@ -109,5 +110,8 @@ export class Config {
''
);
}
if (config.has('lruCapacity')) {
this.lruCapacity = config.get('lruCapacity') as number;
}
}
}