Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 42k
WebView port mapping not working under Remote SSH #102449
Copy link
Copy link
Closed
Labels
author-verification-requestedIssues potentially verifiable by issue authorIssues potentially verifiable by issue authorbugIssue identified by VS Code Team member as probable bugIssue identified by VS Code Team member as probable bugelectronIssues and items related to ElectronIssues and items related to Electronupstream-issue-linkedThis is an upstream issue that has been reported upstreamThis is an upstream issue that has been reported upstreamverifiedVerification succeededVerification succeededwebviewWebview issuesWebview issues
Milestone
Description
Activity
Metadata
Metadata
Labels
author-verification-requestedIssues potentially verifiable by issue authorIssues potentially verifiable by issue authorbugIssue identified by VS Code Team member as probable bugIssue identified by VS Code Team member as probable bugelectronIssues and items related to ElectronIssues and items related to Electronupstream-issue-linkedThis is an upstream issue that has been reported upstreamThis is an upstream issue that has been reported upstreamverifiedVerification succeededVerification succeededwebviewWebview issuesWebview issues
Steps to Reproduce:
r.sessionWatchertotrue, and reload vscode.Create R terminaland an R session is started?getIt starts an http server that provides the R documentation, and a VSCode
WebView should show up by the following extension code.
When
viewer="Active", the WebView cannot be shown properly with the latest release and insider of VSCode. Theiframecontent is empty.However, if I run the following in R
which basically calls
showBrowserwithviewer=false, then a local web browser is open byenv.openExternal(Uri.parse(url));the web page is properly shown. Only after this, I call?get, or equivalentlyThe WebView could be properly shown.
I guess the port mapping of WebView via Remote SSH somehow is not working and it works with the port mapping enabled by
env.openExternal(Uri.parse(url)). Everything works well if the same is done locally.Related: REditorSupport/vscode-R#380.
Does this issue occur when all extensions are disabled?: Yes