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

Method _handleCommand

src/helpViewer/treeView.ts:696–708  ·  view source on GitHub ↗
(cmd: cmdName)

Source from the content-addressed store, hash-verified

694 contextValue = Node.makeContextValue('installPackages', 'updateInstalledPackages');
695
696 public async _handleCommand(cmd: cmdName){
697 if(cmd === 'installPackages'){
698 const ret = await this.wrapper.rHelp.packageManager.pickAndInstallPackages(true);
699 if(ret){
700 this.rootNode.pkgRootNode?.refresh(true);
701 }
702 } else if(cmd === 'updateInstalledPackages'){
703 const ret = await this.wrapper.rHelp.packageManager.updatePackages();
704 if(ret){
705 this.rootNode.pkgRootNode?.refresh(true);
706 }
707 }
708 }
709
710 async callBack(){
711 await this.wrapper.rHelp.packageManager.pickAndInstallPackages();

Callers

nothing calls this directly

Calls 3

updatePackagesMethod · 0.80
refreshMethod · 0.65

Tested by

no test coverage detected