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

Method getActiveHelpPanel

src/helpViewer/index.ts:381–391  ·  view source on GitHub ↗
(fallBack: boolean = true)

Source from the content-addressed store, hash-verified

379 public getActiveHelpPanel(): HelpPanel
380 public getActiveHelpPanel(fallBack?: boolean): HelpPanel | undefined
381 public getActiveHelpPanel(fallBack: boolean = true): HelpPanel | undefined {
382 for (const helpPanel of this.helpPanels) {
383 if (helpPanel.panel && helpPanel.panel.active) {
384 return helpPanel;
385 }
386 }
387 if (fallBack) {
388 return this.getNewestHelpPanel();
389 }
390 return undefined;
391 }
392
393 // return the newest help panel
394 // if no help panel is available and createNewPanel==true, a new panel is created

Callers 1

initializeHelpFunction · 0.80

Calls 1

getNewestHelpPanelMethod · 0.95

Tested by

no test coverage detected