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

Method showHelpForPath

src/helpViewer/index.ts:587–603  ·  view source on GitHub ↗
(
        requestPath: string,
        viewer?: string | any,
        preserveFocus: boolean = false,
        panel?: HelpPanel,
    )

Source from the content-addressed store, hash-verified

585
586 // shows help for request path as used by R's internal help server
587 public async showHelpForPath(
588 requestPath: string,
589 viewer?: string | any,
590 preserveFocus: boolean = false,
591 panel?: HelpPanel,
592 ): Promise<boolean> {
593 // get and show helpFile
594 // const helpFile = this.helpProvider.getHelpFileFromRequestPath(requestPath);
595 const helpFile = await this.getHelpFileForPath(requestPath);
596 if (helpFile) {
597 return this.showHelpFile(helpFile, viewer, preserveFocus, panel);
598 } else {
599 const msg = `Couldn't show help for path:\n${requestPath}\n`;
600 void vscode.window.showErrorMessage(msg);
601 return false;
602 }
603 }
604
605 public async getHelpFileForPath(
606 requestPath: string,

Callers 3

searchHelpByTextMethod · 0.95
showHelpForAliasMethod · 0.95

Calls 2

getHelpFileForPathMethod · 0.95
showHelpFileMethod · 0.95

Tested by

no test coverage detected