()
| 147 | } |
| 148 | |
| 149 | export async function buildMemoryDiagnostics(): Promise<Diagnostic[]> { |
| 150 | const files = await getMemoryFiles(); |
| 151 | const largeFiles = getLargeMemoryFiles(files); |
| 152 | |
| 153 | const diagnostics: Diagnostic[] = []; |
| 154 | |
| 155 | largeFiles.forEach(file => { |
| 156 | const displayPath = getDisplayPath(file.path); |
| 157 | diagnostics.push( |
| 158 | `Large ${displayPath} will impact performance (${formatNumber(file.content.length)} chars > ${formatNumber(MAX_MEMORY_CHARACTER_COUNT)})`, |
| 159 | ); |
| 160 | }); |
| 161 | |
| 162 | return diagnostics; |
| 163 | } |
| 164 | |
| 165 | export function buildSettingSourcesProperties(): Property[] { |
| 166 | const enabledSources = getEnabledSettingSources(); |
no test coverage detected