Commit Graph

103 Commits

Author SHA1 Message Date
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
Connor Peet 8ef6961789 server-web: implement secret storage provider (#191538)
Works quite similarly to vscode.dev. The client has a key stored in
secret storage. The server has a key stored server-side, and issues
an http-only cookie to the client. The client can ask the server to
combine its key and the http-only cookie key to a key component, which
it combines with its local key to encrypt and decrypt data.

This logic kicks in if the web server bits see a `vscode-secret-key-path`
cookie set when it loads.
2023-08-28 17:48:09 -07:00
Connor Peet f7a7d9488f cli: serve-web listener improvements (#191146)
- Allow listening on a socket path (required manually implementing
  the Accept trait), fixes #191043
- Parse the host syntax correctly, fixes #191067
2023-08-23 16:47:31 -07:00
Connor Peet 1fe8359ed0 cli: implement 'server of server' for a local web server (#191014)
Closes https://github.com/microsoft/vscode/issues/168492

This implements @aeschli's 'server server' concept in a new
`code serve-web` command.

Command line args are similar to the standalone web server. The first
time a user hits that page, the latest version of the VS Code web server
will be downloaded and run. Thanks to Martin's previous PRs, all
resources the page requests are prefixed with `/<quality-<commit>`.

The latest release version is cached, but when the page is loaded again
and there's a new release, a the new server version will be downloaded
and started up.

Behind the scenes the servers all listen on named pipes/sockets and the
CLI acts as a proxy server to those sockets. Servers without connections
for an hour will be shut down automatically.
2023-08-22 17:29:51 -07:00
Connor Peet 52840e3ca5 cli: cleanup build (#190213)
- Remove the `prepare` script entirely
- Variables are now populated from the product.json during build. Most
  variables are mapped automatically, with some special handling in a
	few cases. `build.rs` is now much more self-contained.
- Look for the `product.overrides.json` for vscode developers instead of
  looking for a peer `vscode-distro` folder

Fixes #178691
2023-08-10 20:14:30 -07:00