mirror of
https://github.com/estruyf/vscode-front-matter.git
synced 2026-08-08 01:42:58 +02:00
#412 - allow config folders to use lowercase
This commit is contained in:
@@ -478,14 +478,15 @@ export class Settings {
|
||||
}
|
||||
|
||||
// Array settings
|
||||
if (relSettingName === SETTING_TAXONOMY_CONTENT_TYPES ||
|
||||
relSettingName === SETTING_CONTENT_PAGE_FOLDERS ||
|
||||
relSettingName === SETTING_CONTENT_PLACEHOLDERS) {
|
||||
relSettingName = relSettingName.toLowerCase();
|
||||
if (relSettingName === SETTING_TAXONOMY_CONTENT_TYPES.toLowerCase() ||
|
||||
relSettingName === SETTING_CONTENT_PAGE_FOLDERS.toLowerCase() ||
|
||||
relSettingName === SETTING_CONTENT_PLACEHOLDERS.toLowerCase()) {
|
||||
const crntValue = Settings.globalConfig[settingName] || [];
|
||||
Settings.globalConfig[settingName] = [...crntValue, configJson];
|
||||
}
|
||||
// Object settings
|
||||
else if (relSettingName === SETTING_CONTENT_SNIPPETS) {
|
||||
else if (relSettingName === SETTING_CONTENT_SNIPPETS.toLowerCase()) {
|
||||
// Filename is the key
|
||||
const fileName = parse(configFilePath).name;
|
||||
const crntValue = Settings.globalConfig[settingName] || {};
|
||||
|
||||
Reference in New Issue
Block a user