Skip to content

Commit

Permalink
Removed calls to WaitForPipeDrain.
Browse files Browse the repository at this point in the history
  • Loading branch information
arklumpus committed Feb 9, 2021
1 parent 3e85aa3 commit a993e04
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion CSharpEditor/CSharpEditor.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<Company>University of Bristol</Company>
<Description>A C# source code editor with syntax highlighting, intelligent code completion and real-time compilation error checking.</Description>
<PackageLicenseExpression>GPL-3.0-only</PackageLicenseExpression>
<Version>1.0.0</Version>
<Version>1.0.1</Version>
<PackageIcon>icon.png</PackageIcon>
<PackageProjectUrl>https://github.com/arklumpus/CSharpEditor</PackageProjectUrl>
</PropertyGroup>
Expand Down
18 changes: 9 additions & 9 deletions CSharpEditor/InterprocessDebugger.cs
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ private void InitializeServer(string clientExePath)
string guid = System.Guid.NewGuid().ToString("N");
PipeServerOutWriter.WriteLine(guid);
PipeServerOutWriter.Flush();
PipeServerOut.WaitForPipeDrain();
//PipeServerOut.WaitForPipeDrain();

string input = PipeServerInReader.ReadLine();

Expand Down Expand Up @@ -108,7 +108,7 @@ public Func<BreakpointInfo, bool> SynchronousBreak(Editor editor)
}
PipeServerOutWriter.WriteLine("Init");
PipeServerOut.WaitForPipeDrain();
//PipeServerOut.WaitForPipeDrain();
Dictionary<string, object> objectCache = new Dictionary<string, object>();
Dictionary<string, (string, VariableTypes, string)> localVariables = new Dictionary<string, (string, VariableTypes, string)>();
Expand Down Expand Up @@ -140,7 +140,7 @@ public Func<BreakpointInfo, bool> SynchronousBreak(Editor editor)
PipeServerOutWriter.WriteLine(message);
PipeServerOutWriter.Flush();
PipeServerOut.WaitForPipeDrain();
//PipeServerOut.WaitForPipeDrain();
while (!ClientProcess.HasExited)
{
Expand Down Expand Up @@ -169,7 +169,7 @@ public Func<BreakpointInfo, bool> SynchronousBreak(Editor editor)
PipeServerOutWriter.WriteLine(JsonSerializer.Serialize(items));
PipeServerOutWriter.Flush();
PipeServerOut.WaitForPipeDrain();
//PipeServerOut.WaitForPipeDrain();
}
else if (inputMessage[0] == "GetProperty")
{
Expand Down Expand Up @@ -203,7 +203,7 @@ public Func<BreakpointInfo, bool> SynchronousBreak(Editor editor)
PipeServerOutWriter.WriteLine(JsonSerializer.Serialize(new string[] { guid, JsonSerializer.Serialize(variableType), valueJSON }));
PipeServerOutWriter.Flush();
PipeServerOut.WaitForPipeDrain();
//PipeServerOut.WaitForPipeDrain();
}
else if (inputMessage[0] == "Resume")
{
Expand Down Expand Up @@ -466,7 +466,7 @@ public InterprocessDebuggerClient(string[] args)

PipeClientOutWriter.WriteLine(message);
PipeClientOutWriter.Flush();
PipeClientOut.WaitForPipeDrain();
//PipeClientOut.WaitForPipeDrain();
}

/// <summary>
Expand Down Expand Up @@ -547,7 +547,7 @@ protected override async void OnAttachedToLogicalTree(LogicalTreeAttachmentEvent
{
PipeClientOutWriter.WriteLine(JsonSerializer.Serialize(new string[] { "GetProperty", variableId, propertyName, isProperty.ToString() }));
PipeClientOutWriter.Flush();
PipeClientOut.WaitForPipeDrain();
//PipeClientOut.WaitForPipeDrain();

string message = PipeClientInReader.ReadLine();

Expand All @@ -572,7 +572,7 @@ protected override async void OnAttachedToLogicalTree(LogicalTreeAttachmentEvent
{
PipeClientOutWriter.WriteLine(JsonSerializer.Serialize(new string[] { "GetItems", variableId }));
PipeClientOutWriter.Flush();
PipeClientOut.WaitForPipeDrain();
//PipeClientOut.WaitForPipeDrain();

string message = PipeClientInReader.ReadLine();

Expand Down Expand Up @@ -609,7 +609,7 @@ protected override async void OnAttachedToLogicalTree(LogicalTreeAttachmentEvent
bool shouldSuppress = await Editor.AsynchronousBreak(info);
PipeClientOutWriter.WriteLine(JsonSerializer.Serialize(new string[] { "Resume", shouldSuppress.ToString() }));
PipeClientOutWriter.Flush();
PipeClientOut.WaitForPipeDrain();
//PipeClientOut.WaitForPipeDrain();
BreakpointResumed?.Invoke(this, new EventArgs());
}
}
Expand Down

0 comments on commit a993e04

Please sign in to comment.