Csharp LS: remove prints

This commit is contained in:
Michael Panchenko
2025-07-01 14:51:57 +02:00
parent 463ea2e4a7
commit 6cd7f8155c
@@ -585,10 +585,6 @@ class CSharpLanguageServer(SolidLanguageServer):
self.logger.log(f"LSP: {message_text}", level_map.get(level, logging.DEBUG))
# Also print important messages to console
if level <= 3: # Error, Warning, or Info
print(f"C# Language Server: {message_text}")
def handle_progress(params):
"""Handle progress notifications from the language server."""
token = params.get("token", "")
@@ -607,10 +603,8 @@ class CSharpLanguageServer(SolidLanguageServer):
if percentage is not None:
self.logger.log(f"Progress [{token}]: {title} - {message} ({percentage}%)", logging.INFO)
print(f"C# Language Server: {title} - {message} ({percentage}%)")
else:
self.logger.log(f"Progress [{token}]: {title} - {message}", logging.INFO)
print(f"C# Language Server: {title} - {message}")
elif kind == "report":
message = value.get("message", "")
@@ -618,15 +612,12 @@ class CSharpLanguageServer(SolidLanguageServer):
if percentage is not None:
self.logger.log(f"Progress [{token}]: {message} ({percentage}%)", logging.INFO)
if percentage % 10 == 0: # Print every 10%
print(f"C# Language Server: {message} ({percentage}%)")
elif message:
self.logger.log(f"Progress [{token}]: {message}", logging.INFO)
elif kind == "end":
message = value.get("message", "Operation completed")
self.logger.log(f"Progress [{token}]: {message}", logging.INFO)
print(f"C# Language Server: {message}")
def handle_workspace_configuration(params):
"""Handle workspace/configuration requests from the server."""