From dcb624dd6cf4e0b0bb6b95d3d6b73c6c80e1f67f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Franti=C5=A1ek=20Boh=C3=A1=C4=8Dek?= Date: Sat, 15 Jan 2022 22:01:00 +0100 Subject: [PATCH] chore: remove debug stuff from source generator --- .../SourceGenerator.cs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/Packets/NosSmooth.PacketSerializersGenerator/SourceGenerator.cs b/Packets/NosSmooth.PacketSerializersGenerator/SourceGenerator.cs index 2480277..3026003 100644 --- a/Packets/NosSmooth.PacketSerializersGenerator/SourceGenerator.cs +++ b/Packets/NosSmooth.PacketSerializersGenerator/SourceGenerator.cs @@ -64,7 +64,7 @@ public class SourceGenerator : ISourceGenerator /// public void Initialize(GeneratorInitializationContext context) { - SpinWait.SpinUntil(() => Debugger.IsAttached); + // SpinWait.SpinUntil(() => Debugger.IsAttached); } private IEnumerable GetPacketRecords(Compilation compilation, SyntaxTree tree) @@ -130,11 +130,6 @@ public class SourceGenerator : ISourceGenerator $"{packetRecord.GetPrefix()}.{packetRecord.Identifier.NormalizeWhitespace().ToFullString()}Converter.g.cs", stringWriter.GetStringBuilder().ToString() ); - File.WriteAllText - ( - $"/tmp/{packetRecord.GetPrefix()}.{packetRecord.Identifier.NormalizeWhitespace().ToFullString()}Converter.g.cs", - stringWriter.GetStringBuilder().ToString() - ); } } -- 2.49.0