feat(lsp): rename_symbol: add cursors at rename points for interactive rename

This commit is contained in:
CJ van den Berg 2025-01-16 22:23:03 +01:00
parent e597fee2e5
commit a449e0ec97
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9
3 changed files with 15 additions and 19 deletions

View file

@ -795,7 +795,7 @@ pub fn rename_symbol(self: *Self, from: tp.pid_ref, file_path: []const u8, row:
const response = lsp.send_request(self.allocator, "textDocument/rename", .{
.textDocument = .{ .uri = uri },
.position = .{ .line = row, .character = col },
.newName = "foobar",
.newName = "PLACEHOLDER",
}) catch return error.LspFailed;
defer self.allocator.free(response.buf);
var result: []const u8 = undefined;