Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support window/logMessage #601

Closed
krassowski opened this issue May 19, 2021 · 0 comments · Fixed by #606
Closed

Support window/logMessage #601

krassowski opened this issue May 19, 2021 · 0 comments · Fixed by #606

Comments

@krassowski
Copy link
Member

krassowski commented May 19, 2021

What are you trying to do?

Some servers provide useful messages to the client. We should show these in the built-in JupyterLab console or in the browser console at the very minimum.

{"jsonrpc":"2.0","method":"window/logMessage","params":{"type":3,"message":"No pyproject.toml file found."}
{"jsonrpc":"2.0","method":"window/logMessage","params":{"type":2,"message":"stubPath typings is not a valid directory."}}
{"jsonrpc":"2.0","method":"window/logMessage","params":{"type":3,"message":"Assuming Python platform Windows"}}
{"jsonrpc":"2.0","method":"window/logMessage","params":{"type":3,"message":"Searching for source files"}}
{"jsonrpc":"2.0","method":"window/logMessage","params":{"type":3,"message":"No source files found."}}

https://microsoft.github.io/language-server-protocol/specification#window_logMessage

The idea would be to use ILogger from https://github.com/jupyterlab/jupyterlab/tree/master/packages/logconsole

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant