()
| 408 | |
| 409 | // search function, similar to typing `?? ...` in R |
| 410 | public async searchHelpByText(): Promise<boolean> { |
| 411 | const searchTerm = await vscode.window.showInputBox({ |
| 412 | value: '', |
| 413 | prompt: 'Please enter a search term', |
| 414 | }); |
| 415 | if (searchTerm !== undefined) { |
| 416 | return this.showHelpForPath( |
| 417 | `/doc/html/Search?pattern=${searchTerm}`, |
| 418 | ); |
| 419 | } |
| 420 | return false; |
| 421 | } |
| 422 | |
| 423 | // quickly open help for selection |
| 424 | public async openHelpForSelection( |
no test coverage detected