Skip to content

Commit ef582c5

Browse files
authored
General cleanup (#519)
* Update ExamplesTests.cs * Update DebugAdapterLifecycle.cs
1 parent 89da1c1 commit ef582c5

File tree

2 files changed

+14
-9
lines changed

2 files changed

+14
-9
lines changed

src/Draco.Dap/Adapter/DebugAdapterLifecycle.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@ namespace Draco.Dap.Adapter;
1414
/// </summary>
1515
internal sealed class DebugAdapterLifecycle(
1616
IDebugAdapter adapter,
17+
#pragma warning disable CS9113 // Parameter is unread.
1718
IJsonRpcConnection connection) : IDebugAdapterLifecycle
19+
#pragma warning restore CS9113 // Parameter is unread.
1820
{
1921
public async Task<Model.Capabilities> InitializeAsync(InitializeRequestArguments args)
2022
{

src/Draco.Examples.Tests/ExamplesTests.cs

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -42,17 +42,20 @@ public ExamplesTests()
4242
public async Task RunExample(string projectFile, string verifiedFile)
4343
{
4444
// Invoke 'dotnet run' on the project
45+
var startInfo = new ProcessStartInfo
46+
{
47+
FileName = "dotnet",
48+
ArgumentList = { "run", "--project", projectFile },
49+
RedirectStandardOutput = true,
50+
RedirectStandardError = true,
51+
UseShellExecute = false,
52+
CreateNoWindow = true,
53+
};
54+
// Skip first-time message
55+
startInfo.EnvironmentVariables["DOTNET_SKIP_FIRST_TIME_EXPERIENCE"] = "1";
4556
var process = new Process
4657
{
47-
StartInfo = new ProcessStartInfo
48-
{
49-
FileName = "dotnet",
50-
ArgumentList = { "run", "--project", projectFile },
51-
RedirectStandardOutput = true,
52-
RedirectStandardError = true,
53-
UseShellExecute = false,
54-
CreateNoWindow = true,
55-
},
58+
StartInfo = startInfo,
5659
};
5760
process.Start();
5861

0 commit comments

Comments
 (0)