Skip to content

Commit

Permalink
default --stdio flag to false, don't use nullable
Browse files Browse the repository at this point in the history
  • Loading branch information
HarleyRossetto committed Dec 17, 2024
1 parent 84ef787 commit 171270f
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -239,12 +239,14 @@ static CliRootCommand CreateCommandLineParser()
var serverPipeNameOption = new CliOption<string?>("--pipe")
{
Description = "The name of the pipe the server will connect to.",
Required = false,
Required = false
};
var useStdIoOption = new CliOption<bool?>("--stdio")

var useStdIoOption = new CliOption<bool>("--stdio")
{
Description = "Use stdio for communication with the client.",
Required = false
Required = false,
DefaultValueFactory = _ => false
};

var rootCommand = new CliRootCommand()
Expand Down Expand Up @@ -276,7 +278,7 @@ static CliRootCommand CreateCommandLineParser()
var razorDesignTimePath = parseResult.GetValue(razorDesignTimePathOption);
var extensionLogDirectory = parseResult.GetValue(extensionLogDirectoryOption)!;
var serverPipeName = parseResult.GetValue(serverPipeNameOption);
var useStdIo = parseResult.GetValue(useStdIoOption) ?? false;
var useStdIo = parseResult.GetValue(useStdIoOption);

var serverConfiguration = new ServerConfiguration(
LaunchDebugger: launchDebugger,
Expand Down

0 comments on commit 171270f

Please sign in to comment.