From 2c3e8179dc15d6995203befbc859cec464ee1840 Mon Sep 17 00:00:00 2001 From: CJ van den Berg Date: Mon, 14 Oct 2024 17:57:19 +0200 Subject: [PATCH] fix: don't claim to support inlayHint and codeLens refresh in lsp init This avoids noise when running rust-analyser. --- src/Project.zig | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Project.zig b/src/Project.zig index 1045a7c..b704af5 100644 --- a/src/Project.zig +++ b/src/Project.zig @@ -936,7 +936,7 @@ fn send_lsp_init_request(self: *Self, lsp: LSP, project_path: []const u8, projec .tagSupport = .{ .valueSet = .{1} }, .resolveSupport = .{ .properties = .{"location.range"} }, }, - .codeLens = .{ .refreshSupport = true }, + .codeLens = .{ .refreshSupport = false }, .executeCommand = .{ .dynamicRegistration = true }, // .didChangeConfiguration = .{ .dynamicRegistration = true }, .workspaceFolders = true, @@ -950,8 +950,8 @@ fn send_lsp_init_request(self: *Self, lsp: LSP, project_path: []const u8, projec .willRename = true, .willDelete = true, }, - .inlineValue = .{ .refreshSupport = true }, - .inlayHint = .{ .refreshSupport = true }, + .inlineValue = .{ .refreshSupport = false }, + .inlayHint = .{ .refreshSupport = false }, .diagnostics = .{ .refreshSupport = true }, }, .textDocument = .{