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

Method openInExternalBrowser

src/helpViewer/panel.ts:193–206  ·  view source on GitHub ↗
(helpFile?: HelpFile)

Source from the content-addressed store, hash-verified

191 }
192
193 public async openInExternalBrowser(helpFile?: HelpFile): Promise<boolean> {
194 if (!this.currentEntry) {
195 return false;
196 }
197 if (!helpFile) {
198 helpFile = this.currentEntry.helpFile;
199 }
200 const url = helpFile.url;
201 if (!url) {
202 return false;
203 }
204 const uri = vscode.Uri.parse(url);
205 return vscode.env.openExternal(uri);
206 }
207
208 // go back/forward in the history of the webview:
209 public async goBack(): Promise<void> {

Callers 2

handleMessageMethod · 0.95
initializeHelpFunction · 0.80

Calls 1

openExternalMethod · 0.80

Tested by

no test coverage detected