MCPcopy Index your code
hub / github.com/REditorSupport/vscode-R / removeFavorite

Method removeFavorite

src/helpViewer/packages.ts:130–135  ·  view source on GitHub ↗
(pkgName: string)

Source from the content-addressed store, hash-verified

128 return [...this.favoriteNames.values()];
129 }
130 public removeFavorite(pkgName: string): string[] {
131 this.pullFavoriteNames();
132 this.favoriteNames.delete(pkgName);
133 this.pushFavoriteNames();
134 return [...this.favoriteNames.values()];
135 }
136
137 // return the index file if cached, else undefined
138 private getCachedIndexFile(path: string): IndexEntry[] | undefined {

Callers 1

_handleCommandMethod · 0.80

Calls 3

pullFavoriteNamesMethod · 0.95
pushFavoriteNamesMethod · 0.95
deleteMethod · 0.80

Tested by

no test coverage detected