fix: don't claim to support inlayHint and codeLens refresh in lsp init

This avoids noise when running rust-analyser.
This commit is contained in:
CJ van den Berg 2024-10-14 17:57:19 +02:00
parent dc25a0ea14
commit 2c3e8179dc
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9

View file

@ -936,7 +936,7 @@ fn send_lsp_init_request(self: *Self, lsp: LSP, project_path: []const u8, projec
.tagSupport = .{ .valueSet = .{1} }, .tagSupport = .{ .valueSet = .{1} },
.resolveSupport = .{ .properties = .{"location.range"} }, .resolveSupport = .{ .properties = .{"location.range"} },
}, },
.codeLens = .{ .refreshSupport = true }, .codeLens = .{ .refreshSupport = false },
.executeCommand = .{ .dynamicRegistration = true }, .executeCommand = .{ .dynamicRegistration = true },
// .didChangeConfiguration = .{ .dynamicRegistration = true }, // .didChangeConfiguration = .{ .dynamicRegistration = true },
.workspaceFolders = true, .workspaceFolders = true,
@ -950,8 +950,8 @@ fn send_lsp_init_request(self: *Self, lsp: LSP, project_path: []const u8, projec
.willRename = true, .willRename = true,
.willDelete = true, .willDelete = true,
}, },
.inlineValue = .{ .refreshSupport = true }, .inlineValue = .{ .refreshSupport = false },
.inlayHint = .{ .refreshSupport = true }, .inlayHint = .{ .refreshSupport = false },
.diagnostics = .{ .refreshSupport = true }, .diagnostics = .{ .refreshSupport = true },
}, },
.textDocument = .{ .textDocument = .{