Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remote Deployment: Facilitating Automatic Startup and Port Forwarding #170

Open
colin-grant-work opened this issue Jul 19, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@colin-grant-work
Copy link

colin-grant-work commented Jul 19, 2023

Investigating remote deployments of this plugin, I've been doing some checking on VSCode utilities for Remote deployments and found the asExternalUri function in the env namespace. Basically, in a desktop deployment, that function does nothing, because external is the same as local, but in a remote deployment, that function transforms the URI into a form that the client can use to access a service running on the host and also does any port forwarding, if the application is set up for that. You can see it in action in the 'Live Preview' plugin, which, like the Trace Extension, opens up a server on the remote machine on certain ports.

With that in mind, it may be desirable to modify the handling of the preference for the trace server port, either here or in the VSCode Trace Server plugin.

The caveat that I can see is that, given that there are currently two preferences (one in the server plugin and one here) for the location of the server, it might be desirable to let the user use this plugin's preference raw to specify the exact shape of the URL they want the views to use locally so that the user can set up access to the service manually, but in an ideal world where there was only one preference specifying the server's behavior, the asExternalUri utility could be applied to it to automatically expose the necessary ports on remote machines.

Originally posted by @colin-grant-work in #158 (comment)

@colin-grant-work colin-grant-work changed the title Remote Deployment: Facilitating Automatic Startup and Automatic Port Forwarding Remote Deployment: Facilitating Automatic Startup and Port Forwarding Jul 19, 2023
@colin-grant-work colin-grant-work added the enhancement New feature or request label Jul 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant