(source: SettingSource)
| 376 | } |
| 377 | |
| 378 | export function getSettingsFilePathForSource(source: SettingSource): string | undefined { |
| 379 | const candidates = getSettingsReadCandidatePathsForSource(source) |
| 380 | for (const candidate of candidates) { |
| 381 | if (getFsImplementation().existsSync(candidate)) { |
| 382 | return candidate |
| 383 | } |
| 384 | } |
| 385 | return getSettingsWriteFilePathForSource(source) |
| 386 | } |
| 387 | |
| 388 | export function getRelativeSettingsFilePathForSource( |
| 389 | source: 'projectSettings' | 'localSettings', |
no test coverage detected