Removed L.Info calls in csharp mod

This commit is contained in:
2025-12-06 22:50:02 -07:00
parent f53f2f878a
commit fd685a2fa0
2 changed files with 1 additions and 7 deletions

View File

@@ -72,8 +72,6 @@ public class SlangFormatter : ICodeFormatter
public override StyledLine ParseLine(string line) public override StyledLine ParseLine(string line)
{ {
L.Debug($"Parsing line for syntax highlighting: {line}");
// We create the line first // We create the line first
var styledLine = new StyledLine(line); var styledLine = new StyledLine(line);
@@ -83,7 +81,6 @@ public class SlangFormatter : ICodeFormatter
// We call update to create the basic tokens // We call update to create the basic tokens
styledLine.Update(tokens); styledLine.Update(tokens);
// CRITICAL FIX: We must manually re-attach metadata because StyledLine.Update() drops it.
ReattachMetadata(styledLine, tokens); ReattachMetadata(styledLine, tokens);
return styledLine; return styledLine;
@@ -179,9 +176,7 @@ public class SlangFormatter : ICodeFormatter
foreach (var lineDiagnostic in dict[lineIndex]) foreach (var lineDiagnostic in dict[lineIndex])
{ {
var column = Math.Abs((int)lineDiagnostic.Range.StartCol); 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( allTokensDict[column] = new SemanticToken(
line: (int)lineIndex, line: (int)lineIndex,
column, column,

View File

@@ -147,7 +147,6 @@ public static class Marshal
}; };
var tokens = Ffi.tokenize_line(strRef); var tokens = Ffi.tokenize_line(strRef);
L.Debug($"Tokenized line '{inputString}' into {tokens.len} tokens.");
return tokens.ToTokenList(); return tokens.ToTokenList();
} }
} }