Relative Content

Tag Archive for visual-studio-codevscode-devcontainer

Can I force vscode to open a port inside a devcontainer?

I’m a fan and advocate of using Visual Studio Code devcontainers however I’ve hit a snag when using them.
Our organisation uses a service called Snowflake (its a cloud-based analytical DB, not that that’s important). They have a command-line tool called snowsql that is used to interact with the service and in order to use snowsql one must first authenticate. The easiest way to do that is to use browser authentication whereby a browser is opened to allow me to enter my credentials and then a token is passed back to snowsql.

Why is Visual Studio Code not auto forwarding ports?

I am using a service called Snowflake (a hosted analytic database service) and the CLI tools to interact with the service launch a browser window in which I enter my authentication details. The return URL of that authentication request goes to localhost:<port> where port is different each time.