Skip to content

Commit

Permalink
tunnel: Generate vanity URL (microsoft#164710)
Browse files Browse the repository at this point in the history
  • Loading branch information
aeschli authored and formigoni committed Oct 27, 2022
1 parent 9baf5ea commit db12ebf
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cli/src/tunnels/control_server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,6 @@ pub struct ServerTermination {
fn print_listening(log: &log::Logger, tunnel_name: &str) {
debug!(log, "VS Code Server is listening for incoming connections");

let extension_name = "+ms-vscode.remote-server";
let home_dir = dirs::home_dir().unwrap_or_else(|| PathBuf::from(""));
let current_dir = env::current_dir().unwrap_or_else(|_| PathBuf::from(""));

Expand All @@ -159,7 +158,7 @@ fn print_listening(log: &log::Logger, tunnel_name: &str) {
let mut addr = url::Url::parse("https://insiders.vscode.dev").unwrap();
{
let mut ps = addr.path_segments_mut().unwrap();
ps.push(extension_name);
ps.push("tunnel");
ps.push(tunnel_name);
for segment in &dir {
let as_str = segment.to_string_lossy();
Expand Down

0 comments on commit db12ebf

Please sign in to comment.