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

Signature Help Documentation is the xml and not human-readable #2372

Closed
zoriya opened this issue Mar 29, 2022 · 5 comments · Fixed by #2392
Closed

Signature Help Documentation is the xml and not human-readable #2372

zoriya opened this issue Mar 29, 2022 · 5 comments · Fixed by #2392

Comments

@zoriya
Copy link
Contributor

zoriya commented Mar 29, 2022

The signature help uses the xml data and not the summary tag for the documentation of the signature. The specification wants plain text or markdown instead.

Plain text is already used for parameters documentation, it should be the same everywhere. This issue was already raised during the implementation of Structured here, but it was not modified (I don't know why).

I confirmed that VS Code is not using the documentation field so changing it would not break their implementation, but I don't know about other editors, so should I PR or not?

For now on editors that don't do a custom thing for Roslyn, this is shown instead:
image

@nickspoons
Copy link
Member

nickspoons commented Mar 30, 2022

We don't use the Documentation property in OmniSharp-vim, we use the StructuredDocumentation.

@JoeRobich
Copy link
Member

@AnonymusRaccoon Which OmniSharp host is being used in this scenario? The LSP or STDIO/HTTP? If it is the LSP, then the fix would go in the Handler for the signatureinfo requests.

@zoriya
Copy link
Contributor Author

zoriya commented Apr 26, 2022

I use the lsp mode, but I think it would be better to return a human readable documentation on this field on every mode, since others fields are made for humans to read.

@JoeRobich
Copy link
Member

@AnonymusRaccoon The OmniSharp protocol service doesn't have to return the same values as the LSP. I am not aware of all the tooling that builds on top of O#, but certainly there could be tooling that depends on the current behavior. I do agree the LSP should be updated to set Documentation to be the StructureDocumentation Summary string.

@zoriya
Copy link
Contributor Author

zoriya commented Apr 26, 2022

Okay, I will update the PR accordingly.

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