feat(lsp): rename_symbol: treat out-of-file edits as references
This commit is contained in:
parent
a449e0ec97
commit
155c1f663d
3 changed files with 18 additions and 7 deletions
|
@ -501,7 +501,7 @@ const Process = struct {
|
|||
return project.completion(from, file_path, row, col);
|
||||
}
|
||||
|
||||
fn rename_symbol(self: *Process, from: tp.pid_ref, project_directory: []const u8, file_path: []const u8, row: usize, col: usize) (ProjectError || Project.InvalidMessageError || Project.LspOrClientError || cbor.Error)!void {
|
||||
fn rename_symbol(self: *Process, from: tp.pid_ref, project_directory: []const u8, file_path: []const u8, row: usize, col: usize) (ProjectError || Project.InvalidMessageError || Project.LspOrClientError || Project.GetLineOfFileError || cbor.Error)!void {
|
||||
const frame = tracy.initZone(@src(), .{ .name = module_name ++ ".rename_symbol" });
|
||||
defer frame.deinit();
|
||||
const project = self.projects.get(project_directory) orelse return error.NoProject;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue