Commit Graph

107 Commits

Author SHA1 Message Date
Josh Spicer 6cc2564bf9 remote: configurable 'reconnection grace time' (#274910)
* reconnection grace period prototype

* plumb through CLI

* polish

* Apply suggestions from code review

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-11-12 18:51:28 -08:00
Justin Wang b0271fa725 Fix --commit-id flag for code serve-web (#258904)
* Fix --commit-id flag for code serve-web

Fixes a bug where passing --commit-id during `code serve-web` would
prevent serve-web from downloading a new version of the client at all.

* Update cli/src/commands/serve_web.rs

---------

Co-authored-by: Connor Peet <connor@peet.io>
2025-07-31 16:52:39 +00:00
Copilot 90072b47cf Fix serve-web port randomization when --port 0 is specified (#254676)
* Initial plan

* Fix serve-web port randomization when --port 0 is specified

Co-authored-by: connor4312 <2230985+connor4312@users.noreply.github.com>

* Fix serve-web to display actual bound port instead of 0

When --port 0 is specified, the OS assigns a random port but the
logging was showing port 0 instead of the actual assigned port.
Fixed by reading the local_addr() from the server builder after binding.

Co-authored-by: connor4312 <2230985+connor4312@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: connor4312 <2230985+connor4312@users.noreply.github.com>
2025-07-22 13:35:24 -07:00
Justin Wang b4d1fec915 Add commit_id option to ServeWebArgs for specific client version (#255494)
* Add commit_id option to ServeWebArgs for specific client version

* Don't start serve-web update checker if given commit-id
2025-07-14 06:12:36 +00:00
M Hickford c515f75608 Log provider in "tunnel user show" 2025-02-11 19:53:57 +00:00
Connor Peet 90e4da155a cli: remove unsupported arguments from serve-web (#239731)
Fixes #238303
2025-02-05 13:20:23 -08:00
Connor Peet eee5e7643a cli: propagate server-data-dir and extensions-dir when installing service (#236734)
Fixes #236195
2024-12-20 10:29:40 -08:00
Connor Peet 3e86f1e6cd cli: fix serve-web needs to wait a certain amount of time after machine startup (#236427)
Fixes #233155
2024-12-18 01:38:47 +01:00
Sandeep Somavarapu 4920694ece fix #234843 (#235955)
* fix #234843

* fix lint error
2024-12-12 16:48:37 +01:00
benshi 4e2855ff7f Cli serve_web sets the path prefix to /<quality>-<commit>/, commit value parsing error (#233986)
fix #233984
2024-11-17 04:34:54 +00:00
Sandeep Somavarapu 653fd419de #232043 revert cli command and support downloading VSIX in UI (#233843)
* Revert "fix #232043 (#233596)"

This reverts commit e9d6c6afc0.

* #232043 revert cli command and support downloading VSIX in UI
2024-11-14 15:41:28 +01:00
Sandeep Somavarapu e9d6c6afc0 fix #232043 (#233596)
* fix #232043

* fix compilation error

* fix compilation

* fix compilation

* fix compilation

* fix compilation

* fix compilation
2024-11-12 14:09:05 +01:00
Hamir Mahal a744313eb7 style: simplify string formatting for readability (#231763)
* style: simplify string formatting for readability

* fix: formatting in `.rs` files in `src/`
2024-10-22 16:30:46 +00:00
Connor Peet 061cbf557f cli: add server-data-dir and extensions-dir on command-shell (#228287) 2024-09-12 17:06:42 +02:00
Connor Peet 4d221c6b85 cli: reapply "code server-web when offline" 2024-09-09 09:18:56 -07:00
Robo 746ba5bc68 cli: revert "code server-web when offline" (#227981)
* Revert "Merge pull request #227830 from microsoft/connor4312/cli-offline-serve"

This reverts commit 136a5c6f5f, reversing
changes made to 9d388bbf8b.

* chore: bump distro
2024-09-09 16:21:08 +02:00
Connor Peet 077bd2f1b4 fixups
- Don't set a config option for update interval. We don't let the one
  in core be configurable, don't see a huge need for this.
- Don't start the server when the update is available
- Fix some race conditions
- Fix some clippy lints on Rust 1.81
2024-09-06 12:20:13 -07:00
Ritam b97dc79649 feat: serve-web now checks for update every 1 hour by default and can be configured by the flag "update_check_interval" 2024-08-25 16:10:27 +05:30
Ritam 785aaa3fdf refactor: moved the cli serve-web cache seeding to ConnectionManager initialization from get_latest_release 2024-08-15 18:55:06 +05:30
Ritam 2ed4fb19e6 Merge branch 'main' into cli-serve-web-offline-use-cache 2024-08-15 15:41:53 +05:30
Connor Peet e59d6aee71 cli: allow listening on range of ports (#223953)
* cli: allow listening on range of ports

For https://github.com/microsoft/vscode-remote-release/issues/10043

* clippy lint
2024-07-26 13:36:36 -07:00
Connor Peet b6d022bc08 fix: --connection-token-file not functional in "code serve-web" (#223524)
Fixes #215537
2024-07-24 10:36:49 -07:00
Snoppy 8d54ffc9f6 chore: fix typos (#216562)
Signed-off-by: snoppy <michaleli@foxmail.com>
2024-06-27 20:01:19 +00:00
Connor Peet aef8e26d88 serve-web: fix SECRET_KEY_MINT_PATH does not honour server-base-path (#214250)
Fixes #212369
2024-06-04 09:57:17 -07:00
Connor Peet ebeb99b8f2 Connor4312/issue211378 (#213829)
cli: fix inverted condition not showing warning correctly

Fixes #211378
2024-05-29 18:50:34 +02:00
Ritam Mukherjee 3de59fcc49 feat: allows cli to serve locally cached server when update service not available 2024-05-22 21:03:54 +05:30
Connor Peet eb99b85bdf chore: update CLI dependences, add env var options for login 2024-05-20 08:33:23 -07:00
Connor Peet e3d04f279f cli: support refresh token in tunnel user login (#212106) 2024-05-06 18:47:37 +02:00
Connor Peet 233775583c cli: warn when cli options are not applied (#211492)
Fixes #211378
2024-04-26 15:23:02 -07:00
Connor Peet 2a5d88dcbd cli: allow command shell to listen on a specified host (#209691)
CLI part of https://github.com/microsoft/vscode-remote-release/issues/9713

Closes https://github.com/microsoft/vscode-remote-release/issues/9713
2024-04-05 16:19:25 -07:00
Connor Peet 8558da1335 cli: allow public port forwarding via tunnels (#209489) 2024-04-04 00:28:00 +02:00
Connor Peet 2ffe804c46 cli: allow specifying a server-data-dir and extensions-dir (#208225) 2024-03-20 18:09:51 +01:00
btwiuse b356b209a5 cli: add --server-base-path flag to code serve-web command (#207932)
* feat(cli): add --server-base-path flag to `code serve-web` command

* fix clippy

* fmt

---------

Co-authored-by: navigaid <navigaid@gmail.com>
2024-03-18 08:12:08 -07:00
Connor Peet 6269ab41b4 cli: add --install-extension command for use with tunnel server (#207741)
* cli: add --install-extension command for use with tunnel server

* fix clippy
2024-03-14 19:05:20 +01:00
Aiday Marlen Kyzy 487e155ebb Merge pull request #16 from devdiv-microsoft/connor4312/msrc/use-token-file
MSRC Fix for February 2024 Patch Tuesday
2024-03-12 11:02:18 -07:00
Connor Peet 9a07ceb9f7 cli: ensure the canonical snap exe is used for the CLI (#206133)
Fixes #204907
2024-02-23 15:02:22 -08:00
Connor Peet 6291fb21ec cli: fix adveristing file extension on windows (#203818)
Fixes #202919
2024-01-30 09:52:18 -08:00
samhanic 70dda3c792 Merge branch 'main' into cli-extension-update 2024-01-07 21:24:26 +01:00
Connor Peet 1a3de4181e cli: allow cancelling login during tunnel creation (#200188)
Fixes #197559
2023-12-06 21:59:28 +01:00
Connor Peet cc62bd1ddd cli: allow reading exec server token from env variable (#200079) 2023-12-05 21:38:10 +01:00
Connor Peet 3ff7d4545b Update cli/src/commands/args.rs
Co-authored-by: Sandeep Somavarapu <sasomava@microsoft.com>
2023-12-04 08:12:05 -08:00
samhanic 74c419b5bd add cli update-extensions prototype 2023-12-03 14:25:40 +01:00
Connor Peet b431ca92db tunnels: fixes to allow msa auth (#197259) 2023-11-02 19:49:04 +01:00
Connor Peet e250c8066d cli: fix command prompt showing up on windows (#194946)
cli: fix wsl prompt up on windows machine

Fixes #190425 again
2023-10-06 17:09:47 +01:00
Connor Peet 280c840f87 cli: support setting the --parent-process-id in command shell (#193735) 2023-09-21 15:12:02 -07:00
Connor Peet f92db2f96e cli: fix renamed self-update name, cleanup old binaries
Fixes #192948
2023-09-21 14:37:33 -07:00
Connor Peet 491ddd816e cli: allow command-shell to listen on a prescribed port (#193028)
Fixes https://github.com/microsoft/vscode-internalbacklog/issues/4623
2023-09-13 17:02:12 +01:00
Connor Peet 3941870f19 cli: fix panic if it can't bind a port (#193019)
Fixes #192229
2023-09-13 16:17:48 +01:00
Connor Peet c394fb8959 cli: polish serve-web help (#191817)
Fixes #191601
2023-08-30 19:02:48 +02:00
Connor Peet 5413247e57 serve-web: delete socket file on server shutdown (#191692)
Fixes #191691
2023-08-29 13:57:48 -07:00