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

Promote metals.trace.server settings #381

Open
angelozerr opened this issue Apr 10, 2024 · 2 comments
Open

Promote metals.trace.server settings #381

angelozerr opened this issue Apr 10, 2024 · 2 comments

Comments

@angelozerr
Copy link

angelozerr commented Apr 10, 2024

Is your feature request related to a problem? Please describe.

I'm developping an LSP support client for IntelliJ and I'm playing with your Scala Metal LS and other LS.

Our LSP support provides an LSP console and vscode provide it too, so it is important (for me) to track the LSP request/responses notification to compare them.

In other words, I need to track the LSP request / responses notification of Metals in the vscode Output

Describe the solution you'd like

The vscode language client supports that out of the box, and if you add in your settings.json:

"metals.trace.server": "verbose"

You will see LSP requests, responses, notifications in the Output:

image

The settings appears "metals.trace.server": "verbose" as unkwonw, because you need to declare it in your package.json like we did for vscode-xml:

https://github.com/redhat-developer/vscode-xml/blob/main/package.json#L214-L224

It should be nice too in your documentation that you speak about this settings.

Describe alternatives you've considered

I'm declaring "metals.trace.server": "verbose" in my settings.json it is working but appears as unkwonw settings.

Additional context

No response

Search terms

lsp console traces

@tgodzik
Copy link
Contributor

tgodzik commented Apr 11, 2024

Thanks for reporting! Honestly, I wasn't aware we had this was possible and I am not sure how that setting takes effect 🤔

We can dig into that at some point and maybe promote it.

@angelozerr
Copy link
Author

Thanks for reporting!

You are welcome!

vscode language client does that without extra code and it is a very nice feature to understand the behavior of the Metals language server. Just expose the settings in the package.json.

Many thanks for your answer!

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

No branches or pull requests

2 participants