fix: disable some LSP requests that we don't actually support

This commit is contained in:
CJ van den Berg 2024-08-27 19:15:41 +02:00
parent 5a01792fd1
commit 32f00daf76
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9

View file

@ -792,7 +792,7 @@ fn send_lsp_init_request(self: *Self, lsp: LSP, project_path: []const u8, projec
.executeCommand = .{ .dynamicRegistration = true }, .executeCommand = .{ .dynamicRegistration = true },
// .didChangeConfiguration = .{ .dynamicRegistration = true }, // .didChangeConfiguration = .{ .dynamicRegistration = true },
.workspaceFolders = true, .workspaceFolders = true,
.semanticTokens = .{ .refreshSupport = true }, .semanticTokens = .{ .refreshSupport = false },
.fileOperations = .{ .fileOperations = .{
.dynamicRegistration = true, .dynamicRegistration = true,
.didCreate = true, .didCreate = true,
@ -1013,7 +1013,7 @@ fn send_lsp_init_request(self: *Self, lsp: LSP, project_path: []const u8, projec
.messageActionItem = .{ .additionalPropertiesSupport = true }, .messageActionItem = .{ .additionalPropertiesSupport = true },
}, },
.showDocument = .{ .support = true }, .showDocument = .{ .support = true },
.workDoneProgress = true, .workDoneProgress = false,
}, },
.general = .{ .general = .{
.staleRequestSupport = .{ .staleRequestSupport = .{