Add default-folder, default-workspace and disable-telemetry to serve-web CLI#299512
Open
danplischke wants to merge 3 commits intomicrosoft:mainfrom
Open
Add default-folder, default-workspace and disable-telemetry to serve-web CLI#299512danplischke wants to merge 3 commits intomicrosoft:mainfrom
danplischke wants to merge 3 commits intomicrosoft:mainfrom
Conversation
…able-telemetry in rust cli
Author
|
@microsoft-github-policy-service agree |
Contributor
There was a problem hiding this comment.
Pull request overview
This PR exposes three additional CLI flags from the underlying TypeScript code server to the Rust CLI's serve-web command: --default-folder, --default-workspace, and --disable-telemetry. These options allow users to specify a default workspace folder/file to open when no input is given in the browser URL, and to disable telemetry reporting.
Changes:
- Added three new fields (
default_folder,default_workspace,disable_telemetry) to theServeWebArgsstruct with appropriate clap annotations. - Added pass-through logic in
start_versionto forward these new arguments to the spawned server process command, following the same pattern as existing options.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
cli/src/commands/args.rs |
Adds default_folder, default_workspace (both Option<String>), and disable_telemetry (bool) fields to ServeWebArgs. |
cli/src/commands/serve_web.rs |
Forwards the new arguments to the spawned server process command line, matching existing forwarding patterns. |
You can also share your feedback on Copilot code review. Take the survey.
connor4312
approved these changes
Mar 24, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes: #299511
This PR adds support for passing the following options and flag for the code server CLI to the Rust CLI.
--default-folder <path>– Sets the default workspace folder to open when no input is specified in the browser URL.--default-workspace <path>– Sets the default workspace file to open when no input is specified in the browser URL.--disable-telemetry– Disables telemetry reporting.To test, run the following commands in the cli directory: