()
| 264 | }]; |
| 265 | } |
| 266 | export async function buildMemoryDiagnostics(): Promise<Diagnostic[]> { |
| 267 | const files = await getMemoryFiles(); |
| 268 | const largeFiles = getLargeMemoryFiles(files); |
| 269 | const diagnostics: Diagnostic[] = []; |
| 270 | largeFiles.forEach(file => { |
| 271 | const displayPath = getDisplayPath(file.path); |
| 272 | diagnostics.push(`Large ${displayPath} will impact performance (${formatNumber(file.content.length)} chars > ${formatNumber(MAX_MEMORY_CHARACTER_COUNT)})`); |
| 273 | }); |
| 274 | return diagnostics; |
| 275 | } |
| 276 | export function buildSettingSourcesProperties(): Property[] { |
| 277 | const enabledSources = getEnabledSettingSources(); |
| 278 |
no test coverage detected