Open Oxygels opened 6 months ago
Looks like our language server already provides markdown format of the documentation property.
The info like func(a ...any) (n int, err error)
is supplied as detail
property of completion item https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#completionItem or https://code.visualstudio.com/api/references/vscode-api#CompletionItem. Rendering of the information is done by the VS Code. Please open an issue to microsoft/vscode repo. Strictly speaking, from VS Code's point of view, detail
isn't necessarily a code snippet.
Alternatively, I think gopls can try to embed the symbol info in the markdown documentation field as done for hover, and skip the detail field, but we need to be careful about unexpected side effects.
Is your feature request related to a problem? Please describe. We have syntax highlighting for the "hover tooltip" such as![image](https://github.com/golang/vscode-go/assets/39919597/f79abe3a-0f00-4b76-82cc-935168a4345f)
However the "editing tooltip" hasn't the syntax highlighting unfortunately and that's the purpose of this request![image](https://github.com/golang/vscode-go/assets/39919597/e0cdbf79-c3ae-4f35-9895-80c00c267f85)
Describe the solution you'd like An identical behavior between the hover and the editing tooltip
Describe alternatives you've considered /
Additional context C# Dev Kit doesn't have this feature, and neither does the old python LSP. This is kinda "rare" for LSPs to have this enabled but it is a great QoL feature to have.