Skip to content

Commit fea5d4b

Browse files
Copilotfriggeri
andcommitted
Fix .NET CLI server mode code samples to include UseStdio = false
Co-authored-by: friggeri <106686+friggeri@users.noreply.github.com>
1 parent 6c85e61 commit fea5d4b

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

docs/getting-started.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1033,7 +1033,8 @@ using GitHub.Copilot.SDK;
10331033

10341034
using var client = new CopilotClient(new CopilotClientOptions
10351035
{
1036-
CliUrl = "localhost:4321"
1036+
CliUrl = "localhost:4321",
1037+
UseStdio = false
10371038
});
10381039

10391040
// Use the client normally

dotnet/src/Client.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ public partial class CopilotClient : IDisposable, IAsyncDisposable
7070
/// var client = new CopilotClient();
7171
///
7272
/// // Connect to an existing server
73-
/// var client = new CopilotClient(new CopilotClientOptions { CliUrl = "localhost:3000" });
73+
/// var client = new CopilotClient(new CopilotClientOptions { CliUrl = "localhost:3000", UseStdio = false });
7474
///
7575
/// // Custom CLI path with specific log level
7676
/// var client = new CopilotClient(new CopilotClientOptions

0 commit comments

Comments
 (0)