fix: disable markdown in LSP responses

Until we have a markdown renderer...
This commit is contained in:
CJ van den Berg 2024-12-18 21:46:36 +01:00
parent a0d9dede18
commit 502710cadb
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9

View file

@ -1004,7 +1004,7 @@ fn send_lsp_init_request(self: *Self, lsp: LSP, project_path: []const u8, projec
.snippetSupport = true, .snippetSupport = true,
.commitCharactersSupport = true, .commitCharactersSupport = true,
.documentationFormat = .{ .documentationFormat = .{
"markdown", // "markdown",
"plaintext", "plaintext",
}, },
.deprecatedSupport = true, .deprecatedSupport = true,
@ -1032,12 +1032,18 @@ fn send_lsp_init_request(self: *Self, lsp: LSP, project_path: []const u8, projec
}, },
.hover = .{ .hover = .{
.dynamicRegistration = true, .dynamicRegistration = true,
.contentFormat = .{ "markdown", "plaintext" }, .contentFormat = .{
// "markdown",
"plaintext",
},
}, },
.signatureHelp = .{ .signatureHelp = .{
.dynamicRegistration = true, .dynamicRegistration = true,
.signatureInformation = .{ .signatureInformation = .{
.documentationFormat = .{ "markdown", "plaintext" }, .documentationFormat = .{
// "markdown",
"plaintext",
},
.parameterInformation = .{ .labelOffsetSupport = true }, .parameterInformation = .{ .labelOffsetSupport = true },
.activeParameterSupport = true, .activeParameterSupport = true,
}, },