( source: SettingSource, )
| 272 | } |
| 273 | |
| 274 | export function getSettingsFilePathForSource( |
| 275 | source: SettingSource, |
| 276 | ): string | undefined { |
| 277 | switch (source) { |
| 278 | case 'userSettings': |
| 279 | return join( |
| 280 | getSettingsRootPathForSource(source), |
| 281 | getUserSettingsFilePath(), |
| 282 | ) |
| 283 | case 'projectSettings': |
| 284 | case 'localSettings': { |
| 285 | return join( |
| 286 | getSettingsRootPathForSource(source), |
| 287 | getRelativeSettingsFilePathForSource(source), |
| 288 | ) |
| 289 | } |
| 290 | case 'policySettings': |
| 291 | return getManagedSettingsFilePath() |
| 292 | case 'flagSettings': { |
| 293 | return getFlagSettingsPath() |
| 294 | } |
| 295 | } |
| 296 | } |
| 297 | |
| 298 | export function getRelativeSettingsFilePathForSource( |
| 299 | source: 'projectSettings' | 'localSettings', |
no test coverage detected