( message: string, options: WorksetPathOptions )
| 152 | .strict(); |
| 153 | |
| 154 | function invalidWorksetsFileError( |
| 155 | message: string, |
| 156 | options: WorksetPathOptions |
| 157 | ): StoreError { |
| 158 | return new StoreError( |
| 159 | `Invalid worksets file: ${message}`, |
| 160 | 'invalid_workset_file', |
| 161 | { |
| 162 | target: 'workset.file', |
| 163 | fix: `Repair or remove ${getWorksetsFilePath(options)}.`, |
| 164 | } |
| 165 | ); |
| 166 | } |
| 167 | |
| 168 | export function parseWorksetsState( |
| 169 | content: string, |
no test coverage detected