-
Notifications
You must be signed in to change notification settings - Fork 816
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
Change the type of Diagnostic.message to MarkedString #250
Comments
We could the same that we did for CompletionItems and make this a client capability. |
This is still something that would vastly improve the experience. |
Why was this added to on deck then moved to the backlog? Was there some issue? This combined with #1056 would be useful to the Idris 2 LSP. |
Wrongly assigned it to |
Is this blocked because the VSCode API doesn't support markdown for diagnostic messages? Unfortunately, the last comment was in February. |
LSP is not solely based on VS Code. If you can get this implemented in another LSP client, that should be sufficient. |
There are already feature in LSP that aren't supported in VS Code. All that LSP is requiring that new feature (whether or not implemented in VS Code) need to be guarded by a capability. |
If I made this into a PR, would it be merged? export interface PublishDiagnosticsClientCapabilities {
...
/**
* Client supports the follow content formats for the message
* property. The order describes the preferred format of the client.
*/
messageFormat?: MarkupKind[]
...
}
export interface Diagnostic {
...
message: string | MarkupContent
...
} |
@michaelmesser yes, that goes into the right direction. But we need an implementation as well (can be in a non VS Code client). Otherwise we have specification that no one implements. |
Do clients normally merge PRs for features not in the spec? Is an unmerged PR to a client sufficient? Is just implementing it in an editor plugin that extends an existing client sufficient? Is a server implementation also needed? |
In VS Code Is usually do the following:
Regarding the specific question: it is good enough if it ships in a beta version. However, an unmerged PR is too little. It might happen that the feature never makes it. |
Currently, diagnostic messages do not carry any formatting information, this forces clients to be conservative when displaying them, see microsoft/vscode#22239 and the proposed solution:
The text was updated successfully, but these errors were encountered: