(kind workspaceList)
| 181 | } |
| 182 | |
| 183 | func (w *workspaceDocument) list(kind workspaceList) []string { |
| 184 | switch kind { |
| 185 | case workspaceListRepoPaths: |
| 186 | return cloneStrings(w.RepoPaths) |
| 187 | case workspaceListExpanded: |
| 188 | return cloneStrings(w.WorkingExpandedFolders) |
| 189 | case workspaceListSelection: |
| 190 | return cloneStrings(w.WorkingStoredSelection.SelectedPaths) |
| 191 | case workspaceListFileBuffer: |
| 192 | return cloneStrings(w.WorkingFilePaths) |
| 193 | default: |
| 194 | return nil |
| 195 | } |
| 196 | } |
| 197 | |
| 198 | func (w *workspaceDocument) set(kind workspaceList, values []string) error { |
| 199 | switch kind { |
no test coverage detected