[Qt-creator] [LSP Client] Support for Diagnostic.codeDescription.href in QtCreator?
Francisco Boni
boboniboni at gmail.com
Thu Oct 17 10:48:45 CEST 2024
I'm developing an LSP server using the 3.17 specification and I want
it to work with the latest QtCreator. I have looked into the LSP
client implementation. It seems that the LSP client code converts
published diagnostics into Task classes and then displays them in the
Issues panel. This is working pretty well. My question concerns the
support for the `Diagnostic.codeDescription.href` field from the LSP
3.17 specification. This field can specify a URI with more information
about a diagnostic error
(https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#codeDescription):
export interface Diagnostic {
range: Range;
severity?: DiagnosticSeverity;
code?: integer | string;
codeDescription?: CodeDescription;
}
1. Does the current LSP client code in QtCreator support reading the
`Diagnostic.codeDescription.href` field in order to open the URL about
the diagnosed error?
2. If not, are there any alternative approaches to achieve similar
functionality (open an URL about the diagnosed error)?
Thanks in advance.
More information about the Qt-creator
mailing list