Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion docs/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -1033,7 +1033,8 @@ using GitHub.Copilot.SDK;

using var client = new CopilotClient(new CopilotClientOptions
{
CliUrl = "localhost:4321"
CliUrl = "localhost:4321",
UseStdio = false
});

// Use the client normally
Expand Down
2 changes: 1 addition & 1 deletion dotnet/src/Client.cs
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public partial class CopilotClient : IDisposable, IAsyncDisposable
/// var client = new CopilotClient();
///
/// // Connect to an existing server
/// var client = new CopilotClient(new CopilotClientOptions { CliUrl = "localhost:3000" });
/// var client = new CopilotClient(new CopilotClientOptions { CliUrl = "localhost:3000", UseStdio = false });
///
/// // Custom CLI path with specific log level
Comment on lines 70 to 75
Copy link

Copilot AI Jan 27, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The <example><code> block declares var client multiple times, which won’t compile if a user copies the whole snippet as-is. Consider either splitting these into separate <code> examples or using distinct variable names (e.g., defaultClient, externalClient, etc.).

See below for a potential fix:

    /// var defaultClient = new CopilotClient();
    ///
    /// // Connect to an existing server
    /// var existingServerClient = new CopilotClient(new CopilotClientOptions { CliUrl = "localhost:3000", UseStdio = false });
    ///
    /// // Custom CLI path with specific log level
    /// var customPathClient = new CopilotClient(new CopilotClientOptions

Copilot uses AI. Check for mistakes.
/// var client = new CopilotClient(new CopilotClientOptions
Expand Down
Loading