Skip to content

Request for help with understanding the log function #1

@LakshyAAAgrawal

Description

@LakshyAAAgrawal

Dear @predragnikolic,

I was reading through the code implementation, and wanted to understand why does the client-side log function defined in file

OLSP/libs/lsp/server.py

Lines 130 to 133 in 6f9b637

def _log(self, message: str) -> None:
self.send_notification("window/logMessage",
{"type": MessageType.info, "message": message})
send the log message as a notification to the server? Does a language server typically have a special way to handle the the message?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions