()
| 125 | let _settingsWithDefaults: Settings | undefined; |
| 126 | |
| 127 | function loadSettingsWithDefaults(): void { |
| 128 | if (!_settings) { |
| 129 | _settings = read(); |
| 130 | } |
| 131 | |
| 132 | _settingsWithDefaults = objectAssignDeep({}, defaults, getPersistedSettings()) as Settings; |
| 133 | |
| 134 | if (!_settingsWithDefaults.devices) { |
| 135 | _settingsWithDefaults.devices = {}; |
| 136 | } |
| 137 | |
| 138 | if (!_settingsWithDefaults.groups) { |
| 139 | _settingsWithDefaults.groups = {}; |
| 140 | } |
| 141 | } |
| 142 | |
| 143 | function parseValueRef(text: string): {filename: string; key: string} | null { |
| 144 | const match = /!(.*) (.*)/g.exec(text); |
no test coverage detected