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

Method pullFavoriteNames

src/helpViewer/packages.ts:165–169  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

163 // Private functions used to sync favoriteNames with global state / workspace state
164 // Is used frequently when list of favorites is shared globally to sync between sessions
165 private pullFavoriteNames(){
166 if(this.state){
167 this.favoriteNames = this.state.get('r.helpPanel.favoriteNamesSet') || this.favoriteNames;
168 }
169 }
170 private pushFavoriteNames(){
171 if(this.state){
172 void this.state.update('r.helpPanel.favoriteNamesSet', this.favoriteNames);

Callers 5

constructorMethod · 0.95
refreshMethod · 0.95
addFavoriteMethod · 0.95
removeFavoriteMethod · 0.95
getPackagesMethod · 0.95

Calls 1

getMethod · 0.45

Tested by

no test coverage detected