MCPcopy Create free account
hub / github.com/nikivdev/go / list

Method list

workspace.go:183–196  ·  view source on GitHub ↗
(kind workspaceList)

Source from the content-addressed store, hash-verified

181}
182
183func (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
198func (w *workspaceDocument) set(kind workspaceList, values []string) error {
199 switch kind {

Callers 3

workspacePathsCmdFunction · 0.45
workspaceAddPathFunction · 0.45
workspaceRemovePathFunction · 0.45

Calls 1

cloneStringsFunction · 0.70

Tested by

no test coverage detected