diff --git a/csharp_mod/Formatter.cs b/csharp_mod/Formatter.cs index 95832ec..24d0152 100644 --- a/csharp_mod/Formatter.cs +++ b/csharp_mod/Formatter.cs @@ -72,8 +72,6 @@ public class SlangFormatter : ICodeFormatter public override StyledLine ParseLine(string line) { - L.Debug($"Parsing line for syntax highlighting: {line}"); - // We create the line first var styledLine = new StyledLine(line); @@ -83,7 +81,6 @@ public class SlangFormatter : ICodeFormatter // We call update to create the basic tokens styledLine.Update(tokens); - // CRITICAL FIX: We must manually re-attach metadata because StyledLine.Update() drops it. ReattachMetadata(styledLine, tokens); return styledLine; @@ -179,9 +176,7 @@ public class SlangFormatter : ICodeFormatter foreach (var lineDiagnostic in dict[lineIndex]) { var column = Math.Abs((int)lineDiagnostic.Range.StartCol); - L.Info( - $"Overwriting token at L:{lineIndex} C:{column} - Range:{lineDiagnostic.Range.EndCol - lineDiagnostic.Range.StartCol}" - ); + allTokensDict[column] = new SemanticToken( line: (int)lineIndex, column, diff --git a/csharp_mod/Marshal.cs b/csharp_mod/Marshal.cs index b03696f..1163b74 100644 --- a/csharp_mod/Marshal.cs +++ b/csharp_mod/Marshal.cs @@ -147,7 +147,6 @@ public static class Marshal }; var tokens = Ffi.tokenize_line(strRef); - L.Debug($"Tokenized line '{inputString}' into {tokens.len} tokens."); return tokens.ToTokenList(); } }