feat: lsp symbols with parent in mainview

This commit is contained in:
Igor Támara 2025-11-13 16:23:00 -05:00 committed by CJ van den Berg
parent 368b139688
commit cfb208f3d8
2 changed files with 7 additions and 10 deletions

View file

@ -985,7 +985,7 @@ const cmds = struct {
})) return error.InvalidAddDiagnosticArgument;
file_path = project_manager.normalize_file_path(file_path);
if (self.get_active_editor()) |editor| if (std.mem.eql(u8, file_path, editor.file_path orelse "")) {
logger.print("received symbol '{s}'", .{name});
logger.print("received symbol '{s}', '{s}'", .{ name, parent });
self.symbols_complete = false;
try self.symbols.appendSlice(self.allocator, ctx.args.buf);
};