The latest VSCode supports auto port-mapping if a URL with port specified is captured in terminal output.
Both httpgd and shiny show the url to browse before calling browseURL() but unfortunately some other packages do not do the same, so is the native ? to show the html help.
To walk-around this problem, I need to always print out the browsing URL before sending browser request to vscode-R session watcher as implemented in https://github.com/Ikuyadeu/vscode-R/pull/427 so that VSCode could capture the port in url to perform the port-mapping for the WebView to show properly.
The current message is missing a \n so the two messages are mixed up together:
This PR is a simple fix of the http server running at: message so that it will look better:
In VSCode, port mapping in webview under remote development has been broken for quite a while due to upstream issue https://github.com/microsoft/vscode/issues/102449.
The latest VSCode supports auto port-mapping if a URL with port specified is captured in terminal output.
Both httpgd and shiny show the url to browse before calling
browseURL()
but unfortunately some other packages do not do the same, so is the native?
to show the html help.To walk-around this problem, I need to always print out the browsing URL before sending browser request to vscode-R session watcher as implemented in https://github.com/Ikuyadeu/vscode-R/pull/427 so that VSCode could capture the port in url to perform the port-mapping for the WebView to show properly.
The current message is missing a
\n
so the two messages are mixed up together:This PR is a simple fix of the
http server running at:
message so that it will look better: