mirror of
https://github.com/oen/liquid-template.git
synced 2026-07-22 05:40:24 +00:00
allow empty values in excludeFolders setting
This commit is contained in:
parent
b460441747
commit
e4fddd7e99
1 changed files with 1 additions and 2 deletions
|
|
@ -52,10 +52,9 @@ export class LiquidTemplatesSettingsTab extends PluginSettingTab {
|
|||
.setDesc('Name of the folders you want to exclude from the autosuggest menu, relative to the "Templates folder" above. Comma separated values. (useful if you have a "common" or "partial" folder where you store all the partial templates)')
|
||||
.addMomentFormat((text) =>
|
||||
text
|
||||
.setDefaultFormat(DEFAULT_SETTINGS.excludeFolders)
|
||||
.setValue(this.plugin.settings.excludeFolders)
|
||||
.onChange(async (value) => {
|
||||
this.plugin.settings.excludeFolders = value || DEFAULT_SETTINGS.excludeFolders;
|
||||
this.plugin.settings.excludeFolders = value;
|
||||
await this.plugin.saveSettings();
|
||||
})
|
||||
);
|
||||
|
|
|
|||
Loading…
Reference in a new issue