(
requestPath: string,
viewer?: string | any,
preserveFocus: boolean = false,
panel?: HelpPanel,
)
| 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, |
no test coverage detected